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


All times are GMT. The time now is 08:04 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.01183 seconds
  • Memory Usage 1,763KB
  • 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
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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