Vaupell
01-18-2010, 12:20 PM
Got a registered var, i get and want to check with if statment
to weither to show report link or not..
Howewer when trying to save this, i get unexspected , or unclosed tag..
so if the statment is 3 then no link is shown, how ewer any other value will show the link.
<vb:if condition="({vb:raw moderated}, 3)">
<vb:else />
<a class="botton" href="EIG.php?do=reportgallery&galid={vb:raw userid}"> Report offensive gallery(NEED PHRASE) </a>
</vb:if>
condition=({vb:raw moderated}, 3)> didnt save at all. ;)
EDIT + UPDATE :
after re-reading this article -> https://vborg.vbsupport.ru/showthread.php?t=231525&highlight=conditional
I then tryed another cconditional
<vb:if condition="{vb:raw moderated} == 3">
<vb:else />
<a class="botton" href="EIG.php?do=reportgallery&galid={vb:raw userid}"> Report offensive gallery </a>
</vb:if>
Which didnt work either.
to weither to show report link or not..
Howewer when trying to save this, i get unexspected , or unclosed tag..
so if the statment is 3 then no link is shown, how ewer any other value will show the link.
<vb:if condition="({vb:raw moderated}, 3)">
<vb:else />
<a class="botton" href="EIG.php?do=reportgallery&galid={vb:raw userid}"> Report offensive gallery(NEED PHRASE) </a>
</vb:if>
condition=({vb:raw moderated}, 3)> didnt save at all. ;)
EDIT + UPDATE :
after re-reading this article -> https://vborg.vbsupport.ru/showthread.php?t=231525&highlight=conditional
I then tryed another cconditional
<vb:if condition="{vb:raw moderated} == 3">
<vb:else />
<a class="botton" href="EIG.php?do=reportgallery&galid={vb:raw userid}"> Report offensive gallery </a>
</vb:if>
Which didnt work either.