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-09-2005 02:12 PM

What do you mean by branch off hack? I mean vBBuddies dosn't use vBFriends, this is a hack on its own. With the row of random users, if you mean having the profile buddies list be random, it already is. But I think you mean having random users displayed on your search form? If thats the case it wouldn't be related to vBBuddies since it displays the buddies a user has not all members on the site. Is that what your looking for? Random users on the search form?

T3MEDIA 04-09-2005 02:14 PM

Quote:

Originally Posted by SS9267547
What do you mean by branch off hack? I mean vBBuddies dosn't use vBFriends, this is a hack on its own. With the row of random users, if you mean having the profile buddies list be random, it already is. But I think you mean having random users displayed on your search form? If thats the case it wouldn't be related to vBBuddies since it displays the buddies a user has not all members on the site. Is that what your looking for? Random users on the search form?

Sorry yes that is what I meant. I thought the term branch off hack would suit. I saw this idea and thought imagine this idea was on the search but just random users period.

yeah that is what I meant.

SS9267547 04-09-2005 02:18 PM

I really don't see the point of randomly showing users on the search form, I mean there is already a main list where it shows all the users. Perhaps a better ideea would be to show like 3-6 random members at the top of the memberslist page but not sure how that would be performance wise.

T3MEDIA 04-09-2005 02:28 PM

Quote:

Originally Posted by SS9267547
You've made changes to the orginal, so instead look for:

PHP Code:

// pre-cache templates used by all actions
$globaltemplates = array(
    
'MEMBERINFO'


Thanks. Did I say it was hot? Wow. NICE.

T3MEDIA 04-09-2005 02:31 PM

Quote:

Originally Posted by SS9267547
I really don't see the point of randomly showing users on the search form, I mean there is already a main list where it shows all the users. Perhaps a better ideea would be to show like 3-6 random members at the top of the memberslist page but not sure how that would be performance wise.

Well belive me it works. The point of having random users on a search pages make 100% sense. The whole point a user is there is to look for people. and wah-la there are a few. The link I sent you is a huge site. a few million and that is how they get the traffic.

3-6 is good how can you do that I would dump the HTML into my template. (or a new hack or something) becuase this is the best I seen right now.

SS9267547 04-09-2005 02:40 PM

Okay well if this is for the search or the top of the memberslist I can do a listing of a few random members like 3-9 maybe but if theres more then that I still don't see the point.

SS9267547 04-09-2005 02:45 PM

There is a small problem in addon # 2 I just noticed. Find the following in the member.php file:

PHP Code:

        eval('$buddylist .= "' fetch_template('buddies_empty') . '";'); 

Replace with:

PHP Code:

        eval('$profilebuddylist .= "' fetch_template('buddies_empty') . '";'); 

Note: The install zip has been updated.

General_ 04-09-2005 03:30 PM

Hello

Here is the German Translation.
The only thing you have to do is, import the XML File in your AdminPanel.

SS9267547 04-09-2005 03:33 PM

Thanks for posting it! ;)

KTBleeding 04-09-2005 04:11 PM

Got off work a little early and installed. Works wonderfully.
I just have one more small request. Where can I edit what is sent to the member via PM when they are added to the buddylist? I'd like to add a link that says something like, "Approve this buddy list request" or "Add this member to your buddylist".

SS9267547 04-09-2005 04:19 PM

Edit the phrase 'buddies_autopmrequest' in your admincp to whatever you would like it to say when the pm is sent.

KTBleeding 04-09-2005 04:30 PM

Doh, I should have known that...

I have found an error message, actually. When viewing certain member profiles I seem to get this message:

Quote:

Fatal error: Call to undefined function: bitwise() in /home/keepthem/public_html/forums/member.php on line 562
Lines 558 - 574 is this chunk of code:

Code:

// ##################################### Start Buddies List ##################################
// ===========================================================================================
// Check and see what information is to be shown for each member listed . (Edit by: Lucas)
// ===========================================================================================

$show['display_birthday'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 1);
$show['display_age'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 2);
$show['display_joindate'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 4);
$show['display_postcount'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 8);
$show['display_usertitle'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 16);
$show['display_lastvisit'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 32);
$show['display_avatar'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 64);
$show['display_onlinestatus'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 128);

