View Full Version : this code does not show!
baboo
08-20-2010, 05:13 PM
Hi everybody,
I have a picture and I would like to see it in just 3 forums id, I tried to put this code but I still does not show.
<vb:if condition="in_array($forumid, array(16,31,32))"><img border="0" src="http://www.world-gd.com/forum/images/brotator/ard-and-nkd.gif" width="900" height="156"></vb:if>
Thank you very much
Videx
08-21-2010, 01:51 AM
So just post it in the forum where you want it to show. There's no need for code.
I suspect you're trying to do something much more complicated, but just don't know the right question to ask.
baboo
08-21-2010, 02:19 AM
Thank you my friend for reply...
But I need to show the picture in those 3 forums. I dont want to show the picture in all forums id.
Lynne
08-21-2010, 03:24 AM
What template are you trying to put that condition in? In vB4, variables must be registered for use in the template. If $forumid is not registered for use in whatever template you are trying to use it in, then you either need to preregister it or use a different variable that is already registered for use there.
baboo
08-22-2010, 12:12 PM
Thank you for reply, I tried to put that condition in "FORUMDISPLAY", is right?
Lynne
08-22-2010, 02:12 PM
But is that variable registered for use in the FORUMDISPLAY template? Do a search in your php files for ('FORUMDISPLAY') and you'll find where the template gets created and then rendered and you'll also see all the variables listed that are registered for use in it. Is $forumid listed there?
borbole
08-22-2010, 02:17 PM
Hi everybody,
I have a picture and I would like to see it in just 3 forums id, I tried to put this code but I still does not show.
<vb:if condition="in_array($forumid, array(16,31,32))"><img border="0" src="http://www.world-gd.com/forum/images/brotator/ard-and-nkd.gif" width="900" height="156"></vb:if>
Thank you very much
Also, in addition the img code is missing the required alt attribute and the border attribute is deprecated and is not supported in HTML 4.01 Strict. You should use the style attribute instead :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.