![]() |
Staff Icon in Postbit
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 ;) |
<i>***clicks install***</i>
|
nice one *installs*
|
I'm fairly sure that this can be achieved with just a template mod, but thanks for sharing your work.. :)
|
Quote:
|
oh and it DOES work on 3.0.5 as i'm running it.
|
Quote:
|
I have change one line, now the image is a link to the showgroups page.
HTML Code:
<div><a href="showgroups.php?"><img src="images/ranks/iconstaff.jpg" alt="$post[usergrouptitle]" border="0"><a></div> |
Why not just use "User Ranks"? No need to hack or does this do something I'm not aware of?
|
abit of a pointless hack taking in mind it can already be done with a out of the box vb3 install.
|
Quote:
|
I like it..can someone make me a staff icon that says Keyhunt staff??
|
Quote:
|
Quote:
|
looks sweet....could i get an icon that says GOLDENAGE STAFF thanks
|
could you post the .psd file for it? I want one saying "HWF Staff"?
thx |
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! :)
|
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 ;)
|
Quote:
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. |
Did you put the font in the right place (\WINDOWS\Fonts\)? Or is it me zipped the wrong one? :D
|
Quote:
|
Thanks for the icon man
/me clicks install |
I've uploaded the zip file with the correct font for the icon. Have fun ;)
|
Quote:
|
Quote:
|
Please could you make an image:
Game-realms Staff thankyou. |
Quote:
|
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 |
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. ;)
|
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 |
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 ;) |
<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! |
Thank You :)
Goog job ! |
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.
|
Quote:
Regards, -Mika |
im getting errors from the psd....strange
*ignore above* Got Hack Working *INSTALLED* |
Quote:
|
Install, thx, work with no problem.
be good to have it diffrent pics for diffrent ranks tho. |
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: PHP Code:
Code:
<div><img src="images/ranks/iconadmin.jpg" alt="$post[usergrouptitle]" border="0"></div> Code:
<div><img src="images/ranks/iconmod.jpg" alt="$post[usergrouptitle]" border="0"></div> Code:
<div><img src="images/ranks/iconstaff.jpg" alt="$post[usergrouptitle]" border="0"></div> 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. |
The icons I'm using in that modification, for reference:
http://boards.briankaul.com/boards/b.../iconadmin.jpg http://boards.briankaul.com/boards/b...ks/iconmod.jpg http://boards.briankaul.com/boards/b.../iconstaff.jpg (Actually this one's currently not assigned to any real groups right now) |
All times are GMT. The time now is 04:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|