vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Release] Admin/Mod Login (https://vborg.vbsupport.ru/showthread.php?t=83544)

SaintDog 05-22-2002 10:00 PM

[Release] Admin/Mod Login
 
Author: Unknown553

Description: This will add a login link depending on the user type. Administrators will see an admin login, Moderators a moderator login, and basic members will see nothing.

EmuMasta 06-28-2002 11:18 PM

Thanx alot

This beat the heck of inserting /admin after the url

thanx again

drumsy 06-29-2002 03:46 AM

Template edit in use! Thanks! :)

Backlash 06-29-2002 07:33 AM

I've been looking for something like this for quite some time now.
Thanks :).

Bungie 06-29-2002 07:39 AM

I too have been searching for this. Excellent! Thanks! ;)

Tyfoon 06-29-2002 07:24 PM

wh00t!!
nice hack, very nice:)

Kars10 06-29-2002 08:56 PM

Works great!!
Thanx!! ;)

element 06-29-2002 09:39 PM

Wow, this is a great idea, so I won't have to add /admin whenever I want to go to the admin CP!

hellsatan 06-29-2002 09:46 PM

This is a great addition...

:)

Satan

Jeisson 06-30-2002 03:53 AM

Btw...if your super mods have admin cp then use this code:

PHP Code:

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



mashby 06-30-2002 04:07 AM

Great mod! Man, this site is just full of goodies! :D

Floris 06-30-2002 08:17 AM

Very nice mod, I have altered it a little bit to fit our special supah secret usergroup. And to merge it in with the code at the bottom of my footer. So it resides now between < Contact Us - etc - Creations.nl > links.

Installed and it is great!

countryboy713 06-30-2002 08:30 AM

i added my link to the welcome panel with the Log Out, Forum Leaders, etc.

Xelation 06-30-2002 06:06 PM

as said with the register/cp template edit can you make an attachment with a rollover code?

Shift 06-30-2002 07:13 PM

I have a question, why in mine does it also show up with like, the url to my forums THEN all the other stuff?

SaintDog 06-30-2002 07:24 PM

Examples are always best, what is the URL to your forum that this is happening on?

Shift 06-30-2002 07:39 PM

well never mind, i just found out that one of the admins put that there meaning to put it in a different template

Blue 06-30-2002 10:55 PM

Realy neat :p

TrAsTiOn 07-10-2002 07:24 PM

thanx fer the mod
i have been meaning to get this one

Mephisteus 07-20-2002 07:19 AM

Great! I changed it so it would display "Become an Moderator" for NON-Admin, NON-smod, NON-mod folks :)

Here's the code (if anyone intrested :D)

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

Pady 07-20-2002 07:42 AM

that is a kewl addition - gunna use this one

Andromeda 07-20-2002 12:51 PM

Very nice i had this option in my style but i changed the style and the option was deleted so

Thanks a lot SaintDog u really are a good m8 !!

K33nny 07-22-2002 06:23 AM

Parse error: parse error, unexpected '{' in /home/ewi/public_html/e/global.php(309) : eval()'d code on line 18

I get that error when installing this hack. Not sure why though.

K33nny 07-22-2002 06:31 AM

Nevermind. I figured the problem out.

eGoR 07-29-2002 09:27 AM

handi hack, m8

assassingod 07-31-2002 08:56 PM

Although I have nothing against this MOD, wouldnt it be a lot simpler to add http://www.yourdomain.com/forums/admin to your favourties-name it something like 'Admin' then every time you want to go to your ACP, just type 'Admin' in the address bar?

But, im sure none of you are going to use that way so i'll shut up

StevieBee 08-02-2002 12:00 PM

Nice hack... my mods love it .. Thanx

wizard 08-02-2002 01:33 PM

thanks very nice indeed

mashby 08-03-2002 05:06 PM

Quote:

Originally posted by ffdcsite
Although I have nothing against this MOD, wouldnt it be a lot simpler to add http://www.yourdomain.com/forums/admin to your favourties-name it something like 'Admin' then every time you want to go to your ACP, just type 'Admin' in the address bar?

But, im sure none of you are going to use that way so i'll shut up

That's a thought, but that only works in IE doesn't it? Plus this makes it easier for your mods to login as well.

Cypher720 08-13-2002 04:40 AM

um...where can i edit the phpincludes? im kinda new:)

Cypher720 08-13-2002 05:37 AM

got it! nevermind

LOD-squa 08-17-2002 03:45 AM

Installed me like it.

Bad Bunny 08-17-2002 03:22 PM

It is my opinion that this should be done for many of th navigation buttons in the header. It sort of annoys me to keep seeing the register button....or that guests see the cp/profile button.

Thanks for the mod. I will play with it some.

turdboy 08-17-2002 04:04 PM

If you have like secret mods and other groups but you want them to see it how do you go about finding there usergroup number?

assassingod 08-17-2002 04:28 PM

Quote:

Originally posted by mashby


That's a thought, but that only works in IE doesn't it? Plus this makes it easier for your mods to login as well.

Probably mashby, I've never used anything other than IE. So I guess i'll use this:) I dont know if my mods use Opera, AOL or something like that:confused:

Jon 08-20-2002 12:41 AM

Installed.

computman 10-02-2002 01:02 PM

simple, easy but so usefull !!

Crusades 10-03-2002 09:21 PM

thank's a lot!!! now i will install!!;) ;)

thom 10-04-2002 09:32 AM

can i use this to vbb 2.2.8

Tony G 10-04-2002 09:40 AM

Yes, you can.


All times are GMT. The time now is 04:47 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.01320 seconds
  • Memory Usage 1,780KB
  • 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_php_printable
  • (2)bbcode_quote_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
  • (40)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