vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Panic Button 1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=91852)

dsboyce8624 07-09-2005 01:11 AM

As long as it got fixed it doesn't matter.

akanevsky 07-09-2005 01:27 AM

Quote:

There's nothing like making stupid mistakes in public
Noo, it's good tho :) Should be kept as part of the title. :P

yoyoyoyo 07-09-2005 01:39 AM

Quote:

Originally Posted by Dark Visor
Noo, it's good tho :) Should be kept as part of the title. :P

For further 101-ing, I found out TRUE the source of the error:
Code:

Profile Field Type: Single-Selection Radio Buttons
Title:  Turn "Panic Button" on?
Description: The Panic Button is an icon that resides in a fixed place of your choosing on your screen on your screen. Clicking the icon immediately sends you to another URL of your choice.
Options: Yes (carriage-return)
                No

and
Code:

<if condition="$bbuserinfo[field12] == yes">
which should really be:
Code:

<if condition="$bbuserinfo[field12] == Yes">
(note the small/capital "y"?)

dsboyce8624 07-09-2005 01:52 AM

Quote:

Originally Posted by yoyoyoyo
For further 101-ing, I found out TRUE the source of the error:
Code:

Profile Field Type: Single-Selection Radio Buttons
Title:  Turn "Panic Button" on?
Description: The Panic Button is an icon that resides in a fixed place of your choosing on your screen on your screen. Clicking the icon immediately sends you to another URL of your choice.
Options: Yes (carriage-return)
                No

and
Code:

<if condition="$bbuserinfo[field12] == yes">
which should really be:
Code:

<if condition="$bbuserinfo[field12] == Yes">
(note the small/capital "y"?)

I'll make a note of that in the file and reload.

Done.

Neal-UK 07-09-2005 02:16 AM

well I can't get this to work on vb 3.0.7 and all files, paths, etc are correct.

Shame that, I could do with it on www.meeting4fun.com

dsboyce8624 07-09-2005 02:43 AM

What problem did you have?

unkemone 07-09-2005 08:47 AM

I have the same problem. im running a board with 3.0.7 and it just wont come up. i verified that the field #'s are correct and the capital and lowercase y correspond and it wont work.

yinyang 07-09-2005 09:16 AM

Quote:

Originally Posted by unkemone
I have the same problem. im running a board with 3.0.7 and it just wont come up. i verified that the field #'s are correct and the capital and lowercase y correspond and it wont work.

hmmm.

let's strip it and try it this way first before doing the profile fields.

1. add the new CSS definition
2. make sure the panicbutton.js and panicbutton.gif files are uploaded into the proper folders.
3. add this stripped down code to the beginning of your header:


PHP Code:

<!--[if lt IE 7]><script src="clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<
div class=panicbutton>
<
a href="http://www.google.com"><img src="images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</
div

4. the panic button should show up on the bottom right of your screen and stay in a fixed position.

unkemone 07-09-2005 09:25 AM

Thanks for your support but when i add that to the header i get this error

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/b/i/g/bigdog829/html/includes/adminfunctions_template.php(3096) : eval()'d code on line 104

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

dsboyce8624 07-09-2005 01:11 PM

Quote:

Originally Posted by unkemone
Thanks for your support but when i add that to the header i get this error



The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/b/i/g/bigdog829/html/includes/adminfunctions_template.php(3096) : eval()'d code on line 104

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Take the </if> off the end.


All times are GMT. The time now is 06: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.02247 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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