Default Friend Like TOM on Myspace?

I know there is a mod out there for this or at least there was.

In the old dolphin you could add this line to the join_form file

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$IDnormal}', `Profile` = 1, `Check` = 1");



Where do or would I add something like that now?

Quote · 4 Jun 2008

I would like this too

Quote · 4 Jun 2008

Everybody needs a friend named Tom right...or should it be Victor!! Hey just kidding. I know there was a mod too, not sure if it is the same or if anyone can update it. Would be a nice feature

gameutopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 4 Jun 2008

I also would be interested in Tom Mod

Thanks

Beef

Quote · 4 Jun 2008

Yeah I'm still trying to figure it out.

I keep getting the database error message after I register a user.

I figured out the user ID of the new member is $iMemID not $IDNormal.

I just can't figure out where to put the line without getting an error when I execute db_res. BxDolProfileController is where I'm working.

Quote · 4 Jun 2008

I figured it out.  I tested it numerous times to make sure it works.  This is on Dolphin 6.1.1

 

Find this line in join.php (approx Line 391):

 

  list( $iMemID, $sStatus ) = $oPC -> createProfile( $aProfile );

 

 

Insert this line after it:

 

  $dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");

 

The profile number needs to be whatever number your "Tom profile" number is.

This works for new members only!!!  It is not retroactive!!!

If you have members already and want to add your "Tom profile" to current members, run an SQL query on your database as such:

 

INSERT INTO FriendList SET `ID` = '2', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '3', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '4', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '5', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '6', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '7', `Profile` = 1, `Check` = 1");

This is an example of inserting your "Tom profile" into members 2 to 7.  Make sure that your ID numbers match actual member ID numbers and that the profile number match your "Tom profile" or you will get an SQL error or improper database additions.

Quote · 5 Jun 2008

Tested and it confirmed it works in 6.1

Thanks bruh.

Quote · 5 Jun 2008

Thanks for the details on the mod!

Quote · 5 Jun 2008

I have published a mod like this But in which you can set the profile in admin. It is available in expertzzz.com

----
Quote · 5 Jun 2008

I just sent you a message about another mod.

Quote · 5 Jun 2008

Where is it? Link please.

I have published a mod like this But in which you can set the profile in admin. It is available in expertzzz.com

Quote · 10 Jun 2008

Where is it? Link please.

I have published a mod like this But in which you can set the profile in admin. It is available in expertzzz.com

Quote · 10 Jun 2008

Dude socald1971 just showed you how to do it above.

Why would you buy a mod?

Quote · 10 Jun 2008

So then I should create another Profile calling "Victor" ;-) .... Should the profile be a moderator or does it matter...?

And just add the code....(some of the free mods I have been testing did not work with 6.1.1 ....)

Dude socald1971 just showed you how to do it above.

Why would you buy a mod?

Quote · 11 Jun 2008

Sure you can do whatever you want just make sure you know the profile ID #

This mod is confirmed to work in 6.1. I use it myself.

Quote · 11 Jun 2008

Dear Irepton,

You can find it here.

http://www.expertzzz.com/Downloadz/view/3254

----
Quote · 11 Jun 2008

I was able to install and it works with 6.1.1.

Thanks for the FREE mod!!!! Keep 'em coming!

Sure you can do whatever you want just make sure you know the profile ID #

This mod is confirmed to work in 6.1. I use it myself.

Quote · 11 Jun 2008

Nice one, thanx.....how about if the friends aren't being counted in the first place??

 

 

 

I keep trying to add this but I get this message???:

[a fatal error or timeout occurred while processing this directive]

Quote · 16 Jun 2008

Yeah, works great for new members; however the retroactive code is incorrect. It produces an SQL error. There's actually 2 things I noticed with the code...

a) multiple queries such as you did it require colons, not commas at the end of each individual query

b) you don't need to specify field names...and if you want to, you need to go about it a whole different way.

Correct syntax would be:

INSERT INTO FriendList VALUES ('2', '1', '1');
INSERT INTO FriendList VALUES ('3', '1', '1');
INSERT INTO FriendList VALUES ('4', '1', '1');

INSERT INTO FriendList VALUES ('5', '1', '1');
INSERT INTO FriendList VALUES ('6', '1', '1');
INSERT INTO FriendList VALUES ('7', '1', '1');

etc...

Or, another way to do it would be:

INSERT INTO FriendList VALUES ('2', '1', '1'), ('3', '1', '1'), ('4', '1', '1'), ('5', '1', '1'), ('6', '1', '1'), ('7', '1', '1');

however the first code is much easier to use on a mass scale(though messier).

Quote · 17 Jun 2008

This is code is great; however, I was wondering if you could two "Tom's" for each new member.  I tried to copy the code twice, putting in the ID number of the second Tom on the second line, but I'm getting a sql error.  Thanks!

Quote · 29 Jul 2008

I had the same issue;

just double paste it and change the second profile ID

 

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 2, `Check` = 1");

Red numbers 1 and 2 are profile ID, you can set any number( profile) ID you want.

Nurke

Quote · 30 Jul 2008

What is 'Tom' exactly?

There are none so blind as those that will not see.
Quote · 30 Jul 2008

Are you kidding Stuart? When you sign up/account at myspace and you login you automatically have 1 friend "Tom". I don't know who he is or what part he plays with the company anymore. He used to be like the original creator/programer or somethig. That's all you ever heard about was "Tom". Either a marketing thing or I guess to make you feel special you have a friend "Tom" whoopy. That's about all I know about myspace except the younger kids hang out there from middle school age up to early to mid 20's. I don't really get it too much, but since it's so popular I try to check it out and see what works for them might work similarly with dolphin to keep a site active and popular.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 30 Jul 2008

Tom is the guy that founded MySpace, everytime someone signs-up for a MySpace page Tom is automatically added as their friend. Tom has 240,475,297 friends right now.

They have a new toy now, it's from Snapvine or something.....people can leave voice messages on your MySpace page among others. I'm going to ad it to my site, really cool toy.

Rob

 

Quote · 30 Jul 2008

sweet!!! This actually prompts add'l ideas... like automatically greeting the new member on the shoutbox.

Quote · 30 Jul 2008

socald1971's code worked! thanks!

Quote · 29 Aug 2008

Thanks for this information guys.  By the way, I am running 6.1.4 and the code begins on line 781, not line 391.

Quote · 10 Sep 2008

You mean Tom is not a real person!  He is my only friend on MySpace!

Quote · 10 Sep 2008

Glad to see that sense of humor is back!

-

You mean Tom is not a real person!  He is my only friend on MySpace!

Quote · 11 Sep 2008

Thanks for this information guys.  By the way, I am running 6.1.4 and the code begins on line 781, not line 391.

You have word/line wrap turned on  ..... 

It is on line 391 in v6.1.4  ..... 
.

Quote · 11 Sep 2008

I added 'Tom' to my join.php page and it works too well! each and every new member becomes a 'Friend'

Question: How do I remove the unwanted friends??

Stuart

There are none so blind as those that will not see.
Quote · 16 Sep 2008

Go to your account page, choose there go to friendslist, there you can remove people from your list.

Kids first
Quote · 16 Sep 2008
Hello Killerhaai, I did that and clicked on 'friends' Did not see any way of deleting individual ' friends' As regards the mod, it is apparently working correctly, what I had not considered was the new friends would be added to my account. This is no good to me as I do not want 100's of 'friends on my account. Anyway around this? Regards, Stuart
There are none so blind as those that will not see.
Quote · 17 Sep 2008

Stuart try logging in to your site as your member not admin. Then after logging in:
http://www.yoursite.com/contacts.php?show=friends

On the left you can check the box in front of the user you want to remove from your friends list.

Then at bottom of the page click "Delete from friends list"

Now I haven't checked to see if it removes me as their friend on there page or not.

Which you are kind of defeating the purpose of the modification to begin with it sounds like.

gameutopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 17 Sep 2008

Thanks gameutopia the http://www.yoursite.com/contacts.php?show=friends link worked. But in my accounts the friends takes me too: http://www.yoursite.com/viewFriends.php?iUser=1 - As far as I can see there is no way for me to get to the contacts.php?show=friends link. -  As for defeating the purpose, I think not. If I am automatically their friend why do I need them listed in my account? - Ok, found it, under 'Contacts' not 'friends'

There are none so blind as those that will not see.
Quote · 17 Sep 2008

After logging in and going to your member page /member.php

You should see "member info"
status active
membership type
view allowed actions
etc.

Under that "Contacts"
Messages....
Friends...."go to my friends" <--link should be the http://www.yoursite.com/contacts.php?show=friends

If not you can edit that from admin panel language key/string. I think this key maybe what you could check _ATT_FRIEND_NONE with:

No new friends (<a href="{0}contacts.php?show=friends">go to My Friends</a>)

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 17 Sep 2008

Found it, many thanks.

