Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Administrative Login Details »»
Administrative Login
Version: , by Unknown553 Unknown553 is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-14-2002 Last Update: Never Installs: 0
 
No support by the author.

I edit my forums a lot, and I got tired of changing my url and adding /admin to access the admin cp, but I didn't want a new link to the admin cp be seen by everyone, so I wrote thie little modification.

What it does: Adds a link to the admin CP and moderator CP in your footer, but only shows up for admins/mods respectively.

Enjoy

Download Now

File Type: (21.4 KB, 331 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-21-2002, 06:55 PM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did something like this too, www.voogru.com/vb/top_buttons
Reply With Quote
  #23  
Old 04-21-2002, 08:34 PM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks!
Reply With Quote
  #24  
Old 04-21-2002, 08:50 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #25  
Old 04-22-2002, 06:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #26  
Old 04-22-2002, 09:38 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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}
Reply With Quote
  #27  
Old 04-22-2002, 10:05 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #28  
Old 04-22-2002, 11:56 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 (well..the path anyways)
Reply With Quote
  #29  
Old 04-23-2002, 12:54 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 04-23-2002, 12:59 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #31  
Old 04-23-2002, 01:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:44 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.09097 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete