The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Field is not disappearing!!
Created a couple fields to show up on the postbit legacy. For those who didn't include any information, there is a box with nothing in it. Here is an example:
http://www.caraudiojunkyard.com/foru...5&postcount=45 This is how it suppose to look like: http://www.caraudiojunkyard.com/foru...95&postcount=1 This is the current code: Code:
<div class="rm_userinfo" align="center"> <if condition="$post['field19']"><strong>Real Name:</strong> $post[field19]</if><br /> <if condition="$post['field2']"><strong>$vbphrase[location_perm]:</strong> $post[field2]</if><br /> <if condition="$post['age']"><strong>$vbphrase[age]:</strong> $post[age]</if> </div> What did i do wrong? |
#2
|
|||
|
|||
Shouldn't the <if> conditionals be on the outside of the <div>?
I'm still new at this, too...but that would be my guess... |
#3
|
||||
|
||||
Try this: HTML Code:
<div class="rm_userinfo" align="center"> <if condition="$post['field19'] != ''"><strong>Real Name:</strong> $post[field19]</if><br /> <if condition="$post['field2'] != ''"><strong>$vbphrase[location_perm]:</strong> $post[field2]</if><br /> <if condition="$post['age'] != ''"><strong>$vbphrase[age]:</strong> $post[age]</if> </div> |
#4
|
|||
|
|||
Nope, still does not work.
|
#5
|
||||
|
||||
After checking the page, I think the problem is with the Mood Manger, not the code pasted. If the code in question was being displayed, you see "Real Name:".. since you don't, it shouldn't be that. Check the Mood Manager.
|
#6
|
|||
|
|||
In the mood manager what should i be looking at?
|
#7
|
||||
|
||||
Wait a second. It's not the Mood Manager. Duh, use this:
HTML Code:
<if condition="!$post['field19'] && !$post['field2'] && !$post['age']"> <div class="rm_userinfo" align="center"> <if condition="$post['field19']"><strong>Real Name:</strong> $post[field19]<br /></if> <if condition="$post['field2']"><strong>$vbphrase[location_perm]:</strong> $post[field2]<br /></if> <if condition="$post['age']"><strong>$vbphrase[age]:</strong> $post[age]</if> </div> </if> |
#8
|
|||
|
|||
Nice!! There we go! Thanks alot...
Hmmm.. tested it and didnt work. This time, it does not show anything. |
#9
|
||||
|
||||
I told you why in the post above yours...
|
#10
|
|||
|
|||
Oh i understand now thanks. While we are at it, how do i make this not visible when not entered:
Code:
<!-- post specs_menu --> <div id="specs_$post[postid]" class="rm_userinfo" align="center"> <a href="#specs">My Car Audio System</a> <script type="text/javascript"> vbmenu_register("specs_$post[postid]"); </script> </div> <!-- / post specs_menu --> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|