Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Viewing your forum in Control Panel Details »»
Viewing your forum in Control Panel
Version: 2.00, by Shazz Shazz is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.x Rating:
Released: 05-19-2007 Last Update: 06-12-2007 Installs: 68
Code Changes  
No support by the author.

/*================================================= =====================*\
|| Viewing your forum in Control Panel
||
|| ================================================== =====
|| Brought to you by:
|| vBCoderz.com
||
|| ================================================== =====
||
|| Author : Shawn
|| Works on : vBulletin 3.5 / 3.6
|| Released : 05. May 2007
||
|| Time required to install: ~1 minute
|| Difficulty: easy
\*================================================ ======================*/

View screen shot for preview

Description: This views your Forum Home Page in your admincp when you click Forum Home Page in your admincp in the right hand corner or you can click New which will do the default.

This is a simple tweak, it really bugs me when I have to have two windows open on my site to do work.

Open your admincp/index.php and modcp/index.php file
Find:
Code:
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
			|
			<a href="index.php?<?php echo $vbulletin->session->vars['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');"  target="_top"><?php echo $vbphrase['log_out']; ?></a>
Replace with:
Code:
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase["new"]; ?></a>
			|
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target=""><?php echo $vbphrase['forum_home_page']; ?></a>
Your done!

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 06-13-2007, 12:38 PM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I lol'ed at you

Well anyway, i dont care if people use yours or mine to be honest. I dont plan on updating mine as it does all it needs to do!
Reply With Quote
  #23  
Old 06-17-2007, 02:06 PM
Crys Crys is offline
 
Join Date: Jun 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack! For the longest time I've been trying to figure that out too

Anyway, I tweak it out because I didn't want to lose the 'Log_off' feature so here's what I did:

Code:
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
			|
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target=""><?php echo $vbphrase['forum_home_page_2']; ?></a>
			|
			<a href="index.php?<?php echo $vbulletin->session->vars['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');"  target="_top"><?php echo $vbphrase['log_out']; ?></a>
I also went into the Phrase Manager and added another phrase in the Control Panel Global instead of using 'New'. I simply called it forum_home_page_2 and the text I used was Forum Home Page (CP) - that way I'll know which one will open a new window and which one will open in the CP. Figured I'd let you know for future upgrade

Thanks for the great idea

~ Crys ^^
Reply With Quote
  #24  
Old 06-17-2007, 02:14 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Crys View Post
Very nice hack! For the longest time I've been trying to figure that out too

Anyway, I tweak it out because I didn't want to lose the 'Log_off' feature so here's what I did:

Code:
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
			|
			<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target=""><?php echo $vbphrase['forum_home_page_2']; ?></a>
			|
			<a href="index.php?<?php echo $vbulletin->session->vars['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');"  target="_top"><?php echo $vbphrase['log_out']; ?></a>
I also went into the Phrase Manager and added another phrase in the Control Panel Global instead of using 'New'. I simply called it forum_home_page_2 and the text I used was Forum Home Page (CP) - that way I'll know which one will open a new window and which one will open in the CP. Figured I'd let you know for future upgrade

Thanks for the great idea

~ Crys ^^
I just took a guess that most people wouldn't use that log out button. You could view the forum through admincp and hit log out there too, but either way
Good thought on the phrases, I wanted to make this very simple in one step.
Reply With Quote
  #25  
Old 10-27-2007, 03:57 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I cant make it work
Reply With Quote
  #26  
Old 10-27-2007, 04:28 PM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then try mine!
Reply With Quote
  #27  
Old 10-27-2007, 04:30 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you do it, I cant open admincp/index.php
Reply With Quote
  #28  
Old 10-27-2007, 05:06 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J155A0A8DCD5 View Post
How do you do it, I cant open admincp/index.php
You can't open the file thats in your FTP folder?
Have you done right click edit?
Reply With Quote
  #29  
Old 10-27-2007, 05:08 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah I got it open with publisher. Will that work?
Reply With Quote
  #30  
Old 10-27-2007, 05:09 PM
bazzup bazzup is offline
 
Join Date: Dec 2006
Location: Liverpool
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah just locate the text and change it
Reply With Quote
  #31  
Old 10-27-2007, 05:40 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it to work, thank you.
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 10:38 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.05925 seconds
  • Memory Usage 2,315KB
  • 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
  • (4)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
  • (3)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete