Thank you both :)
The second is ok in my case! The number of post is under 1000 so is ok also on vb4! :) |
Quote:
|
I am trying to find the new conditions for VB4.
Old condistion: Code:
<if condition="$today_is_wednesday">Test</if> Code:
<vb:if condition="$today_is_wednesday">Test</vb:if> |
Try:
Code:
<vb:if condition="gmdate('D') == 'Wed' "> |
Quote:
I tried putting the following conditions that you recommended in this code for a widget and even when it is not Wednesday it still displays. Any ideas or help would be appreciated. Code:
<vb:if condition="gmdate('D') == 'Wed' "> |
This is the exact code I have working right now on my test forum:
Code:
<vb:if condition="gmdate('D') == 'Sat' "> I have this working in my Navbar template. I've never used widgets, do template conditionals work in them at all? I did notice a limitation, gmdate returns Greenwich Mean Time, so it works when it's Wednesday in Greenwich, England. http://us.php.net/manual/en/function.gmdate.php Unfortunately vBulletin doesn't seem to allow the regular date() function which returns the local date, so this may not work well for you anyway. FYI- Your code pasted into my navbar works fine. |
is it possible to use a conditional to check whether you're viewing ONLY the very front page (CMS)?
e.g. I'd like to add a link in the footer of just the CMS's front page - but not on any other pages, not show if they're reading an article, not show if they're using forum or blogs, etc. etc. - just the front page and only the front page. |
Quote:
HTML Code:
<vb:if condition="THIS_SCRIPT == 'vbcms'">Show this</vb:if> |
Thanks HM, but that shows when reading articles too... I need the code to only show on the front page alone - not articles/comments... If you have any ideas on narrowing it down, that would be most appreciated :)
|
I'm not sure that's possible since the articles/comments run off of that same script....
|
All times are GMT. The time now is 06:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|