![]() |
Creating a block (not a tab) on the profile page?
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 --> 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. |
Add it in it's own fieldset under the General stats tab or one of the others.
|
1 Attachment(s)
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. |
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] 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 --> So how do I make vBulletin process either html or bbcode contained inside of $userinfo[field23] ? |
All times are GMT. The time now is 01:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|