vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Administrative Login (https://vborg.vbsupport.ru/showthread.php?t=37426)

EchoHype.com 04-19-2002 11:26 PM

For the "Moderator Login" link, would it just be $moderatorlogin?

Unknown553 04-19-2002 11:27 PM

Edit your header template and put $adminlogin right after <!-- toplinks -->

That should be it....

Unknown553 04-19-2002 11:28 PM

Quote:

Originally posted by EchoHype.com
For the "Moderator Login" link, would it just be $moderatorlogin?
No, it's still $adminlogin. There is no need to change it.

scsa20 04-20-2002 12:35 AM

Quote:

Originally posted by Unknown553
Edit your header template and put $adminlogin right after <!-- toplinks -->

That should be it....

I did before I asked and I still get that :eek:

Unknown553 04-20-2002 01:40 AM

Ok, remove the "<br>" from the $adminlogin ;)

scsa20 04-20-2002 02:22 AM

ahh...all fixed...thank you :D

Psychdrone 04-20-2002 04:40 AM

heres what my code looks like
<font color="ffffff">$adminlogin</font>
and I tried <smallfont color="ffffff">$adminlogin</smallfont>

nothing happens
please help

scsa20 04-20-2002 06:03 AM

Quote:

Originally posted by Psychdrone
heres what my code looks like
<font color="ffffff">$adminlogin</font>
and I tried <smallfont color="ffffff">$adminlogin</smallfont>

nothing happens
please help

there's your problem...go back to phpinclude and replace

PHP Code:

//Administrative/Moderator Login
if ($bbuserinfo[usergroupid]==6) { //Admins
$adminlogin "<a href=\"admin/index.php\">Administrative Login</a><br>";
} elseif ((
$bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==7)) { //Mods
$adminlogin "<a href=\"mod/index.php\">Moderator Login</a><br>";
} else { 
//Everyone else
$adminlogin "";
}
//End Login Code 

with

PHP Code:

//Administrative/Moderator Login
if ($bbuserinfo[usergroupid]==6) { //Admins
$adminlogin "<a href=\"admin/index.php\"><font color=\"ffffff\">Administrative Login</font></a><br>";
} elseif ((
$bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==7)) { //Mods
$adminlogin "<a href=\"mod/index.php\"><font color=\"ffffff\">Moderator Login</font></a><br>";
} else { 
//Everyone else
$adminlogin "";
}
//End Login Code 

that should work ;)

SaintDog 04-20-2002 07:18 AM

Tested on my private forums just for confirmation, the above works (of course, I used different colors)...

- SaintDog

Chris M 04-20-2002 01:31 PM

Cool Mod...

I like it...

Satan


All times are GMT. The time now is 08:25 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.01055 seconds
  • Memory Usage 1,739KB
  • 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
  • (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