Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Image ranks in postbit Details »»
Image ranks in postbit
Version: 1.00, by kentona kentona is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.4 Rating:
Released: 11-26-2008 Last Update: Never Installs: 8
Template Edits
Translations  
No support by the author.

Hi everyone,

A while ago i noticed that vbulletin doesn't have it's own rank system so i decided to create one myself. This hack will show you how to add image ranks to your postbit.

Installing:

- In your admin cp go to styles and templates.
- Choose your skin and go edit template.
- Scroll down to postbit template and either click on postbit or postbit legacy. It doesn't matter which one you choose.
- Search for this bit of code,

Code:
<div id="postmenu_$post[postid]">
				<if condition="$show['profile']">
				<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
				<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
				<else />
				$post[musername]
				</if>
			</div>
Below that add this code. You will need to change the displaygroupid to whatever number yours is which can be found in usergroups. Upload the image to anything such as photoshack, imageshack etc.


If you want to add more just copy and paste the text and don't forget to add an extra </if> at the end.

Code:
<if condition="($post[displaygroupid]== 6)">
<img src="http://www.photoshack.com/albums/userpics/16875/admin.gif" 
<else />
<if condition="($post[displaygroupid]== 11)">
<img src="http://www.photoshack.com/albums/userpics/16875/premium.gif" 
<else />
<if condition="($post[displaygroupid]== 7)">
<img src="http://www.photoshack.com/albums/userpics/16875/moderator.gif" 
<else />
<if condition="($post[displaygroupid]== 5)">
<img src="http://www.photoshack.com/albums/userpics/16875/gmod.gif" 
<else />
$post[usertitle]
</if>
</if>
</if>
</if>
- After that click save and view any topic. You will now notice your images appears just under the usernames.

This hack works with all versions of vbulletin. If you have any questions just ask and i will help you.

~kentona~

Show Your Support

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

Comments
  #2  
Old 11-27-2008, 07:31 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
vbulletin doesn't have it's own rank system
But it does, admincp -> User Ranks
Reply With Quote
  #3  
Old 11-27-2008, 07:43 AM
jambo_1969 jambo_1969 is offline
 
Join Date: May 2007
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe
Reply With Quote
  #4  
Old 11-30-2008, 03:57 AM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just.... wow.
Reply With Quote
  #5  
Old 11-30-2008, 09:36 AM
AuroraStorm's Avatar
AuroraStorm AuroraStorm is offline
 
Join Date: Nov 2006
Location: ATHell
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*slowly backing out of here as to not cause WW9*
Reply With Quote
  #6  
Old 11-30-2008, 11:13 AM
J105C J105C is offline
 
Join Date: Mar 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is this better than VB's? :O
Reply With Quote
  #7  
Old 02-14-2009, 07:20 AM
dxlwebs dxlwebs is offline
 
Join Date: Jun 2008
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great code !

i did change it a bit though, before it would show up two titles now add this code as instructed above!

Code:
<if condition="($post[displaygroupid]== 6)">
<img src="http://www.photoshack.com/albums/userpics/16875/admin.gif" 
<else />
<if condition="($post[displaygroupid]== 11)">
<img src="http://www.photoshack.com/albums/userpics/16875/premium.gif" 
<else />
<if condition="($post[displaygroupid]== 7)">
<img src="http://www.photoshack.com/albums/userpics/16875/moderator.gif" 
<else />
<if condition="($post[displaygroupid]== 5)">
<img src="http://www.photoshack.com/albums/userpics/16875/gmod.gif" 
<else />
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
</if>
</if>
</if>
</if>
and then delete this code found under the new code

Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
it will be found a couple of spaces below then you will only get one user title and if your a admin it will only show the image!
Reply With Quote
  #8  
Old 02-14-2009, 07:58 AM
sunnylikbeckham's Avatar
sunnylikbeckham sunnylikbeckham is offline
 
Join Date: Feb 2008
Location: India
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

coool
Reply With Quote
  #9  
Old 02-14-2009, 03:57 PM
EagleNick's Avatar
EagleNick EagleNick is offline
 
Join Date: Dec 2007
Location: Florida
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm... what the heck?
Reply With Quote
  #10  
Old 04-12-2011, 01:38 PM
MarceloS MarceloS is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know if this works on vb4? Or a similar mod to do that?
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 01:28 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.04364 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete