Forum Activity for @pch

pch
@pch
08/03/16 12:05:03PM
328 posts

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


Using Jamroom

Hi Douglas, The "Who is online" and the "Stats" blocks. I have been creating and testing many blocks. I have just noticed that any block that I add to the skin template doesn't show to visitors.

Thanks
pch
@pch
08/03/16 11:59:11AM
328 posts

Latest Comment on the home page


Using Jamroom

Hi Douglas,

When I say you are The Best, I know what I mean. Great support. Thanks for fix it for us.

So it was a bug, right? If so, hope it will be completely fixed in the next comment module release.

Thanks a lot for the support.
pch
@pch
08/03/16 11:34:29AM
328 posts

Full width Image on the home page


Using Jamroom

douglas:
I've fixed this on your site as well, the code is now in your header.tpl file and will only show on the index page, let me know if that will work for you.

Hi Douglas,

Wow, You are just The Best. It works. Thanks a lot for fix it for us. What a great support!

I was suspecting that the code should go to the header.tpl because in the index.tpl the full width was not working.

I just did a small change to the fix you provided because although the image was set to full width, the right side of the image was cut on the computer screen.

In the image tag, I've removed width:false heigh:false and I added min-width:100%; max-width:100% in the style tag next to background-position:cover. It fixed that small issue. No more part of the image was cut. Also width:"100%" and height:"100%" instead of min-width:100%; max-width:100% works, I have tried it.

By the way, just for curiosity, the scrolling down arrow on the jamroom.net home page under the full width image, how does it work? Does it use javascript?

I have used:

<div class="down">
            <a href="#"></a>
        </div>

and added this style to my skin css:

.down {
bottom:-30px;
left:50%;
position:absolute;
transform:translateX(-50%);
width:60px;
z-index:100;
}

.down > a {
background:#fff url("https://www.my-url-here/skins/myskin/img/down_white.png") no-repeat scroll center center;
border-radius:50%;
display:block;
height:60px;
width:60px;
}
I can't get it work. It seems that I was missing something maybe javascrit to get it work.

Thanks.
updated by @pch: 08/03/16 11:52:44AM
pch
@pch
08/02/16 04:27:48AM
328 posts

Full width Image on the home page


Using Jamroom

brian:
You just need to set the div it is in to width:100%. Make sure it is OUTSIDE the .container class, which likely has a max-width: 1140px on it. You can also do width: 100% !important if you want to force it out.

Hi Brian,

It doesn't work. No matter what I do, any image placed in the index.tpl file with the div set to width: 100% or width: 100% !important; even outside the .container class, just doesn't go full width. The image start at the left side border of the index.tpl border. I think maybe it is the way the Elastic template is set.

I have use this code:

    <div class="img_scale">
                   <a href="{$jamroom_url}/text-here"><img src="{$jamroom_url}/skins/{$_conf.jrCore_active_skin}/img/my-image.jpg" alt="text here" title="text here"></a>
</div>

I have even tried to reproduce the Jamroon site's main image (BTW, I love the way it is done). I placed this code in my index.tpl:


<div class="index-splash">
    <div class="index-row">
        <div class="index-top">

            <span class="index-leader">text here</span>

                        Text here.
            
            <div class="index-buttons">
                        Text here.
                <a href="linkhere">
                    <div class="index-hosted">
                                               Text Here</span>
                    </div>
                </a>
            </div>

        </div>
        <div class="down">
            <a href="#"></a>
        </div>
    </div>
</div>

and added the following style to my skin css:

.index-splash {
    background-image: url('https://www.sitehere.com/skins/myskin/img/myimage-here.jpg');
    background-size: 100% 100% !important;
    -webkit-background-size: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
}

.index-row {
margin-top:40px;
background-color:#161E34;
opacity:0.95;
}

.index-row {
position:relative;
}

.index-top {
padding:90px 20px;
color:#EEEEEE;
text-align:center;
font-size:22px;
}

.index-top {
padding:6px;
text-align:center;
font-size:15px;
line-height:15px;
}

.index-callout {
color:#FFD87C;
font-weight:bold;
}

.index-buttons {
margin-top:100px;
}

.index-buttons {
margin:20px 0;
}

.down {
bottom:-30px;
left:50%;
position:absolute;
transform:translateX(-50%);
width:60px;
z-index:100;
}

.down > a {
background:#fff url("https://www.my-url-here/skins/myskin/img/down_white.png") no-repeat scroll center center;
border-radius:50%;
display:block;
height:60px;
width:60px;
}

Same result. The image doesn't go full width even with code placed outside of the container class.

Am I missing something?

Also can you tell me in which file the main image on the home page of the jamroom.net site is placed? Is it placed in the index.tpl or in the header.tpl? Because on my site any image placed in the index.tpl doesn't go full width at all.

