Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
need some help with paYouTubePlus
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/09/09 14:39 
ok i have install it ,i can see it in the control , i have created a video but for some reason i can not see it when i visit the my profile, do i need to include the something into the theme.tpl?

Jamroom-Nova skin & theme- ver4.0.11

Please advise

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/10/09 08:42 
Here's some sample code from an integration into Nova I've done -

NOVA SKIN

In the jr_header.tpl add in a new menu item -


Code
              {if $selected == 'videos'}
              <td><a id="videos_b" href="{jr_url sefbase='master' seftype='lists' sefvalue='payt_videos'}" class="rounded_h {ldelim}transparent{rdelim} button">{jr_lang id="999" default="youtube Videos"}</a></td>
              {else}
              <td><a id="videos_b" href="{jr_url sefbase='master' seftype='lists' sefvalue='payt_videos'}" class="rounded {ldelim}transparent{rdelim} button">{jr_lang id="999" default="youtube Videos"}</a></td>
              {/if}


Create a template payt_videos.tpl -


Code
{assign var="selected" value="videos"}
{assign var="no_inner_div" value="true"}
{jr_lang id="108" default="Videos" assign="title"}
{include file="`$JAMROOM_DIR`/skins/Nova/jr_header.tpl"}

  <table cellpadding="0" cellspacing="0" class="menu">
    <tr>
      <td id="default" class="p_choice trounded {ldelim}transparent{rdelim}"><a onclick="jrLoad('#rank','{$JAMROOM_URL}/ranking.php?mode=paYouTubePlus&order=4&pagebreak={$smarty.config.videos_per_page}');jrSetActive('#default');">{jr_lang id="999" default="youtube videos"}</a></td>
      <td class="spacer">&nbsp;</td>
      <td id="payt_video_2" class="p_choice trounded {ldelim}transparent{rdelim}"><a onclick="jrLoad('#rank','{$JAMROOM_URL}/ranking.php?mode=paYouTubePlus&order=6&pagebreak={$smarty.config.videos_per_page}');jrSetActive('#payt_video_2');">{jr_lang id="999" default="videos by a-z"}</a></td>
    </tr>
  </table>

  <div class="outer">

    {assign var="search_mode" value="paYouTubePlus"}
    {assign var="search_area" value="youtube_video_title"}
    {include file="`$JAMROOM_DIR`/skins/Nova/search_lists.tpl"}


    <div id="rank">
      {jr_ranking mode="paYouTubePlus" order="1" pagebreak=$smarty.config.videos_per_page}
           
    </div>
  </div>

{include file="`$JAMROOM_DIR`/skins/Nova/jr_footer.tpl"}


In the jr_ranking_row.tpl add in a new mode option -


Code
{elseif $MODE == 'paYouTubePlus'}
<tr>
  <td width="05%" class="inner" padding="5px">
    <object width="320" height="258"><param name="movie" value="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="258"></embed></object>

  </td>
  <td width="95%" class="pitmag">
      {if strlen($YOUTUBE_VIDEO_BANDNAME) > 0}
        {$YOUTUBE_VIDEO_BANDNAME}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_TITLE) > 0}
        <b>Title</b> - {$YOUTUBE_VIDEO_TITLE}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CATEGORY) > 0}
        <b>Category</b> - {$YOUTUBE_VIDEO_CATEGORY}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CAPTION) > 0}
        <b>Caption</b> - {$YOUTUBE_VIDEO_CAPTION}<br><br>
      {/if}
      <b>Updated</b> - {$YOUTUBE_VIDEO_TIME|jr_date_format:"date1"}
  </td>
</tr>



NOVA THEME

Create paYouTubePlus_list.cfg -


Code
paYouTubePlus_list.tpl


Create paYouTubePlus_list.tpl -


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

{* set up our pagination *}
{if $OUTPUT_FILENAME == 'yt_videos.php'}
  {jr_theme_paginator mode="header" pagebreak="4" total=$paYouTubePlus_COUNT}
{/if}

<table width="100%" cellpadding="0" cellspacing="0" class="inner cart">
  <tr>
    <td width="05%" valign="top" class="item" style="padding:0px">
      <object width="320" height="258"><param name="movie" value="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="258"></embed></object>
    </td>
    <td width="95%" valign="top" class="item" style="padding:4px">
      {if strlen($YOUTUBE_VIDEO_BANDNAME) > 0}
        {$YOUTUBE_VIDEO_BANDNAME}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_TITLE) > 0}
        <b>Title</b> - {$YOUTUBE_VIDEO_TITLE}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CATEGORY) > 0}
        <b>Category</b> - {$YOUTUBE_VIDEO_CATEGORY}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CAPTION) > 0}
        <b>Caption</b> - {$YOUTUBE_VIDEO_CAPTION}<br>
      {/if}
    </td>
      </tr>
</table>

{if $OUTPUT_FILENAME == 'yt_videos.php'}
  {jr_lang id="26" default="previous" assign="prv"}
  {jr_lang id="27" default="next" assign="nxt"}
  {jr_theme_paginator mode="footer" template="theme_paginator.tpl" prev_page="<img src="`$THEME_URL`/images/prev.png" alt="`$prv`" title="`$prv`">" next_page="<img src="`$THEME_URL`/images/next.png" alt="`$nxt`" title="`$nxt`">"}
{/if}