// ===========================================================================================
// Start main buddy list. (Edit by: Lucas)
// ===========================================================================================

It only happens on some profiles though.

SS9267547 04-09-2005 04:35 PM

What users groups do those members belong to? Can you post me more information about the member having problems?

KTBleeding 04-09-2005 04:37 PM

Both the ones that give me errors, and the ones that don't give me errors are in the Registered Members group.

SS9267547 04-09-2005 04:41 PM

Try this for me, cut this out:

PHP Code:

// ##################################### Start Buddies List ##################################
// ===========================================================================================
// Check and see what information is to be shown for each member listed . (Edit by: Lucas)
// ===========================================================================================

$show['display_birthday'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 1);
$show['display_age'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 2);
$show['display_joindate'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 4);
$show['display_postcount'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 8);
$show['display_usertitle'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 16);
$show['display_lastvisit'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 32);
$show['display_avatar'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 64);
$show['display_onlinestatus'] = bitwise($vboptions['buddieslist_profiledisplayoptions'], 128); 

And paste it after this:

PHP Code:

if ($bbuserinfo['userid'])



KTBleeding 04-09-2005 04:45 PM

Same error. So far it has only happened on two user accounts, but I've only tried about eight of them.

Obviously, the error line has moved down to 565 now.

SS9267547 04-09-2005 04:45 PM

I didn't think that would work lol. Anyway try doing this instead, find:

PHP Code:

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
'./includes/functions_showthread.php');
require_once(
'./includes/functions_user.php'); 

After that insert the following:

PHP Code:

require_once('./includes/functions_misc.php'); 

I think I forgot to add that. Let me know if that fixes the problem.

Update: Zip file has been updated.

T3MEDIA 04-09-2005 05:00 PM

Quote:

Originally Posted by SS9267547
There is a small problem in addon # 2 I just noticed. Find the following in the member.php file:

PHP Code:

        eval('$buddylist .= "' fetch_template('buddies_empty') . '";'); 

Replace with:

PHP Code:

        eval('$profilebuddylist .= "' fetch_template('buddies_empty') . '";'); 

Note: The install zip has been updated.

Hey does this fix a avatar issue? If not I find now in the profile pages that users who do not have an avatar get a x.
curious indeed. (example here.)

SS9267547 04-09-2005 05:05 PM

No it doesn't, that fixes the problem when members don't have buddies by adding a table that says they have no buddies at this time, just a typo that I made.

I can't see the link since I don't have permisssion too.

With members that don't have a avatar they are give a defualt one, now remember that you will need to upload one to /images/misc/ to have it work.

KTBleeding 04-09-2005 05:20 PM

Quote:

Originally Posted by SS9267547
I didn't think that would work lol. Anyway try doing this instead, find:


I think I forgot to add that. Let me know if that fixes the problem.

That appears to have done the job! Thanks again for this hack and the awesome support.. I think I smell HOTM. ;)

T3MEDIA 04-09-2005 05:25 PM

Quote:

Originally Posted by SS9267547
Okay well if this is for the search or the top of the memberslist I can do a listing of a few random members like 3-9 maybe but if theres more then that I still don't see the point.

Yeah that's cool!
I fixed my bug. I have no idea why it started BUT if someone else gets it (the profile's avatar gets a x if they have no avatar selected.) I did this....
in MEMBERINFO template under:
<if condition="$show['avatar']">
I added:
<if condition="$userinfo[avatarurl] != ''">

Then of course you have to close the if statement... the next imediate </if> I added a next </if>

SS9267547 04-09-2005 05:28 PM

KTBleeding: Your welcome just hope fixed everything lol :nervous:

T3MEDIA: Hmm I wondering why your avatar wasn't working and if anyone else seems to have this issue? As for the random members, I'll see if I can find some time for this (which one? search or memberslist?), a bit busy working on my site, heh keep side tracking to support the hack. But need the bugs out of it so I can use it for my site lol :D

T3MEDIA 04-09-2005 05:34 PM

Quote:

Originally Posted by KTBleeding
Got off work a little early and installed. Works wonderfully.
I just have one more small request. Where can I edit what is sent to the member via PM when they are added to the buddylist? I'd like to add a link that says something like, "Approve this buddy list request" or "Add this member to your buddylist".

I did that... looked good to but I ran into a loop.
If I added you a response came. then you added me... then your response came. so I couldnt figure out how to do a if statment so I reverted back. BTW it uses BB code so I made it a bit neater.

T3MEDIA 04-09-2005 05:36 PM

Quote:

Originally Posted by SS9267547
KTBleeding: Your welcome just hope fixed everything lol :nervous:

T3MEDIA: Hmm I wondering why your avatar wasn't working and if anyone else seems to have this issue? As for the random members, I'll see if I can find some time for this (which one? search or memberslist?), a bit busy working on my site, heh keep side tracking to support the hack. But need the bugs out of it so I can use it for my site lol :D

Well I am going to drop it below my simple search. No idea why that avatar thing happened. its gone now anyway.

SS9267547 04-09-2005 05:38 PM

Yes see I did wanted to get the pm system to work so you can get "Approved" or what not and added to the list automatically but I couldn't figure out a way to get it to work without to much editing to the whole vbulletin buddy system, to much work for me to spend so much time on, need to the rest of my site you know hehe. So I just many it send a "added" to pm instead, short cut lol.

bold 04-09-2005 10:36 PM

Quote:

Originally Posted by SS9267547
I didn't think that would work lol. Anyway try doing this instead, find:

PHP Code:

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
'./includes/functions_showthread.php');
require_once(
'./includes/functions_user.php'); 

After that insert the following:

PHP Code:

require_once('./includes/functions_misc.php'); 

I think I forgot to add that. Let me know if that fixes the problem.

Update: Zip file has been updated.

thanks for the fix

Benj 04-12-2005 10:36 AM

SS9267547 your the man added your usercp addon (screen shot below) edited it a bit.... Theres only one minor thing (i dont like :devious: But could live with if its to much work :lick: ) lol If Benj adds john to his buddy list john get a PM (ye?) if john then adds benj Benj gets the same Pm .. is there a way to turn this off or maybe change it to

Quote:

{username} has accepted your buddy request congrats your now buddies :D

lol

Only a little thing like just i think it would be a worthwhile feature :D

Benj 04-12-2005 11:15 AM

another bummy question lol sorry i added the hack over at https://vborg.vbsupport.ru/showthread.php?t=78477 automattically add referer to buddy list i tested it out by signing up and puttting Benj as the referer! Although the hack worked (w00t) it didnt send benj a Pm saying the new user had added him to his buddy list down can i make so it does ??

Benj 04-12-2005 05:30 PM

w00t 3 posts in a row :D I just upgraded from 1.0.1 to 1.0.2 thing is now options.php in the admincp folder shows up as a white page... Ive tried reuploading options.php doesnt work ! any ideas ? lol
Quote:

edit: i reuploaded the 3.0.7 packaged admincp/option.php it seems to work :s scary however it doesnt save the options you set

KTBleeding 04-12-2005 06:06 PM

Quote:

Originally Posted by benj
w00t 3 posts in a row :D I just upgraded from 1.0.1 to 1.0.2 thing is now options.php in the admincp folder shows up as a white page... Ive tried reuploading options.php doesnt work ! any ideas ? lol

Did you reinstall the templates since the upgrade?

Benj 04-13-2005 07:37 AM

i did what template controls this page ??????? at the moment ive got the unhacked version of option.php the vbuddies table shows up with all the options but the options arent savable !

T3MEDIA 04-13-2005 06:27 PM

Quote:

Originally Posted by benj
another bummy question lol sorry i added the hack over at https://vborg.vbsupport.ru/showthread.php?t=78477 automattically add referer to buddy list i tested it out by signing up and puttting Benj as the referer! Although the hack worked (w00t) it didnt send benj a Pm saying the new user had added him to his buddy list down can i make so it does ??

That isnt because of this hack that is because of the auto add hack. I was the one that asked for that hack.

I am hoping that the guy that did it for my request will make it one sided so that way this hack can make it work seamless. If it works one way. Auto add referrer as your buddy. the referrer will get a notice you added them... then they can opt to add you or not.

D|ver 04-14-2005 10:40 AM

Quote:

Originally Posted by SS9267547
Here you go KTBleeding. This addon will hopfully create what you wanted.

Addon Features
  1. 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.
  2. Option to activate or disable profile buddies list display.
  3. Option for maximum number of members you would like to display per line on the profile page.
  4. Option for maximum number of members to be displayed on the profile page.
  5. Randomly displays members.

I've included two screenshots of the addon. Enjoy. ;)

Update: Zip has been updated with latest fixes.

great addon :)

but is it possible to only show the buddies in the profile without installing the whole hack?

altsounds 04-16-2005 03:24 AM

This hack is awesome BTW. One thing that I have noticed that is an issue. I have added a link in the default e-mail to ask that user back if you accept the buddy request. That way you can easily add a buddy a la myspace.

Problem with that is. When the user clicks the add back button it sends an e-mail back to the originator and that keeps going on and on forever. Is there anyway that we can set something up so that it does a check to see if the user is added on the buddylist (one way) and if so not to send the PM??

Let me know.

Chris

Wasim 04-16-2005 06:06 AM

Can you only view your buddies in the UCP? Or does it show up on the forumhome page as well? I am really looking for a buddy list feature where I can have the buddies listed in a verticle box on the forum home page, kind of like the buddy list on vBportal.

Anyone know?

SS9267547 04-16-2005 04:16 PM

benj: Yeah I want to change the buddy PM system to do that however I found it that it would be to much work at this time since I have to many projects to do on my site as it is. Maybe in the future when ever I figure out how to do it lol.

With the problem in the options.php make sure you edit correctly as well make ssure you do not use dreamweaver to edit that file with. The file won't work then.

As for amykhar's hack benj, check out addon release # 3. It will help you install the PM feature for the hack.

altsounds: Yes that is an issue with the hack, I'm just not sure where to start with it since I would most likly have to change how the whole buddy system works in vB so it would be able to check users and whatnot without going around in circles. The way how things are set up was just a quick solution, perhaps in time I'll change it.

D|ver: Yeah you can, just follow the steps for the profile changes. You'll need to edit out some parts of it tho so it dosn't check the forums vBBuddies settings. Now if you just want a simple list of buddies I think there are a few hacks out there that already do that.

Wasim: This hack shows the buddies publicly (or not, up to you) in ones profile. As for showing a buddies list on forumhome I think there is something like that out there.

SS9267547 04-16-2005 04:20 PM

Here you go benj. This addon will hopfully send a pm for amykhar's hack:

https://vborg.vbsupport.ru/showthread.php?t=78477

Addon Features
  1. Simply sends a PM automatically to referrer when a new member signs up to the site.

I've included one screenshot of the addon. Enjoy. ;)

Benj 04-16-2005 05:20 PM

SS9267547 cheers man :D

thanks for creating this hack good luck with your project :D

altsounds 04-17-2005 10:10 PM

This is a brilliant hack. Any chance we can get a User CP addon much like the profile add on so that when you go to your Control Panel you will see a list of your buddies in random that you can control from the options as a seperate entity.

Let me know how hard this would be to achieve.

Thanks again. This is an amazing hack!!

altsounds 04-18-2005 05:16 AM

I played around with the original vbulletin buddies system and there is no checking going on at all thats what the problem is with the looping. Someone that is already your buddy you can add them again and again and it won't give any errors.

Could the writer of the script help us all out here with this?? Your obviously an excellent coder and could do a much better job than all of us. If you need it I can donate you some money to get this all working as I think it is VERY important because users will get pissed off with the forum ASAP if they keep getting pms back from people they have asked to be added as a buddy too FOREVER!!!!

Let me know whether anyone could do this. As I said, $$ in it for whoever wants to take it on.

Thanks

Chris


All times are GMT. The time now is 08:32 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.01574 seconds
  • Memory Usage 1,874KB
  • 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
  • (1)bbcode_code_printable
  • (11)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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