![]() |
Quote:
|
Awesome hack, Logician! Thank you so much! You should be on the vB dev team! :) I'm already making use of conditional templates by showing a special message to guests in my header, encouraging them to join. I'm also making use of it in my headinclude template, so that pop-up advertising code is only inserted for guests, but not members! :cool:
I know that you would rather not answer questions about creating conditionals, but I would just like confirmation on whether or not this is possible... Can a conditional be created so that it displays the code only once every 12 hours per visitor? |
Quote:
[[(date("H", time())>0 AND date("H", time())<13)]] condition [[/(date("H", time())>0 AND date("H", time())<13)]] This will apply when time is between 00.00 to 12.00 (server time). |
Quote:
|
does this hack work with vbhome lite?
here is my intended result. stop me at the point where I screwed up... in the index.php for vbhome lite I added forumid to this select statement... Code:
$articlebits = ''; so then in the aritcle bit of vbhome lite I put in [[($articlebits[thread.forumid='3'])]]foo[[(/$articlebits[thread.forumid='3'])]] I have tried numerous concatenations of articlebits articles article as such. I cant figure it out. mostly because Im newbie to all of this... any help? is this possible? |
If your looking for a similar hack like this but works in posts as a vB Code, try here:
https://vborg.vbsupport.ru/showthrea...threadid=48492 |
Logician,
The hack is awesome and works (in 2.2.9) so far ... but this is the effect I'm trying to achieve and was hoping you might offer some insight: I'd like to show certain data in a template on "X" date and show alternative data in a template if the current date is not "X". Any hints? |
Quote:
template content to display if date is 02.19.2003 (server time!) [[/(date("m.d.Y")=="02.19.2003")]] [[(date("m.d.Y")!="02.19.2003")]] template content to display if date is NOT 02.19.2003 (server time!) [[/(date("m.d.Y")!="02.19.2003")]] |
Something is up, it isn't working it is only printing out the lines and not restricting anything.
Running 2.2.9, somewhat modified, it was working earlier. |
try to reapply.. a recent hack might have overwrited the hack somehow..
|
All times are GMT. The time now is 05:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|