Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Staff Icon in Postbit Details »»
Staff Icon in Postbit
Version: 1.00, by AnhTuanCool AnhTuanCool is offline
Developer Last Online: Sep 2006 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-14-2005 Last Update: Never Installs: 88
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-31-2005, 08:53 PM
AnhTuanCool's Avatar
AnhTuanCool AnhTuanCool is offline
 
Join Date: Jul 2004
Location: Albuquerque
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #33  
Old 02-05-2005, 09:17 AM
MR-2ZZ MR-2ZZ is offline
 
Join Date: Nov 2004
Location: Belmont Shore, CA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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!
Reply With Quote
  #34  
Old 02-05-2005, 09:34 AM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank You

Goog job !
Reply With Quote
  #35  
Old 02-20-2005, 07:36 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #36  
Old 02-27-2005, 08:12 AM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #37  
Old 03-01-2005, 09:58 PM
Bulleh Bulleh is offline
 
Join Date: May 2003
Location: Leicester
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im getting errors from the psd....strange
*ignore above*

Got Hack Working
*INSTALLED*
Reply With Quote
  #38  
Old 03-12-2005, 08:51 PM
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 03-14-2005, 03:52 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install, thx, work with no problem.

be good to have it diffrent pics for diffrent ranks tho.
Reply With Quote
  #40  
Old 03-16-2005, 02:36 AM
bkaul bkaul is offline
 
Join Date: Jan 2005
Location: Saint Louis, Missouri
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 03-16-2005, 02:45 AM
bkaul bkaul is offline
 
Join Date: Jan 2005
Location: Saint Louis, Missouri
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The icons I'm using in that modification, for reference:





(Actually this one's currently not assigned to any real groups right now)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:22 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.08730 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete