Irwin
08-23-2009, 03:38 PM
(first post on forums, so please forgive any mistakes)
I've been [pitifully] attempting to modify my forum template a bit here & there and I've encountered a few issues where my [pseudo] HTML knowledge simply does not suffice.
___
My first problem is that I wanted to replace the user offline/online/invisible text/image in the post-bit with an underline for the user-name (green if online, white if offline) & after searching through the forums a bit, I thought I had it but it does not work:
<if condition="$show['profile']">
<if condition="$onlinestatus==1">
<a class="bigusername" style="border-bottom: 1px dotted #00FF00" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<else />
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
</if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
Does anyone know why I'm having this problem?
___
My second problem revolves around prefix styling, I was attempting to brace all prefixes in '['/']' but I've seemingly hit a snag. When prefixes are shown in the thread-bit, they're shown as such:
$thread[prefix_rich]
I attempted to encapsulate the prefix in brackets but the problem is that when there is no prefix you're left with an empty "[]" brace before the thread name is shown. I've tried to find the "prefix_rich" definition but have been unable to thus-far and I'm assuming the pseudo-HTML <if> tag does not support comparing "prefix_rich" to an empty string (furthermore, I do not know the string delimiters in HTML).
___
Thanks in advance.
I've been [pitifully] attempting to modify my forum template a bit here & there and I've encountered a few issues where my [pseudo] HTML knowledge simply does not suffice.
___
My first problem is that I wanted to replace the user offline/online/invisible text/image in the post-bit with an underline for the user-name (green if online, white if offline) & after searching through the forums a bit, I thought I had it but it does not work:
<if condition="$show['profile']">
<if condition="$onlinestatus==1">
<a class="bigusername" style="border-bottom: 1px dotted #00FF00" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<else />
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
</if>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
Does anyone know why I'm having this problem?
___
My second problem revolves around prefix styling, I was attempting to brace all prefixes in '['/']' but I've seemingly hit a snag. When prefixes are shown in the thread-bit, they're shown as such:
$thread[prefix_rich]
I attempted to encapsulate the prefix in brackets but the problem is that when there is no prefix you're left with an empty "[]" brace before the thread name is shown. I've tried to find the "prefix_rich" definition but have been unable to thus-far and I'm assuming the pseudo-HTML <if> tag does not support comparing "prefix_rich" to an empty string (furthermore, I do not know the string delimiters in HTML).
___
Thanks in advance.