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)

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.


All times are GMT. The time now is 02:50 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.01094 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete