PDA

View Full Version : Mini Mods - Admin And Mod CP Forum Home link display in main frame.


DJ Biscuit
07-10-2008, 10:00 PM
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:

<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:

<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:

<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:

<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