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
  #22  
Old 03-13-2008, 08:57 PM
shaynehammy shaynehammy is offline
 
Join Date: Jan 2006
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shaynehammy View Post
Anyway you can have the option to make the Staff title marquee?
Any answer to this?
Reply With Quote
  #23  
Old 03-14-2008, 08:54 AM
YdieresiS YdieresiS is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just enter <MARQUEE> and </MARQUEE> in the Staff Title HTML Markup fields and it will be marquee. It's that easy.
Reply With Quote
  #24  
Old 03-14-2008, 09:01 PM
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just noticed.. the background is in Mini stats but not in the avatar that is shown in your posts
Reply With Quote
  #25  
Old 03-14-2008, 09:09 PM
Hasann's Avatar
Hasann Hasann is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 897
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Derekclarke View Post
Just noticed.. the background is in Mini stats but not in the avatar that is shown in your posts
did you putting the code in postbit template? that doesn't work yet try the code put to the postbit_legacy template..
Reply With Quote
  #26  
Old 03-16-2008, 11:27 AM
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just checked and the Code is in the Postbit_legacy template.

I have just created a New Style sheet and integrated this hack only to it..

re-uploaded the product... and still it does not show in normal posts.
Reply With Quote
  #27  
Old 03-16-2008, 11:57 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet
Reply With Quote
  #28  
Old 03-16-2008, 12:11 PM
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just been playing, and if i edit the Postbit template, the text to replace is not the same, but if i replace the code for the avatar....

the image is displayed... but it messes everything up...

in the staff posts

check the report post buttons, and the post text box.

Reply With Quote
  #29  
Old 03-17-2008, 08:59 PM
TasariMerkezi TasariMerkezi is offline
 
Join Date: Nov 2007
Location: Turkey || TM
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you man
Reply With Quote
  #30  
Old 03-24-2008, 11:18 AM
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any Ideas?
Reply With Quote
  #31  
Old 03-25-2008, 08:58 AM
YdieresiS YdieresiS is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YdieresiS View Post
I love this modification. And I love the style of the avatars. But can you make a staff background avatar for moderators, because I want to give them a background with moderator in it.

Or is it possible to post the sourcefile of these images? (eg PSD or EPS).
Have you looked at my question?
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:09 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.16561 seconds
  • Memory Usage 2,336KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_quote
  • (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
  • (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