Does Jamroom.net site use the same header on the home page and the entire site? or Is the header.tpl on the home page different to the header.tpl used in the remaining part of the site? I am lost.

Thanks for helping.
pch
@pch
08/01/16 03:12:16PM
328 posts

Advise on Creating a Custom Page


Using Jamroom

Hello,

I would like to have an advise on a good practice on creating a custom page. Note: I am not using the site builder because I am trying to build a multi-lingual site manually. I am using The Elastic Skin.

My main question is: Does a custom page NECESSARY need to be created in the custom skin (under the template folder)? Can it not be created in the audio or video module templates folder?

What are the pros and the cons of creating them in the audio or video module templates folder? Also placing a custom template in the audio or video module, will I loose that template file whenever the audio or video module upgrade?

I have seen that the item_albums.tpl was placed in the audio templates folder and albums have nice urls like eg.: www.site/audio/albums/album_name

So I assume that any template file can be placed there. Am I wrong?

I have created custom pages on my computer for every Audio and video category:

Example:

categoryname_1.tpl (for audio category 1)
categoryname_2.tpl (for audio category 2)

and

categoryname_1.tpl (for video category 1)
categoryname_2.tpl (for video category 2)

What I am trying to achieve is to have URLs like:

www.site/audio/categoryname_1
www.site/audio/categoryname_2

and

www.site/video/categoryname_1
www.site/video/categoryname_2

I know that placing them in the custom skin template's folder, I will need to rename them because I have the same category name for both audio and video and URLs will look like:

www.site/categoryname_1_for_audio
www.site/categoryname_2_for_audio

and

www.site/categoryname_1_for_video
www.site/categoryname_2_for_video

Any advise should be appreciated. Thanks in advance.
updated by @pch: 12/12/16 02:03:16AM
pch
@pch
08/01/16 02:47:35PM
328 posts

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


Using Jamroom

Any idea on why is the "Who Is Online" block not showing to not-logged users (visitors)? It shows to members only when they are logged-in. I've noticed it with all the blocks I add to the custom skin template. Even my Stats block only displays to logged-in members.

I have searched for the documentation, I didn't find a solution. Is there a special code to use in order to display blocks to visitor?

Thanks
pch
@pch
08/01/16 02:37:55PM
328 posts

Latest Comment on the home page


Using Jamroom

Great Douglas. I am sending it to you.

Thanks a lot for the support.
pch
@pch
08/01/16 06:12:09AM
328 posts

Latest Comment on the home page


Using Jamroom

Thanks for your reply Douglas. My site is going under reconstruction. I haven't started publishing it yet. I can PM the link to you. How to send private massage in this forum?

Thanks.

By the way I am running PHP 7.
pch
@pch
08/01/16 05:57:10AM
328 posts

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


Using Jamroom

brian:
Try this - modify your modules/jrCore/lib/util.php and around line 2,750 you will see this:
    return gmstrftime($format, $timestamp);
Change it to this:
    $lang = 'en_US';
    if (jrUser_is_logged_in() && isset($_user['user_language']{1})) {
        $lang = str_replace('-', '_', $_user['user_language']);
    }
    setlocale(LC_TIME, $lang);
    return gmstrftime($format, $timestamp);
and let me know if that works for you.
Thanks!

Hi Brian

Big wowwwww!!!! Brilliant!!!! You are really smart. Heads off. It was something difficult but you definitely got it. It works. Thanks a bunch. The display of the full date name will come in handy for us. Thanks.

That is why I love JR. Whenever you can, you always search for a solution, and most of the time you get it. What great support!

There are just minor issues to address:

1) The day name is being cached. Whenever a user changes the site language, the entire site gets translated, but the day name language remains unchanged, unless I manually clear the cache from the Admin CP.

Is there a way to automatically get it to change whenever the site language changes without waiting for the caching period?

2) When translated in language with accents like spanish, french, portuguese etc, special characters display as garbage. Example in words like: Sábado or Août etc.

Any fix for special characters?

3) When the date name changes according to the site language, sometimes it gets capitalized, sometimes not. E.g. Domingo and domingo.

How to get the date name always in Capital like it shows in english?

4) The date name changes almost in the entire site including the Admin side when I change the site language but it doesn't change in Calander/date picker where the user uploads an audio or video.

Will it also be possible to apply this date name modification to the date picker as well?

5) The code change was made to modules/jrCore/lib/util.php

Will I loose the change if there is a JR Upgrade of that file?
Are you considering adding this date name modification code to the core?

Many thanks for the great support.
pch
@pch
08/01/16 05:50:54AM
328 posts

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


Using Jamroom

@brian and @mischael

Hi,

I've found the problem. It was a caching issue. I have managed to edit the util.php file after clearing all the cache and the temporary files on my computer.

Thanks
  9