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)
-   -   Users Browsing Formatting (https://vborg.vbsupport.ru/showthread.php?t=37914)

inetd 05-03-2002 04:06 PM

ohhh!
I'm very idiot :( :D
I'm find EXTRAS in new Instructions :) :lol:

N9ne 06-30-2002 07:44 AM

How can I make it so usergroup 8 on my board is in bold and italics too?

Chris M 06-30-2002 01:27 PM

Just a Question...

When I try and do it for "Users Browsing This Thread", I get a parse error...

Why?

Satan

lifesourcerec 06-30-2002 01:56 PM

heh.. how do you find out the usergroupid? :) Haven't messed with it in a while.

Chris M 06-30-2002 03:01 PM

Well...

Hover over the Usergroup in "Modify" section of "User Groups"...

The number at the end of the link is the usegroupid...

Usually :

Guest = 0
Not Logged in = 1
Registered = 2
Super Mod = 5
Mod = 7
Admin = 6

Satan

N9ne 06-30-2002 06:09 PM

bump

Hwulex 06-30-2002 06:42 PM

Quote:

Originally posted by Tha Rock
How can I make it so usergroup 8 on my board is in bold and italics too?
To use it with usergroup 8 as well, then use the following Replace Code instead of the one from the instructions file

Around line 697
Find the code:

PHP Code:

    if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
        
$userid $forumuser['userid'];
        
$username $forumuser['username']; 

Replace With:
PHP Code:

// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=-
    
if ($forumuser['usergroupid'] == 6) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 8) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 7) {
        
$username "<b>$forumuser[username]</b>";
    } elseif (
$forumuser['usergroupid'] == 5) {
        
$username "<b><u>$forumuser[username]</u></b>";
    } else {
        
$username $forumuser[username];
    }
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=- 

I've set the formatting of Usergroup 8 to Bold and Italic as requested, but can be changed to whatever you want :)

Use this for both replacement sets.

HTH

Hwulex

Hwulex 06-30-2002 06:44 PM

Quote:

Originally posted by hellsatan
Just a Question...

When I try and do it for "Users Browsing This Thread", I get a parse error...

Why?

Satan

Don't honestly know mate, have you got any other hacks installed? And did you copy+paste all code exact from the instructions.txt file?
If you're still having problems with it you could send it over to me [Email Me] and I'll take a look at it for you :)

Regards.

H

Chris M 06-30-2002 06:47 PM

I'll see if I can get it working again, but I replaced it with the pre-your hacked version...

If it doesnt work this time, I'll email it to you...

Satan

N9ne 06-30-2002 06:56 PM

Quote:

Originally posted by Hwulex

To use it with usergroup 8 as well, then use the following Replace Code instead of the one from the instructions file

Around line 697
Find the code:

PHP Code:

    if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
        
$userid $forumuser['userid'];
        
$username $forumuser['username']; 

Replace With:
PHP Code:

// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=-
    
if ($forumuser['usergroupid'] == 6) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 8) {
        
$username "<b><i>$forumuser[username]</i></b>";
    } elseif (
$forumuser['usergroupid'] == 7) {
        
$username "<b>$forumuser[username]</b>";
    } elseif (
$forumuser['usergroupid'] == 5) {
        
$username "<b><u>$forumuser[username]</u></b>";
    } else {
        
$username $forumuser[username];
    }
// -=-=-=-=-=-=-=-=-=-=-=- Bold Mods & Admin on Forum Display -=-=-=-=-=-=-=-=-=-=-=- 

I've set the formatting of Usergroup 8 to Bold and Italic as requested, but can be changed to whatever you want :)

Use this for both replacement sets.

HTH

Hwulex


What do you mean by using it for both replacement sets? How can I do that?

Also, when I made the change in forumdisplay.php, I got the following Parse Error;

Parse error: parse error, unexpected '}' in /home/sdsym/public_html/forum/forumdisplay.php on line 759


All times are GMT. The time now is 03:31 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.01215 seconds
  • Memory Usage 1,769KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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