vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   End-User Options - Panic Button (TMS compatible) (https://vborg.vbsupport.ru/showthread.php?t=178375)

jilly 05-10-2008 03:37 PM

same here:

Parse error: syntax error, unexpected '{', expecting ']' in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3717) : eval()'d code on line 787

I was trying to save template postbit_legacy with the panic button code added

Mosh 05-10-2008 10:00 PM

I will be looking at this some time today.

Phaedrus 05-11-2008 05:27 AM

I had to modify the template this way:

Code:

<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.

Edit:

If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...

You know...

It works great with this instead of the other...

Mosh 05-11-2008 06:30 AM

Quote:

Originally Posted by Phaedrus (Post 1515619)
I had to modify the template this way:

Code:

<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.

Edit:

If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...

You know...

It works great with this instead of the other...

Yes I know, I am trying to make this more automated, as I already released this as a template hack for v3.6.x quite some time ago, which works rather well, but trying to put profile field numbers in via vbulletin options is proving to be a bit tiresome (ie, I am banging my head on the wall to make it work).

Phaedrus 05-11-2008 07:36 AM

Quote:

Originally Posted by Mosh (Post 1515669)
Yes I know, I am trying to make this more automated, as I already released this as a template hack for v3.6.x quite some time ago, which works rather well, but trying to put profile field numbers in via vbulletin options is proving to be a bit tiresome (ie, I am banging my head on the wall to make it work).

Yeah, I was attempting to figure out the variables, but I just gave up;

Black Tiger 05-11-2008 11:53 PM

Well I also edited the TMS templates and changed the code to the 3.6 version code and things are working fine now.

So I just keep this one marked installed because I'm running 3.7, I hope you find out the variables, but no hurry.:)
Good luck!

GoodKarmaKid 05-23-2008 10:52 AM

What's the status on a fix for this, it's been about two weeks since you said you were going to look into it.

I really like this idea, several of my members would find it useful as they surf the forums at work.

Jason

Vinyljunky 05-23-2008 12:57 PM

Wairing for VB3.7 TMS version

Mosh 05-25-2008 11:35 AM

Quote:

Originally Posted by GoodKarmaKid (Post 1528834)
What's the status on a fix for this, it's been about two weeks since you said you were going to look into it.

I really like this idea, several of my members would find it useful as they surf the forums at work.

Jason

Quote:

Originally Posted by Vinyljunky (Post 1528925)
Wairing for VB3.7 TMS version

When there is an update (which there is not), the big notice in red will disappear from the 1st post and it will be supported and not a beta anymore, and I will post that it is fixed.

So, until then I will not be posting anything to this thread from now on, until that point.

Use my v3.6.x version until I can fix this.

khb1st 06-02-2008 03:02 AM

Quote:

Originally Posted by "Phaedrus" (Post 1515619)
I had to modify the template this way:

Code:

<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.

Edit:

If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...

You know...

It works great with this instead of the other...


yep, I also had the previously mentioned errors, and this edit made it all go away, well done Phaedrus

I took the liberty of changing your text file, Mosh, I hope you don't mind, and leaving this attachment so others, too, can benefit

I did alter the above line to leave the default field5 and field6 instead of 7 and 8

love this hack

installed for sure !!:D


btw, you know why six is afraid of seven............because 7 8 9 :o


All times are GMT. The time now is 03:49 AM.

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.01158 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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