vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBBuddies (https://vborg.vbsupport.ru/showthread.php?t=79204)

SS9267547 04-01-2005 10:00 PM

vBBuddies
 
During the development of my gaming site I was in the need of a hack that would display the buddies list publicly and I found one that I thought would work well for my needs called vBFriends. However I also found that it was in need of additional features to work more for what I needed it for so I modified this hack. Now with the permission of Cloud-Warrior (John Breslin) I?ve decided to release this little hack to anyone else who might find this useful called vBBuddies.

vBBuddies is similar to vBFriends however instead of showing all the members links (linked from, linked to, etc), vBBuddies simply displays all the members buddies only. Buddies that are of course linked back to the member. So for example a member named ?Bob? added a member named ?John? to his buddy list but ?John? didn?t add ?Bob? to his list. Now if that is the case, when looking at either ?Bobs? or ?Johns? public buddy lists you won?t see their names on there. However if both members add each others names to their buddy lists it will then classify that they are true buddies and put them on the list. Hope that makes sense. That?s pretty well what this little hack does.

In addition to the change above, I?ve noticed that there were two main features lacking from vBFriends that members have noted as well I needed done which was more optimized queries, templates and the option for multi paged system. So I?ve added those to this hack, I just hope that I was able to lower the queries down, think at this moment its at 10 total. Anyway enjoy the hack, hope someone else can find this useful.

There are 8 screenshots included for you to see what this little hack can do. :nervous: Now this isn't the greatest coded hack so I'm sure there are bugs. Please do let me know if there are problems with it and I'll try to find the problem if I have then time to do so. Also if you like the hack make sure hit the install button! Enjoy guys! ;)

vBBuddies Information

Current Version Number: 1.0.3
vBulletin Test Version(s): 3.0.7 +
Queries to run: 1
File Edits: 8
New Phrases: 28
New Templates: 6
Template Edits: 4
Last Edited: June 12, 2005
Edited By: Lucas Pawelczyk
Install Time: 30 minutes
Difficulty: Moderate

Current Features
  1. Option to activate or disable public buddy list globally.
  2. Option for user to activate or disable public buddy list.
  3. Give permissions to whatever usergroup you want to be able to access this.
  4. Option for maximum number of members you would like to display per line.
  5. Option for maximum number of members to be displayed per page.
  6. Ability to have buddy tool menu to add or remove a member to your buddy list.
  7. Option to activate or disable private message notification of new buddy.
  8. Ability to view buddy links via member profile.
  9. Ability to activate or disable online status display option, avatars display option, user title display option, posts display option, birthday display option, age display option, join date display option and last active display option from admincp.
  10. Ability to display information text about feature with members.
  11. Option to activate or disable buddy indicator from memberslist.

Donations Welcome
lucas@gamitopia.com

Addons

Addon # 1 (Usercp basic addon):
https://vborg.vbsupport.ru/showpost....8&postcount=53

Addon # 2 (Profile advanced addon):
https://vborg.vbsupport.ru/showpost....1&postcount=73

Allan 04-02-2005 05:57 AM

not badly, nice like hack, cheer in any case :)

Dark Aura 04-02-2005 07:20 AM

Will install this now, well done :nod:

SS9267547 04-02-2005 10:27 AM

Thanks. Hope you guys found it useful. :)

FleaBag 04-02-2005 01:32 PM

I like! I'll remove the old one and add this one tomorrow!

T3MEDIA 04-02-2005 01:42 PM

What's the word? Is it working ok? I got vbfriends now but if this is on point I will go with this.

Selene 04-03-2005 02:10 AM

anyone installed it? can we see some test URL

skorzguy 04-03-2005 06:18 AM

How does this work? I installed it but how do I see the page with everyone's buddy photos? I have everything installed correctly according to the directions but it seems something in missing. Is there more than just the one template modification. Theres no link in the users profile, should there be another template modification. This looks cool, has anyone else gotten it to work.

Here is the error when I try accessing the buddies.php page.

No User specified. If you followed a valid link, please notify the webmaster

SS9267547 04-03-2005 07:14 AM

Yeah need to input the user id you wish to view. For example:

http://www.sitename.org/buddies.php?u=1

That should bring up the information, works like the member.php where it will load up a persons profile or vBFriends if you used that before. Forgot to meantion that lol. Now remember that you will need to setup how you would like to access this. If you would like to have it viewable from a persons profile add the following code whereever you would like the link to show:

PHP Code:

<a href="buddies.php?$session[sessionurl]u=$userinfo[userid]">View Buddies</a

Let me know if that works for yeah.

Selene 04-03-2005 09:35 PM

i have installed it, and i can view by entering buddies.php?u=x and so on.

but why cant i see buddy option in member profile of a user? or a buddy link in general so once ppl click they can see members and their buddies.

i dont really get it.

Selene 04-03-2005 09:38 PM

i mean when one click on a member profile there shud be a link whereit says "View Member Buddies".

T3MEDIA 04-04-2005 02:57 AM

how are the queries? less than vbfriends?

SS9267547 04-04-2005 03:27 AM

Selene: Yeah there should be a link. I forgot to add the step in the install to add "View Members Buddies" if thats what you would like. This is just an addon, you can see in screenhshot 6 in what I did with my site with this addon, so its up to you in what and how you want to use this hack. Next version will have that corrected. You can add this simply by pasting the code I meantioned already into the profile template.

T3MEDIA: There are about 10 queries in total, doesn't matter if you have 5 or 50 members showing per page while vbfriends will change depending on how many members you have displayed.

bold 04-04-2005 05:50 AM

very nice thanks

Selene 04-04-2005 09:56 AM

Quote:

Originally Posted by SS9267547
Selene: Yeah there should be a link. I forgot to add the step in the install to add "View Members Buddies" if thats what you would like. This is just an addon, you can see in screenhshot 6 in what I did with my site with this addon, so its up to you in what and how you want to use this hack. Next version will have that corrected. You can add this simply by pasting the code I meantioned already into the profile template.

T3MEDIA: There are about 10 queries in total, doesn't matter if you have 5 or 50 members showing per page while vbfriends will change depending on how many members you have displayed.

well then how i can install that addon :) cuz other wise its not very useful til i have sorted out the buddies page, or a link in general.

SS9267547 04-04-2005 11:27 AM

bold: Your welcome.

Selene: Well I just released the next version of the hack so you can download that and re-install it. There are a few new additions like adding the link to the profile page which I forgot to add in the first release lol. Heres a screenshot in how it would look:

https://vborg.vbsupport.ru/attachmen...chmentid=25365

SS9267547 04-04-2005 11:58 AM

Heres just a quick release note of the new added features in version 1.0.1.

Version 1.0.1
  1. Option to activate or disbale private message notification of new buddy.
  2. Ability to view buddy links via member profile.
With the new pm feature it will allow your members to auto send a little pm message to a new added buddy that they were added to their buddy list. It will work either from the add / remove feature and when one enters a members name manually from the main buddy list in ones user control panel. You may see the following screenshots:

https://vborg.vbsupport.ru/attachmen...chmentid=25366
https://vborg.vbsupport.ru/attachmen...chmentid=25367

The other option is adding a new link in ones members profile as I forgot that some people would like a have it linked from there. You may see the following screenshot about that:

https://vborg.vbsupport.ru/attachmen...chmentid=25365

Hope those additions work. Enjoy.

Selene 04-04-2005 12:07 PM

ok upgraded to 1.01 seems to be working fine :)

just a request for 1.02 can u come up with something so that if someone views /forums/buddies.php they can see some random members and their buddies or something so that buddies.php can be used as a kind of buddies page, where the admin can write a paragraph about it and how to use it fx. so that the page has a paragraph of txt and then under it u see latest buddies or something.

that wud be gr8, cuz thats the only thing this VBBuddies is missing.

Selene 04-04-2005 12:09 PM

when i try to add someone or someone tries to add a buddy following error comes:

Parse error: parse error, unexpected T_IS_IDENTICAL in /profile.php on line 145

this is what i have from 140 - 150 lines
Code:


        $DB_site->query("INSERT INTO " . TABLE_PREFIX . "pm (pmtextid, userid) values (" . $pmid . ", '" . $userinfo['userid'] . "')");
        $DB_site->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal = pmtotal + 1, pmunread = pmunread + 1, pmpopup = " . $userinfo['pmpopup'] . " WHERE userid = '" . $userinfo['userid'] . "'");
}
// ##################################### End Buddies Script ####################################
=========================================================================================
if (empty($_REQUEST['do']))
{
        $_REQUEST['do'] = 'editprofile';
}

if (!($permissions['forumpermissions'] & CANVIEW))


SS9267547 04-04-2005 12:25 PM

Selene: Your welcome. Now with the buddies.php showing a random buddy I'll
have to think about that and see if anyone else would like something like that. Ah ... now to explain on how it works with your members you could add some text to the page explaining how it, something like I did with my gaming site, when I get home I'll post a screenshot in what I mean. After you see the screenshot and if thats something you want I'll put that little change in the next version.

With the error you are having I think you need to take this out:

Code:

================================================================================  =========
Looks like you posted my dividers between codes/steps from the install.txt. Think I'll have to make a cleaner install script?

