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)

Dean C 09-08-2002 07:51 PM

this is just too good to be true :D

awesome hack mate

- Mist

Neo 09-09-2002 01:57 AM

In one sentence what does this do?

Austin Dea 09-09-2002 02:25 AM

Look at the thread title if you really want it in one sentence -_-...

I have to say I am AMAZED by your hacks Logician. They have so much functionality and are so much more advanced than most other hacks. Great job, keep up the good work ;).

SemperFidelis 09-09-2002 05:17 AM

Another brilliant hack by Logician
Well done and thankyou
:D

Logician 09-09-2002 05:54 AM

Quote:

Originally posted by Neo
In one sentence what does this do?
You can program your vb templates to display different HTML codes to your visitors under different conditions. So they are not static anymore..

Since you are a hacker this information can clarify things better for you:
After you installed the hack you dont need to hack vb. code for this:
PHP Code:

if ( any condition goes here)
{
eval(
"dooutput(\"".gettemplate("ANY TEMPLATE GOES HERE")."\");");
}
else 
{
eval(
"dooutput(\"".gettemplate("ANY TEMPLATE GOES HERE")."\");");


You can now do the same thing by editing the relevant template and insert:
PHP Code:

[[(your condition goes here)]]
HTML codes displayed if your condition applies
[[/(your condition goes here)]]
Other HTML codes displayed regardless of your condition 

Hope this helps a bit..

Marshalus 09-09-2002 08:23 PM

Simply amazing. A definate nomination for vB hack of the month, hell, hack of the year. This will revolutionize the way people hack their boards, I know I have a lot of uses for this hack just by reading through the description.

/me installs.

NuclioN 09-09-2002 11:10 PM

Absolutly a genious mod! Clicks install in a string :D
I guess this opens the way for creative codehackers to create new, funny and smart hacks for the VB forum.

fastforward 09-09-2002 11:50 PM

Quote:

Originally posted by Logician
Vbulletin v.3 has been announced to have "conditional" concept in templates, however my hack wasn't inspired by it at all, because I'm using the conditionals in my Webtemplates hack since March 2002 so in fact vb developers might be inspired by me. ;)
Great hack Logician, but Ed was inspired way before March 2002 :) :
https://vborg.vbsupport.ru/showthrea...t=conditionals

Like I said though, great hack and thanks... I'll be using it.

Logician 09-10-2002 07:05 AM

Quote:

Originally posted by fastforward

Great hack Logician, but Ed was inspired way before March 2002 :) :
https://vborg.vbsupport.ru/showthrea...t=conditionals

Like I said though, great hack and thanks... I'll be using it.

thx for pointing this out, I didnt know that thread (in fact I didnt even have vb then)..

So they might not be inspired by me, but at least I'm not inspired by them either.. :knockedout:

Abbas 09-10-2002 07:27 AM

Great hack!

Using conditionals will it be possible to have separate templates for categories of forums? Or will you have to have a conditional for each forum in that category. I'm basically going to aim to have separate sections of my forum with different graphical styles etc.

Thanks
-Abbas


All times are GMT. The time now is 12: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.01233 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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