vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to set (if condition) to enable hack from (create new thread) page? (https://vborg.vbsupport.ru/showthread.php?t=180858)

Super Jinni 05-29-2008 04:47 AM

how to set (if condition) to enable hack from (create new thread) page?
 
Hi all

I hope someone can help me with this

I know about how to make some setting for a hack in ACP to enable it or disable it or whatever..

I'm still newbie in this field and I want to know how to set (if condition) to enable the hack or disable it from create (new thread) page.


I already made the template and named it, and I could make the options show up in two ways to enable or disable the hack

the first way is by checking box to enable the hack (unchek the box to disable it). just like (Thread Management) options.
the second way is Yes/No option (yes to enable the hack).

if the hack enabled that will add some features to the thread and how it looks, and if it disabled nothing will change..

but I couldn't figure out how to set the (if condition) for that. and I really hope any one of you guys can help me with this...

I only need to set the condition to one of the two ways I've mentioned above about enabling the hack.

thanks

:)

--------------- Added [DATE]1212078183[/DATE] at [TIME]1212078183[/TIME] ---------------

no one can help here?

Super Jinni 05-30-2008 09:15 PM

any help please?

GameWizard 05-31-2008 01:55 AM

My understand is that you have a plugin which includes some functionality, in which case it should be as simple as using the variable you created inside the plugin with conditional such as:

Code:

<if condition="$myvariable">here is the code that I want to appear</if>


All times are GMT. The time now is 12:53 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.00947 seconds
  • Memory Usage 1,717KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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