The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Issues
(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: Code:
<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> ___ 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: Code:
$thread[prefix_rich] ___ Thanks in advance. |
#2
|
||||
|
||||
the first issue you do not have this $post[onlinestatus] , put that where you want the online status to be on
for the second issue really i do not see any problem Hope it solved for you Regards. |
#3
|
||||
|
||||
If you want your prefixes to have [] around them, why not add it in the Prefix Manager for the prefix? I suppose the other way would be:
HTML Code:
<if condition="$thread[prefix_rich]">[$thread[prefix_rich]]</if> |
#4
|
|||
|
|||
Quote:
Code:
if user... online: user-name color = GREEN offline: user-name color = RED invisible: user-name color = WHITE Quote:
I can't do this through the prefix manager because vBulletin (or maybe it's just my skin) seems already encapsulate prefixes in braces when on the forum index. Also, where the prefix text was set in the bread-crumb in the nav-bar & the page title? |
#5
|
||||
|
||||
No, vbulletin does not put them in braces on the forum index. It must be your skin. Did you try the condition I posted?
|
#6
|
|||
|
|||
Your issue on your first problem (I think) is that you are posting their mark-up username (what is set per usergroup) - without the underline.
I will see what I can come up with, and reply. EDIT: It seems whatever methods I try - it over-rides current username mark-up. |
#7
|
|||
|
|||
Quote:
Quote:
HTML Code:
<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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|