Stuart

After logging in and going to your member page /member.php

You should see "member info"
status active
membership type
view allowed actions
etc.

Under that "Contacts"
Messages....
Friends...."go to my friends" <--link should be the http://www.yoursite.com/contacts.php?show=friends

If not you can edit that from admin panel language key/string.

There are none so blind as those that will not see.
Quote · 17 Sep 2008

Stuart,

You set your account (1) obviously as your "Tom" account  .....  it is added your account to every other account  ..... 

If you do not want all the friends in 'your' account, add a new 'Tom' (xx) account for that purpose  ..... 

Then add the new 'Tom' account mod (xx)  .....  which will add one 'Tom' to your account and all others and everyone to the 'Tom' account.

Hope that makes sense for you  ..... 
.

Quote · 17 Sep 2008

INSERT INTO FriendList VALUES ('2', '1', '1');
INSERT INTO FriendList VALUES ('3', '1', '1');
INSERT INTO FriendList VALUES ('4', '1', '1');
INSERT INTO FriendList VALUES ('5', '1', '1');
INSERT INTO FriendList VALUES ('6', '1', '1');
INSERT INTO FriendList VALUES ('7', '1', '1');

this one works...

Quote · 6 Oct 2008

Thanks for this...

I added my sites support account to everyones friends so it easier to contact me for customer service

Quote · 7 Oct 2008

Using the:

$dump = db_res("INSERT INTO FriendList SET 'ID' = '{$iMemID}', 'Profile' = 9, 'Check' = 1");

In the join.php produces a database error page, and using the sql query:

INSERT INTO FriendList SET `ID` = '9', `Profile` = 1, `Check` = 1"),

works just fine for adding a friend to user accounts.

I am using Dolphin 6.14, is there a different code required for this version?

Quote · 12 Nov 2008

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` =7, `Check` = 1");

i'm using the above code in 6.1.4 free version it works.

Quote · 12 Nov 2008

Worked like a charm !!  One million thanks to you !!!!  An excellent free mod !!!

Quote · 25 Nov 2008

Thanks alot socald1971! :)

Quote · 21 Feb 2009

Has anyone verified this for 6.1.5?

.

I tried it and it generated an error when clicking on the Join link:

.

Fatal error: Call to undefined function phprequire_once() in /home/mydomain/public_html/join.php on line 1

.

.

Any ideas?

.

Any help is much appreciated Smile

Quote · 14 May 2009

 

I figured it out.  I tested it numerous times to make sure it works.  This is on Dolphin 6.1.1

 

Find this line in join.php (approx Line 391):

 

  list( $iMemID, $sStatus ) = $oPC -> createProfile( $aProfile );

 

 

Insert this line after it:

 

  $dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");

 

The profile number needs to be whatever number your "Tom profile" number is.

This works for new members only!!!  It is not retroactive!!!

If you have members already and want to add your "Tom profile" to current members, run an SQL query on your database as such:

 

INSERT INTO FriendList SET `ID` = '2', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '3', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '4', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '5', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '6', `Profile` = 1, `Check` = 1"),

INSERT INTO FriendList SET `ID` = '7', `Profile` = 1, `Check` = 1");

This is an example of inserting your "Tom profile" into members 2 to 7.  Make sure that your ID numbers match actual member ID numbers and that the profile number match your "Tom profile" or you will get an SQL error or improper database additions.

 If you want to have multiple profiles you want automatically added to any new members then just add a line below the:

 

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");

 

with each new line just change " 'Profile'  = 1, " leaving " 'Check'  =1" "

 

So if you want to add the first three profiles to new members it should look like this:

 

list( $iMemID, $sStatus ) = $oPC -> createProfile( $aProfile );

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 2, `Check` = 1");

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 3, `Check` = 1");

Ive tested this in dolphin 6.1.4 and works fine.

Quote · 16 May 2009

 

Stuart try logging in to your site as your member not admin. Then after logging in:
http://www.yoursite.com/contacts.php?show=friends

On the left you can check the box in front of the user you want to remove from your friends list.

Then at bottom of the page click "Delete from friends list"

Now I haven't checked to see if it removes me as their friend on there page or not.

Which you are kind of defeating the purpose of the modification to begin with it sounds like.

gameutopia

 I am new here and I am trying the "Delete from friends list" function. Once I click on that button I get "Internal Server Error" on Apache/2.2.0 (Fedora) Server. Can anyone give me an idea as to what is causing this?

 

Thanks!

Quote · 14 Nov 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.