Quote:
Originally Posted by Crys
Very nice hack! For the longest time I've been trying to figure that out too
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
~ 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.