Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Documentation and How To's:
RSS, Podcasts, and much, much more ;)
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 05:28 
You guys are awesome! I'm sure other users will be wanting to use this and I appreciate you two getting this figured out as I will be using it soon too.

Thanks a BUNCH! Smile


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/09/07 08:54 
Jill did all the hard work, I just added the template pre-processor Wink


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
JohnyBgood



Joined: 17 Apr 2005
Posts: 478
Location: North America

Posted: 08/09/07 11:23 

SixString:
You guys are awesome! I'm sure other users will be wanting to use this and I appreciate you two getting this figured out as I will be using it soon too.

Thanks a BUNCH! Smile


SixString, you're right on, with other users wanting to use this. Not being familiar with podcasts I have a couple of questions.

Does this create all the radio stations create into podcasts. If so how do you add them in the scripts.

How would one use this as admin and will artists be able to do the same.

Hope I'm clear.


_________________
Play The Melody, don't over-arrange, don't make life difficult, play it the simplest way possible.

Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 08/09/07 11:46 
Wow, that template pre-processor - the possibilities - the mind boggles!!!

And great podcast info, technique and code. Thanks Kyle, Six and Jill!


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/09/07 11:47 

SteveX:
Wow, that template pre-processor - the possibilities - the mind boggles!!!


I know!!!!! I'm so excited about it!


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 14:25 

JohnyBgood:
Does this create all the radio stations create into podcasts. If so how do you add them in the scripts.


No, this creates a podcast for the play list you defined in your podcast.tpl file, if you wanted to add more play lists to it, I'd suggest creating separate podcast.tpl files with different play list id's.


JohnyBgood:
How would one use this as admin and will artists be able to do the same.

Hope I'm clear.


If you wanted the admin only to see the podcast do this


Quote:
{if is_numeric($_USER.user_id) && $_USER.user_id == 0}
<a href="http://kyle.jamroom.net/index.php?t=podcast">Podcast</a>
{/if}


Or just don't publish the URL...

And if you want your members to have a podcast link for their radio stations only... I'd have to see about adding it to the themes, unless Kyle beats me to it.
Wink

Hope this helps Smile


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/09/07 14:28 
Make sure you use this line:

{if is_numeric($_USER.user_id) && $_USER.user_id == "0"}

Instead of this:

{if is_numeric($_USER.user_id) && $_USER.user_id == 0}

As the second one could evaluate to false if the 0 isn't in quotes.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 14:29 

smith.kyle:
Make sure you use this line:

{if is_numeric($_USER.user_id) && $_USER.user_id == "0"}

Instead of this:

{if is_numeric($_USER.user_id) && $_USER.user_id == 0}

As the second one could evaluate to false if the 0 isn't in quotes.


Oops, Thanks Wink


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 14:52 
Updated the first post... let me know if I've missed anything. Wink


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/09/07 14:57 
Looks good! There's actually an easy way to make it so you just have 1 template, I'll post about it when I get back from lunch.


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 14:59 

smith.kyle:
Looks good! There's actually an easy way to make it so you just have 1 template, I'll post about it when I get back from lunch.


Anything simplified would be great. Smile


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/09/07 15:53 
OK, here it is...This is actually really cool, and I'm glad I just thought of it, as it'll remove a lot of unnecessary code from things I do hereon out. You can do the podcast.tpl file like this:


Code
{jr_playlist id=$id|default:"1" limit=$limit|default:"40" template=$template|default:"podcast_xml.tpl"}


Then all you have to do is call your template like this:

index.php?t=podcast

And it will automatically use all of those defaults, OR you can pass in any of those variables, and it will use those! i.e.

index.php?t=podcast&id=2 would use radio_id 2 instead of the deafult radio_id 1. Pretty cool eh? That eliminates the need for a bunch of different templates.

Also, you might want to stress that the template pre-processor needs to be named the same as the tpl, just with a .php extension, otherwise it won't work.

Cheers!

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 16:19 
Thats pretty slick... Wink


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
JohnyBgood



Joined: 17 Apr 2005
Posts: 478
Location: North America

Posted: 08/09/07 16:22 
AAAAGhhhhh! pulling my hair out. maybe I'll wait till it's built in the jamroom with a layman's instruction file!


_________________
Play The Melody, don't over-arrange, don't make life difficult, play it the simplest way possible.

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 08/09/07 16:25 

JohnyBgood:
AAAAGhhhhh! pulling my hair out. maybe I'll wait till it's built in the jamroom with a layman's instruction file!


What are you having a problem with johnny?

Can you show us a link?


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Documentation and How To's

< Previous12345Next >
 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.