View Full Version : vBFriends - View your social network and surf to others in vBulletin 3.5
Cloud-Warrior
11-23-2005, 10:00 PM
As with vBFOAF, I've just released this mod. (There are no modications needed really, so it's more of an add-on.)
Please note that your buddy list becomes public (to other registered users) with vBFriends, so you will have to notify people of the small change in policy.
Put the attached file in your vbulletin folder, and call with the u=1 parameter, e.g.
http://www.vbulletin.ie/forums/friends.php?u=1
You can surf your social network (similar to orkut), and view connections you have made to others and that others have made to you (similar to FOAF, or as illustrated with plink.org).
Screenshot attached.
The code contains some hardcoded HTML to avoid the use of templates (for now), but it uses standard vB3 CSS classes such as tcat, thead, smallfont, alt1 and alt2 - so should be fine with most styles.
Changelog:
// 0.1 - 2004-06-23 - First version
// 0.2 - 2004-06-24 - Added missing trailing slash
// 0.3 - 2004-06-28 - Added missing TABLE_PREFIX to tables
// 0.4 - 2004-07-01 - Added functionality for enemies
// 1.0 - 2004-07-21 - No comment
// 1.1 - 2004-09-09 - Added mutual percentage, in and out counts, link and unlink options for own account
// 1.2 - 2005-11-24 - Updated for the vB 3.5 series
I have edited my postbit/postbit_legacy template, and linked it from there, e.g. under the reputation part, add in something like:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
Vizionz
11-24-2005, 04:26 PM
this is a awesome hack would there be a easy way to throw this into a profile instead of standalone
Daniel
11-24-2005, 04:52 PM
Very interesting, will check it out.
/me clicks install
Snake
11-24-2005, 05:58 PM
Sounds good. Will check it out soon.
TundraSoul
11-24-2005, 06:07 PM
So much potential with this add-on. A good start.
trancetopia
11-24-2005, 09:48 PM
This is sweet and works great. Many thanks for sharing. Clicks install!!
The Chief
11-25-2005, 01:25 AM
Looking good, installed and works great so far ;)
trancetopia
11-25-2005, 03:02 PM
Found a problem. The main avatar of the person your looking at does not display if your avatars are stored in the filesystem.
Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.
I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add $FRIENDSFOES somewhere in your MEMBERINFO template, wherever you like to have it displayed.
I've also attached a screenshot how it would look like.
For the current XML file look post #85
Snake
11-25-2005, 05:09 PM
Nice hack! :)
Wordplay
11-25-2005, 05:40 PM
this is a nice hack... anyway to get a user wants to be on friendslist request going?
holy... damn j.jacobsen thank you so much for the extra plugin, but it doesnt show up.
Vizionz
11-25-2005, 05:44 PM
Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.
I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add $FRIENDFOES somewhere in your MEMBERINFO template, wherever you like to have it displayed.
I've also attached a screenshot how it would look like.
thanks for doing that up :)
Well actually I did a typo in my post. Please take care you use $FRIENDSFOES in your MEMBERINFO template not $FRIENDFOES. I've edited my post, too.
Wordplay
11-25-2005, 06:07 PM
a typo??? ouch... thank you though, and welcome to the site... that's a good way to get started.
jacobsen, is there a way i can get the list of "aus den buddylisten von" and "s buddylist" out of there and just display all the buddies in common? meaning the ones showed above with pix, and not the rest in the profile? uebrigends solltest du vielleicht ein ' einfuegen vor "s Freunde". damit da nicht steht jacobs freunde sondern jacob's freunde.
is there a way i can get the list of "aus den buddylisten von" and "s buddylist" out of there and just display all the buddies in common?
Yes, there is, you just have to remove the specific part of the code in the plugin, which would be
<tr>";
$FRIENDSFOES .= "<td class=\"thead\" width=\"50%\">$userinfo[username]s Buddyliste ($outcounter)</td>";
$FRIENDSFOES .= "<td class=\"thead\" width=\"50%\">$userinfo[username] ist auf den Buddylisten von ($incounter)<br>";
$FRIENDSFOES .= "</tr><tr>";
$FRIENDSFOES .= "<td class=\"alt2\" valign=\"top\"><div class=\"smallfont\">$outuserlist</div></td>";
$FRIENDSFOES .= "<td class=\"alt2\" valign=\"top\"><div class=\"smallfont\">$inuserlist</div></td>";
$FRIENDSFOES .= "</tr>
(At the end of the php code in the plugin)
OT:
uebrigends solltest du vielleicht ein ' einfuegen vor "s Freunde". damit da nicht steht jacobs freunde sondern jacob's freunde.
In Deutschland gibts das ' nicht, das ist eine amerikanisch/englische Sache. Manche Deutsche verwenden das unwissentlich ^^
Wordplay
11-25-2005, 06:26 PM
i own a german board too but my users still use the ' guess it's getting around these days... :D anyways, thanks alot i'd give you some rep but that isn't possible on this site, so i'll just say you're the man of the day.
Actually you should thank Cloud-Warrior, because its just his Coding re-packed into a plugin :)
Wordplay
11-25-2005, 06:34 PM
i already did that. by the way i linked to your plug in on some other thread, and a couple of people there already installed it and uploaded attachments or shared their links... so you can see how it looks on other sites.
previews:
https://vborg.vbsupport.ru/attachment.php?attachmentid=38266
https://vborg.vbsupport.ru/attachment.php?attachmentid=38265
where i posted the info:
https://vborg.vbsupport.ru/showpost.php?p=830531&postcount=173
LICryptkeeper
11-25-2005, 06:58 PM
Well actually I did a typo in my post. Please take care you use $FRIENDSFOES in your MEMBERINFO template not $FRIENDFOES. I've edited my post, too.
:p it took me almost 20 minutes to see that :( I havent slept in 2 days :ninja:
I was wondering why it wasnt showing up, there was no errors, nothing, I put in $friendfoes and nothing would shouw up,
its only when i didnt want to scroll down and find the text when i did ctrl+f and pasted the original source in there that I got confused when it said it couldent find it. then I almost slapped myself ;)
PennylessZ28
11-25-2005, 09:12 PM
Hey guys, could someone translate that into english? I got it sorta working, have some problems with getting the user avatar to show up.
Rukas
11-26-2005, 01:34 AM
Im at work so cant have a play with this until I get home, one question though, does this work with the in built buddies system or is it a seperate friends system?
The reason I ask is that I have vbJournals installed a lot of people are using private buddy only journals so I would like the friends shown in the profile to be those buddies.
Thanks.
Rukas
11-27-2005, 12:14 PM
^^ Bah I should have read the details closer before posting heheh sorry. Browsing at work is a covert opperation nowadays.
Anyway, http://www.streethop.com/forum/userRukas its done, and working well. Thanks.
ShawnV
11-27-2005, 05:26 PM
Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.
I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add $FRIENDSFOES somewhere in your MEMBERINFO template, wherever you like to have it displayed.
I've also attached a screenshot how it would look like.
An english Version would be nice if possible :)
ShawnV
11-27-2005, 07:56 PM
I went ahead and installed the German plug in and sorted out the text, I see the buddys lists fine but I am not getting any avatars to show up in the profile, any suggestions?
Also: I checked the avatar user picture storage type and I am using database rather then file.
Thanks in advance.
_V
You should remember, that the extension does not show the buddies with their avatars, but only the friends with their avatars. That means you have to be in the other ones buddy list, too that he is shown as a friend with his avatar.
ShawnV
11-27-2005, 08:28 PM
doh!
working now, thanks :)
Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.
I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add $FRIENDSFOES somewhere in your MEMBERINFO template, wherever you like to have it displayed.
I've also attached a screenshot how it would look like.
I've edited the xml file for those who just want the part where it shows the avatars and names without the list and the avatars fullsize. :D
wcbryant
11-27-2005, 11:36 PM
Is anyone running this successfully with php5?
I'm getting the following;
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 50
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 69
Kihon Kata
12-04-2005, 05:57 PM
this is a awesome hack would there be a easy way to throw this into a profile instead of standalone
Can you explain to me what this means:
Put the attached file in your vbulletin folder, and call with the u=1 parameter, e.g. http://www.vbulletin.ie/forums/friends.php?u=1
ricker
12-07-2005, 06:53 AM
I've edited the xml file for those who just want the part where it shows the avatars and names without the list and the avatars fullsize. :D
Hey this is perfect for what I need but I get "XML Error: syntax error at Line 1" ... anyone else get it working?
djsydeburnz
12-08-2005, 02:21 AM
i get these errors:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 50
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 69
monstergamer
12-08-2005, 07:16 PM
call me carzy but i cant get more then 4 buddies to show..
how can i get more to show?
Kihon Kata
12-08-2005, 07:18 PM
call me carzy but i cant get more then 4 buddies to show..
how can i get more to show?
ok, I will. Carzy! hehe
monstergamer
12-08-2005, 07:28 PM
ok, I will. Carzy! hehe
LOL i meant crazy...
but do you know how i can get more the 4 buddies to show up?
Kihon Kata
12-08-2005, 08:05 PM
LOL i meant crazy...
but do you know how i can get more the 4 buddies to show up?
Hehe, well...mine had more than 4 right away....I dunno...sorry.
But.....I wanted to take this time to show off our profiles(since you have to register):
Section 1 (http://www.makeuptalk.com/images/temp/Untitled-1.jpg)
Section 2 (http://www.makeuptalk.com/images/temp/Untitled-2.jpg)
Section 3 (http://www.makeuptalk.com/images/temp/Untitled-3.jpg)
We are also adding a comments section like MYSPACE to user's profiles soon.
Thanks for this hack! Although, we did some serious modifying to the original hack.
Hey this is perfect for what I need but I get "XML Error: syntax error at Line 1" ... anyone else get it working?
Hmmm, delete it and redownload it from my post (I reuploaded mine) and then try it again.
Ragnarok
12-09-2005, 12:51 AM
Thanks Cloud! Loved it since I first saw it, finally got a vB forum to use it for myself. :)
*clicks install*
EDIT: Apparently you have to be logged in to view or it gives a blank page. Also I can apparently add myself to my own buddy list (which is weird), but I already told you that. :p
nexus851
12-09-2005, 09:47 AM
It doesnt update when you "add" buddies to your list.... At least mine doesnt, does anyone else have the same problem??????
it deletes fine, but doesnt add...
nevermind i found out why.. you have to have them add you also (both ways) to have that person on your BL list.
In that case... CAN someone make a email notification to that person you are adding to let them know you added them and give them the heads up to add you too (if they want to).... at least they should know you added them...
P.S - Anyone know how i can set the AVATAR wrap to 5 avatars per row before it goes to the next row?????
Antivirus
12-09-2005, 11:05 PM
pretty cool- nice work Cloud and j.Jacobsen :)
ricker
12-10-2005, 01:25 AM
Hmmm, delete it and redownload it from my post (I reuploaded mine) and then try it again.
Negative, same error. :(
:Judge:
12-10-2005, 03:30 AM
Negative, same error. :(
I have the same problem
ricker
12-10-2005, 04:36 AM
I have the same problem
I ended up deleting a bunch of the code within the plugin to get it to do the same thing. It was a bit of trial and error, but it seems to be working allright.
:Judge:
12-10-2005, 04:50 AM
I ended up deleting a bunch of the code within the plugin to get it to do the same thing. It was a bit of trial and error, but it seems to be working allright.
Would you care to show any of that?
4number8
12-10-2005, 01:19 PM
I'm getting the same error, which part of the code did you delete?
ricker
12-10-2005, 03:48 PM
Would you care to show any of that?
You bet! Here is the last section of code I have for the plugin ... it looks like I commented out a couple of lines:
$FRIENDSFOES = "<table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\"
cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\">";
$FRIENDSFOES .= "<tr>";
if ($whichlist == "buddylist") { $FRIENDSFOES .= "<td class=\"tcat\" colspan=\"3\">$userinfo[username]s Friends ($inoutcounter) <!--... $mutual% Mutual--></td>"; }
// if ($whichlist == "ignorelist") { $FRIENDSFOES .= "<td class=\"tcat\" colspan=\"2\">$userinfo[username]s Foes ($inoutcounter) <!--... $mutual% Mutual--></td>"; }
$FRIENDSFOES .= "</tr><tr>";
$FRIENDSFOES .= "<td class=\"alt2\" colspan=\"2\">";
$FRIENDSFOES .= " <table>";
$FRIENDSFOES .= " <tr>";
$FRIENDSFOES .= $inoutuserlist;
$FRIENDSFOES .= " </tr>";
$FRIENDSFOES .= " </table>";
$FRIENDSFOES .= "</td>";
$FRIENDSFOES .= "</tr></table>";
and I actually set up a conditional so that each user can specify in their profile whether or not they want to have their friends shown ...
<if condition="$post[field24] == Yes">
$FRIENDSFOES
</if>
Example: here (http://www.myjeeprocks.com/forums/member.php?u=2). If you click on any of my "friends," odds are they haven't activated the profile field yet and their "friends" will be at the default of off.
C.Birch
12-11-2005, 11:22 AM
still get the xml error
Sparky_s
12-12-2005, 12:18 AM
works grand for me cloud ;)
vB 3.5.2 aswell.
nexus851
12-12-2005, 01:15 PM
can anyone make a script where when you add a buddy, it will notify that person thru PM that they added you and you have a choice to add them also...
silurius
12-12-2005, 05:22 PM
can anyone make a script where when you add a buddy, it will notify that person thru PM that they added you and you have a choice to add them also...
This is an excellent idea. Shall we start forming a request list just for the heck of it?
Ragnarok
12-13-2005, 03:58 PM
Can we have it made it a user selectable option rather than mandatory? :P
etaslim
12-21-2005, 03:04 AM
Is anyone running this successfully with php5?
I'm getting the following;
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 50
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /friends.php on line 69
I got the exactly the same problem. Any answer on this, pls? Thanks
ConKien
12-21-2005, 04:33 AM
If I want to add a link to the member profile so when a visitor clicks on a link it will shown this script instead of embeded into the profile page. I used this code
<a href="friends.php?u=$userinfo[userid]">$userinfo[musername]'s </a>
but it show a blank page when user even though the link turned to be http://mydomain.com/forum/friends.php?u=1 on the address bar.
Cloud-Warrior
12-21-2005, 08:20 AM
Does the user ID 1 exist? You need to be logged in as well to see the Friends page...
Cloud-Warrior
12-21-2005, 08:21 AM
I got the exactly the same problem. Any answer on this, pls? Thanks
I suspect this may be fixed if you replace any mysql_ bit's with $db-> - for example change mysql_fetch_array to $db->fetch_array.
EricaJoy
12-27-2005, 10:01 PM
Nice addon, but indeed, it would be perfect in the profile view, so I played around a bit ^^.
I've attached the plugin xml file. You need to edit the text in the php code, if you don't like german. Maybe this will get extended with phrases to a full product. You need to add $FRIENDSFOES somewhere in your MEMBERINFO template, wherever you like to have it displayed.
I've also attached a screenshot how it would look like.Color me slow but exactly where does this plugin go?
edit: nvm i've sorted it. very nice!
* EricaJoy clicks install
Blackhat
12-29-2005, 03:56 PM
*clicks install*
never mind :)
Antivirus
12-29-2005, 04:34 PM
Trying to modify the php code to do the following, but i am stumped...
if any member is on the user's $inoutlist then that member's username would no longer show on the user's $inlist or $outlist
Also, as others here have suggested, if someone who knows php well can check out the following thread by KirbyDE, the automatic sending of the PM could probably be implemented... https://vborg.vbsupport.ru/showthread.php?t=82786&highlight=pm
Hey this is perfect for what I need but I get "XML Error: syntax error at Line 1" ... anyone else get it working?
he left out some code at the top and bottom of the file. here i fixed it reupload this one
The Chief
01-04-2006, 04:45 AM
how do we make it so that we can fix the size of the list, like I cannot get it to match my width, it goes directly off the table...
does anybody know how to fix this?
nexus851
01-04-2006, 09:11 AM
This script mod is conflicting with my PHPAD Banner module.. it spits out an fatal error in my memberinfo template where the vbfriends are activated.
Anyone else have this problem and fixed it or a solution for it??
vwturbo
01-04-2006, 01:26 PM
Is it possible to display the profile pictures instead of the avatar's in the buddy list?
Antivirus
01-04-2006, 02:45 PM
yeah, you should be able to do it by replacing all instances of $userinfo[avatarurl] with $userinfo[profilepicurl] within the XML file.
iizeusii
01-05-2006, 10:16 AM
yeah, you should be able to do it by replacing all instances of $userinfo[avatarurl] with $userinfo[profilepicurl] within the XML file.
I need the opposite : /
How can I get the friends.php to show User Avatar instead of Profile Image?
(not buddies, but the User)
vwturbo
01-05-2006, 11:36 AM
I need the opposite : /
How can I get the friends.php to show User Avatar instead of Profile Image?
(not buddies, but the User)
My default install of vBFriends used the avatar.
vwturbo
01-05-2006, 01:29 PM
yeah, you should be able to do it by replacing all instances of $userinfo[avatarurl] with $userinfo[profilepicurl] within the XML file.
That doesn't work. All that does is replace the profile pic with the avatar pic.
Antivirus
01-05-2006, 01:36 PM
iizeusii,
i think it has to do with the following l conditional in the code:
if (empty($userinfo[profilepicdateline])) {
$HTML .= "<img width=\"64\" height=\"64\" src=\"$userinfo[avatarurl]\"><br>";
}
else {
$HTML .= "<img src=\"".$vbulletin->options['bburl']."/image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]\"><br>";
}
The code was written (quite brilliantly) to show the user's profile picture, UNLESS that user has none, then it will show the user's avatar. If you want it to always show the avatar, regardless of whether or not the user has a profile pic, then find the code above within friends.php and replace it with the following which is simply commenting out the conditional and leaving only what you want:
// if (empty($userinfo[profilepicdateline])) {
$HTML .= "<img width=\"64\" height=\"64\" src=\"$userinfo[avatarurl]\"><br>";
// }
// else {
// $HTML .= "<img src=\"".$vbulletin->options['bburl']."/image.php?u=$userinfo[userid]&type=profile&dateline=$userinfo[profilepicdateline]\"><br>";
// }
Antivirus
01-05-2006, 01:39 PM
wwturbo,
How can I get the friends.php to show User Avatar instead of Profile Image?
isn't that what you asked for?
vwturbo
01-05-2006, 02:04 PM
I asked for the buddy list to display the Profile picture. When I installed vbfriends by default it shows the avatar. I replaced avatarurl with profilepicurl and that didn't work at all.
docvader
01-05-2006, 04:08 PM
I'm getting this error, using the original friends.xml file
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /member.php(651) : eval()'d code on line 212
Otherwise, it's working. I think.
http://russbo.org/vb/member.php?u=1&styleid=41
Any ideas?
Thanks!
rich
Here we go with a little enhancement. I added a setup part into the code, so you don't need to search the text in the hard coded html. I also removed the foe part because I don't think someone wants to show these in his profile. You can choose if you want to use avatares or profilepics for the friends part (see attached images). The plugin still only shows friends. If you want to have the buddies only you have to edit it again to your needs.
Maybe I should start a new thread for this in the vB 3.5 plugin forum if I get permission from you, Cloud-Warrior, since it's basically your code a bit optimized :)
Heres the setup part of it
// Setup
///////////////////////////////////////////////////////////
$FFsetup = Array(
// these are the texts which are displayed
'friends' => "Freunde",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",
// set these to TRUE or FALSE
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present
'show_counts' => false,
'fetch_avatar' => true
);
// End of setup
///////////////////////////////////////////////////////////
You see i commented a bit.
I hope it works for you, as it works for me. I'm using 3.5.3
EDIT: For those who haven't used it before I need to mention it again: Place
$FRIENDSFOES in the MEMBERINFO template wherever you want to display this.
Current XML file -> post #85
cheers
Jens
vwturbo
01-05-2006, 06:39 PM
Works perfect! Thanks j.jacobsen!!!
Could someone explain the difference between the different sections though, such as Friends and Buddy list? Aren't they the same thing?
poprulz
01-05-2006, 08:32 PM
Yea...works perfect...thanx for this hack.
Did anyone worked on Whos Online so that the unknown location is replaced with something like "Friends page" or something that is sensible?
i guess that can be done as plugin...
The Chief
01-06-2006, 04:47 PM
Here we go with a little enhancement. I added a setup part into the code, so you don't need to search the text in the hard coded html. I also removed the foe part because I don't think someone wants to show these in his profile. You can choose if you want to use avatares or profilepics for the friends part (see attached images). The plugin still only shows friends. If you want to have the buddies only you have to edit it again to your needs.
Maybe I should start a new thread for this in the vB 3.5 plugin forum if I get permission from you, Cloud-Warrior, since it's basically your code a bit optimized :)
Heres the setup part of it
// Setup
///////////////////////////////////////////////////////////
$FFsetup = Array(
// these are the texts which are displayed
'friends' => "Freunde",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",
// set these to TRUE or FALSE
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present
'show_counts' => false,
'fetch_avatar' => true
);
// End of setup
///////////////////////////////////////////////////////////
You see i commented a bit.
I hope it works for you, as it works for me. I'm using 3.5.3
EDIT: For those who haven't used it before I need to mention it again: Place
$FRIENDSFOES in the MEMBERINFO template wherever you want to display this.
cheers
Jens
nice addition mister ;)
Now I only need something that will notify by PM when somebody requests to be a buddy...
Then I'm set :)
vwturbo
01-09-2006, 12:14 PM
nice addition mister ;)
Now I only need something that will notify by PM when somebody requests to be a buddy...
Then I'm set :)
Yeah that would be really nice to have as it's confusing for users the way it currently works.
The Chief
01-09-2006, 02:54 PM
Yeah that would be really nice to have as it's confusing for users the way it currently works.
I wonder if somebody is still working on this at the moment though...
The Chief
01-09-2006, 04:47 PM
Hey all, there is a new function to send an automatic PM when a user adds you to his buddy list.
Check this out, and maybe you can help us figure out something...
https://vborg.vbsupport.ru/showthread.php?p=869010
The Chief
01-09-2006, 06:49 PM
ty for the info
no probs, my pleasure :)
sidekick
01-09-2006, 10:19 PM
/me installs
yayvb
01-10-2006, 06:59 PM
Works good EXCEPT all text is in white, so since the background where the avatar thumbnails show is also white, you can't see any text??
I tried changing the .php file but no luck. I also tried changing the .xml and replugging after I Deleted the old plugin, but no luck.
Can someone just tell me how to make the text black?
*EDIT*
I tried adding font tags to both the xml file and re-plugging and also the php file, etc. I probably tried more but this is the 4th hack that I'm installing today so I'm getting confused now lol... Just if someone knows what I am talking about here, I'm sure I'm not the only person with white background fields. (please see http://www.420boards.com/member.php?u=1 for an example, u don't have to register/login.)
The Chief
01-10-2006, 09:00 PM
Is somebody still working on improving this??
If so, will it be possible to only display a maximum of friends, and then the rest they click on Show All Friends or something??
can this be done?
silurius
01-10-2006, 09:21 PM
I think we're still waiting for someone to pick this one up again.
D|ver
01-10-2006, 09:52 PM
Here we go with a little enhancement. I added a setup part into the code, so you don't need to search the text in the hard coded html. I also removed the foe part because I don't think someone wants to show these in his profile. You can choose if you want to use avatares or profilepics for the friends part (see attached images). The plugin still only shows friends. If you want to have the buddies only you have to edit it again to your needs.
Maybe I should start a new thread for this in the vB 3.5 plugin forum if I get permission from you, Cloud-Warrior, since it's basically your code a bit optimized :)
Heres the setup part of it
// Setup
///////////////////////////////////////////////////////////
$FFsetup = Array(
// these are the texts which are displayed
'friends' => "Freunde",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",
// set these to TRUE or FALSE
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present
'show_counts' => false,
'fetch_avatar' => true
);
// End of setup
///////////////////////////////////////////////////////////
You see i commented a bit.
I hope it works for you, as it works for me. I'm using 3.5.3
EDIT: For those who haven't used it before I need to mention it again: Place
$FRIENDSFOES in the MEMBERINFO template wherever you want to display this.
cheers
Jens
great addon :)
i will use this :D
but is it possible to hide those information who you got in your buddy list and whohas added you to his buddy list?
so only the friends are shown?
that would be great :)
The Chief
01-11-2006, 02:57 AM
I think we're still waiting for someone to pick this one up again.
I can't wait, as my members are really starting to like it and I would hate it that this is not updated anymore...
but is it possible to hide those information who you got in your buddy list and whohas added you to his buddy list?
so only the friends are shown?
that would be great :)
Here we go :) This is a complete rewrite of the plugin. Please remove the old one before installing the new one. Replace $FRIENDSFOES in your MEMBERINFO template with $FNB_HTML
Also take a look at the extended setup part of the plugin code.
// Setup
/////////////////////////////
$FNB_setup = array(
'friends' => "Freunde",
'buddies' => "Buddies",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",
'columns_to_show' => 5,
// set these to TRUE or FALSE
// if you set show_friends to false you will get buddies shown up instead of friends and extended info is removed even
// you set show_ext_info to true
// if you set show_ext_info to false the additional buddy-list and where the user is buddy on others lists gets hidden
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present
'show_friends' => true,
'show_ext_info' => true,
'show_counts' => true,
'fetch_avatar' => true
);
You can now additionally choose which list is shown, i.e. the friendslist or the buddylist with avatars or profilepics - as you like. If you choose the buddylist to be shown the extra information on who's on your buddylist and on whom's you are will be hidden. Even if show_ext_info is set true.
If you use file-based storage of profile pics, the profile-pics will NOT show up.
If you choose the friendslist to be shown, you can decide if you want to show the extra buddy info to be hidden or not with the show_ext_info array key.
Current xml: #102 (https://vborg.vbsupport.ru/showpost.php?p=871020&postcount=102)
docvader
01-11-2006, 12:45 PM
J, I'm completely baffled.
Installed this hack without problems, using the original friends.xml plugins. All works well, except I get this errorWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /member.php(651) : eval()'d code on line 359
You can see it here: http://russbo.org/vb/member.php?u=1&styleid=41
Now, if I disable or delete the plug in, my member profile page gets destroyed (even if I remove $FRIENDSFOES from the memberinfo template).
The new xml file, above, results in the same destroyed member profile; basically, I lose everything below the avatar and user name.
I'd like to get this to work, but, I don't understand why this error is coming up.
Any ideas???
Thanks!
rich
Please re-download the xml file and overwrite the installed plugin with it. The sql error should be gone then.
If I remove the input-variable from the MEMBERINFO template everything is fine, the profile page is working and the friends or buddie field doesn't show up.
docvader
01-11-2006, 01:09 PM
which xml? From post 85? Will that overwrite the previous plug ins?
Thanks!
which xml? From post 85? Will that overwrite the previous plug ins?
Thanks!
Yes, the xml from #85, and it should overwrite the previous one, as it's the same name. Hope you have removed the first one I did. Had another name, so there should be only "Friends and/or Buddylist on Profile" under (Hook) : member_complete in plugins.
The Chief
01-11-2006, 02:13 PM
Here we go :) This is a complete rewrite of the plugin. Please remove the old one before installing the new one. Replace $FRIENDSFOES in your MEMBERINFO template with $FNB_HTML
Also take a look at the extended setup part of the plugin code.
// Setup
/////////////////////////////
$FNB_setup = array(
'friends' => "Freunde",
'buddies' => "Buddies",
'has_these_users_on_his_list' => "Buddy-Liste",
'is_on_these_buddy_lists' => $userinfo['username']." ist auf den Buddy-Listen von",
'columns_to_show' => 5,
// set these to TRUE or FALSE
// if you set show_friends to false you will get buddies shown up instead of friends and extended info is removed even
// you set show_ext_info to true
// if you set show_ext_info to false the additional buddy-list and where the user is buddy on others lists gets hidden
// if you set fetch_avatar true you will get avatar picture, else you get profile picture if present
'show_friends' => true,
'show_ext_info' => true,
'show_counts' => true,
'fetch_avatar' => true
);
You can now additionally choose which list is shown, i.e. the friendslist or the buddylist with avatars or profilepics - as you like. If you choose the buddylist to be shown the extra information on who's on your buddylist and on whom's you are will be hidden. Even if show_ext_info is set true.
If you use file-based storage of profile pics, the profile-pics will NOT show up.
If you choose the friendslist to be shown, you can decide if you want to show the extra buddy info to be hidden or not with the show_ext_info array key.
will there be a way that you will only be able to show like 8 friends in the profile, and then the rest brings you to the friends page or something, can this be done?
what would be even better is that we can choose our top 8 but I know that that would be something hard to do...
will there be a way that you will only be able to show like 8 friends in the profile, and then the rest brings you to the friends page or something, can this be done?
See attachment, set max_show to 8 in the setup part. If you want to show a link to the friends page edit the line which shows
if ($choicecounter >= $FNB_setup['max_show'] && $FNB_setup['max_show'] > 0) $FNB_HTML .= "<a class=\"smallfont\" href=\"".$vbulletin->options['bburl']."/member.php?u=".$userinfo['userid']."&showall=1\">".$FNB_setup['show_all']."</a>";
currently it just hides all friends/buddies more than max_show and shows them on click and reload of profile page with &showall=1
what would be even better is that we can choose our top 8 but I know that that would be something hard to do...
That would need some sort of saving the preference in a database field. Maybe somewhen later.
Current xml: #102 (https://vborg.vbsupport.ru/showpost.php?p=871020&postcount=102)
docvader
01-11-2006, 03:07 PM
Yes, the xml from #85, and it should overwrite the previous one, as it's the same name. Hope you have removed the first one I did. Had another name, so there should be only "Friends and/or Buddylist on Profile" under (Hook) : member_complete in plugins.
Well, with the superb and comprehensive help from our hack author here, my issue has been resolved. And it had NOTHING to do with this hack.
I overlooked a simple html tag in my memberinfo template. I am such a moron.
Quite interestingly though, for some reason, this hack's plug in helped keep my memberinfo template "alive"; without it, the whole page really kind of failed, which mistakenly made me think it was this plug in which had caused the problem.
Thanks J! You're an awesome guy.
rich
vwturbo
01-11-2006, 04:10 PM
Well, with the superb and comprehensive help from our hack author here, my issue has been resolved. And it had NOTHING to do with this hack.
I overlooked a simple html tag in my memberinfo template. I am such a moron.
Quite interestingly though, for some reason, this hack's plug in helped keep my memberinfo template "alive"; without it, the whole page really kind of failed, which mistakenly made me think it was this plug in which had caused the problem.
Thanks J! You're an awesome guy.
rich
j.jacobsen I uploaded your newest xml file and now my friends thing doesn't show up at all. Any idea's? Nothing else has changed.
j.jacobsen I uploaded your newest xml file and now my friends thing doesn't show up at all. Any idea's? Nothing else has changed.
re-read post #85 (https://vborg.vbsupport.ru/showpost.php?p=870658&postcount=85)carefully, especially the part about the MEMBERINFO template ^^
vwturbo
01-11-2006, 04:16 PM
re-read post #85 carefully, especially the part about the MEMBERINFO template ^^
Thanks for the quick reply. Thanks for all the help and coding that you've provided in numerous spots on this board. It's greatly appreciated.
yayvb
01-11-2006, 05:57 PM
*BUMP* posted this a day or two ago but still the same problem and no fix. I also just removed old plugin and put new one from post 85.
The usernames are white so they appear invisible, I've tried manually changing the .xml file, the .php file, and my css settings. Anyone have this problem or know what I'm supposed to do? :(
Also if a user has no avatar I would like a 'no avatar' image, where would I stick that line of code in where?
Thanks in advance!!
Here's what I have so far: www.420boards.com/420kid
The usernames are white so they appear invisible, I've tried manually changing the .xml file, the .php file, and my css settings. Anyone have this problem or know what I'm supposed to do? :(
If the usernames are white, you have to change you css setting for the hyperlinks in your style ;) The usernames got the right color on several styles on our board.
Also if a user has no avatar I would like a 'no avatar' image, where would I stick that line of code in where?
Find clear.gif and replace with your noavatar image. If it is placed for example in your images dir replace by images/noavatar.gif
yayvb
01-11-2006, 06:31 PM
Thanks that helped.... I'll try to do this again but the thing is you can see that all the other text on the page, links and all, work just fine. For some reason this text shows white and it seems like no matter what I do it continues to remain white. :(
see www.420boards.com/420kid
Thanks for the noavatar image answer too, that helps!!
Grrr, I can't seem to figure out what the problem is.. :( Do you happen to know EXACTLY which css style? What I mean is if I go to my style options and see all the CSS options, etc. I can choose background color, font color, link color, visited link color, hover link color, etc. There are a lot of these that I can modify and all of them seem fine. I change ones that are transparent to green and nothing so I change back.
I think I'm going crazy. :) If you can't help further atleast thanks for your help to this point, this hack works great other than this.
Thanks that helped.... I'll try to do this again but the thing is you can see that all the other text on the page, links and all, work just fine. For some reason this text shows white and it seems like no matter what I do it continues to remain white. :(
Try replacing all 4 occurances of alt1 in the code with panelsurround.
yayvb
01-11-2006, 06:52 PM
Thanks... There were only 3 occurrences, and I switched them all to panelsurround but everything's still white or blank..... :( Do you think it's because I have a bad file or something? hehe let me try redownloading since you said 4 occurrences and there were only 3. I use textpad so I didn't just overlook it. :)
yayvb
01-11-2006, 07:02 PM
Crap I saw a lot of differences in the .xml file that you uploaded today, but even after uninstalling the old plugin and replugging this new one the text is still messed up. This is weird because usually I'm not the one having problems. :) Did you want to look at my html output perhaps? ;) www.420boards.com/420kid
Crap, even just tried again to change the 4 alt1's to panelsurround but once again no help. Does this even make any sense? I guess it does since most of the time things can eventually be explained. Well if anyone comes up with anything please help.
It's really weird, I don't find any reason why the links get white instead of that darkgreen on the contact info field. Would you mind downloading the plugin again ^^ I found an error with the html in there which I haven't seen since I posted the first version. The error is in Cloud-Warriors friends.php, too ^^
You can setup your noavatar picture url in the setup part now ;)
The plugin has it's own thread now: https://vborg.vbsupport.ru/showthread.php?p=873179
yayvb
01-11-2006, 07:33 PM
Thanks for trying. :) I tried this new one too and it still shows the white links text or whatever. :( I have no idea whatsoever. The html output should be able to easily tell me what's wrong but I can't see anything wrong.
Thanks for trying. :) I tried this new one too and it still shows the white links text or whatever. :( I have no idea whatsoever. The html output should be able to easily tell me what's wrong but I can't see anything wrong.
Maybe a last try, if you don't mind to test it. Here's a special xml for you, I added one of your css classes to the html anchor tags, i.e.
<a class=\"page\"...
yayvb
01-11-2006, 07:47 PM
Wow you're awesome... :)
I just tried changing my CSS settings for ALT1 again and it worked. In my settings it used to show transparent, so I changed them to another color and then it of course changed the colors of the forumhome links on front :(
I shoulda just waited for yours hehe.. Maybe I should still try it. hmmm, if it's no longer broken don't fix it..... hmmmm
Thanks so much!!! :)
D|ver
01-11-2006, 07:50 PM
It's really weird, I don't find any reason why the links get white instead of that darkgreen on the contact info field. Would you mind downloading the plugin again ^^ I found an error with the html in there which I haven't seen since I posted the first version. The error is in Cloud-Warriors friends.php, too ^^
You can setup your noavatar picture url in the setup part now ;)
its working great :D :D
thank you so so much :) :)
This may have been asked before, but Ive searched and searched and I haven't seen it. Is there anyway to get the users profile pics to display on the friends.php page instead of the the user avatars?
Much thanks!
vwturbo
01-13-2006, 11:51 AM
This may have been asked before, but Ive searched and searched and I haven't seen it. Is there anyway to get the users profile pics to display on the friends.php page instead of the the user avatars?
Much thanks!
Download the xml file from j.jacobsen's post and it will give you that option to choose either or.
Download the xml file from j.jacobsen's post and it will give you that option to choose either or.
Emma asked for that option in the friends.php, so it will not work
agiacosa
01-13-2006, 06:03 PM
I'm sorry. I'm a little slow today.
How is one added to the friends list?
Fallback
01-14-2006, 11:17 AM
Has this been optimised? Does this still add one query for each friend on each page load?
Has this been optimised? Does this still add one query for each friend on each page load?
The plugin has been optimized, and has it's own thread now. https://vborg.vbsupport.ru/showthread.php?p=873179
I'm sorry. I'm a little slow today.
How is one added to the friends list?
A adds B to his buddy list, and B adds A also to his buddy list. Done.
bogene2020
01-17-2006, 10:55 PM
If I put in ....friends.php?u=1 or u=2 it works but what should I use as the link so that it pulls the members ID automatically when they are logged on . I am using one of those nav bar hacks that adds a 2nd nav bar and so I want to put the link on the navbar . I have to put www.domain.com/forum/friends.php/?u (http://www.domain.com/forum/friends.php/?u)......
Thanks
yayvb
01-18-2006, 08:34 PM
Please see a user of my website's profile. The friends names are too long so it is breaking my skin. www.420boards.com/scottso
Can someone please tell me how I can make either only 4 allowed per row or even better yet how to not have this skin break by somehow limiting the names in the vbfriends thing.
davidw
01-18-2006, 09:43 PM
<font color="SeaGreen">* christianb subscribes to this thread</font>
Please see a user of my website's profile. The friends names are too long so it is breaking my skin. www.420boards.com/scottso
Can someone please tell me how I can make either only 4 allowed per row or even better yet how to not have this skin break by somehow limiting the names in the vbfriends thing.
Well first, I look at your profile and didn't see anything wrong with it but to change the per row option.....
Change this:
(($inoutcounter % 5
to
(($inoutcounter % 4
or whatever amount you want to show.
shadowdancer36
01-19-2006, 08:37 AM
I can't get it to show up under my profile. I put the friendfoe variable there but its not showing up. I can bring it up in the browser no problem, but withing my profile, no. Any ideas to why?
Here is what I have in my memberinfo template
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
<style type="text/css">
$post[field24]
</style>
</head>
<body>
$header
$navbar
<table width="90%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
<tr>
<td colspan="2"><div align="center" class="bigusername">$userinfo[musername]</div><if condition="$userinfo['usertitle']">
<div class="smallfont" align="center">$userinfo[usertitle]</div>
</if>
<div align="center">$post[reputationdisplay]</div></td>
</tr>
<tr>
<td valign="top" width="40%"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr class="tcat">
<td class="text" colspan="2" style="" align="left" valign="bottom"></td>
</tr>
<tr class="alt2">
<td> <div align="right"><if condition="$show['profilepic']"> <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_picture]</phrase>"
border="0" style="border:1px solid $stylevar[tborder_bgcolor];
border-top:none" />
<else />
<img src="$stylevar[imgdir_misc]/no_pic.jpg" alt="$userinfo[username]" border="0" style="border:1px solid $stylevar[tborder_bgcolor];" />
</if>
</div></td>
<td align="left" valign="top" class="text">
<strong>Sex:</strong> $userinfo[field8] <br /> <if condition="$show['age']"><strong>$vbphrase[age]:</strong>
$userinfo[age]</if> <br /> <strong>Location:</strong> $userinfo[field2]<br />
<div>$userinfo[onlinestatus]</div>
<br />
<div><strong>Last Online:</strong> $userinfo[lastactivitydate] at $userinfo[lastactivitytime]</div><!-- DONATIONS -->
<if condition="$userinfo['donor'] AND $userinfo['showdonor'] == '1'"><br /><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0" alt="Donor" /></a></if>
<!-- END DONATIONS -->
</td>
</tr>
</tbody>
</table>
<p>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td colspan="2">Contacting $userinfo[musername]</td>
</tr>
<if condition="$show[registerbutton]">
<if condition="$userinfo[field26]=No">
<tr class="alt2">
<td>
$vbphrase[contact_is_private]
</td>
</tr>
</if>
<else />
<tr class="alt2">
<td align="center" height="5" nowrap="nowrap" width="50%"> <div align="left">
<img src="$stylevar[imgdir_button]/note_go.png" alt="$vbphrase[profile_pm]" border="0" />
<a href="private.php?$session[sessionurl]do=newpm&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[profile_pm]</phrase></a>
</div></td>
<td align="center" height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><if condition="$userinfo['showicq']"> $userinfo[icqicon]
<a href="#" dir="ltr" onclick="imwindow('icq', '$userinfo[userid]', 500, 450); return false;">$userinfo[icq]</a>
</if> </div></td>
</tr>
<tr class="alt2">
<td align="center" height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><img src="$stylevar[imgdir_button]/email_go.png" alt="$vbphrase[profile_email]" border="0" />
<a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[profile_email]</phrase></a>
</div></td>
<td align="center" height="2" nowrap="nowrap" valign="middle" width="50%">
<div align="left"><if condition="$userinfo['showaim']"> $userinfo[aimicon]
<a href="#" dir="ltr" onclick="imwindow('aim', '$userinfo[userid]', 400, 200); return false;">$userinfo[aim]</a>
</if></div></td>
</tr>
<tr class="alt2">
<td align="center" height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><if condition="$show['addbuddylist']"> <img src="$stylevar[imgdir_button]/group_add.png" alt="$vbphrase[profile_addbuddy]" border="0" />
<a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_addbuddy]</phrase></a>
<else /><img src="$stylevar[imgdir_button]/group_delete.png" alt="$vbphrase[profile_deletebuddy]" border="0" />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=buddy&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_deletebuddy]</phrase></a>
</if> </div></td>
<td align="center" height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><if condition="$userinfo['showmsn']"> $userinfo[msnicon]
<a href="#" dir="ltr" onclick="imwindow('msn', '$userinfo[userid]', 400, 200); return false;">$userinfo[msn]</a>
</if></div></td>
</tr>
<tr class="alt2">
<td align="center" height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><if condition="$show['addignorelist']"> <img src="$stylevar[imgdir_button]/user_delete.png" alt="$vbphrase[profile_blockuser]" border="0" />
<a href="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_blockuser]</phrase></a>
<else /><img src="$stylevar[imgdir_button]/user_add.png" alt="$vbphrase[profile_unblockuser]" border="0" />
<a href="profile.php?$session[sessionurl]do=removelist&userlist=ignore&u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[profile_unblockuser]</phrase></a>
</if> </div></td>
<td align="center" height="2" nowrap="nowrap" valign="middle" width="50%">
<div align="left"><if condition="$userinfo['showyahoo']"> $userinfo[yahooicon]
<a href="#" dir="ltr" onclick="imwindow('yahoo', '$userinfo[userid]', 400, 200); return false;">$userinfo[yahoo]</a>
</if></div></td>
</tr>
</if>
</table>
<p>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td colspan="3" valign="middle">$userinfo[musername]'s Interests</td>
</tr>
<tr valign="top" class="alt2">
<td align="left" valign="top"><span class="">General:</span></td>
<td align="left" valign="top">$userinfo[field19]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"><span class="">Music:</span></td>
<td align="left" valign="top">$userinfo[field20]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"><span class="">Movies:</span></td>
<td align="left" valign="top">$userinfo[field21]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"><span class="">Television:</span></td>
<td align="left" valign="top">$userinfo[field22]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"><span class="">Heroes:</span></td>
<td align="left" valign="top">$userinfo[field23]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"><span class="">Groups:</span></td>
<if condition="$show['membergroups']">
<td></td>
<else />
<td><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></td>
</if>
</table>
<p>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td class="text" align="left" height="10" valign="center" colspan="2">
$userinfo[musername]'s Details</td>
</tr>
<tr valign="top" class="alt2">
<td align="left" valign="top"> <div align="left">Status:</div></td>
<td style="">$userinfo[field11]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Orientation:</div></td>
<td style="">$userinfo[field12]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Hometown:</div></td>
<td style="">$userinfo[field13]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Religion:</div></td>
<td id="ProfileReligion:" style="">$userinfo[field14]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Zodiac
Sign:</div></td>
<td style=""><if condition="$show['zodiacsign']">
<div>$zodiacsign</div>
</if></td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Smoke
/ Drink:</div></td>
<td style="">$userinfo[field15] / $userinfo[field16]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Children:</div></td>
<td style="">$userinfo[field17]</td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="left">Education:</div></td>
<td style="">$userinfo[field18]</td>
</tr>
</table></td>
<td valign="top" width="60%"> <if condition="$show[journalinfo]"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td>$userinfo[musername]'s Latest Blog Entry</td>
</tr>
<tr class="alt2">
<td><if condition="$show[journalinfo]"> <if condition="$show[journal_lastentry]"><a href="journal.php?$session[sessionurl]do=showentry&e=$journal[lastentry_id]">$journal[lastentry]</a>
($journal[lastentry_date])<br />
<else />$vbphrase[private]</if> </if></td>
</tr>
<tr class="alt2">
<td><if condition="$show[journalinfo]"> [<a href="journal.php?$session[sessionurl]do=showjournal&j=$journal[journal_id]"><phrase 1="$userinfo[username]">$vbphrase[visit_xs_journal]</phrase></a>]
</if></td>
</tr>
</table>
<p></if>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td>$userinfo[musername]'s Blurbs</td>
</tr>
<tr class="alt2">
<td valign="top"><strong>About Me:</strong><br />$userinfo[field9]</td>
</tr>
<tr>
<td class="alt2"><strong>Who I'd Like to Meet:</strong><br />
$userinfo[field10]</td>
</tr>
</table>
<if condition="$userinfo[field25]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td class="text" wrap="" style="" align="left" height="10" valign="center" colspan="2">
<span class="">$userinfo[musername]'s Shared Media </span> </td>
</tr>
<tr class="alt2">
<td align="left" valign="top"> <div align="center"><EMBED SRC="$userinfo[field25]"></div></td>>
</tr>
</table>
</if>
<p>$FRIENDSFOES</p>
<p>$comment_panel</p></td>
</tr></table></td>
<tr>
<td colspan="8" align="right" valign="bottom"> <if condition="$show['profileviews']">
<if condition="$show['profileviewsother']"><a href="#" onClick="openWindow('misc.php?$session[sessionurl]do=profileviews&u=$userinfo[userid]', 300, 400); return false;">$vbphrase[profile_views]</a><else />$vbphrase[profile_views]</if>: $userinfo[profileviews]
</if></td>
</tr>
</table>
$footer
</body>
</html>
I can't get it to show up under my profile. I put the friendfoe variable there but its not showing up. I can bring it up in the browser no problem, but withing my profile, no. Any ideas to why?
https://vborg.vbsupport.ru/showpost.php?p=873185&postcount=112
bogene2020
01-19-2006, 01:05 PM
Is it possible to link to friends.php. I have it installed but how can I make it possible for a member to link to such that they can see there friends . I want to but it in my Navbar . Thanks
You could extract that info out of Cloud-Warrior's initial post.
I have edited my postbit/postbit_legacy template, and linked it from there, e.g. under the reputation part, add in something like:
<a class="smallfont" href="friends.php?$session[sessionurl]u=$post[userid]">Friends</a>
If you want to set a link to each one's own friends.php something like $userinfo[userid] would be the right var to get the userid, but I'm not sure about that.
bogene2020
01-19-2006, 03:03 PM
I still am not able to figure out how to link to friends.php
I looked at member.php
'member.php?' . $vbulletin->session->vars['sessionurl'] . "u=$userinfo[userid]" => $vbphrase['view_profile'],
'' => $userinfo['username']
Well how is everybody using this script .
yayvb
01-19-2006, 06:38 PM
I changed the columns to 4 isntead of 5 so now some peoples profiles look less awful when broken, but it still will break sometimes up to 15 pixels or so off. Is there any way to limit the username length on the friends thing that i have in memberinfo?
I still am not able to figure out how to link to friends.php
I looked at member.php
'member.php?' . $vbulletin->session->vars['sessionurl'] . "u=$userinfo[userid]" => $vbphrase['view_profile'],
'' => $userinfo['username']
Well how is everybody using this script .
Ok, a little more for you: If you want a link to your friends.php page in the useful links section in the navbar, go to the navbar template, find
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
below add
<tr><td class="vbmenu_option"><a class="smallfont" href="friends.php?$session[sessionurl]u=$bbuserinfo[userid]">Friends</a></td></tr>
hope this finally helps you
I changed the columns to 4 isntead of 5 so now some peoples profiles look less awful when broken, but it still will break sometimes up to 15 pixels or so off. Is there any way to limit the username length on the friends thing that i have in memberinfo?
Head over to the plugin thread and post your request there ^^
Is there a way to make the admin of the forum automatically the friend of everyone who signs up on the forum? Kind of like Tom on Myspace. You sign up and he's automatically your friend.
Rukas
01-22-2006, 06:39 AM
I installed the phpAdsNew Integration (https://vborg.vbsupport.ru/showthread.php?t=100229&highlight=vbfriends) and now I get the following error.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /member.php(654) : eval()'d code on line 197
http://www.streethop.com/forum/member.php?u=3
Anyone got any idea how to fix?
I installed the phpAdsNew Integration (https://vborg.vbsupport.ru/showthread.php?t=100229&highlight=vbfriends) and now I get the following error.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /member.php(654) : eval()'d code on line 197
http://www.streethop.com/forum/member.php?u=3
Anyone got any idea how to fix?
Update your plugin. See #102 for new location.
Rukas
01-23-2006, 09:54 AM
Update your plugin. See #102 for new location.
I tried this, no luck. Any other ideas?
Cloud-Warrior
02-01-2006, 05:02 PM
I've updated the main post with j.jacobsen's new version - thanks Jens!
TunerNetwork
02-28-2006, 03:22 AM
Installed this, was working perfect for bout 2 weeks, now getting the following error:
Database error in vBulletin 3.5.3:
Invalid SQL:
SELECT user.username,user.userid,usertextfield.buddylist FROM
user,usertextfield WHERE
user.userid = usertextfield.userid AND
FIND_IN_SET('881', REPLACE(usertextfield.buddylist, ' ', ',')) > 0
ORDER BY user.username;
MySQL Error : Got error 28 from table handler
Error Number : 1030
Date : Monday, February 27th 2006 @ 09:19:14 PM
Script : http://www.tunernetwork.com/forum/member.php?u=881
Referrer : http://www.tunernetwork.com/forum/
IP Address :
Username :
Classname :
anyone get this?
Exitilus
03-07-2006, 05:07 AM
I'm not sure if other people have the same thing happen. But it seems that users that are not logged in (or guests) can't view this page? ... Comes up completely blank.
Blackhat
03-12-2006, 11:41 AM
how do you make this wrap ? One of my members got 7 members on the line and that makes the page wider than allowed
thumbsucker
03-31-2006, 09:49 AM
BUG: Get a blank page when trying to view a user's Friend's page as a GUEST user.
I get a broken link box if the user does not have a profile pic.
Any way to get a small gif that says "No profile picture" to display instead?
Serial Killer
04-11-2006, 09:27 PM
I don't want to call it vBfriends. How do I change the name to something else?
criscokid
04-15-2006, 05:03 PM
I get a broken link box if the user does not have a profile pic.
I also get the 'broken link' box showing.
Cloud-Warrior
05-02-2006, 01:35 PM
Yes the page is blank if you are not logged in.
To change the name from vBFriends, just edit any reference to it in the file.
In related news, I've posted on my wiki some information on how to view these buddylists or social networks graphically. It's not for the newbie, but people familiar with PHP and MySQL should find it easy enough to follow.
http://www.johnbreslin.com/wiki/index.php/VBulletin_Social_Network_Visualisation
noonespecial
05-20-2006, 04:20 AM
Is there anyway to add pagination for this? That'd be a big help for those with a lot of friends ... and would probably cut down on server load too.
silkie
05-21-2006, 04:11 AM
is there a stable release of this hack for vb3.5.4? anyone have this working on their 3.5.4 board?
JazzleBug
06-05-2006, 04:23 AM
This is so cool - my members are going to love this. Thank you! :)
how would this hack work in a huge forum??? more than 10,000 users??
jeffj
06-22-2006, 06:58 PM
how would this hack work in a huge forum??? more than 10,000 users??
HUGE?
I have 123,000 members and it works fine on my forum.
Anarchy
06-22-2006, 10:42 PM
Users who are not logged in and go to the page get a blank page, can we get it so it says they are not allowed here and to login?
Also the profile pic if you store it on file doesn't show.
Will see if i can fix the bug but maybe someone else knows.
Anarchy
06-22-2006, 11:24 PM
$userinfo['avatarurl'] is blank
also empty($userinfo['profilepicdateline']) seems to not be working, even tho i have my avatars on the file system it still choosed the image.php instead of the first option.
if (empty($userinfo['profilepicdateline'])) {
$HTML .= "<img width=\"64\" height=\"64\" src=\"".$userinfo['avatarurl']."\" alt=\"\"><br />";
}
else {
$HTML .= "<img src=\"".$vbulletin->options['bburl']."/image.php?u=".$userinfo['userid']."&type=profile&dateline=".$userinfo['profilepicdateline']."\" alt=\"\"><br />";
}
futuredood
07-03-2006, 09:45 AM
is their any way to re arrange your friends list?
Chicago_VLNU_4s
08-03-2006, 06:04 AM
is there supposed to be a "+" next to a user's name that i added as buddy when looking at who's online?
and why when i look at other peoples friends from postbit, there avatar pic link seems broken?
Chicago_VLNU_4s
08-03-2006, 09:25 PM
nvm... i think its broken because it's the picture feild, and if a user hasn't uploaded a pic, thats why it shows broken.
noonespecial
08-08-2006, 05:49 AM
Has anyone been able to add a pagination to the friends page?
http://www.absolutepunk.net/friends.php?u=1083
It'd really improve my friends system. Any ideas?
futuredood
08-08-2006, 06:51 AM
Has anyone been able to add a pagination to the friends page?
http://www.absolutepunk.net/friends.php?u=1083
It'd really improve my friends system. Any ideas?
Hey Noone, your friends page is nice. How did you get it listed verically that way?
noonespecial
08-08-2006, 07:20 AM
Hey Noone, your friends page is nice. How did you get it listed verically that way?
Uhm .. I don't even remember; if you want my page I'll upload it here and let you dig through it.
futuredood
08-08-2006, 08:26 AM
Uhm .. I don't even remember; if you want my page I'll upload it here and let you dig through it.
Yeah that'd be awesome, please do so. I wanna use the same vertical display for my friends page.
noonespecial
08-11-2006, 03:59 AM
Here's my file - trust me - you better know something about the code before you try and use it - haha, I have a bunch of shit hardcoded into it just for my site. I don't really have any time to help with anything either - so - yeah, hope it helps.
This is the final page: http://www.absolutepunk.net/friends.php?u=1083
noonespecial
08-13-2006, 12:39 AM
Is there anyway to remove a wannabe? Like a full on "denial" of friend thing?
michaelk
12-26-2006, 11:33 PM
Here's my file - trust me - you better know something about the code before you try and use it - haha, I have a bunch of shit hardcoded into it just for my site. I don't really have any time to help with anything either - so - yeah, hope it helps.
This is the final page: http://www.absolutepunk.net/friends.php?u=1083
It's very good :)
Can you make a plugin ?
lg michael
RichieBoy67
03-23-2007, 03:28 AM
Any plans on a version for 3.6??? Will this work on 3.6??
Thanks
tpearl5
06-15-2007, 08:13 PM
Any plans on a version for 3.6??? Will this work on 3.6??
Thanks
Same question
vitrag24
08-21-2007, 07:55 PM
for 3.6.4?
Cloud-Warrior
08-22-2007, 08:10 AM
Yep, it'll work just fine with vB 3.6 (I use it at www.boards.jp).
yoyoyoyo
11-07-2007, 12:15 AM
this does not play well with 3.6.8 with vb blog installed:
Fatal error: Call to undefined function blog_online_location_preprocess() in /home/mysite/public_html/forum/includes/functions_online.php(1057) : eval()'d code on line 1
squishi
12-14-2007, 07:02 AM
Ditto. See above. blog_online_location_preprocess() error
janwei
01-08-2008, 06:14 PM
Hi!
I am running Version 3.6 Does someone know a mod like this for Verision 3.6? Or can i use this mod for Version 3.6 too?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.