Quote:
Originally Posted by kh99
... but if it's a static html widget then I think the only way to do it would be to provide you're own "wrapper" template (which is in the text box at the bottom if you press "Configure" for your widget). You could copy the existing vbcms_widget_static_page template to a new one such as vbcms_widget_static_page_home_only or whatever, then put a conditional around it.
|
See the reply I just made, I just attempted this and it's not working for some reason.
--------------- Added [DATE]1334685953[/DATE] at [TIME]1334685953[/TIME] ---------------
Ok I figured out the error, it was here:
Code:
<vb:if condition="$_GET[r] == "">
Should be:
Code:
<vb:if condition=$_GET[r] == "">
So no errors now, but still not showing up on the main page. I'm wondering if I need to change the nodeid? Because my site (pcshoptalk.com/index.php and pcshoptalk.com/content.php) are the same pages.
In the top left it also says "Home > Home".
So do I need to specify some sort of nodeid?
--------------- Added [DATE]1334686481[/DATE] at [TIME]1334686481[/TIME] ---------------
Quote:
Originally Posted by kh99
ETA: oh, I see you beat me to it. In the condition you posted, is that 3 double quote characters? It should be double quote at the beginning and end, and 2 single quotes right after the ==, like:
Code:
<vb:if condition="$_GET[r] == ''">
|
Can't quite code it that way with single quotes or you get this error:
Quote:
vBulletin Message
The following error occurred when attempting to evaluate this template:
An empty or invalid 'if' condition was found.
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
|
And it still does nothing. I'm thoroughly confused on how to make this work. I never thought it would be this complicated to add a piece of content only to the home page...
--------------- Added [DATE]1334688258[/DATE] at [TIME]1334688258[/TIME] ---------------
FINALLY got this...
Need to use this statement instead:
Code:
<vb:if condition="$vbulletin->nodeid == 1">........</vb:if>
Nodeid can't be index page apparently if your content management home page is "1-Index".