vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Trying to update a mod (https://vborg.vbsupport.ru/showthread.php?t=302260)

Bubble #5 09-14-2013 02:58 AM

Trying to update a mod
 
Hi guys, I wrote a hack a while back, think it was for 3.x. The hack would display a flashing message in a closed thread. It worked great back in the day but I tried to use the code for 4.2.1 and it won't accept some of the old code. I think this is where it's getting stuck at;

Code:

<if condition="!$this->thread['open']">
<if condition="!$GLOBALS['FIRSTPOSTID']">
<if condition="THIS_SCRIPT == showthread">


Can someone please post the new version of code that I should be using? :confused:

ozzy47 09-14-2013 08:58 AM

Did you cahnge the conditionals to <vb:if bla bla & </vb:if>

Bubble #5 09-14-2013 03:47 PM

Yes but the error said something about the '!$' characters....

Do I just remove them or is the entire code different?

Code:

<vb:if condition="!$this->thread['open']">
<vb:if condition= "!$GLOBALS['FIRSTPOSTID']">
<vb:if condition= "THIS_SCRIPT == showthread"> </vb:if> </vb:if> </vb:if>

I looked in postbit and show thread but saw no similar codes.

Where else might they be for something like this? :confused:

ozzy47 09-14-2013 05:10 PM

Maybe try this:

Code:

<vb:if condition="$thread[open] == 0">
<vb:if condition="!$GLOBALS['FIRSTPOSTID']">
<vb:if condition="THIS_SCRIPT == showthread"> </vb:if>  </vb:if> </vb:if>



All times are GMT. The time now is 09:56 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.01034 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete