vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Logout Button replacing Logout text (https://vborg.vbsupport.ru/showthread.php?t=103506)

InfoNirvana 05-28-2007 04:56 AM

I tried to enlarge the Log Out button, but somehow it got auto-resized.

InfoNirvana 05-28-2007 05:48 AM

Quote:

Originally Posted by InfoNirvana (Post 1255964)
I tried to enlarge the Log Out button, but somehow it got auto-resized.

Figured that out.

Q: is it possible to have the same logout button on all forum views ?


ie. like this
http://www.mysite.org/forum/forumdisplay.php?f=2 ?

and opposed to just on the index page ?

http://www.mysite.org/forum/index.php

InfoNirvana 05-29-2007 02:05 AM

There are errors in this suggested modification.

'$vbphrase[sure_you_want_to_log_out]' is missing from this section.


Open FORUMHOME and very close to the bottom of that template find the following code;

<!-- member logout -->
<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
<!-- end member logout -->

Replace that code in its entirety with the following code;

<!-- member logout button -->
<td align="$stylevar[right]">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"><img src="$stylevar[imgdir_button]/logout.gif"
border="0" width="110" height="26" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase>"></a></td>
<!-- end member logout -->




FYI everyone.

The symptom here is that When you click Log Out in the navbar or the Forum Home Page ..... The "Are you sure you want to Log Out" message is missing ... and instead it says "undefined".

TheMusicMan 05-29-2007 04:06 AM

Many thanks for pointing this out InfoNirvana. I have updated the code accordingly. Cheers.

KURTZ 12-25-2007 05:33 PM

runs on 3.7.0 B3 ...

* installed


All times are GMT. The time now is 07:38 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.01444 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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