PDA

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


DJ Biscuit
11 Jul 2008, 09:24
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
11 Jul 2008, 11:31
any screenshot?

avsunforum
11 Jul 2008, 16:51
Thank You Very Much

yingzhou
12 Jul 2008, 02:55
it's not interesting at all.

dadoc
20 Jul 2008, 08:47
Good idea I will install this
and let you know how it goes