vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Buddy Messenger v1.1 (https://vborg.vbsupport.ru/showthread.php?t=43058)

FleaBag 10-13-2002 04:43 PM

Since I installed this hack I have the private messages column appear to guests, with null stats. I'm assuming this was something to to with the modifications to index.php? Can anyone advise me on how to prevent this from happening?

FleaBag 10-16-2002 05:13 PM

*Bump*

Dynamic One 11-01-2002 07:16 PM

Yes found it. Was searching a while for this one. Saw it on a site and it's great.

Tenpit 11-26-2002 01:13 AM

Quote:

Originally posted by GamerForums
Since I installed this hack I have the private messages column appear to guests, with null stats. I'm assuming this was something to to with the modifications to index.php? Can anyone advise me on how to prevent this from happening?
No doubt someone will speak out with a better way of doing this, my way is probably a bit of a fudge, but. . .

I got around this problem by replacing step 2 with:

PHP Code:

// Buddy Messenger v1.1
if ($enablepms==and $permissions['canusepm'] and $bbuserinfo['receivepm']) {
$datecut time() - $cookietimeout;
$buddyuserssql=str_replace(" ","' OR user.userid='",$bbuserinfo[buddylist]);
$sql="SELECT DISTINCT session.lastactivity, user.userid,username,NOT ISNULL(session.sessionhash) AS online,invisible
      FROM user
      LEFT JOIN session ON session.userid=user.userid
      WHERE (user.userid='
$buddyuserssql')
      ORDER BY username"
;
//$sql="SELECT * FROM user WHERE (userid='$buddyuserssql') AND invisible=0 ORDER BY username";
$buddys=$DB_site->query($sql);

$onlinebuddy="";
$offlinebuddy="";
while (
$buddy=$DB_site->fetch_array($buddys)) {
  if (
$userdone[$buddy[userid]]) {
    continue;
  } else {
    
$userdone[$buddy[userid]]=1;
  }

  if (
$buddy[online] and !$buddy[invisible] and $buddy[lastactivity]>$datecut) {
    
$onoff="{buddyon}";
  } else {
    
$onoff="{buddyoff}";
  }

  eval(
"\$var = \"".gettemplate("buddy_messenger")."\";");

  if (
$buddy[online] and !$buddy[invisible] and $buddy[lastactivity]>$datecut) {
    
$onlinebuddy.=$var;
  } else {
    
$offlinebuddy.=$var;
  }
}


        eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");
}
// End Of Buddy Messenger v1.1 


FleaBag 11-26-2002 04:30 PM

Thanks Tenpit - it worked. Little things like that annoy me! :)

snout 11-30-2002 03:14 PM

very cool of ya :) Im installing now...

Jitway 11-30-2002 09:20 PM

Same here very cool hack. Keep up the good work. :banana:

xpguy 03-06-2003 07:50 PM

i get some weird things on mine : http://www.windowsos.com/forum/

and i have tryed replacing the files and deleteing the templates but still the same what do i do??

Splitfyre 06-25-2003 04:28 PM

I'm getting something weird. When I receive a message from a buddy, and then if I quote what he says, it will not show anything from the quote.

Have any of you, who've installed this hack, run into this?

Splitfyre 06-30-2003 06:58 PM

Cool hack except when it tells you whose added you. It says:

[code]
[DELETED USER]has added you to his/her buddy list.

This is a automated message. Please do not reply. it!
[code]

How can I ensure that it pulls the right username?


All times are GMT. The time now is 04:17 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.01053 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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