The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Okay so I didn't know how to title this. I have an embedded player in the profiles. If user puts in their code on the profile fields it will show their player. How do I code it so if they dont enter anything in the profile fields to display a default player?
Say the code is Code:
<if condition="$userinfo[field17]">
<if condition="$userinfo[field18]">
<div id="myspace" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('myspace')"><img id="collapseimg_myspace" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Music Player</span>
</h4>
<div class="block_content" id="collapseobj_myspace" style="">
<div class="alt2" align="center">
<body><embed type="application/x-shockwave-flash" src="http://thelink/Embed.ashx/1=$userinfo[field17],2=$userinfo[field18]" e=http%3A//thelink/%$userinfo[field18]%$userinfo[field17]" width="247" height="400">
</body></div></div></div></if></if>
Any help would be great. |
|
#2
|
|||
|
|||
|
Questions about modifications should be asked in the modification thread.....
Idk how staff says it lol, but looks like thats RTM.org's MySpace music player in profile. ask there.
|
|
#3
|
|||
|
|||
|
Thanks I will. Seen there hasn't been activity in there in a while. Just thought there would be a ton of people that could explain the <if> conditions so I would understand
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|