Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
youtube feature needed
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/09/09 23:18 
hi brian i looked over the source for the youtube
but im trying to display users embded videos like the regular videos with pagenation
but there is no youtube_video_count

using code

{* check for language strings *}
{jr_lang_prepare theme="SocialNetwork" default="en-US"}

{* set up our pagination *}
{jr_theme_paginator mode="header" pagebreak="2" total=$YOUTUBE_VIDEO_COUNT}

{jr_ranking mode="jrYouTube" order="1" show="10" row_template="theme_youtube_row.tpl" band_id=$BAND_ID}

{jr_theme_paginator mode="footer" template="theme_paginator.tpl"}

p.s there seems to be a bug when you modify too of youtube videos

steve Smile

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/10/09 09:52 
I've got Jamroom 4.0.4 so it will now create a "counts" variable for your use - for the youtube module it would be:

$jrYouTube_COUNT

so it is:

$modulename_COUNT

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/13/09 19:48 
this working in the new release as im getting Parse error: syntax error, unexpected ';' in /home/hockeybe/public_html/members/2/youtube.php on line 105

steve Smile

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/14/09 10:08 
If you are getting a parse error in your theme PHP files, it means there is an error in your template. Jamroom simply creates the variable - you'll need to make sure you are using it correctly.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/14/09 15:20 

bigguy:
I've got Jamroom 4.0.4 so it will now create a "counts" variable for your use - for the youtube module it would be:

$jrYouTube_COUNT

so it is:

$modulename_COUNT

Hope this helps!

- Brian


im using the above quote for the counts as you said that was being introduced for the pagenation or do i need to write the assign into the module itself and do a count myself

steve Smile

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/14/09 16:35 
What does your jrYouTube profile theme sub config file look like? It's working here for me..

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/14/09 17:50 
hey brian, my theme was originally based off colbalt3 which is now fully updated with all the v4 features
only issue im having is the youtube feature

my theme.cfg has the following

# YouTube
youtube_header.tpl | youtube.php
youtube_theme.tpl | youtube.php
theme_footer.tpl | youtube.php

my youtube_theme.tpl contains

{* check for language strings *}
{jr_lang_prepare theme="SocialNetwork" default="en-US"}

{* set up our pagination *}
{jr_theme_paginator mode="header" pagebreak="4" total=$jrYouTube_COUNT}

{jr_ranking mode="jrYouTube" order="1" show="10" row_template="youtube_row.tpl" band_id=$BAND_ID}

{jr_theme_paginator mode="footer" template="theme_paginator.tpl"}

am i missing anything else

steve Smile

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/14/09 17:53 
Yes - you are missing a jrYouTube sub config file - you need that so the theme "loops" over the included templates once per entry. Check out the theme designer guide in the docs for details on sub config files if you are not sure what they are - basically you need a file called:

jrYouTube_list.cfg

and you would call it in your theme.cfg like:


Code

jrYouTube_list.cfg | youtube.php


then inside the jrYouTube_list.cfg you would have:

Code

jrYouTube_list.tpl


Which would be looped once per youtube entry by the user.

It works just the same as songs, videos, etc. - but if Jamroom does not see a sub config file for jrYouTube, it will not "load" the jrYouTube module.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/14/09 18:15 
would i still need the theme_youtube.tpl still as it seems to be doubling up
i zip up my theme for you to see all the files or would that list be blank .tpl file?
http://hockeybeef.com/SocialNetwork.zip
steve

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 02/14/09 18:17 
I don't understand what you mean. Place this in your jrYouTube.tpl file:


Code

{$YOUTUBE_VIDEO_ID}


and you'll see the template is looped once per entry from the user. Using that and my example above should get you working.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
perfectgamestudios



Joined: 27 Apr 2005
Posts: 698

Posted: 02/17/09 00:09 
worked it all out now, just as working on more of jamroom theme so i can release it Smile ajax is next this is youtube test page

http://hockeybeef.com/Revolution/jrYouTube.php?p=1

steve Smile

Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
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.