vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Advanced Templates: Dynamic Templates Changing according to different conditions (https://vborg.vbsupport.ru/showthread.php?t=43325)

bensonfactor 02-21-2003 06:19 PM

It was because I was putting the first part after not before the code.

Works now. Thanks.

sonic3d 02-27-2003 12:02 AM

can u use this in a postbit?
meaning some1 already posted something and use a condition in the post?

l8er
sonic

Boofo 02-27-2003 12:06 AM

I use it there for all sorts of things. ;)

Logician 02-27-2003 07:01 AM

Quote:

Originally posted by sonic3d
can u use this in a postbit?
meaning some1 already posted something and use a condition in the post?

With this hack you can customize the postbit template like other templates. However only admin can do it so if you want your posters to use conditionals in their posts, this hack is not for that. Check a few post above for Slynderdale's post about a similiar hack though. I don't know how it works but it may be something you are looking for..

Kars10 03-01-2003 02:01 PM

This is the best hack ive installed for a long time!!!

Thank you so much logician!!
/me klicks install!

Gutspiller 03-15-2003 11:32 PM

I don't understand. So I have to use commands to get it to work? Well if I just want an entire catagory to change for all users, it would probably be easier to just create a new template and apply it to that catagory instead of using this hack right?

JakeC 03-16-2003 12:56 AM

Have there been any thought on what will happen when we go to 3.0? Should the same basic hack work in 3.0? How do you all plan on making the switch, if you do? Thanks

Jake

Slynderdale 03-16-2003 03:35 AM

Quote:

Yesterday at 09:56 PM JakeC said this in Post #147
Have there been any thought on what will happen when we go to 3.0? Should the same basic hack work in 3.0? How do you all plan on making the switch, if you do? Thanks

Jake



Hmm by what i read on the forum, 3.0 already supports it.

Logician 03-16-2003 07:35 AM

Quote:

Today at 03:32 AM Gutspiller said this in Post #146
I don't understand. So I have to use commands to get it to work? Well if I just want an entire catagory to change for all users, it would probably be easier to just create a new template and apply it to that catagory instead of using this hack right?
that is right..

Quote:

Have there been any thought on what will happen when we go to 3.0? Should the same basic hack work in 3.0? How do you all plan on making the switch, if you do? Thanks
VB 3 is announced to have some sort of "conditional" concept. So I believe this hack will be obsolete when vb3 is released. However I'm not sure if conditional concept of vb3 will be same with this hack's. Obviously the syntax would be different. But hopefully it is only the syntax that will be different. For instance it may some other restrictions like 1 conditional per template etc. (which this hack does not have). We'll see when it's released.

Slynderdale 03-16-2003 08:13 AM

Quote:

Today at 04:35 AM Logician said this in Post #149

that is right..


VB 3 is announced to have some sort of "conditional" concept. So I believe this hack will be obsolete when vb3 is released. However I'm not sure if conditional concept of vb3 will be same with this hack's. Obviously the syntax would be different. But hopefully it is only the syntax that will be different. For instance it may some other restrictions like 1 conditional per template etc. (which this hack does not have). We'll see when it's released.


The vBulletin 3.0 one supports multiple conditionals and there syntax is:
Code:

<if condition="condition">
// stuff
<else />
// stuff
</if>

example:
Code:

<table>
<tr>
<if condition="$vboptions['$vbversion'] == 3.0">
<td>vB 3.0 is here!</td>
<else />
<td>Still waiting...</td>
</if>
</tr></table>



All times are GMT. The time now is 05:41 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.01297 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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