vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Viewing your forum in Control Panel (https://vborg.vbsupport.ru/showthread.php?t=147720)

Shazz 05-19-2007 10:00 PM

Viewing your forum in Control Panel
 
/*================================================= =====================*\
|| 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!


Shazz 05-20-2007 07:07 PM

Err too easy, should have done more

kall 05-20-2007 07:26 PM

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.

Luky 05-21-2007 12:06 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

redlabour 05-21-2007 12:55 PM

Very usefull - waiting for a Product!

Luky 05-21-2007 01:06 PM

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

Quote:

Originally Posted by Luky (Post 1252009)
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 ;)

Luky 05-22-2007 06:30 AM

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

Quote:

Originally Posted by vspro (Post 1253217)
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 ;)

Luky 06-13-2007 12:38 PM

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!

Crys 06-17-2007 02:06 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:

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

~ Crys ^^

Shazz 06-17-2007 02:14 PM

Quote:

Originally Posted by Crys (Post 1270311)
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:

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

Luky 10-27-2007 04:28 PM

Then try mine!

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

Quote:

Originally Posted by J155A0A8DCD5 (Post 1369845)
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!


All times are GMT. The time now is 05:11 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.01248 seconds
  • Memory Usage 1,783KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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