vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Finished the Multiple Ranks Hack (https://vborg.vbsupport.ru/showthread.php?t=27167)

LoB 10-18-2001 04:03 PM

heres the attatched multirace rank hack installed..
get rid of the default set if you like, they were just for my board.

LoB 10-18-2001 07:21 PM

don't all thank me at once :D

Bitmap 10-18-2001 07:34 PM

well ... thank you :)
it's great you postet it ... hope i can get it to work.

Martyjp 10-18-2001 08:13 PM

You are a star thank you :D

Dunny 10-19-2001 11:47 AM

anyone got a demo of it in action?

Shakron 10-19-2001 11:49 AM

Well, I acctually said "thank you" yesterday per ICQ but here .. just for you ... Thank You! :D

... now we just need to get it working .. and that's the problem ... *sigh* ... :(

LoB 10-19-2001 03:41 PM

Quote:

Originally posted by Dunny
anyone got a demo of it in action?
check my first post or go here: http://stgn.ugforums.com/vb/

Martyjp 10-20-2001 12:41 PM

Hope you dont mind, I have made a slight change to the code ;)

in the changes to functions.php

change

PHP Code:

 $rankpip "<img src=$rank[rank_graphic]>";

$post[usertitle]="$post[usertitle]<br>$rankpip"

//END MULTI RANK HACK 

to

PHP Code:

$rankpip "<img src=$rank[rank_graphic]>";
$rankid "$rank[rank_name]";

$post[usertitle]="$post[usertitle]$rankid<br>$rankpip"

//END MULTI RANK HACK 

Now go into the vb control panel and remove all user titles, and then you need to edit any user groups that have their own titles, such as moderators and administrators, what you will need to do here is stick a <BR> on the end. like so

http://www.forums4games.com/example.jpg

The original hack will only display the pips and will keep the user titles that vb uses as standard, the above makes a slight change so that it displays the rank name

It may be a sloppy way of doing it, I am not sure but it does the job, what I would rather have it do is display administrator titles instead of the rank, but I havent worked that bit out yet ;)

Thanks again LoB :D

LoB 10-20-2001 01:05 PM

np, i was eventually going to get around to that, but well... im lazy :D

edit - you might wanna put a <br> after $post[usertitle] because administrator/senior member whatever, ends up on the same line

Martyjp 10-20-2001 09:17 PM

Reason why I did it the way I did :)

I have removed all user titles from my board, so for the majority of members $post[usertitle] will be blank, if you put a <BR> after it then there will be a blank line under the username, to get round this I have added <BR> after the titles in edit user groups. This would also have to be done on any custom user titles.

Since I dont allow people to change their titles on my board the way I did it worked best, but with boards that do you are correct in saying <BR> needs top be added :)

PHP Code:

$rankpip "<img src=$rank[rank_graphic]>";
$rankid "$rank[rank_name]";

$post[usertitle]="$post[usertitle]<BR>$rankid<br>$rankpip"

//END MULTI RANK HACK 



All times are GMT. The time now is 07:52 AM.

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.02455 seconds
  • Memory Usage 1,743KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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