Forum Activity for @pch

pch
@pch
09/09/16 03:42:55PM
328 posts

How to add the who is online for the entire site?


Using Jamroom

Hi Douglas

It works. The stats block is now showing to visitors. I have used the code taken from ProJam the get thing to display properly.

For those interested, here is the final code:


            <div class="block">
                <div class="title">
                    <h2>{jrCore_lang skin=$_conf.jrCore_active_skin id="67" default="stats"}</h2>
                </div>
                <div class="block_content">
                     <div class="item">   
                          <div style="width:90%;display:table;margin:0 auto;">
                          {capture name="template" assign="stats_tpl"}
                          {literal}
                              {foreach $_stats as $title => $_stat}
                              <div style="display:table-row">
                                  <div class="capital bold" style="display:table-cell">{$title}</div>
                                  <div class="hilite" style="width:5%;display:table-cell;text-align:right;">{$_stat.count}</div>
                              </div>
                              {/foreach}
                          {/literal}
                          {/capture}

                          {jrCore_stats template=$stats_tpl}
                      </div>
                      
                    </div>  
                </div>
            </div>


By the way, have you found the fix for the "Whos Online" that doesn't show for logout users and visitors?

Thanks
pch
@pch
09/09/16 02:47:34PM
328 posts

Advise on Creating a Custom Page


Using Jamroom

Hi Douglas,

Thanks a lot for your help.

One problem has been fixed by your code: no more conflict with the audio and video default URL's.

The second problem still remains:

As pages created by Paul's solution are virtually (dynamically) created (e.: www.site/audio/categoryname_1, www.site/audio/categoryname_2), they don't appear in the Meta Tag Browser. So there is no way add/edit their Meta Tag, no way to get them properly indexed by major Search Engines.

In the Meta browser, I just see jrAudio_index.tpl and jrVideo_index.tpl . I don't see categoryname_1, categoryname_2, categoryname_3 etc.

Any idea on how to get them show in the Meta Tag Browser?

Thanks
pch
@pch
09/09/16 02:36:52PM
328 posts

Scroll To Top Button not working on all the pages


Using Jamroom

Can someone just confirm me if the code I used above is correct.

Thanks.
pch
@pch
09/09/16 09:07:52AM
328 posts

How to upload and search audio and video by date and location?


Using Jamroom

Hi Michael

Thanks for your reply. Well, they are all related questions from the same topic that sometimes it's hard to post them in separate threads without losing focus.

About your question, I didn't do anything special. I've just applied the solution/mod provided by Brian above.

The problem is with special characters in the a date name. Eg.: Sábado or Août etc. which display as garbage.

In your dev site, if you apply the solution provided by Brian above, then change the audio or video date to Saturday August , then change your site language to Spanish or French (Sábado or Août), you will understand what I am talking about.

Thanks.
updated by @pch: 09/09/16 09:11:14AM
pch
@pch
09/05/16 07:56:58AM
328 posts

Advise on Creating a Custom Page


Using Jamroom

Hi Douglas, My Hero, The Best!!!!!

Thanks a lot for jumping in this topic.

Well, I will need to look for some other words other than music because we need to keep our JR more generic and we are not a music-based site.

The method provided by Paul is pretty cool but the problem is that: pages created using this method don't show in the Meta Tag Browser module. So no way to add/edit Meta Tags.

Do you have any idea to get them picked up by the Meta Tag Browser?

Also, template added to these files using the included function don't show.
E.g.: {jrCore_include template="sidebar.tpl"}

Any idea?

Thanks
pch
@pch
09/05/16 04:23:06AM
328 posts

How to upload and search audio and video by date and location?


Using Jamroom

Hello Brian,

Any solution to the issues posted above?

Thanks in advance.
pch
@pch
09/05/16 04:20:38AM
328 posts

Advise on Creating a Custom Page


Using Jamroom

Hi Paul,

Any idea?

Thanks a lot.
pch
@pch
09/05/16 03:41:16AM
328 posts

Scroll To Top Button not working on all the pages


Using Jamroom

sekeri:
I think it should be standard by default for all skins

I couldn’t agree more ;)
pch
@pch
09/05/16 03:39:08AM
328 posts

Scroll To Top Button not working on all the pages


Using Jamroom

SteveX:
{if isset($javascript_ready_function)}
...
{/if}
Anything inside that condition will only show if $javascript_ready_function has a value.
Try putting your js outside of that, in it's own document ready function and in it's own script tags.

Hi ultrajam,

Thanks a lot for the clue and your help. It works.

I misunderstood the Brian's Tutorial. Maybe it was not that clear. That is why I was misled.

It says:

Quote: Add this to your meta.tpl in THE ready function:

So I've thought that the code should be added to the existing ready function in the meta.tpl

Maybe the tutorial should say:

Quote: Add this to your meta.tpl in A ready function:

'THE' vs 'A'

Following your suggestion, I've put this code:

<script type="text/javascript">
$(document).ready(function(){
$(window).scroll(function(){
    if ($(this).scrollTop() > 100) {
        $('.scrollup').fadeIn();
    } else {
        $('.scrollup').fadeOut();
    }
});

$('.scrollup').click(function(){
    $("html, body").animate({ scrollTop: 0 }, 600);
    return false;
});
});
</script>

... and it works. The Scroll To Top Button shows on all the page now.

Please just confirm if the code is correct. Although it works I just want to make sure that I have done everything right.

Thanks a lot for your valuable help.
updated by @pch: 09/05/16 03:58:21AM
  7