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)

Slynderdale 05-13-2003 09:38 AM

This hack lets you use conditions like on vbulletin 3.0.

examples:

<if($bbuserinfo[userid]==0)>stuff</if>
<if($bbuserinfo[userid]==0)>stuff<else />else stuff</if>

<if($bbuserinfo[usergroupid]==0)>
stuff
</if>

<if($bbuserinfo[usergroupid]==0)>
stuff
<else />
else stuff
</if>

And so on.

Also I want to note, that at the moment, you cant use conditions inside a condition. It will mess up. I'll try to come up with a fix till then.

If you like this hack and plan to use it, please click install.
Now im off to school, if any one exspirences any problems, I'll get back to you asap.

Hope you like it.

Slynderdale 05-13-2003 09:40 AM

Also note that its <else /> not <else> or <else/>

Erwin 05-13-2003 10:25 AM

Very cool. :)

Mephisteus 05-13-2003 12:15 PM

very very nice :) Installed :)

wolfe 05-13-2003 12:47 PM

d00d i can't find any of the code in the functions.php file :(

Slynderdale 05-13-2003 12:51 PM

Quote:

Today at 09:47 AM wolfe said this in Post #5
d00d i can't find any of the code in the functions.php file :(

Find the gettemplates function and paste the first part of the code in it near the botton of it near the code that resembles the first part I told you to find.

Then under the function add the one I made and thats basicly it.

filburt1 05-13-2003 01:45 PM

Is my mind completely shot or isn't this virtually identical to the other conditionals hack?

Logician 05-13-2003 02:05 PM

threads merged..

Boofo 05-13-2003 02:19 PM

Quote:

Today at 05:38 AM Slynderdale said this in Post #201
This hack lets you use conditions like on vbulletin 3.0.

examples:

<if($bbuserinfo[userid]==0)>stuff</if>
<if($bbuserinfo[userid]==0)>stuff<else />else stuff</if>

<if($bbuserinfo[usergroupid]==0)>
stuff
</if>

<if($bbuserinfo[usergroupid]==0)>
stuff
<else />
else stuff
</if>

And so on.

Also I want to note, that at the moment, you cant use conditions inside a condition. It will mess up. I'll try to come up with a fix till then.

If you like this hack and plan to use it, please click install.
Now im off to school, if any one exspirences any problems, I'll get back to you asap.

Hope you like it.

Can this be used along with Logician's conditional hack?

EvilLS1 05-14-2003 05:48 AM

I can't believe I've overlooked this hack for so long! This is brilliant! Great hack Logician!


All times are GMT. The time now is 11:11 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.01431 seconds
  • Memory Usage 1,736KB
  • 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_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