vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBFriends - View your social network and surf to others in vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=101470)

Cloud-Warrior 11-23-2005 10:00 PM

vBFriends - View your social network and surf to others in vBulletin 3.5
 
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:

PHP Code:

// 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:

Code:

<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.

jj 11-25-2005 04:27 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
PHP Code:

$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

Quote:

Originally Posted by j.jacobsen
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
PHP Code:

$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 :)

jj 11-25-2005 05:53 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.

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.

jj 11-25-2005 06:16 PM

Quote:

Originally Posted by Wordplay
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

PHP Code:

<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:
Quote:

Originally Posted by Wordplay
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.

jj 11-25-2005 06:29 PM

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/attachmen...chmentid=38266
https://vborg.vbsupport.ru/attachmen...chmentid=38265

where i posted the info:
https://vborg.vbsupport.ru/showpost....&postcount=173

LICryptkeeper 11-25-2005 06:58 PM

Quote:

Originally Posted by j.jacobsen
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

Quote:

Originally Posted by j.jacobsen
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
PHP Code:

$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 buddy’s 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

jj 11-27-2005 08:00 PM

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 :)

.Tim 11-27-2005 11:25 PM

Quote:

Originally Posted by j.jacobsen
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
PHP Code:

$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

Quote:

Originally Posted by Vizionz
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:

Code:

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

Quote:

Originally Posted by .Tim
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

Quote:

Originally Posted by monstergamer
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

Quote:

Originally Posted by TonysDesigns
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

Quote:

Originally Posted by monstergamer
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
Section 2
Section 3

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.

.Tim 12-08-2005 09:17 PM

Quote:

Originally Posted by ricker
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

Quote:

Originally Posted by .Tim
Hmmm, delete it and redownload it from my post (I reuploaded mine) and then try it again.

Negative, same error. :(


All times are GMT. The time now is 06:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01694 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete