PDA

View Full Version : Profile Enhancements - Integrate Podcasts to User Profiles using Garageband.com


MrRem
15 Jul 2009, 10:58
Using RTM's Myspace Player Code (http://www.vbulletin.org/forum/showthread.php?t=209652) and a few changes, this is a fast way to get users podcasts on their right hand column in their profile.

See this working here on the right:
http://voguefm.co.uk/forums/member.php?u=1

THIS REQUIRES NO DOWNLOADS :)

INSTALLATION
Go into your AdminCP.
On the left, select: "User Profile Fields".
From the drop down, click "Add New User Profile Field"

Follow this template and enter the information as required:
If a detail isn't listed, use the default or your discretion.

Title: Garageband Username
Description: Enter your Garageband Username
Default Value: voguefm
Single Line Text Box
Required: No
Editable: Yes
(I have included a Default Value of "voguefm" just as a test. Remove it if you have a test account on Garageband to test).

Click Save

Go back to your "User Profile Field Manager"

Find your new Garageband Username (default is the bottom) and look to the right for something that looks like this "FieldX" - The X will be a number. Make a note of it.


On the left, now go to:
Styles & Templates
Select Style Manager and then Edit Templates.
Then go into your Member Info Template and select MEMBERINFO

Find in MEMBERINFO:
<div id="sidebar_container">

Add After:

Before Adding, Change the TWO instances of [fieldX] to match your field number you found in the first stages.

Eg, [field7] or [field8] etc. If this is your first additional profile edit, it will probably be 6.

The Code:

<!--GARAGEBAND !-->
<if condition="$userinfo[fieldX]">
<div align="center" id="" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse"><img id="" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Garageband Podcast</span>
</h4>
<div class="block_content" id="" style="">


<div class="alt2" align="center">
<body><embed src='http://www.garageband.com/go/gcplayerlg?xmlurl=http://www.garageband.com/user/$userinfo[fieldX]/podcast/main.xml&autoplay=no&repeat=yes&colorChoice=0' type='application/x-shockwave-flash' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' width='240' height='219'></embed></body></div></if><br />


If your member has nothing for those spaces, it will not show up in the profile at all due to conditionals.

Sorry about not being a plugin, I don't know how to make them.
If there are any issues, please feel free to post a reply and I shall endeavour to help out.