Forum Activity for @developer-networks

Developer Networks
@developer-networks
11/10/13 04:50:25AM
566 posts

Ipad adding chart audio playcounts on page refresh


Jamroom Developers

I think Apple devices automatically loads all sounds when they hit a website but they only plays one at a time.

This triggers Jamrooms Charting play counts to add the sounds were loaded on the apple device and it thinks it was played.
updated by @developer-networks: 11/10/13 05:13:17AM
Developer Networks
@developer-networks
11/10/13 12:26:14AM
566 posts

Ipad adding chart audio playcounts on page refresh


Jamroom Developers

Is there a way i can send it to you in a email or pm?

I havent made my site public yet.

*Also you could try on your Jamroom site on your charts page. just refresh your page and see if all the songs on that page plays go up.

Thanks.

updated by @developer-networks: 11/10/13 01:59:27AM
Developer Networks
@developer-networks
11/10/13 12:24:09AM
566 posts

"Start Your Own Online Community" Course.


Using Jamroom

I signed up tonight. Looks like an awsome course, Thank you!
Developer Networks
@developer-networks
11/09/13 11:35:23PM
566 posts

Pagebreak Documentation


Suggestions

If am trying to do a pagebreak on a youtube video list.

currently this is what i have

  <div class="row"> {jrCore_list module="jrYouTube" template="list_youtube.tpl" pagebreak="20"}  </div>

But i would like to add a pagebreak to this list so i can view all of the videos.

so i tried adding

pagebreak=$_conf.mySkin_default_artist_pagebreak page=$_post.p}

and then tried realized just needed
pagebreak=20 page=$_post.p}

but it dosent create the arrows seperating the list.

so i added...

    {if $info.total_pages > 1}
    <div class="block">
        <table style="width:100%;">
            <tr>

                <td style="width:25%;">
                    {if isset($info.prev_page) && $info.prev_page > 0}
                        <input type="button" value="{jrCore_lang module="jrCore" id=26 default="&lt;"}" class="form_button" onclick="window.location='{$info.page_base_url}/p={$info.prev_page}'">
                    {/if}
                </td>

                <td style="width:50%;text-align:center;">
                    {if $info.total_pages <= 5 || $info.total_pages > 500}
                        {$info.page} &nbsp;/ {$info.total_pages}
                        {else}
                        <form name="form" method="post" action="_self">
                            <select name="pagenum" class="form_select" style="width:60px;" onchange="var sel=this.form.pagenum.options[this.form.pagenum.selectedIndex].value;window.location='{$info.page_base_url}/p=' +sel">
                                {for $pages=1 to $info.total_pages}
                                    {if $info.page == $pages}
                                        <option value="{$info.this_page}" selected="selected"> {$info.this_page}</option>
                                        {else}
                                        <option value="{$pages}"> {$pages}</option>
                                    {/if}
                                {/for}
                            </select>&nbsp;/&nbsp;{$info.total_pages}
                        </form>
                    {/if}
                </td>

                <td style="width:25%;text-align:right;">
                    {if isset($info.next_page) && $info.next_page > 1}
                        <input type="button" value="{jrCore_lang module="jrCore" id=27 default="&gt;"}" class="form_button" onclick="window.location='{$info.page_base_url}/p={$info.next_page}'">
                    {/if}
                </td>

            </tr>
        </table>
    </div>
    {/if}
{/if}


copied from an example i was using.


Quote: I tried looking for an example how to set up a pagebreak other then the code i was breaking apart and learning from.

Ill figure it out soon, this is easy to understand and work out.. I just dont know much yet about smarty and im still learning how it works.

The reason i posted this however was you were asking everyone if we could find suggestions for documentation and i was thinking that showing a user this process in more depth is a good way to break the ice as far as:

getting started with developing your Jamroom site. And it can also introduce the user to the power and functionality that Jamroom has.



updated by @developer-networks: 11/10/13 02:09:50AM
Developer Networks
@developer-networks
11/09/13 11:22:56PM
566 posts

Dropdown Menus


Suggestions


Instead of dropdown the index is a menu for the module.
2nd.jpg 2nd.jpg - 112KB

updated by @developer-networks: 11/10/13 12:13:59AM
Developer Networks
@developer-networks
11/09/13 11:10:04PM
566 posts

Dropdown Menus


Suggestions

This is something ive been looking at on my dev site and figured id share as this might help functionality for everyone.

Drop down links or menus on the profile menu.

Currently with the module convention in place you have to click on a page link to get your [Audio] or [Albums] on your profile.

Same with other modules such as gallery ect..





As a suggestion i think it would work better if there was a menu system for the modules functionality so they easily intergrate to any skin with out extra work.




menus.jpg menus.jpg - 35KB

updated by @developer-networks: 12/12/13 05:36:24PM
Developer Networks
@developer-networks
11/09/13 10:57:19PM
566 posts

Pagebreak Documentation


Suggestions

I was digging in the documentation for some information on Pagebreaks and how they work.

pagebreak=$_conf.mySkin_default_artist_pagebreak page=$_post.p}

Just wanted to make a suggestion for more information about this function.

Maby just a few examples of how set up a pagebreak on an audio and video list.

This might help a lot of people just starting to learn Jamroom out a lot.

updated by @developer-networks: 12/13/13 11:00:22AM
Developer Networks
@developer-networks
11/09/13 06:37:14PM
566 posts

Ipad adding chart audio playcounts on page refresh


Jamroom Developers

When viewing my charts with an Ipad it adds a play to all the songs on the list each time a page is refreshed.


updated by @developer-networks: 12/12/13 01:20:37PM
Developer Networks
@developer-networks
11/09/13 04:48:41PM
566 posts

mobile / Ipad Redirect


Jamroom Developers

Thanks Brian.

Ok so what i was doing wrong here was the redirect i had a www. as you can see in the above code.

the right code is this:

<script type="text/javascript"> // <![CDATA[
 	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
 	 	document.location = "http://yoursite.com/mobile_index";
 	} // ]]>
</script>

Thank you so much for clarifying all of this with me and showing me how this works.


updated by @developer-networks: 11/09/13 04:53:26PM
Developer Networks
@developer-networks
11/09/13 01:49:15PM
566 posts

mobile / Ipad Redirect


Jamroom Developers

Thanks guys. I was able to easily get it up and working today.

Ill post what i did and your responces were right. But to help anyone else trying this, heres what i did.

<script type="text/javascript"> // <![CDATA[
 	if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1) || (navigator.userAgent.indexOf('iPad') != -1)) {
 	 	document.location = "http://www.yoursite.com/mobile_index";
 	} // ]]>
</script>

I posted this at the top of my index.tpl of my skin

and created a file "mobile_index" saving it to myskin directory.

and it works.

when i view the site with an ipad it automatically redirects to the mobile_index.tpl file.


Thanks everyone for the help!

Hope this helps anyone else trying to do this.


* One thing i notice however is the ipad user after logging in is not passed. Every time it redirects to the mobile_index page its credentials are lost and not being passed.

updated by @developer-networks: 11/09/13 02:14:22PM
  51