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)

:Judge: 12-10-2005 03:30 AM

Quote:

Originally Posted by ricker
Negative, same error. :(

I have the same problem

ricker 12-10-2005 04:36 AM

Quote:

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

Quote:

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

Quote:

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

Code:

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

Code:

<if condition="$post[field24] == Yes">
$FRIENDSFOES
</if>

Example: here. 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

Quote:

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

Quote:

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

Quote:

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

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.

Color me slow but exactly where does this plugin go?

edit: nvm i've sorted it. very nice!

[high]* EricaJoy clicks install[/high]

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/showthrea...6&highlight=pm

DDX 01-04-2006 04:09 AM

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?

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

Quote:

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

Quote:

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

Quote:

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

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]&amp;type=profile&amp;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:

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]&amp;type=profile&amp;dateline=$userinfo[profilepicdateline]\"><br>";
        // }


Antivirus 01-05-2006 01:39 PM

wwturbo,

Quote:

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

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

jj 01-05-2006 06:28 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
Code:

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

$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

Quote:

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

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

$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

Quote:

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

Quote:

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

jj 01-09-2006 06:31 PM

ty for the info

The Chief 01-09-2006 06:49 PM

Quote:

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


All times are GMT. The time now is 01:01 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.01706 seconds
  • Memory Usage 1,840KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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