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)
-   -   [mini-hack] Stylin' Buddy List (https://vborg.vbsupport.ru/showthread.php?t=42927)

Velocd 08-28-2002 10:00 PM

[mini-hack] Stylin' Buddy List
 
Stylin' Buddy List :cool:

This hack is so small, and so quick, that it could "almost" be considered a template addition. In some cases, I should have just included it in the template forum, but in the long run more people would see it this way. :p

Basically this will make you're current vBulletin UserCp buddy list, look like this one.

You might have to adjust it alittle to your own preference, like most hacks. ;)

Goldknight 08-29-2002 10:02 PM

Nice hack :cool:

[high]* Goldknight install[/high]

joeboo 08-29-2002 10:04 PM

very nice *clicks install*

AL-MSAFER 08-29-2002 10:12 PM

very good thanks

Vile 08-29-2002 10:28 PM

Whoa, looks sweet:)
Should this work with 2.2.6 as well?

Tok Muda 08-29-2002 10:31 PM

:) install.. thanks

Neo 08-29-2002 10:51 PM

muda f-ck'nun tigeet!!!!!!

Velocd 08-29-2002 10:57 PM

Quote:

Originally posted by Knightmare
Whoa, looks sweet:)
Should this work with 2.2.6 as well?

Is it not working? :ermm:

It should, I have it installed on 2.2.6

Quote:

Originally posted by Neo
muda f-ck'nun tigeet!!!!!!
eh? ;)

Gohan 08-29-2002 11:23 PM

Great hack! but just wonder where away in my usercp.php?
btw does working without away

my usercp.php
PHP Code:

$sql="SELECT userid,username,invisible,lastactivity,lastvisit 

your usercp.php
PHP Code:

$sql="SELECT userid,username,invisible,away,lastactivity,lastvisit 

maybe you use away hack?

Velocd 08-30-2002 12:21 AM

Ah, my bad ;)
I'll make that change right now.

Yea, I do use the away hack ^^;

Preech 08-30-2002 02:15 AM

I'm running 2.2.6 and this doesn't work.

Never Mind, solve my own problem.

Vile 08-30-2002 02:52 AM

Quote:

Originally posted by Preech
I'm running 2.2.6 and this doesn't work.
Same here, I tried installing it a few times, but it messes up as soon as I upload the updated usercp.php. :(

Mr_P 08-30-2002 02:56 AM

works fine on 2.2.6

check u did it right as deffo works infact has to be the easiest hack to add.

Oh yeah u may be getting the database error as i did so u need to change one line ............

You see this line:
$sql="SELECT userid,username,invisible,away,lastactivity,lastvi sit

Well Remove this from it :

,away

and it works fine as that is for another hack and is`nt needed as orginaly posted by Gohan above.

Velocd 08-30-2002 03:27 AM

I updated the install.txt a while ago, removing:
Code:

,away
From the instructions. It should install fine.

g-force2k2 08-30-2002 03:51 AM

nice work Velocd looks pretty nifty ;) keep up the good work man...

g-force2k2

Boofo 08-30-2002 03:54 AM

lastvisit wasn't in mine, either. Tried to install this and it messed up my buddy list real bad. Too bad, I really wanted this. :( It looks good.

Quote:

Originally posted by Velocd
I updated the install.txt a while ago, removing:
Code:

,away
From the instructions. It should install fine.


Velocd 08-30-2002 04:03 AM

Don't worry Boofo, just because you recieved a few errors doesn't mean it's the end of the world!

If you can be more specific on the errors you recieved, or the problem in general, I'm sure a solution can be devised. ;)

Boofo 08-30-2002 04:08 AM

Not the end of your world, maybe. ;) :p

I just couldn't get it to look right. Apparently I have to change something in the usercp template, too (I have the "Who are you a buddy of" hack installed). But I'm not very good at the tables and such. :)

Is the lastvisit from another hack you have installed?

Quote:

Originally posted by Velocd
Don't worry Boofo, just because you recieved a few errors doesn't mean it's the end of the world!

If you can be more specific on the errors you recieved, or the problem in general, I'm sure a solution can be devised. ;)


Velocd 08-30-2002 04:18 AM

No, I don't have that hack installed. I'll go alook at it and see what I can do to incorporate the two hacks together :p

Boofo 08-30-2002 04:20 AM

You are a gentleman and a scholar. :)

Quote:

Originally posted by Velocd
No, I don't have that hack installed. I'll go alook at it and see what I can do to incorporate the two hacks together :p

Vile 08-30-2002 04:22 AM

Quote:

Originally posted by Mr_P
Oh yeah u may be getting the database error as i did so u need to change one line ............

Yup, that was it. It works like a charm now. Damn you guys are good.

Thanks for the help, and thanks for the great hack:)

Velocd 08-30-2002 04:43 AM

Boofo, I'm not seeing any conflicts that should arise between my and Gamingforce hack.

Are you recieving a database error, or is your problem in the HTML of the template part? Maybe a screenshot might help of your UserCp buddy list.

Boofo 08-30-2002 05:03 AM

LOL Velocd, you're not going to believe this...take a look at the attached picture and tell me if that is how it is supposed to look. :) I don't know what I did right, but I just reinstalled it and this is what I got. :)

The only thing I can see wrong is that I have double lines under the links. :)

Velocd 08-30-2002 05:13 AM

That is indeed what it's suppose to look like, but you may want to enlarge the width of the table. It only looks odd because of the very large avatars. If you want to fix that, then maybe I suggest removing the avatar part, although that is the nifty part of this small hack.

You have double lines because regular URL links have lines underneath them. In my screenshot there are none, only because I add a class="" stylesheet attribute to some of my <a href> tags, for different color and to remove the underline.

If you want to fix that double line, just remove each:
Code:

<img border="0" src="https://vborg.vbsupport.ru/images/dotted_line.gif" width="100" height="1">
As mentioned, this hack might need extra HTML tweaking to compensate with your forum design, such as avatar size.

Boofo 08-30-2002 05:20 AM

How about if I add:

Quote:

style="text-decoration :none;"
to each one of the links. That should fix the double lines, I think. ;)

Are the avatars supposed to be so washed out?

Great Hack and thank you for offering the help. I don't know what I did to get it working this time. All I did was re-install the hack and it worked. :) By the way, the lastvisit wasn't in mine, I added your code with it to it. Is that something new in 2.2.6, do you know?

Quote:

Originally posted by Velocd
That is indeed what it's suppose to look like, but you may want to enlarge the width of the table. It only looks odd because of the very large avatars. If you want to fix that, then maybe I suggest removing the avatar part, although that is the nifty part of this small hack.

You have double lines because regular URL links have lines underneath them. In my screenshot there are none, only because I add a class="" stylesheet attribute to some of my <a href> tags, for different color and to remove the underline.

If you want to fix that double line, just remove each:
Code:

<img border="0" src="https://vborg.vbsupport.ru/images/dotted_line.gif" width="100" height="1">
As mentioned, this hack might need extra HTML tweaking to compensate with your forum design, such as avatar size.


Boofo 08-30-2002 05:41 AM

Velocd, would there be a way to make it so when a buddy IS online, the the avatar would not be washed out, only washed out when they are offline? That would be great! :)

Velocd 08-30-2002 06:44 AM

The opacity of the avatars should only be reduced, or in your terms "washed out" ;), if the user is offline. According to how I hacked it.

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
The above is what gives it the faded "offline" affect, ofcourse this should already only be applied to those offline. :/

Boofo 08-30-2002 06:54 AM

Oh, ok. I didn't have a buddy online to check it. Sorry about that. :) Great hack! The wife loves it! ;)

Quote:

Originally posted by Velocd
The opacity of the avatars should only be reduced, or in your terms "washed out" ;), if the user is offline. According to how I hacked it.

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
The above is what gives it the faded "offline" affect, of course this should already only be applied to those offline. :/


Gohan 08-30-2002 07:11 AM

Quote:

Originally posted by Velocd
Ah, my bad ;)
I'll make that change right now.

Yea, I do use the away hack ^^;

What name Away hack? Where found i it?

Boofo 08-30-2002 07:16 AM

It's bira's away user hack. Just look up bira in the profile and it should be listed there. :)

Gohan 08-30-2002 07:33 AM

Avatar buddy for online

PHP Code:

  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 

change to:

PHP Code:

  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 


Gohan 08-30-2002 07:35 AM

Quote:

Originally posted by Boofo
It's bira's away user hack. Just look up bira in the profile and it should be listed there. :)
Thank ya, mate :D

Boofo 08-30-2002 07:35 AM

What does this do?

Quote:

Originally posted by Gohan
Avatar buddy for online

PHP Code:

  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 

change to:

PHP Code:

  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 



Boofo 08-30-2002 07:37 AM

Velocd, how do I make it so the title can have smilies in it for the buddy listing?

Gohan 08-30-2002 07:41 AM

Quote:

Originally posted by Boofo
What does this do?
Velocd create hack for offline user only but i like also for online user with their avatar

Boofo 08-30-2002 07:45 AM

Are you sure his doesn't already do this? The way I understood it is that it would show the avatar for online users as well, but not washed out (as I call it). :)

Quote:

Originally posted by Gohan


Velocd create hack for offline user only but i like also for online user with their avatar


Dean C 08-30-2002 08:21 AM

velocd - is there any chance that you could make it so that if the avatar is bigger than the column... it resizes it to fit?

- Mist

Boofo 08-30-2002 08:37 AM

Yes, there is a way. Thank you for reminding me how to do it. :) These are set at 64x64, but you can use whatever dimensions you need.

In the usercp.php file, replace this:

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" alt="Search for all posts by '.$username.'">';
With this:

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" alt="Search for all posts by '.$username.'" width="64" height="64">';
And replace this:

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
With this:

Code:

$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'" width="64" height="64">';

Mathieu 08-30-2002 08:43 AM

thanks for this hack a good job

Dean C 08-30-2002 03:10 PM

^ thanks boofo :D


All times are GMT. The time now is 04:49 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.01348 seconds
  • Memory Usage 1,853KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_php_printable
  • (15)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
  • (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