vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Admin And Mod CP Forum Home link display in main frame. (https://vborg.vbsupport.ru/showthread.php?t=184987)

DJ Biscuit 07-10-2008 10:00 PM

Admin And Mod CP Forum Home link display in main frame.
 
This modification will make it so when you click the "Forum Home Page" in the Admin Control Panel or Mod Control Panel, it will display your forum in the main content frame in the Control Panel.

Unfortunately I do not know how to make this a plugin so you will have to manually do it yourself. This mod will not take you that long to install.

You will need FTP access to do this.

Step 1:
Navigate your FTP client to:
admincp/

Step 2:
Open index.php in your favorite text editor.

Step 3:
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>
If your text editor displays what line the code is on, its on line 170

Step 4:
Replace with:
Code:

<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="main"><?php echo $vbphrase['forum_home_page']; ?></a>
Step 5:
Save index.php then navigate your FTP client to:
modcp/

Step 6:
Open index.php in your favorite text editor.

Step 7:
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>
If your text editor displays what line the code is on, its on line 141

Step 8:
Replace with:
Code:

<a href="../<?php echo $vbulletin->options['forumhome']; ?>.php<?php echo $vbulletin->session->vars['sessionurl_q']; ?>" target="main"><?php echo $vbphrase['forum_home_page']; ?></a>
Step 9:
Save index.php and your done!

Now if you click "Admin" or "Mod" at the bottom it wont display it in the main frame. Other links that have "taget="_blank"" will make the page use the full window and not the frame.

Remember to mark as installed if you use this!!

Super Jinni 07-11-2008 09:31 AM

any screenshot?

avsunforum 07-11-2008 02:51 PM

Thank You Very Much

yingzhou 07-12-2008 12:55 AM

it's not interesting at all.

dadoc 07-20-2008 06:47 AM

Good idea I will install this
and let you know how it goes


All times are GMT. The time now is 10:26 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.00936 seconds
  • Memory Usage 1,716KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete