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)
-   -   [RELEASE v2] Pop-up Buddy List (https://vborg.vbsupport.ru/showthread.php?t=14079)

MrLister 04-13-2001 10:00 PM

Download the instructions below. I added some new features and made it so it fuses nicely with your vB. The reason why it's in a file is because this vB changes all variables into it's own #______.

TechTalk 04-14-2001 03:45 PM

Nice im using it at
http://www.iguanaland.com

I didnt take much time to mess with it but does it not use styles form the cp? The reason i ask is it comes up vb purple and i have changed all my colors.

Thanks
~Chris

TigerLily 04-15-2001 12:27 AM

I had a problem, but I got it! I just downloaded it wrong. I had to right click on the above attachment and "save target as" buddy.txt. Whenever I clicked on the attachment and saved, then uploaded I got errors. All fixed now! Great hack, and so easy to implement!
Thanks,
TigerLily:)

conan 04-15-2001 07:19 AM

Thanks man that is great!

One tiny detail though, can you make it so it uses the same CSS as the board.
On the profile buddy list it does, but the one on the pop up uses the default alink, vlink etc..

MrLister 04-15-2001 04:40 PM

done

conan 04-15-2001 06:34 PM

Thanks a lot man!

conan 04-16-2001 06:34 AM

Still not showing the same style as the board for me :(

MrLister 04-16-2001 02:15 PM

download the new files it should work

conan 04-16-2001 05:44 PM

I just downloaded the new file, overwrote everything I had and still not working :(

RobAC 04-16-2001 06:47 PM

Is this for 2.0? What's the difference between this and what already comes with 2.0 beta 5? Would it be possible to see a gif of what this hack looks like?

MrLister 04-17-2001 04:06 AM

this is for two and it's a pop up. conan make sure to read the file. the file is instuctions and it works perfectly on mine but check again.

Wayne Luke 04-17-2001 05:06 AM

Quote:

Originally posted by RobAC
Is this for 2.0? What's the difference between this and what already comes with 2.0 beta 5? Would it be possible to see a gif of what this hack looks like?
You can see something similar by going to SitePointforums.com and clicking on "Launch Buddy List" in your personal features toolbar.

You will have to be a registered member to do this.

conan 04-19-2001 06:24 AM

I have uninstalled and installed this hack again 1000 times, I'm sure I'm following the exact directions, but the styles won't show properly.

The who posted hack by kier works fine with the styles and all it's beyond me why this isn't working :(

MrLister 04-19-2001 01:53 PM

well i'm not really sure try looking for stuff like #______ in the buddy_main and changing it to {f irstaltcolor} and stuff like that.

Joshs 04-28-2001 07:09 PM

How would I make the color of the username, pm function, and delete function text the same as the rest of my forum? Red not hovered; blue hovered?

Joshs 05-01-2001 04:53 PM

Another problem is that the window doesnt resize if the list is long...

conan 05-01-2001 06:31 PM

It resizes on mine, it doesn't scroll though, for you to enable scrolls you must change scrollbars=no to scrollbars=yes on forumhome template

Joshs 05-01-2001 06:37 PM

Here is my code... I dont know what to change to fix it...

Code:

<!-- Buddy -->
<script language="JavaScript">
function popup(url, window_name, window_width, window_height)
{ settings=
"toolbar=no,location=no,directories=no,"+
"status=no,menubar=no,scrollbars=no,"+
"resizable=yes,width="+window_width+",height="+window_height;

NewWindow=window.open(url,window_name,settings); }
</script>
<!-- End Buddy -->

Code:

<!--Buddy--><br><a href="#"
onclick="popup('buddy.php', 'Window', 160, 200);">Launch Buddy List</a><!-- End Buddy-->


RobAC 05-01-2001 06:43 PM

Take a look at what conan wrote there:

scrollbars=yes

now find where it says scrollbars=no in the code you just posted. There's your answer.

change scrollbars=no to scrollbars=yes

SirSteve 08-29-2001 01:37 PM

I want to be able view the Buddy List from any page within the Forums. Also, a few buttons are needed:

A "Refresh List" button
A "Close" button

Thanks for the cool hack!

eg_92901 11-29-2001 02:51 PM

My installation worked great. I had to go into the buddy_main template and adjust the colors though.

Logtenberg 12-01-2001 10:17 PM

screen shot please?

SirSteve 01-13-2002 04:28 AM

Does this work on 2.2.1?

Erwin 01-13-2002 09:41 AM

Simple, yet functional. Thanks!

Gutspiller 02-07-2002 10:59 PM

WTH is this hack? No description anywhere. Duh. :D

AndyTSJ 02-22-2002 08:36 AM

Does this hack work with 2.2.2 ? I tried but it didn't work.

Neo 04-12-2002 10:05 PM

Bump. Is there a updated version of this. I get javascript errors when I try and run it.

Robouk5 05-10-2002 09:33 PM

Hmm, It looked like it worked but It just displayed no one my buddylist... which is wrong, i do have buddies =)

Robouk5 05-10-2002 09:35 PM

my bad, i created the buddy template in the wrong style lol

JakeC 12-18-2002 04:19 AM

I just installed this hack and this is the error I am getting:

PHP Code:

Parse errorparse errorunexpected '=' in /home/jakec/public_html/forums/buddy.php on line 29 

here is what is on line 29:

PHP Code:

invisible=0 ORDER BY username"; 

I really like this hack but I can't get it going. Any help would be much appreciated. Thanks.

JakeC

SpeedStreet 12-18-2002 02:01 PM

You have a gunked up buddy.php.

In mine, that line is commented out. I would revert back to an original buddy.php and try again. It looks like you may have more than that goofed up.

JakeC 12-18-2002 09:03 PM

All we are supposed to do is copy the portion of the text file and paste it into another file and name the file buddy.php right? That?s what I did. Do you think you could post the contents of your buddy.php so I can compare?

here is what I have:
PHP Code:

<?php

$templatesused 
"buddy_main,buddy";

require(
"./global.php");

if (
$bbuserinfo[userid]==0) {
  
show_nopermission();
}

// main page:

// ############################### start buddy list ###############################
$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);

$onlineusers="";
$offlineusers="";
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="on";
  } else {
    
$onoff="off";
  }

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

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


eval(
"dooutput(\"".gettemplate("buddy_main")."\");");

?>

JakeC

SpeedStreet 12-18-2002 09:46 PM

The file you posted matches mine. Yet that error indicates you have a parse error on line 29.

Are you still encountering the error?

JakeC 12-18-2002 10:39 PM

Well, I guess it makes a difference if you copy it to a notepad doc as opposed to a dreamweaver doc. I originally copied it into dreamweaver and it did not work. I just did it in a notepad doc and it works. Go figure. Thanks for helping SpeedStreet.

JakeC

JakeC 12-18-2002 10:45 PM

well, I spoke too soon. The buddy list poped up no problem. Unfortunatly when I added some buddies to my list then tried to launch the buddy list this is the error I recieved:

PHP Code:

Parse errorparse errorunexpected 
T_ENCAPSED_AND_WHITESPACE
expecting ']' 
in /home/jakec/public_html/forums/buddy.php(39) : eval()'d code on line 9

Buddy List 

--------------------------------------------------------------------------------
 Online  
--------------------------------------------------------------------------------
 
--------------------------------------------------------------------------------
 Offline  
-------------------------------------------------------------------------------- 

I have no idea what that means. One day I will learn PHP if it kills me :ogre: !! Any ideas?

JakeC


All times are GMT. The time now is 05:02 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.01237 seconds
  • Memory Usage 1,797KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete