I'm not a coder so this is just what I'D try...I'd do exactly that. Change to 'Check' =4
I'm not a coder so this is just what I'D try...I'd do exactly that. Change to 'Check' =4
I Found an error with this mod..... it works well and adds the appropriate new members however..... what about when your admin or " default friend starts getting a few hundred friends ??????? the page is extremely slow to load..
check it out for yourself on your own site or try
http://www.ticket4one.com/profile.php?ID=widget
what will happen when i have a few thousand members as friends ??? !!!crash!!!
I think if logged in as admin user - don't show friends at all - since it is a given all on the site are your friends.
Would that work?
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.
maybe but at the moment admin/default friend mod has only been on the site for a few weeks so he only has a few hundred friends not the whole 16000 what i am really worried about is what will happen when the rest of the profiles start getting the same amount of friends aswell
I have found the solution on the web and tested it on my own community.
MOD Instruction:
Back up your join_form.php in case you screw it up
Open join_form.php
Find this code:
Line 374: if ( getParam('autoApproval_ifNoConfEmail') == 'on' )
Insert before line 374:
/* scc MOD: default friend */
$dump = db_res("INSERT INTO FriendList SET `ID` = '{$IDnormal}', `Profile` = 1, `Check` = 1");
/* scc end MOD */
You may want to change `Profile` = 1 to a value of the member ID that you are making this as the friend you are adding to all future new members.
source: http://www.infinityscript.com/boonex-dolphin-script/
Last edited by Bdsmlife; 01-12-2008 at 03:34 PM. Reason: .
I do not think this is a problem if it is paginated (spelling?), so that you only show X number of profiles per page. Maybe this is the way it is set up in version 6.x, I am not sure because I am just experimenting and tinkering, and do not yet have enough dummy accounts to create a next/previous page.
Dolphin 6.0.0003 + Ray 3.0 Modded
If I am not mistaken, we did this mod recently for someone... I would have to check with Mark about if this is the case, and how long it took, if you are interested in it.
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.
I know that somewhere there is a location/file that tells who is friends with who, but for the life of me I can't locate it. I installed the "Tom" mod so that new subscribers are automaticlly added as my friend, but I would like to be able and go back and manually add all memebers who were registered before I installed the mod.
Any help on locating this hidden location?
It's in the database - look for a table with the name of FriendList.
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.
Thanks for the location Smodge! I was able to find the loction of the friends list and was able to include those who had signed up before I added the "Tom" Mod. For those looking for the solution, go to your Firendlist in your SQL database and select "insert" you will have three boxes to fill in "id", "Profile", and "check" In the "ID" put the id number of the person you want to add , in the profile put your profile number in (usually #1) and in the check put the number 1. you can view what you added by "browsing" the Friendlist table.
The default on the profile pages is 12 profiles showing but there is a link in the upper right side if anyone wants to see them all, so don't worry to much about your profile page taking forever to load if you had a large number of friends.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks