+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 5 1 2 ... LastLast
Results 1 to 10 of 46

Thread: admin as default friend

  1. #1
    chad633
    Guest

    Default admin as default friend

    does anyone know how to make the admin as a default friend for dolphin 5.2? I know that I need to edit the join_form.php file and insert the profile ID# of the admin, just not really clear how to go about this. Anything to point me in the right direction would greatly appreciated.


    Thanks Y'all
    Chad

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    Hi,

    Sure - add a query to the join form that does this... hard code it in.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    chad633
    Guest

    Default

    I know that I need to add a query to the join page, just how to go about doing so is what I am trying to learn how to do. I don't know how to just hard code it, that's the problem I am having. I've been poking around in the code and trying to learn as I go. Does anyone have more details about what I need to do or maybe a good place to learn the code.

    Chad

  4. #4
    Techbot
    Guest

    Default

    I'm interested in this too, but I don't know php. I'm trying to learn but have no clue how to code a query line.
    I've found the part in the code for the friends list though!

  5. #5
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    Ok - first... figure out what kind of query is used to add a friend.

    Once you have that worked out - add that query to the join_form, where the profile gets created (or after email confirm is done, if you prefer that).

    But first - I think the key is figuring out the "add friend" query.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  6. #6
    Techbot
    Guest

    Default

    i FOUND the answer to this! it was buried deep in the boonex forums, posted there by some random guy. When i asked boonex about this, they said i could pay them to do it ... screw that.

    here's the message i found. I've already done this on Dolphin 5.3 and it works beautifully.

    ===================
    Once again here is a simple hack from TOOSQUARE:

    Much requested hack to add the admin to the friendlist of a new user.

    Use at your own risk, not meant for novices, and all that stuff. USE AT YOUR RISK. I am not a master PHP coder, but know how to get done what I need done. Dolphin is probably one of the most crazy php packages to figure out so that being said, this might affect other functions I am not aware of.
    ----------===== *

    This is the simplest hack

    In admin.inc.php

    Look for the activation email function.

    right before this line in the function ( this line calls the sendmail function, and sends the mail )

    Code:
    $mail_ret = sendMail( $recipient, $subject, $message, $ID, $aPlus );
    add this..

    Code:
     // add admins to friend list
     db_res("INSERT INTO FriendList SET `ID` = '$ID', `Profile` = 1, `Check` = 1");
    This single line updates the friendlist of the current user with the profile # you want just before the activation mail is sent. This can be moved to any section of the code you like, I just wanted it here. In the section `Profile` = 1 change the 1 to whatever profile you want to be automatically added.
    Last edited by Smoge; 11-29-2006 at 08:11 PM.

  7. #7

    Join Date
    Oct 2006
    Posts
    130

    Default Admin as Friend

    When I add this line it just gives me sql errors.. is there any additional spaces etc that are showing here on the line that shouldn't be? I am running Dolphin 5.3

    www.MyNudie.com

  8. #8
    Techbot
    Guest

    Default

    mine looks just like this:

    // add admins to friend list
    db_res("INSERT INTO FriendList SET `ID` = '$ID', `Profile` = 1, `Check` = 1");
    $mail_ret = sendMail( $recipient, $subject, $message, $ID, $aPlus );

    Just take the line that he gives and add it right above that $mail_ret line. I'm running 5.3 also, worked good.

    You can see my test profile for this www.teenspacelive.com/Killmachine

    I created a profile for my gaming community and it auto added my personal profile as the friend

  9. #9

    Join Date
    Oct 2006
    Posts
    130

    Default Dolphin 5.3 Adult Template

    Seems it just crashes mine then.. I had this issue once before and finally found 1 space that didn't belong and everything worked great.. Thank you for your help though I do appreciate it very much..

    www.MyNudie.com/rscott4581

    Roger

  10. #10

    Join Date
    Oct 2006
    Posts
    130

    Default Error

    This is the error it gives me when I change it..

    Warning: main(file:///C|/Users/RSCOTT%7E1/AppData/Local/Temp/header.inc.php) [function.main]: failed to open stream: No such file or directory in /home/me/public_html/mywebsite/admin.inc.php on line 23

    Fatal error: main() [function.require]: Failed opening required 'file:///C|/Users/RSCOTT%7E1/AppData/Local/Temp/header.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/me/public_html/mywebsite/admin.inc.php on line 23
    Last edited by rscott4581; 11-28-2006 at 03:25 PM.

+ Reply to Thread (include dating software, release, and patch number!)
Page 1 of 5 1 2 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Default Sex / Looking For On Search.Php
    By Smoge in forum Bugs Dolphin 5.6.4
    Replies: 0
    Last Post: 05-03-2007, 11:19 PM
  2. show IM by default
    By makenoize in forum General Issues, Comments, Questions
    Replies: 5
    Last Post: 11-08-2006, 06:59 PM
  3. Replies: 2
    Last Post: 09-09-2006, 12:02 PM
  4. email profile to a friend, invite a friend
    By valentino in forum Bugs aeDating v4.0.2
    Replies: 1
    Last Post: 02-23-2006, 01:41 AM
  5. USA as Default
    By Herman in forum General Troubleshooting
    Replies: 1
    Last Post: 04-09-2005, 06:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts