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)

voogru 04-21-2002 06:55 PM

i did something like this too, www.voogru.com/vb/top_buttons

Psychdrone 04-21-2002 08:34 PM

O thats right php and " don't like each other:P! Well more then a couple in a statment

thanks!

scsa20 04-21-2002 08:50 PM

Quote:

Originally posted by Psychdrone
O thats right php and " don't like each other:P! Well more then a couple in a statment

thanks!

lol, yeah, I had that same type of problem when I was trying to get my images to work :D ;)

Boofo 04-22-2002 06:50 PM

Please bear with me here, this is still all new to me (I just got started on vBulletin a few days ago). I want to link the Admin logon to my titleimage so it's hidden if I am ever anywhere else and have to log on to my board. This way no one will even know the Admin Login is even on the board unless they are an Admin or Moderator. What do I need to do to change it for the whole site so I can just click on the titleimage to use it? Can I do it all in one place or do I need to edit everything that has the titleimage in it? And no one else would be able to get to it except the Admins and Mods, right? Thanks and sorry to sound so stupid at all of this. :-)

BTW: Great time saver! Thanks!

Unknown553 04-22-2002 09:38 PM

It already works like that, only admins and mods see it, to change it from a simple link to your title image, just change it to fit your titleimage, or logo. It would be easier to just add a lnk or button in the header, but if you want to change it around you're more than welcome.

I think this would work:

Use this code in your phpinclude template

Code:

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

Then you'd have to change { titleimage} to $adminlogin. (Admin CP -> Templates -> Search -> Search and replace ALL templates. Be careful!) ....Seach for { titleimage} and replace it with $adminlogin.

Remember to remove the space between { and titleimage}

Boofo 04-22-2002 10:05 PM

Sorry to sound so new at this, but I have learned alot just from reading in here. Hopefully, one of these days, I can start to understand more of this. :-)

Is there any way just to link it to my titleimage instead of changing it? Because if I do it this way (now that I (DOH!!) think of it), the registered users won't see my titleimage when they log on, will they? I just want to hide it from site but still be able to use it, you know what I mean?

scsa20 04-22-2002 11:56 PM

Quote:

Originally posted by Boogo
Sorry to sound so new at this, but I have learned alot just from reading in here. Hopefully, one of these days, I can start to understand more of this. :-)

Is there any way just to link it to my titleimage instead of changing it? Because if I do it this way (now that I (DOH!!) think of it), the registered users won't see my titleimage when they log on, will they? I just want to hide it from site but still be able to use it, you know what I mean?

just put what he said, and remove the space between "{" and "titleimage}"

the reason why he puted that space there is because if you don't, you won't get that, but you get the actuly title image from the server :eek: (well..the path anyways)

Boofo 04-23-2002 12:54 AM

I did it just lkike he said and this is how it looks now. I must have missed something somehwere. You will also notice that I am having a problem with the forums being listed at the top of every message area. Any help on that will help too. :-)

Message Board Problems

scsa20 04-23-2002 12:59 AM

if you looks at the image soruce for where the path is going, it shows it's going to:

http://www.jamcomputerservices.com/vbulletin/<img%20src=

hmm...let me see what code you used in phpinclude file

Boofo 04-23-2002 01:14 AM

Here is my whole phpinclude file

// This code is PHP4 only:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();

//Administrative/Moderator Login
if ($bbuserinfo[usergroupid]==6) { //Admins
$adminlogin = "<a href=\"admin/index.php\"><img src=\"https://vborg.vbsupport.ru/images/vBulletin_logo.gif\" border=\"0\"></a>";
} elseif (($bbuserinfo[usergroupid]==5) or ($bbuserinfo[usergroupid]==7)) { //Mods
$adminlogin = "<a href=\"mod/index.php\"><img src=\"https://vborg.vbsupport.ru/images/vBulletin_logo.gif\" border=\"0\"></a>";
} else { //Everyone else
$adminlogin = "<img src=\"https://vborg.vbsupport.ru/images/vBulletin_logo.gif\" border=\"0\">";
}
//End Login Code

I put it all there just in case I meesed something up adding the code. Thanks!


All times are GMT. The time now is 05:13 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.02295 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (2)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