vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Staff Icon in Postbit (https://vborg.vbsupport.ru/showthread.php?t=74403)

AnhTuanCool 01-14-2005 10:00 PM

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

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

Quote:

Originally Posted by Oblivion Knight
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

Quote:

Originally Posted by sabret00the
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.

HTML Code:

<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

Quote:

Originally Posted by C.Birch
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

Quote:

Originally Posted by bigcurt8998
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

Quote:

Originally Posted by AnhTuanCOol
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

Quote:

Originally Posted by AnhTuanCool
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

Quote:

Originally Posted by AnhTuanCool
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

Quote:

Originally Posted by AnhTuanCool
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

Quote:

Originally Posted by C.Birch
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

Quote:

Originally Posted by trackpads
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

Quote:

Originally Posted by AnhTuanCool
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

Quote:

Originally Posted by djjeffa
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:
PHP Code:

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

<div><img src="images/ranks/iconadmin.jpg" alt="$post[usergrouptitle]" border="0"></div>
Template postbit_iconmod:
Code:

<div><img src="images/ranks/iconmod.jpg" alt="$post[usergrouptitle]" border="0"></div>
Template postbit_iconstaff:
Code:

<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/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
  • Page Generation 0.02456 seconds
  • Memory Usage 1,836KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (12)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