Selene 04-04-2005 12:27 PM

ok SS i fixed it

its working fine now.

i jus cut some of the ### lines and it worked.

Selene 04-04-2005 12:29 PM

LOL i fixed it as u were replying :)

now its working good so far, just a buddy page which shows some info about it will be gr8 now like u have on ur site.

SS9267547 04-04-2005 12:33 PM

Lol :)

Ah with the info for the buddy page, I'll think of what might be the best way of doing it. Might have time to post something up later today.

Selene 04-04-2005 12:41 PM

oky cool thx , i will wait for that, and maybe for a future update u can add the following where it says the info under nick...

Join Date: Nov 2001
Posts: 48

Real name: Lucas Pawelczyk
Location: Canada

there u can add a field maybe called Current Buddies: xx (where xx it the nr of buddies one has)

SS9267547 04-04-2005 01:10 PM

Thanks for the ideas, I'll see if I can add those additional options into the system in the next release. Didn't think anyone would like those features since its just a list of buddies but guess I was wrong hehe. :)

Polo 04-04-2005 01:18 PM

look really nice, thanks SS :)

Benj 04-04-2005 03:42 PM

wooooo this hack is sweet *installs*

Benj 04-04-2005 05:06 PM

im getting a
Quote:

Benj, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
message onthe buddies.php file why might this be

SS9267547 04-04-2005 05:14 PM

Polo: Thanks.

Benj: vBBuddies comes with permission options, you just forgot to do a step in the install. What you need to do is go to Usergroup Manager in your ADMINCP and change each group that you want to be able to use this under 'General Permissions'. There should be an option called 'Can View User Buddies List'. Simply select 'Yes' to be able to use this. Hope that helps.

Benj 04-04-2005 05:32 PM

ta sorry must have missed that :P hahahaha nice one.. i was woundering my users have large avatars how would i down scale them ?? or does it already do it ?? do i need to edit the template if so whichone ???

SS9267547 04-04-2005 06:24 PM

benj: With the avatars it would depend on how you have set up your forums so it will use the avatars at whatever size it is setup at. With mine they are all set to be the same size 56 by 56. Now as a quick fix for you to have it limited on your buddies.php I would edit the template 'buddies_listbit'.

Find the following code:

PHP Code:

<img src="$avatarurlalt="$inuser[username] Avatar" border="0" /> 

Change to the following code:

PHP Code:

<img src="$avatarurlwidth="56" height="56" alt="$inuser[username] Avatar" border="0" /> 

I set it up as the same size as I have it with my site. If you want them to be bigger change '56' in the width and height to whatever size you want your avatars to be.

Benj 04-04-2005 06:41 PM

cheers :D

Selene 04-04-2005 08:50 PM

good to see the Version 1.0.2 update.
Ability to display information text about feature with members. <-- that shud be coool.

plus a common buddies page which every member can visit for general info about vBBuddies...so that one can have vBBuddies as menu item :)

SS9267547 04-04-2005 09:55 PM

I don't know about having common buddies page, don't think I'll add it. Ah I could maybe add an faq option to explain it if really needed if the display information text isn't what people need.

Polo 04-05-2005 08:13 PM

how is this modification going for big forums? I would like to know.. not that my website is that big, but i'm just curious...

SS9267547 04-05-2005 09:17 PM

What do you mean? Like performance wise?

Polo 04-05-2005 11:10 PM

yeah performance wise and query wise... i remember some people having problems with vbfriends... specially those who had big forums... it looks really nice now and it seems like it was totally rewritten... I have it installed in my site now :) .. great job...

*related posts to what i'm talking about...
https://vborg.vbsupport.ru/showpost....6&postcount=54
https://vborg.vbsupport.ru/showpost....6&postcount=62

SS9267547 04-05-2005 11:16 PM

Well I think performance and query wise are pretty good with vbbuddies. Its like 10 queries in total now so it doesn't matter if you have 5 or 50 members showing per page while vbfriends will change depending on how many members you have displayed. And if you want to lighten the load of buddies displayed the scriipt comes with buddies per page feature so you can show only 10 per page if you wanted to. I tried to fix the problems that were in vbfriends. :)

Polo 04-05-2005 11:20 PM

that is good to hear, and again this is an excellent mod ss9267547 :) thanks for sharing it with the community...

MikaK 04-06-2005 05:06 AM

I´m working on a version 303. Do you think this would work with it if installed?

-Mika


All times are GMT. The time now is 01:25 AM.

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.01375 seconds
  • Memory Usage 1,841KB
  • 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
  • (3)bbcode_php_printable
  • (2)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