View Full Version : Administrative and Maintenance Tools - Viewing your forum in Control Panel
Shazz
05-19-2007, 10:00 PM
/*================================================= =====================*\
|| Viewing your forum in Control Panel
||
|| ================================================== =====
|| Brought to you by:
|| vBCoderz.com (http://www.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:
<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:
<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!
Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=147720)
Shazz
05-20-2007, 07:07 PM
Err too easy, should have done more
Moved this and the other one to Addons.
No template modifications means Not Template Modifications.
Shazz
05-20-2007, 07:32 PM
Thanks kall
Naxon
05-21-2007, 08:31 AM
Very usefull, Installed :)
Terrasoft
05-21-2007, 08:40 AM
Very useful, that always bothered me as well. Thanks.
Don't take offence, but i hate you? I really really doo! Last night i was trying to figure out how to change that little link at the top to show in the main frame, this mod was my idea!! Curse you theif! CURSEE!!!!
Owell, guess i will save my time and just use yours? Also i will see how you did it :| I cant belive how hard it is to edit the admin cp, the forums are so easy, then the admin cp is like not even in english programming >_>
Thanks theif, i mean shazz ^^ Installed
redlabour
05-21-2007, 12:55 PM
Very usefull - waiting for a Product!
Are you that lazy to make one file change?
Tanabe
05-21-2007, 03:36 PM
Well I edited my index.php file in my admin folder like it says to do so but It still doesn't work. I just get taked to the forum like it did when I didn't edit the file.
Edit: Nevermind, get out of my admincp then go back in for it to work. ^^
Thanks!
Installed :)
Shazz
05-21-2007, 07:46 PM
Don't take offence, but i hate you? I really really doo! Last night i was trying to figure out how to change that little link at the top to show in the main frame, this mod was my idea!! Curse you theif! CURSEE!!!!
Owell, guess i will save my time and just use yours? Also i will see how you did it :| I cant belive how hard it is to edit the admin cp, the forums are so easy, then the admin cp is like not even in english programming >_>
Thanks theif, i mean shazz ^^ Installed
Wow that is so insulting, I may need to report you. :D
Im sorry luky next idea I have ill give to you ;)
But i cant code, thats why it was important ^^; I wasnt harassing btw. :)
johnrizz
05-22-2007, 11:23 AM
Thanks for this shazz!! haha! love it!!
v12kid
05-23-2007, 06:00 AM
nice work Shazz, I might be able to do this one myself..search/replace right? ;)
message me on AIM when you get time
vspro
05-23-2007, 11:38 AM
I see like as forum phpbb ..............
Shazz
05-23-2007, 11:39 AM
I see like as forum phpbb ..............
Never had experiance on it, wouldn't know :erm:
dirty68
05-23-2007, 04:58 PM
very nice thank you
ammoskumar
05-26-2007, 06:09 PM
works gr8......thanks a lot:)
Shazz
06-12-2007, 11:17 PM
Updated!
Working with modcp and has the default option back (View screenshot)
Shazz
06-12-2007, 11:18 PM
Luky don't even think about it ;)
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!
Very nice hack! For the longest time I've been trying to figure that out too :rolleyes:
Anyway, I tweak it out because I didn't want to lose the 'Log_off' feature so here's what I did:
<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 :D
~ Crys ^^
Shazz
06-17-2007, 02:14 PM
Very nice hack! For the longest time I've been trying to figure that out too :rolleyes:
Anyway, I tweak it out because I didn't want to lose the 'Log_off' feature so here's what I did:
<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 :D
~ 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.
Roughnek29
10-27-2007, 03:57 PM
:confused:I cant make it work
Roughnek29
10-27-2007, 04:30 PM
How do you do it, I cant open admincp/index.php
Shazz
10-27-2007, 05:06 PM
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?
Roughnek29
10-27-2007, 05:08 PM
Yeah I got it open with publisher. Will that work?
bazzup
10-27-2007, 05:09 PM
yeah just locate the text and change it
Roughnek29
10-27-2007, 05:40 PM
I got it to work, thank you.
DssCrazy
11-28-2007, 07:19 PM
I love this tool, but i got rid of it as soon as i seen i could no longer log out of my admin cp,you guys should add the button to log out that would make this perfect.
Cheers.
DssCrazy
12-05-2007, 08:03 PM
After the week of my comment getting no where, i decided to fix this for you!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.