The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Currently in my 3.6 build I have extra blocks created in my users profiles. One in particular is a music player for their music. It only shows up if the field is entered (by me) on their profile.
My current code is: Code:
<!-- Music Player Begin --> <if condition="$post[field30]"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr class="tcat"> <td align="center"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="247" id="mp3player" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mp3player.swf?xml=music/$userinfo[field30]/config.xml" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="mp3player.swf?xml=music/$userinfo[field30]/config.xml" quality="high" bgcolor="#ffffff" width="335" height="247" name="mp3player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> </tr> </table> <p></if> <!-- Music Player End --> Is there any easy to follow directions for taking this code and making a conditional block on the right hand side of the users profile. Such as the albums, mini stats, etc blocks? I've seen a post about creating new tabs but I only need this data from the field to show up in a side block, not a tab, but I still want my tabs to work as they do. |
#2
|
||||
|
||||
![]()
Add it in it's own fieldset under the General stats tab or one of the others.
|
#3
|
|||
|
|||
![]()
Ok maybe I'm not following along here but I'm talking about having the block show up in the right hand side, not in the tabs.
I attached the screenshot to show what I mean. I'm looking to make a block above the Mini Stats block. It will contain a standard block of code, as I showed in my first post, and then the $userinfo[field30] is filled from a profile field. Also I have my current one surrounded by the <if condition="$post[field30]"> </if> so the block doesn't appear unless there is data in that field. I figured this out for 3.6 but all these tabs/blocks for 3.7 I just don't follow. I see articles talking about adding new tabs but I don't need a tab, I really just need this to be a block with custom data all by itself above the Mini Stats. So if I'm not following what you are saying I'm more then happy to get some clarity. Thanks. |
#4
|
|||
|
|||
![]()
Ok so I figured out how to create a conditional block in the right hand side, but one thing I can't do is get the block to process code. It does a direct output of the profile field but won't parse it.
For example if there was an image code in that profile field, either: Code:
[IMG ]http://mysite.com/img.jpg[ /IMG] spaces added to allow the tag to show Code:
<img src="http://mysite.com/img.jpg"> The simple test block I created in the template: memberinfo_blocks_test contains this Code:
<!-- test block --> <if condition="$userinfo[field23]"> <div id="test" class="tborder content_block"> <h4 class="thead block_title"> <span class="block_name">Test Data</span> </h4> <div class="alt2 block_row block_footer"> $userinfo[field23] </div> </div> </if> <!-- / test block --> So how do I make vBulletin process either html or bbcode contained inside of $userinfo[field23] ? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|