PDA

View Full Version : Staff Icon in Postbit


AnhTuanCool
01-14-2005, 10:00 PM
Fully tested on vb 3.0.4, should work on 3.0.5
Staff Icon in Postbit
--------------------------------------
by AnhTuanCool

What this hack does? Basically, this hack adds a small icon in postbit below the avatar for staff(selected usergroup) with alt as their usergroup title. See attachment for detail.

NOTE: If you want a different icon for your forum then just request it right here, otherwise you can use your own staff icon. When requesting please remember to leave your forum url and text you want to be on the icon. I'm not very free so just request and if I could then I will design it for ya as soon as I can. Thanks,

Update:
I've attached the source file and the font of the staff icon so you guys can make your own easier than from scratch. Have fun ;)


Click INSTALL if you find this hack userful, thanks ;)

yoyoyoyo
01-15-2005, 05:02 PM
<i>***clicks install***</i>

mcyates
01-15-2005, 05:44 PM
nice one *installs*

Oblivion Knight
01-15-2005, 05:46 PM
I'm fairly sure that this can be achieved with just a template mod, but thanks for sharing your work.. :)

sabret00the
01-15-2005, 05:53 PM
I'm fairly sure that this can be achieved with just a template mod, but thanks for sharing your work.. :)
you don't even need that, but congratulations, thanks :)

mcyates
01-15-2005, 06:04 PM
oh and it DOES work on 3.0.5 as i'm running it.

kall
01-15-2005, 06:56 PM
you don't even need that, but congratulations, thanks :)
Indeed, I have Staff members with a title, using the built-in Usergroup Titles function...tho I suppose with this hack you could have two icons...

mikexxx
01-15-2005, 07:18 PM
I have change one line, now the image is a link to the showgroups page.

<div><a href="showgroups.php?"><img src="images/ranks/iconstaff.jpg" alt="$post[usergrouptitle]" border="0"><a></div>

Ghostsuit
01-15-2005, 07:36 PM
Why not just use "User Ranks"? No need to hack or does this do something I'm not aware of?

C.Birch
01-15-2005, 08:19 PM
abit of a pointless hack taking in mind it can already be done with a out of the box vb3 install.

MindTrix
01-16-2005, 06:44 AM
abit of a pointless hack taking in mind it can already be done with a out of the box vb3 install.
If the hack benefits at least one person then i guess its not useless. So good job and thanks for sharing it

bigcurt
01-17-2005, 05:30 AM
I like it..can someone make me a staff icon that says Keyhunt staff??

AnhTuanCool
01-18-2005, 12:02 AM
I like it..can someone make me a staff icon that says Keyhunt staff??

Here you go, hope you like it ;)

mOdEtWo
01-18-2005, 01:35 AM
Here you go, hope you like it ;)
What kind of font is that? I'd like to make some of my own. :)

matd62
01-18-2005, 04:10 AM
looks sweet....could i get an icon that says GOLDENAGE STAFF thanks

-=Sniper=-
01-18-2005, 05:16 PM
could you post the .psd file for it? I want one saying "HWF Staff"?

thx

SnitchSeeker
01-18-2005, 05:47 PM
You know what would be cool, if it'd change the post's background. Like, say the normal scheme is grey, staff posts would have blue as background. Or maybe a background image. But thanks for the hack, appreciated! :)

AnhTuanCool
01-18-2005, 11:54 PM
I've attached the source file and the font of the staff icon so you guys can make your own easier than from scratch. Have fun ;)

mOdEtWo
01-19-2005, 05:20 PM
I've attached the source file and the font of the staff icon so you guys can make your own easier than from scratch. Have fun ;)
Thanks.

It cannot be the right font tho. I installed it, and Photoshop complains about the font used in the layer is missing. I've also tried to use the one you attached, and it doesn't seem to be the right one.

AnhTuanCool
01-20-2005, 08:50 PM
Did you put the font in the right place (\WINDOWS\Fonts\)? Or is it me zipped the wrong one? :D

mOdEtWo
01-20-2005, 08:53 PM
Did you put the font in the right place (\WINDOWS\Fonts\)? Or is it me zipped the wrong one? :D
Yes sir, I did. I even tried it out in Photoshop, and it did not look like the one you used. ;)

bigcurt
01-20-2005, 10:03 PM
Thanks for the icon man

/me clicks install

AnhTuanCool
01-22-2005, 04:01 AM
I've uploaded the zip file with the correct font for the icon. Have fun ;)

trackpads
01-22-2005, 12:33 PM
I've attached the source file and the font of the staff icon so you guys can make your own easier than from scratch. Have fun ;)
Excellent work!! thanks!!!!

trackpads
01-22-2005, 12:39 PM
abit of a pointless hack taking in mind it can already be done with a out of the box vb3 install.
Actually you cannot. If you have a current ranks system in place or titles then you would have to modify those in order to designate staff. Also, the VB system of titles will not allow images.

BarHopper
01-22-2005, 01:37 PM
Please could you make an image:

Game-realms Staff

thankyou.

mOdEtWo
01-22-2005, 04:02 PM
Actually you cannot. If you have a current ranks system in place or titles then you would have to modify those in order to designate staff. Also, the VB system of titles will not allow images.
You can use conditionals tho.

BlasterT3
01-25-2005, 09:45 PM
I found a small problem or just something to confuse n00bs

Add New Template
Title: postbit_iconstaff
Template:
==================================
<div><img src="images/ranks/iconstaff.jpg" alt="$post[usergrouptitle]" border="0"></div>
==================================

the template calls for "iconstaff.jpg" but the .psd file is named "stafficon.psd" so anyone making there own icon would prob name it "stafficon.jpg" and upload it. that would make the template display alt="$post[usergrouptitle]"

i hope this proves useful for someone

AnhTuanCool
01-25-2005, 09:54 PM
The PSD file is dedicated designed for Photoshop use, not a web graphic or something like that. You would have to use Photoshop to open then PSD file, modify as your need and then Export OR Save As it with JPG file type, then the outcome file will be iconstaff.jpg. ;) Although I don't think psd will be shown as a webgraphic :P. So what I'm saying is using the source code which is psd type to export your own one using photoshop or other graphic software can read psd. ;)

MikaK
01-31-2005, 10:39 AM
Would it be difficult to give the users an option whether to show this icon or not. I am planning to define a set of user groups as pro level members, even thogh the members aren't necessarily staff memebrs.

While some of these people would probably love to show off a tad, some others might not. So... A chkbox in usercp possible... or as anything is possible with vB :D... Dfficult?

Cheers,
-Mika

AnhTuanCool
01-31-2005, 08:53 PM
Make a new custom profile field with Single-Selection Radio Buttons as field type.
It will display an option in Edit Option section in UserCP(take a look at the attachment) and $post[field5](5 as your field id) with contain the user's value...if you want it more detail, just ask ;)

MR-2ZZ
02-05-2005, 09:17 AM
<a href="http://www.driftchat.com/forum/showthread.php?p=190#post190" target="_blank">http://www.driftchat.com/forum/showt...?p=190#post190</a>

All I did was added user ranks. As stated above with a simple template mod you can just add a single line text, use HTML, put the phrase in your template and viola!

Allan
02-05-2005, 09:34 AM
Thank You :)

Goog job !

djjeffa
02-20-2005, 07:36 PM
this is pretty cool i just set it up to work with my admins but im tring to set it for dirent pic for diffrent groups can anyone help me cause im using the rank par for post count bar the more they post the father it goes.

MikaK
02-27-2005, 08:12 AM
Make a new custom profile field with Single-Selection Radio Buttons as field type.
It will display an option in Edit Option section in UserCP(take a look at the attachment) and $post[field5](5 as your field id) with contain the user's value...if you want it more detail, just ask ;)

