PDA

View Full Version : [mini-hack] Stylin' Buddy List


Velocd
08-28-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/usercp.php) vBulletin UserCp buddy list, look like this one (http://www.animesystem.com/temp/buddylist.gif).

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

Goldknight
08-29-2002, 10:02 PM
Nice hack :cool:

* Goldknight install

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
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

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
$sql="SELECT userid,username,invisible,lastactivity,lastvisit

your usercp.php
$sql="SELECT userid,username,invisible,away,lastactivity,lastvi sit

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
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:

,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.

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

,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?

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

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
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:
<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:

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?

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:
<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.


$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! ;)

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.


$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
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


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:


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
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?

Originally posted by Gohan
Avatar buddy for online


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:


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

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:

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

With this:

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

And replace this:

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

With this:

$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

Velocd
08-30-2002, 05:08 PM
Originally posted by Boofo
Velocd, how do I make it so the title can have smilies in it for the buddy listing?

I'm not too sure what you mean..

Boofo
08-30-2002, 06:06 PM
Sorry about that. I figured it out. I just added this:

$buddy[usertitle]=bbcodeparse($buddy[usertitle]);

After this:

$username = $buddy['username'];

Originally posted by Velocd


I'm not too sure what you mean..

Chris M
08-30-2002, 06:59 PM
Very Nice:)

*installs*

Satan

Latham99
08-30-2002, 07:12 PM
Love it! *installed**

PsYc
08-31-2002, 04:32 PM
how about marking user who are away?

got something for this?


awesome hack :)

* PsYc installs

ULTIMATESSJ
09-01-2002, 01:44 AM
heh very nice indeed

/me clicks install

MarkL
09-01-2002, 06:57 AM
Great hack! I love it!

Kars10
09-01-2002, 07:14 AM
/me loves it! Install!

rapsearch
09-01-2002, 06:00 PM
Dont you just love the small details ;)... those make a site!

thanks

ZiRu$
09-02-2002, 08:01 PM
very nice.....will install

Velocd
09-07-2002, 04:25 AM
Thanks for the compliments everyone, glad you enjoyed this small addition. I'll try to create more mini hacks like this in the near future as well. ;)

Dynamic One
11-10-2002, 06:27 PM
Thanks for this nice looking hack m8.

MotownLF
11-23-2002, 03:48 PM
Hmm, why does it looked greyed over? Or is it the colors of my forum that causes this?

Example:

Bison
11-23-2002, 05:29 PM
I like it ... [install]

To the fella above ... the picture is "greyed out" because that member isn't online! :)

MotownLF
11-24-2002, 12:44 AM
Originally posted by Rolodex
I like it ... [install]

To the fella above ... the picture is "greyed out" because that member isn't online! :)

Actually, they were online. If you see above the names, it says, ONLINE.

So why is this greyed over?

Boofo
11-24-2002, 01:18 AM
If you added the code to this hack from Post #31, then that is why it is doing it. If you did not add that code, then I'm not sure why this is happening.

MotownLF
11-24-2002, 03:06 AM
Yeah I only used the zip at the top of the post. Hmm...Maybe he added that offline code later?

Herman
12-23-2002, 04:36 PM
Nice Job Velocd

/me clickies teh install button

Schorsch
01-22-2003, 01:05 AM
/me clicks install...

thanks Velocd, great little hack!

underburn
01-22-2003, 01:52 AM
Looks Very Attractive ;)

Awesome Job.. *Installs*