Forum Activity for @douglas

douglas
@douglas
11/21/13 07:54:45AM
2,808 posts

Enabling / Disabling boxes on the Home page


Design and Skin Customization

Your welcome, glad it worked for you.

I'm not sure that this will make it into the skin or not. But at least this post is here in case anyone else wants to do the same.
douglas
@douglas
11/21/13 05:03:11AM
2,808 posts

Back to top, Scroll to top button


Suggestions

pch:
@Brian,

Can we use an image (arrow up) instead of a text as a link anchor like here in JR?

Is your modifification mobile friendly?

Thanks.

Just change the "Scroll" text to an image... and yes, I believe it is mobile friendly.
douglas
@douglas
11/21/13 05:00:05AM
2,808 posts

form/contact_us


Off Topic

The latest ProJamLight files should have a contact_us.tpl file with a contact form. And the contact us link (in the footer) has a check on it to see if the custom forms module is active, if it is, then it uses the form/contact_us URL, if is not active, then it uses just the contact_us URL which is the contact_us.tpl file.

Hope this helps,
Douglas
douglas
@douglas
11/20/13 11:51:51AM
2,808 posts

Enabling / Disabling boxes on the Home page


Design and Skin Customization

Your going to have to modify two templates and create another.

First, create a new template named index_new_music.tpl and put this code in it.

{capture name="row_template" assign="new_music_template"}
    {literal}
        {jrCore_module_url module="jrAudio" assign="murl"}
        {if isset($_items)}
        <div class="container">
            <div class="row">
                {foreach from=$_items item="row"}
                <div class="col4{if $row@last} last{/if}">
                    <div class="center">
                        <a href="{$jamroom_url}/{$row.profile_url}/{$murl}/{$row._item_id}/{$row.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$row._item_id size="medium" crop="auto" width="175" height="175" alt=$row.audio_title title=$row.audio_title class="iloutline img_shadow"}</a><br>
                        <h4><a href="{$jamroom_url}/{$row.profile_url}" title="{$row.profile_name}">{if strlen($row.audio_title) > 20}{$row.audio_title|truncate:20:"...":false}{else}{$row.audio_title}{/if}</a></h4>
                    </div>
                </div>
                {/foreach}
            </div>
        </div>
        {if $info.total_pages > 1}
        <div style="float:left; padding-top:12px;">
            {if $info.prev_page > 0}
            <span class="button-arrow-previous" onclick="jrLoad('#newest_music','{$info.page_base_url}/p={$info.prev_page}');">&nbsp;</span>
            {else}
            <span class="button-arrow-previous-off">&nbsp;</span>
            {/if}
            {if $info.next_page > 1}
            <span class="button-arrow-next" onclick="jrLoad('#newest_music','{$info.page_base_url}/p={$info.next_page}');">&nbsp;</span>
            {else}
            <span class="button-arrow-next-off">&nbsp;</span>
            {/if}
        </div>
        {/if}
        <div style="float:right; padding-top:9px;">
            <a href="{$jamroom_url}/music" title="More Music"><div class="button-more">&nbsp;</div></a>
        </div>

        <div class="clear"> </div>
        {/if}
    {/literal}
{/capture}



{if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
    {jrCore_list module="jrAudio" order_by="_created desc" template=$new_music_template require_image="audio_image" pagebreak="3" page=$_post.p}
{else}
    {jrCore_list module="jrAudio" order_by="_created desc" template=$new_music_template pagebreak="3" page=$_post.p}
{/if}

Then in your skins/jrProJamLight/index.tpl file, find this:

{* NEWEST VIDEOS *}

and above that add this:

{* NEWEST AUDIO *}
    <div class="col12 last">
        <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="11" default="Newest"} {jrCore_lang skin=$_conf.jrCore_active_skin id="56" default="Music"}</h3><br>
        <br>
        <div class="newest_body_3 mb30 pt20">
            <div id="newest_music">
            </div>
        </div>
    </div>

then open your skins/jrProJamLight/js/jrProJamLight.js file and find this:

    jrLoad('#newest_videos',core_system_url + '/index_new_videos');

right above it add this:

    jrLoad('#newest_music',core_system_url + '/index_new_music');

That should show a row of Newest Music right above the Newest Videos section on the home page.

Be sure to clear your cache via the Core Tools.

Hope this helps,
Douglas
douglas
@douglas
11/20/13 10:12:55AM
2,808 posts

Enabling / Disabling boxes on the Home page


Design and Skin Customization

You'll want to either comment out the code or just remove the code. There isn't a skin setting that will turn them off.

As for "Newest Audio", that would depend on where you want to add it on the home page?
douglas
@douglas
11/20/13 10:08:41AM
2,808 posts

How to add a Profile Menu item?


Design and Skin Customization

In your skins/jrProJamLight/profile_menu.tpl file, add this:

{jrCore_module_url module="jrPrivateNote" assign="nurl"}
<a href="{$jamroom_url}/{$nurl}/new"><div class="profile_menu_entry">Contact</div></a>

at the end of the code:

{if isset($_items)}
{foreach from=$_items key="module" item="entry"}
    {if $entry.active == '1'}
    <a href="{$entry.target}"><div class="profile_menu_entry profile_menu_entry_active">{$entry.label}</div></a>
    {else}
    <a href="{$entry.target}"><div class="profile_menu_entry">{$entry.label}</div></a>
    {/if}
{/foreach}
{/if}

{jrCore_module_url module="jrPrivateNote" assign="nurl"}
<a href="{$jamroom_url}/{$nurl}/new"><div class="profile_menu_entry">Contact</div></a>

Hope this helps,
Douglas
updated by @douglas: 11/20/13 10:09:31AM
douglas
@douglas
11/19/13 03:30:47AM
2,808 posts

Video Genre Field


Using Jamroom

To make the genre names links, you'll want to modify your row templates.

In the skins/jrProJamLight/music_row.tpl file, find this:

{$item.audio_genre}

and change it to this:

<a href="{$jamroom_url}/music/search_area=audio_genre/search_string={$item.audio_genre}">{$item.audio_genre}</a>

You'll want to do the same for the music chart row template.

And for video categories, in the skins/jrProJamLight/videos_row.tpl file, find this:

{$item.video_category}

and change it to this:

<a href="{$jamroom_url}/videos/search_area=video_category/search_string={$item.video_category}">{$item.video_category}</a>

and do the same in the video chart row template.

If you want a video category page like YouTube, you would have to create something custom. There are no plans at this time, that I'm aware of, to add this feature into any of the JR5 skins.

Hope this helps,
Douglas
douglas
@douglas
11/17/13 11:23:41AM
2,808 posts

Video Genre Field


Using Jamroom

Since genres and categories are added by the user, they can enter the genre/category in whatever language they want. I'm not aware of anything that will translate them after they've been entered.
douglas
@douglas
11/17/13 05:01:15AM
2,808 posts

Video Genre Field


Using Jamroom

pch:
@Douglas

I have been missing the categories/Genres for audio and videos too. I am a great fan of them. They help structure the site well and keep things organized. Even major media Sites like Youtube use Categories. I have spent hours and hours searching for them on my site. Sad they have been removed from JR5.

I am also interested in using them. What are your modifications about? How and where to apply them? Thanks in advance. I am using the ProJam Lite Template.


I just created a section on it in the ProJamLight Docs here...

https://www.jamroom.net/the-jamroom-network/documentation/skins/301/jrprojamlight#video-category

Hope this helps,
Douglas
douglas
@douglas
11/16/13 07:56:52AM
2,808 posts

Timeline Comments


Suggestions

paul:
Where are you seeing it (url)?

https://www.jamroom.net/douglas
  269