Thanks AnhTuanCool. Where in your code should I place the $post[field16] as mine is set currently for field id:16?

Regards,
-Mika

Bulleh
03-01-2005, 09:58 PM
im getting errors from the psd....strange
*ignore above*

Got Hack Working
*INSTALLED*

djjeffa
03-12-2005, 08:51 PM
this is pretty cool i just set it up to work with my admins but im tring to set it for diffrent pic for diffrent groups can anyone help me cause im using the rank par for post count bar the more they post the father it goes.

bump?

Rampag33
03-14-2005, 03:52 PM
Install, thx, work with no problem.

be good to have it diffrent pics for diffrent ranks tho.

bkaul
03-16-2005, 02:36 AM
Not hard to do - create separate icons, and separate templates for each group - here, we'll have admins, mods, and other staff:

In functions_showthread.php, add the following instead of just what's in the instructions:
// Icon Staff Hack by AnhTuanCool
// modified by bkaul for multiple icons
// get icon staff represent img and titles
$adminusergroupids = array('6');
$modusergroupids = array('5','7');
$staffusergroupids = array('30'); // your array of staff usergroupid
if (in_array($post['usergroupid'], $adminusergroupids))
{
eval('$post[\'iconstaff\'] .= "' . fetch_template('postbit_iconadmin'). '";');
}
else
{
if (in_array($post['usergroupid'], $modusergroupids))
{
eval('$post[\'iconstaff\'] .= "' .fetch_template('postbit_iconmod') . '";');
}
else
{
if (in_array($post['usergroupid'],$staffusergroupids))
{
eval('$post[\'iconstaff\'] .= "'. fetch_template('postbit_iconstaff') . '";');
}
}
}
Template postbit_iconadmin:
<div><img src="images/ranks/iconadmin.jpg" alt="$post[usergrouptitle]" border="0"></div>
Template postbit_iconmod:
<div><img src="images/ranks/iconmod.jpg" alt="$post[usergrouptitle]" border="0"></div>
Template postbit_iconstaff:
<div><img src="images/ranks/iconstaff.jpg" alt="$post[usergrouptitle]" border="0"></div>

Where the files iconadmin.jpg iconmod.jpg and iconstaff.jpg are thedesired icons for those groups, and are in the images/ranks directory.

Replace '30' with whatever number (or numbers) identify the usergroupsyou want as "staff" - obviously, this is a scalable change: create asmany or as few icon/template pairs as you'd like, and set up the ifstatement in the php file to match.

bkaul
03-16-2005, 02:45 AM
The icons I'm using in that modification, for reference:

http://boards.briankaul.com/boards/bkbeer/ranks/iconadmin.jpg

http://boards.briankaul.com/boards/bkbeer/ranks/iconmod.jpg

http://boards.briankaul.com/boards/bkbeer/ranks/iconstaff.jpg (Actually this one's currently not assigned to any real groups right now)

mekro
04-04-2005, 08:58 AM
Hi

Is there a way to make this work also with members that are part of another group, for example i have normal registered members and some are part of the gfx team (additional group) is there a way to show the icon for those registered members that are part of the gfx team?

Thanks
Kirk

ramprage
04-06-2005, 06:28 PM
nice work, working great on 3.07
Cheers

ged
05-02-2005, 07:48 AM
Very nice. :)

lovelyman_x
05-03-2005, 12:35 AM
AnhTuan Cool , Are u vietnamese , can u contact me , my Y!M is lovelyman_x . I have some questions ! Can u ? Thanks for sharing !

MissKalunji
05-04-2005, 10:31 AM
okay here i want to know if anybody would know.....i have this hack installed but what i want know is how can i make this hack example : the moderator (it shows moderator) administrator...administrator..... etc etc does aNyone knows how i can do that?

sully02
05-18-2005, 02:06 AM
I'm trying to get this to work on the member page, but nothing seems to be working. Would anybody else be willing to take a crack at figuring it out?

MissKalunji
05-22-2005, 09:40 AM
Does anyone knows if this will work on 3.5.0? thx

geo101
06-04-2005, 10:44 PM
hey please help i have installed this into my forum vb version 3.0.7

and it adds a new title but no icon for staff members and it messed up all nonstaff jus regular members theres has crazy text next to it

vbmenu_register("postmenu_32", true);
Junior Member

Join Date: Jun 2005
Posts: 1

thats wut non staff members say sum1 please help

if you want my sn in : detroit iden

and my website is www.detroitiden.com/fourms

thank you for help in advance

mholtum
06-04-2005, 11:51 PM
<a href="http://kalsey.com/tools/buttonmaker/" target="_blank">http://kalsey.com/tools/buttonmaker/</a>

Here is a cool & easy button maker..

geo101
06-05-2005, 04:03 AM
that is very cool but i still dont know what to do
please help

here is what is showing instead of there username

vbmenu_register("postmenu_68", true);

Snake
06-19-2005, 10:22 AM
This is just a replica of the ranks system in vBulletin so why make this hack I wonder?

aranthorn
06-24-2005, 02:43 PM
Well, I use it to define staff while using ranks to define activity levels. Your point is a good one, but there are some of us that basically would like to have 2 definitions. A little eye candy for users and it's easier for me to tell when to promote someone to staff.

Snake
06-24-2005, 02:51 PM
Oh I see. That activity level you're talking about, is that a hack or a feature in vB because I've never heard about it.

Caveman2k2
07-12-2005, 12:17 AM
/me clicks Install

Thanks for a great hack!

COBRAws
07-21-2005, 05:52 AM
i need a yellowgreen and white logo saying:

NightClubber MOD
NightClubber ADMIN
NightClubber SMOD

thanks

m0nde
07-21-2005, 02:19 PM
i need a yellowgreen and white logo saying:

NightClubber MOD
NightClubber ADMIN
NightClubber SMOD

thanksum, why not make them using the files he's provided?

He's been kind enough to provide the font and the photoshop file as well with layers.

- Sid

kakarot720
07-21-2005, 11:24 PM
how do I denote a user as staff? I've created a user group entitled "alt" and assigned users to it, but the icon doesn't show.

m0nde
07-24-2005, 09:48 AM
how do I denote a user as staff? I've created a user group entitled "alt" and assigned users to it, but the icon doesn't show.You'll have to add the group's ID to the part of the showthread.php file that checks whether to display that group's id or not.

If you've added this hack, open your showthread.php file and
FIND:
// Icon Staff Hack by AnhTuanCool
// get icon staff represent img and titles
$staffusergroupids = array('5', '6', '7'); // your array of staff usergroupid
if (in_array($post['usergroupid'], $staffusergroupids))
{
eval('$post[\'iconstaff\'] .= "' . fetch_template('postbit_iconstaff') . '";');
}On the line which specifies $staffusergroupids, add your "alt" group's id in the same format as shown.

- Sid

COBRAws
07-25-2005, 01:15 PM
um, why not make them using the files he's provided?

He's been kind enough to provide the font and the photoshop file as well with layers.

- Sid
yep, ok sorry. the thing is i just have MS Paint :nervous: , but ill try to do it.

stan111
09-18-2005, 11:09 AM
kool hack
thanks a lot
installed

Snake
10-15-2005, 08:21 PM
Will this work on 3.5 Gold I wonder? :)

davidw
10-17-2005, 02:36 PM
No, I've tried :P

I'm sure there are some modifications that can be made to make it work though.

Stone Cold 3:16
10-31-2005, 01:47 AM
Ill go ahead and install :p

Snake
10-31-2005, 06:46 PM
No, I've tried :P

I'm sure there are some modifications that can be made to make it work though.

Anyone please?

MissKalunji
11-04-2005, 05:44 PM
Will this work on 3.5 Gold I wonder? :)

n e one?

Snake
11-04-2005, 07:42 PM
*sighs*

I guess no one is bothered to reply back to us. :(