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)

unkemone 07-09-2005 03:19 PM

Yup now its working and at a fixed location with a fixed url what do you think the problem is?

yoyoyoyo 07-09-2005 03:45 PM

Quote:

Originally Posted by unkemone
Yup now its working and at a fixed location with a fixed url what do you think the problem is?

It sounds as if you may have made a mistake when entering the User Profile Fields. Make sure that you have the "Field Editable by User" option set to YES

yinyang 07-09-2005 04:15 PM

Quote:

Originally Posted by dsboyce8624
Take the </if> off the end.

doh! my bad. that's what happens when i offer support at 3:16AM los angeles time. :o

yoyoyoyo 07-09-2005 04:35 PM

Quote:

Originally Posted by yoyoyoyo
It sounds as if you may have made a mistake when entering the User Profile Fields. Make sure that you have the "Field Editable by User" option set to YES

Actually, when looking at his example he asked you to try:
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>

it appears that he substituted the field ID's with the google URL. If you can get the above example to work, but can't get the hack to work then the problem has to be with your field ID's, since that is the only thing that was changed from the hack in his example. I suggest going in to phpMyAdmin and checking those field ID's to make sure that you have them right.

yinyang 07-09-2005 05:07 PM

Quote:

Originally Posted by yoyoyoyo
Actually, when looking at his example he asked you to try:
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>

it appears that he substituted the field ID's with the google URL. If you can get the above example to work, but can't get the hack to work then the problem has to be with your field ID's, since that is the only thing that was changed from the hack in his example. I suggest going in to phpMyAdmin and checking those field ID's to make sure that you have them right.

yup! that's what i did. my apologies for not making it clearer :nervous: .

thanks yoyoyo - !

Neal-UK 07-09-2005 05:36 PM

Quote:

Originally Posted by yinyang
hmmm.

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

Yup, now working 100%. Great little hack thanks!

dsboyce8624 07-09-2005 05:42 PM

Quote:

Originally Posted by nealparry
Yup, now working 100%. Great little hack thanks!

If you use it like that the on/off button will not work.

You need to put the <if . . . > </if> back around it and make sure you have the field numbers right. Seems you had a problem there the first time.

And please click Install.

yinyang 07-09-2005 06:49 PM

Quote:

Originally Posted by nealparry
Yup, now working 100%. Great little hack thanks!

if the stripped down version works, then it means your site will have no problem with the coding or javascript. as dsboyce8624 said, you should do the full install and make sure the profile field numbers are correct.

this will allow your users more flexibility and choices.

yoyoyoyo 07-11-2005 08:16 PM

One suggestion:
change this
Code:

<img src="images/misc/panicbutton.gif" border="0" alt="Panic Button">
to
Code:

<img src="$vboptions[bburl]/images/misc/panicbutton.gif" border="0" alt="Panic Button">
so this hack can be compatible with vBAdvanced CMPS and vBGallery users.

paul41598 07-11-2005 08:28 PM

I dont get this hack. What does it do? Close down your browser with a click of a button?


All times are GMT. The time now is 10:37 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.01208 seconds
  • Memory Usage 1,744KB
  • 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
  • (7)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