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)
-   -   Edited by usertitle hack (https://vborg.vbsupport.ru/showthread.php?t=46671)

LOD-squa 12-14-2002 06:44 PM

If you can pm me your function.php I'll see whats wrong.

Chris M 12-14-2002 09:26 PM

Sounds good:)

Satan

Bison 12-26-2002 12:06 AM

Nice addition! :)

FlyingDutchman 04-03-2003 04:30 PM

wouldn't this code (in functions.php) be better?
(also includes the no registered users fix - in fact, only Admins & (Super) Mods)
[high]NO EXTRA QUERIES[/high] - prevent them in any way possible :D
and forget about the global $DB_Site too!!! :D


PHP Code:

        if ($edituser[usergroupid]==6) {
            
$rank=" (Administrator)";
        } elseif (
$edituser[usergroupid]==5) {
            
$rank=" (Super Moderator)";
        } elseif (
$edituser[usergroupid]==7) {
            
$rank=" (Moderator)";
        } else {
            
$rank="";
        } 


Bison 04-04-2003 12:43 AM

I agree ... and it works!

Kudos FlyingDutchman! :D

FlyingDutchman 04-04-2003 03:53 AM

i just thought of this last night, thought it was pretty neat so i made it this morning :D
this piece of code will show the user's custom title (if not set, the default user group title):

PHP Code:

$temp = array("5""6""7");
if (
in_array("$edituser[usergroupid]"$temp)) {
    
$rank=" ($edituser[usertitle])";
} else {
    
$rank="";



you can add as much usergroups to the $temp variable as you want, seperate them with a , and put them in "-s, see the code for example ;) (5, 6 and 7 are Admins & (Super) Mods)


All times are GMT. The time now is 01:37 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.01031 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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