Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 01-19-2002, 06:43 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possible a link on the forum home page only viewable by admins that will take them to the admin panel...

And for mods.. the same thing? is this possible,?

Ciao

-69
Reply With Quote
  #2  
Old 01-20-2002, 12:50 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, it's possible...I don't have access to my hacking materials at the moment, but I think I know how to do it. But another idea, the way I do it with my board, although maybe not as easy as a link on the forums home page, is that I have a private forum open only to moderators and admins, and an announcement in that forum with the links to both CPs. The announcement is set to expire in 2010 or something like that, so it will be there at the top for quite a while.
Reply With Quote
  #3  
Old 01-20-2002, 07:14 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would work fine also..

Let me know when you have your hacking materials..

Thanks for your support

Ciao
Reply With Quote
  #4  
Old 01-22-2002, 06:26 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you ever get it?

Ciao
Reply With Quote
  #5  
Old 01-22-2002, 08:20 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Place this code in global.php:
Code:
if ($bbuserinfo['usergroupid']==6) {
	$cplink='<a href="admin/index.php">Administrator Control Panel</a>';
} elseif ($bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) {
	$cplink='<a href="mod/index.php">Moderator Control Panel</a>';
} else {
	$cplink='';
}
right after this:
Code:
$logincode=makelogincode();
(EOF)

Now use $cplink in any of your templates (even footer/header), it will be available on all pages.
Reply With Quote
  #6  
Old 01-22-2002, 09:17 AM
69-FLy-gUy's Avatar
69-FLy-gUy 69-FLy-gUy is offline
 
Join Date: Oct 2001
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.. I noticed one thing though...

When i put it in the header or footer it won't show up. Only when i place it in the forumhome...

Do I have to add the PHP code to a particular file?

Ciao
Reply With Quote
  #7  
Old 01-22-2002, 11:17 PM
black black is offline
 
Join Date: Nov 2001
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Place this code in global.php:
Code:
if ($bbuserinfo['usergroupid']==6) {
	$cplink='<a href="admin/index.php">Administrator Control Panel</a>';
} elseif ($bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) {
	$cplink='<a href="mod/index.php">Moderator Control Panel</a>';
} else {
	$cplink='';
}
right after this:
Code:
$logincode=makelogincode();
(EOF)

Now use $cplink in any of your templates (even footer/header), it will be available on all pages.
Did u do that?


Dang.... Firefly u beat me to it
Reply With Quote
  #8  
Old 01-23-2002, 08:14 AM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I couldn't get it to work in my header either - but it worked everywhere else I tried (haven't tried footer, tho)

Could vbPortal affect this, maybe? Shouldn't think so, but...
Reply With Quote
  #9  
Old 01-23-2002, 08:27 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Of course...

Instead of placing the code after this:
Code:
$logincode=makelogincode();
place it after this:
Code:
eval(gettemplate('phpinclude',0,0));
that should do it.
Reply With Quote
  #10  
Old 01-23-2002, 08:44 AM
kermit's Avatar
kermit kermit is offline
 
Join Date: Dec 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this hack.. i put it under (Welcome to our newest member) using the same size font and it works a treat

Thanx, FireFly
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04322 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete