Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Staff Titles And Background Avatars Details »»
Staff Titles And Background Avatars
Version: 1.00, by Hasann Hasann is offline
Developer Last Online: Jun 2021 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.x Rating:
Released: 03-09-2008 Last Update: Never Installs: 49
DB Changes Uses Plugins Template Edits
 
No support by the author.

Personalised Staff Titles And Background Avatars (Per User Basis)
By HASANN Release Date: 10 March 2008
For distribution at vBulletin.org


WHAT DOES IT?

This will allow you to give your users (per user basis) a second title and background avatar only editable in the AdminCP > User Options

FEATURES
All features are per user basis
  • Enable Staff Title?: You can enable here users' staff title
  • Staff Title: You can add here users' second staff title
  • Staff Title HTML Markup: You can add here html markup html supported..
  • Enable Staff Background Avatar: You can enable here users' background avatar
  • Staff Background Avatar URL: You can add here for users' your own background avatar url


INSTALL INSTRUCTIONS

->Import pruduct.xml file via Product Manager

->Do Template Edits (4 edits)

(1. edit)
FIND IN (POSTBIT)_LEGACY TEMPLATE THIS CODE

HTML Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
AND ADD BELOW THIS CODE

HTML Code:
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
(2. edit)
FIND IN (POSTBIT)_LEGACY TEMPLATE THIS CODE

HTML Code:
<if condition="$show['avatar']">
				<div class="smallfont">
					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
				</div>
			</if>
AND REPLACE WITH THIS CODE

HTML Code:
<if condition="$show['avatar']">
<!-- check for staff -->
<if condition="$post['isstaffbackavatar']">
<if condition="$post['staffbackavatar']">
<!-- I am staff so do this -->
<div class="smallfont">&nbsp;<br />
   <table cellpadding="4" cellspacing="0" border="0" width="175" height="70" align="center" background="$post[staffbackavatar]" nowrap="nowrap" no-repeat>
      <tr>
         <td width="48%">&nbsp;</td>
<td><img src="$post[avatarurl]" height="60" width="60" align="center"></td>
      </tr>
   </table>
</div>
<else />
<!-- I am not staff so do this -->
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<else />
<!-- I am not staff so do this -->
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</if>
(3. edit)
FIND IN MEMBERINFO TEMPLATE THIS CODE

HTML Code:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>
<if condition="$prepared['usertitle']">
<h2>$prepared[usertitle]</h2>
</if>
AND ADD BELOW THIS CODE

HTML Code:
<if condition="$userinfo['isstaffrank']">
<div class="smallfont">
<if condition="$userinfo['staffrank_opentag']">$userinfo[staffrank_opentag]</if><if condition="$userinfo['staffrank']">$userinfo[staffrank]</if>
<if condition="$userinfo['staffrank_closetag']">$userinfo[staffrank_closetag]</if>
</div>
</if>
(4. edit)
FIND IN memberinfo_block_ministats TEMPLATE THIS CODE

HTML Code:
<if condition="$prepared['avatarurl']">
		<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td>
		</if>
AND REPLACE WITH THIS CODE

HTML Code:
<if condition="$prepared['avatarurl']">
<!-- check for staff -->
<if condition="$userinfo['staffbackavatar']">
<!-- I am staff so do this -->
<if condition="$userinfo['isstaffbackavatar']">
<tr valign="top">
   <table cellpadding="4" cellspacing="0" border="0" width="175" height="70" align="center" background="$userinfo[staffbackavatar]" nowrap="nowrap" no-repeat>
      <tr>
         <td width="48%">&nbsp;</td>
<td><img src="$userinfo[avatarurl]" height="60" width="60" align="center"></td>
      </tr>
   </table>
</tr>
<else />
<!-- I am not staff so do this -->
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td>
</if>
<else />
<!-- I am not staff so do this -->
<td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td>
</if>
</if>
If you need one staff background avatar:

NOTE: Staff Background Avatars are automatically resized to 175x70 to fit the badge correctly, so nothing needs to be changed in the templates.

NOTE: Staff Avatars are automatically resized to 60x60 to fit the badge correctly, so nothing needs to be changed in the templates.

You are done, please click install if you use this.

Enjoy It

Supporters / CoAuthors

Show Your Support

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

Comments
  #42  
Old 05-04-2008, 05:42 PM
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need this to work with postbit, not postbit_legacy please
Reply With Quote
  #43  
Old 05-05-2008, 03:53 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a re-do of this mod:
https://vborg.vbsupport.ru/showthread.php?t=122623

Did you get their permission to recode it, or to use the picture? After all, you ARE just using a link Allan posted 2 years ago: https://vborg.vbsupport.ru/showpost....36&postcount=2
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 07:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03604 seconds
  • Memory Usage 2,247KB
  • Queries Executed 18 (?)
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
  • (8)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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