Has anyone found a way to set up an 'Auto Friend' function? (like Tom on myspace) We were able to have that on our D6 version with a mod that we purchased. With all the cool stuff on D7 I figured it would be on of the default modules that come with it, but haven't seen it. Anyone out there with a solution or know if D7 has it and I am just not seeing it? |
Anyone find a solution for this? |
I have not seen one for D7.
But if the demand is high enough, i might consider writing one.
https://www.deanbassett.com |
Well I can tell you the demand is high... lol... That would be great if you could, I have already seen a couple of posts here asking for it.
Also, a 'Birthday Notification' mod would be great, that is something our members really like, getting an email from the site wishing them a 'Happy Birthday'.
What do you think?
|
files to edit (join.php)
around line 268-269
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
after add this code
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
so it looks like this
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
The profile number is your Tom
|
files to edit (join.php)
around line 268-269
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
after add this code
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
so it looks like this
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
The profile number is your Tom
Thanks for this, I'm sure it will help allot of people (including myself).
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Hmmm, now that looks simple enough.
https://www.deanbassett.com |
Tested it on my site, works great!
Only difference is those two lines of code that you said to look for were on lines 535 & 537 when I opened up the join.php file in Dreamweaver. So if anyone can't find them on 268 - 269 - look around 535 - 537.
Thanks!
|
Thanks prolaznik. Just seen this post and tried your workaround. Works perfectly, well done and thanks again.
Jim
|
Tested it on my site, works great!
Only difference is those two lines of code that you said to look for were on lines 535 & 537 when I opened up the join.php file in Dreamweaver. So if anyone can't find them on 268 - 269 - look around 535 - 537.
Thanks!
i have no idea how you ended up with line 535-537 is your join.php file moded..??
i tested it several times and it's around line 268-269 D7 unmodified join.php
|
Haven't touched a thing, I know seems kinda strange, but that is where it is. Works great though. Quick question about that, the profile that we choose to be the autofriend is set to '2', would the admin profile be '1', does that correlate to the profile number? I don't see any ID numbers for profiles in the back office like on D6, unless I am just looking in the wrong place |
Haven't touched a thing, I know seems kinda strange, but that is where it is. Works great though. Quick question about that, the profile that we choose to be the autofriend is set to '2', would the admin profile be '1', does that correlate to the profile number? I don't see any ID numbers for profiles in the back office like on D6, unless I am just looking in the wrong place
well as long it works :)
just opened it up in dmw. and still don't see line 535
but yes admin would be ID 1
second registered user would be ID 2
3rd registered user would be ID 3
and so on
|
So I just checked the join.php that is right out of the zip file for D7 and on that file it is where you say it is(268-269). Now, the join.php file that is on my server (and I haven't made any mods to it at all) is way different, way more lines of code on it and those specified lines of code you pointed out are on 535 & 537 (I noticed that on the file that I down loaded off the server that the lines are now all 'double spaced' which they are not on the file right out of the box, maybe this is why the lines of code moved down into the 500's. Is that strange? Or did the site make mods to the join.php file when it installed the site. |
So I just checked the join.php that is right out of the zip file for D7 and on that file it is where you say it is(268-269). Now, the join.php file that is on my server (and I haven't made any mods to it at all) is way different, way more lines of code on it and those specified lines of code you pointed out are on 535 & 537 (I noticed that on the file that I down loaded off the server that the lines are now all 'double spaced' which they are not on the file right out of the box, maybe this is why the lines of code moved down into the 500's. Is that strange? Or did the site make mods to the join.php file when it installed the site.
well it's strange to me since mine both files are same in size (on the server & out of the box) i have no idea why they are double spaced when you downloaded the file
|
files to edit (join.php)
around line 268-269
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
after add this code
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
so it looks like this
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
The profile number is your Tom
and just a day after my post we have a mod for sale LOL...........
http://www.expertzzz.com/Downloadz/view/6997
|
Know what, it's just a double space issue, for some reason all my lines of code on the server side file are double spaced, take out the double spacing and they are where they are supposed to be.
That sucks man, what can we do to fix that so you can get that mod up, you found the solution, you should get the credit for it.
|
Lol...it's all good i posted it as free :) |
Let's see: the mod on Expertzzz is the exact same, costs $5.00's more, and is licensed under the GPL.
What this means is that if I purchase it, I also gain rights to modify it to my needs (as the great wise-troll of the FSF says) and even distribute my changes to others.
But, wait... This was also posted on here and is free, and I can modify it all I like to fit my needs.
Eh, sounds like a deal to me!
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
|
Thank'U So Much : Working 100% Perfect Thank's Post Reply - if you going to help - No for - bla bla bla bla |
(Should have asked this here instead :) Kicks Ass! Hey, real quick, an add on question to the original, can
you set it up so that more than one profile is automatically added? or
just the one? Like if you put a comma then another profile number,
would that work? |
(Should have asked this here instead :) Kicks Ass! Hey, real quick, an add on question to the original, can
you set it up so that more than one profile is automatically added? or
just the one? Like if you put a comma then another profile number,
would that work?
yes you can just add the same code again
around line 268-269
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
after add this code
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
so it looks like this
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1"); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
|
to have this mod working on d7.0.1 you need to edit this file
/inc/classes/BxDolJoinProcessor.php
around line 248 find
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
add this code after
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
|
Hi actually its $30 now LOL..
http://www.boonex.com/unity/extensions/entry/Auto_Friend_with_Multi_Admins_
me/bows thanks for the free code :)
Jennifer
Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com |
could be but this one was always free :) |
Hi yes I got it here in the first place :) I just had to find out about the change since upgrade to 7.01.
I just had a membership join using facebook connect and it didn't add friends. Doe anyone know if this works with facebook connect .. I am using gotgoblins I might ask him about it.
Regards
Jennifer
Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com |
Hi actually its $30 now LOL..
http://www.boonex.com/unity/extensions/entry/Auto_Friend_with_Multi_Admins_
me/bows thanks for the free code :)
Jennifer
Our Auto Friend mod existed from Dolphin 6.x and has been updated to Dolphin 7.x. This is a thorough implementation of Auto Friend functionality (the ability to easily add multi-admins etc). Your post is misleading and seems to be suggesting that we have simply re-packaged the one-line hard-code fix here and reselling. Read the mod description to see exactly what is being offered.
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
Hi yes I got it here in the first place :) I just had to find out about the change since upgrade to 7.01.
I just had a membership join using facebook connect and it didn't add friends. Doe anyone know if this works with facebook connect .. I am using gotgoblins I might ask him about it.
Regards
Jennifer
http://www.boonex.com/unity/extensions/entry/Auto_Friend_Facebook_Connect
|
Hi yes I got it here in the first place :) I just had to find out about the change since upgrade to 7.01.
I just had a membership join using facebook connect and it didn't add friends. Doe anyone know if this works with facebook connect .. I am using gotgoblins I might ask him about it.
Regards
Jennifer
http://www.boonex.com/unity/extensions/entry/Auto_Friend_Facebook_Connect
Thanks I totally forgot about this post which goes back to D6 if I remember rightly.
Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com |
You contribute quite alot prolaznik
Nice one and well done. Applied it to my D6 site. Just a few changes needed for D6. Easy enough. I had forgot about the auto-friend add upon joining myspace stylie. It is what made myspace famous (Tom!) and reminded people to use friends lists even if they were new to it. Back then it was necessary and I think it still has a place now. Should be helpful on my site.
Thanks
Paul
|
Thank you so much, this is a great mod and it works perfectly. I'm glad I kept reading because in join.php I didn't have any lines in the 200s but found out later that it was in the inc/classes where the file could be changed. Thanks a lot! The Earth is the LORD's and the fullness therof, the world and they that dwell therin... Psalm 24:1 |
WHOO HOO! Yay for NEWBS like me!
Can someone direct me to the file to edit? -> join.php
My signature can beat up your signature! |
WHOO HOO! Yay for NEWBS like me!
Can someone direct me to the file to edit? -> join.php
to have this mod working on d7.0.1-0.2 you need to edit this file
/inc/classes/BxDolJoinProcessor.php
around line 248 find
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
add this code after
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
|
Ok, CPanel for Dummies is needed here! lol
Im new to this and learning. Im in Cpanel and cant find that anywhere! Whatever I found only had 60 or so lines.
My signature can beat up your signature! |
Hi Snatfu!
The code is there in line 248
Search for this >> $aProfile1 = $this->oPF->
Than u will see the hole code and add at the botton the code >>
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
So the code will look like this >>>
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]);
list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
Good luck man
Post Reply - if you going to help - No for - bla bla bla bla |
I used both search feilds and entered $aProfile1 and found nothing.
When I searhced join.php, I got codes with about 60 lines.
I must be looking in the wrong place!
My signature can beat up your signature! |
I used both search feilds and entered $aProfile1 and found nothing.
When I searhced join.php, I got codes with about 60 lines.
I must be looking in the wrong place!
you're looking in the wrong place
in the folder /inc/classes/ finde this file BxDolJoinProcessor.php
|
I think I got it! So....
someone come join snatfu.com so we can see!
My signature can beat up your signature! |
Ok, here's what I got ...
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
I tested with a dummy account but didnt see any auto friends!
My signature can beat up your signature! |
around line 248 find
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
add this code after
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
So you should have:
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
Please note: There is only One line: $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1"); NOT 2.
Ok, here's what I got ...
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1"); $dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
I tested with a dummy account but didnt see any auto friends!
There are none so blind as those that will not see. |
My signature can beat up your signature! |
Also, you need to change this:
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
to this
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
The Profile = 1 indicates that all members would be the "Admin's" friend.. Im assuming is you...
Nothing to see here |
Thanks Zarcon, they are both set to 1. Im still working on it My signature can beat up your signature! |
Welp, no luck on it! Anyone want to take a peek and see why? My signature can beat up your signature! |
My signature can beat up your signature! |
with this mod, is there a simple way to add admin as friend to all existing members in 7.0.1, instead of just new joins?
thanks
i'm tired |
is it possible to get it to auto add two admins as our site has two owners so it would be cool to have them both added?
but great idea thanks
|
yes just ad the code again and change the id # |
it works like a dream, many thanks to all on this post especially Zarcon but like another post here is there a way to add admin as friend to all existing members in 7.0.2, instead of just new joins? |
|
There is an admin mod for this, I have it. Dolphinmods has it for 7.01. Not sure if it's been updated for 7.03 yet. http://towtalk.net ... Hosted by Zarconia.net! |
I am having a problem with this, I have it set on one of my sites, works great, have to members on auto friend. But when I try to add this to another site of mine, I go to edit the join.php page and I only have like 50 lines, thats it. It tells me to look for 268, but I dont have that many lines. I went back to the site that it is working, and the page is the same, only 50 or so lines.
I am lost, any Ideas?
|
I am having a problem with this, I have it set on one of my sites, works great, have to members on auto friend. But when I try to add this to another site of mine, I go to edit the join.php page and I only have like 50 lines, thats it. It tells me to look for 268, but I dont have that many lines. I went back to the site that it is working, and the page is the same, only 50 or so lines.
I am lost, any Ideas?
7.0.2.-7.0.3
folder /inc/classes/ its in this file BxDolJoinProcessor.php
|
Ok. This is a great start. Now if I can just convince someone to make it a little better.
I would like my members to be able to choose to auto-friend any new members that join. The new member would have the option to accept or deny the friend request.
SIMPLE~!
http://towtalk.net ... Hosted by Zarconia.net! |
Great , works in my website
Thanks Guys
|
Thank you. It works in Dolphin 7.0.6 Free the Dolphin... |
does this work on 7.8 version |
does this work on 7.8 version
Yes
Nothing to see here |
So where do we put this auto friend code at in the new dolphin 7.0.8
here is the join.php
<?php
/***************************************************************************
* Dolphin Smart Community Builder
* -------------------
* begin : Mon Mar 23 2006
* copyright : (C) 2007 BoonEx Group
* website : http://www.boonex.com
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the
* License, or any later version.
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with Dolphin,
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
define('BX_INDEX_PAGE', 1);
require_once( './inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
bx_import('BxTemplJoinPageView');
check_logged();
if (isLogged()) {
header ('Location:' . BX_DOL_URL_ROOT . 'member.php');
exit;
}
$_page['header'] = _t( '_JOIN_H' );
$_page['header_text'] = _t( '_JOIN_H' );
if(getParam('reg_by_inv_only') == 'on' && getID($_COOKIE['idFriend']) == 0){
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = MsgBox(_t('_registration by invitation only'));
PageCode();
exit;
}
$_page['name_index'] = 81;
$_ni = $_page['name_index'];
$oJoinView = new BxTemplJoinPageView();
$_page_cont[$_ni]['page_main_code'] = $oJoinView->getCode();
$GLOBALS['oSysTemplate']->addJsTranslation('_Errors in join form');
$GLOBALS['oSysTemplate']->addJs(array('join.js', 'jquery.form.js'));
$GLOBALS['oSysTemplate']->addCss(array('join.css'));
PageCode();
?>
|
in /inc/classes/BxDolJoinProcessor.php, follow the instructions below from Prolaznik
to have this mod working on d7.0.1 you need to edit this file
/inc/classes/BxDolJoinProcessor.php
around line 248 find
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
add this code after
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 2, `Check` = 1");
|
This is what I think everyone is looking for. i commissioned it a while back through anyakates.
http://www.boonex.com/m/All_are_Friends_on_Boonex_
I have not heard from (him/her, not sure) for a while and it might not be supported anymore but it's still in the Market. I have had zero problems with it so far. If you are serious about fixing the site killing friends system on Dolphin, this works best IMHO.
http://towtalk.net ... Hosted by Zarconia.net! |
dont work, it will leave the join page so no one can join? |
What do you mean? It works fine.... If you want to see it in action, join my site.
townation.com
http://towtalk.net ... Hosted by Zarconia.net! |
@skyforum, are you on 7.0.8? |
http://towtalk.net ... Hosted by Zarconia.net! |
So we cannot be sure it would work on 7.0.8. |
So we cannot be sure it would work on 7.0.8.
try and see :)
|
So we cannot be sure it would work on 7.0.8.
It's working! i know :)
download the the free mod read the instructions,
and make the changes and it will work.
Regards
TMV
|
I have 7.0.8 and works like a charm. Very nice indeed! THINK FOR YOUSELF! Its not illegal...YET ! www.NebLife.com |
Where do you download it for free? |
Where do you download it for free?
/inc/classes/BxDolJoinProcessor.php
around line 248 find
$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]); list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);
add this code after
$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");
1 is the id of your first registered member that would be your admin account
|
That one just makes the admin friends with everyone,. The one I am talking about gives everyone the choice to be friends with all new joining members automatically. http://towtalk.net ... Hosted by Zarconia.net! |
On Dolphin 7.0.8 this subject applies at line 249 to make the insert that is discussed here for auto friend. |
In 7.09 code was at line 495
and after I made modifications in header i see
Warning: Cannot modify header information - headers already sent by (output started at /home/soundco/public_html/inc/classes/BxDolJoinProcessor.php:653) in /home/soundco/public_html/inc/design.inc.php on line 133
(((((
|
This worked just fine for me using 7.0.9
Thanks!
|
Auto friends working fine for me |
Can this module automatically send a "welcome" message to the new user's Dolphin mail box? If not, is there one that can?
Thanks!
|
For 7.0.9 works fine.
Thank you verry much Prolaznik!
|
Can this module automatically send a "welcome" message to the new user's Dolphin mail box? If not, is there one that can?
Thanks!
Or leave a message in the PROFILE COMMENTS.
That would save me a lot of time.
|
The Auto Messaging mod does allow you to send welcome message. Admin can choose to have it delivered in mailbox or as Profile Comments (or both).
Can this module automatically send a "welcome" message to the new user's Dolphin mail box? If not, is there one that can?
Thanks!
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
In 7.09 code was at line 495
and after I made modifications in header i see
Warning: Cannot modify header information - headers already sent by (output started at /home/soundco/public_html/inc/classes/BxDolJoinProcessor.php:653) in /home/soundco/public_html/inc/design.inc.php on line 133
I am also getting that error and I installed the additional line of code on line 499 a line below the above code. Since my admin is user 8, I set ID to 8 and the other two numbers, profile and check to 8 .... did i do something wrong? Or did any one tell you how to fix yours?
(((((
|
|