Add to theme.cfg -


Code
#YouTube Videos
paYouTubePlus_list.cfg | yt_videos.php


In theme_index.tpl add to the menu -


Code
        {if $QUOTA_PAYOUTUBEPLUS_ACCESS == 'yes' && $paYouTubePlus_COUNT > 0}
        <td id="m_ytvideo" class="p_choice trounded {ldelim}transparent{rdelim}"><a onclick="jrLoad('#pm','yt_videos.php');jrHideComments();jrHideFanForm();jrSetMenuActive('#m_ytvideo');">{jr_lang id="108" default="Videoss"}</a></td>
        <td class="spacer">&nbsp;</td>
        {/if}



hth
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/10/09 09:10 
Thanks for the code work like a charm, but one small problem, wheni create 6 videos the next button to page 2 doesnt work, any ideas .

you can check it out here http://www.piknclik.biz/Pavesi/


Also is there away to load the name of the youtube video using the id to pull it into the video charts

cheers
again thanks for the help

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/10/09 12:23 
That pagination code in paYouTubePlus_list.tpl looks a bit odd.

Try this instead -


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

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

<table width="100%" cellpadding="0" cellspacing="0" class="inner cart">
  <tr>
    <td width="05%" valign="top" class="item" style="padding:0px">
      <object width="320" height="258"><param name="movie" value="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/{$YOUTUBE_VIDEO_ID}&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="320" height="258"></embed></object>
    </td>
    <td width="95%" valign="top" class="item" style="padding:4px">
      {if strlen($YOUTUBE_VIDEO_BANDNAME) > 0}
        {$YOUTUBE_VIDEO_BANDNAME}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_TITLE) > 0}
        <b>Title</b> - {$YOUTUBE_VIDEO_TITLE}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CATEGORY) > 0}
        <b>Category</b> - {$YOUTUBE_VIDEO_CATEGORY}<br><br>
      {/if}
      {if strlen($YOUTUBE_VIDEO_CAPTION) > 0}
        <b>Caption</b> - {$YOUTUBE_VIDEO_CAPTION}<br>
      {/if}
    </td>
      </tr>
</table>

{jr_theme_paginator mode="footer" template="theme_paginator.tpl" prev_page_url="<input type=\"button\" value=\"&nbsp;&lt;&nbsp;\" class=\"s_button\" onclick=\"jrLoad('#pm','yt_videos.php?p=PREV_PAGE_NUM');\">" next_page_url="<input type=\"button\" value=\"&nbsp;&gt;&nbsp;\" class=\"s_button\" onclick=\"jrLoad('#pm','yt_videos.php?p=NEXT_PAGE_NUM');\">"}


I don't know how to get the yt video title - sorry
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/10/09 13:53 
No joy, i copied and save did a rebuild but it didnt work check it out here http://www.piknclik.biz/Pavesi/

any ideas what code be wrong

cheers
Gov

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/10/09 15:15 
Hmmm - for now, I'd remove the pagination code top and bottom and let all five YT videos show on one page.

In the meantime I'll try and work out why it doesn't work and get back to you.

Thanks
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/11/09 01:38 
Hi Pasher

It works now, i was editing the wrong paYouTubePlus_list.tpl, i had one in me skins/Nova and one in my Themes/Nova and it was pulling in from themes, it works perfect now, again thanks for your help your ace

Cheers
Gov
again thanks

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/11/09 02:28 
So the above pagination code does work OK?


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/12/09 07:50 
works ok, i was editing the wrong tpl

cheers

Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/12/09 09:33 
Hi Pasher

I notice today that profiles that dont have a youtube video created has a youtube tab saying theres one available, when the account hasnt created a video check it out here http://www.piknclik.biz/hello

would you know whats causing this problem.

Cheers
Gov

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/13/09 01:12 
That looks like the JamTube theme.
Does it still show '1' if you switch back to Nova which the above code was for?


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/13/09 02:25 
Hi Pasher

Its not the jamtube theme, we have just changed the color and the look and feel of our site, we are using the Nova theme and skin.

Please advise

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/13/09 03:13 
The above code works ok on my test site with the stock Nova theme.

Can you show me the menu code for the yt tab you've used in your version?

Thanks
Pa


_________________
Paul Asher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
gov



Joined: 06 Jun 2008
Posts: 191

Posted: 07/13/09 03:35 
is this the code ,

{if $QUOTA_PAYOUTUBEPLUS_ACCESS == 'yes'&& $paYouTubePlus_COUNT > 0}
<td id="m_yt_video" class="p_choice trounded {ldelim}transparent{rdelim}"><a onclick="jrLoad('#pm','yt_videos.php');jrHideComments();jrHideFanForm();jrSetMenuActive('#m_yt_video');">{jr_lang id="999" default="Youtube Videos"} ({$paYouTubePlus_COUNT})</a></td>
<td class="spacer">&nbsp;</td>
{/if}

Back to top
Paul
Jamroom Team


Joined: 20 Aug 2003
Posts: 5341
Location: Nottingham, UK

Posted: 07/13/09 04:13 
Your code works fine on my test site.
Are you sure this artist does not have a yt video?


_________________
Paul Asher
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)
Jamroom Help

12Next >
 
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.