Forum Activity for @douglas

douglas
@douglas
12/29/16 05:57:05AM
2,812 posts

How would you do it?


Design and Skin Customization

AndyF:
Actually, now looking at it closer, that only HALF worked. The top menu navigation links are gone when I am logged in but as soon as I log out of the site, they are back on top of all of the profile pages.

I'm not seeing that on my dev site, see attachment, are you sure your looking at a profile page?

Do you have a link I can check out?

Thanks!
Screen Shot 2016-12-29 at 7.56.29 AM.png Screen Shot 2016-12-29 at 7.56.29 AM.png - 70KB
douglas
@douglas
12/28/16 02:55:01PM
2,812 posts

Members List Not Invoking on Page Refresh


Design and Skin Customization

Dazed:
nvm. I added that to the members page and all is well. Thanks again!

Yep, it is at the top of the members.tpl for ProJam.

Glad you got it figured out.

:)
douglas
@douglas
12/28/16 01:49:18PM
2,812 posts

How would you do it?


Design and Skin Customization

AndyF:
This is giving me a syntax error when I try to save it:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile} || $from_profile != 'yes'}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}

Ah I see the issue here, use this instead...

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {if !isset($from_profile) || $from_profile != 'yes'}
        {jrCore_include template="header_menu_desktop.tpl"}
    {/if}
{/if}

douglas
@douglas
12/28/16 01:45:34PM
2,812 posts

Members List Not Invoking on Page Refresh


Design and Skin Customization

Those three areas are loaded by this:

<script type="text/javascript">
    $(document).ready(function(){
        jrSetActive('#default');
        jrLoad('#alpha_members',core_system_url + '/members_list/alpha');
        jrLoad('#new_members',core_system_url + '/members_list/newest');
        jrLoad('#most_viewed_members',core_system_url + '/members_list/most_viewed');
     });
</script>

and the jrLoad function is in the PJ .js file.

function jrLoad(id,url,round_id,round_num) {
    if (typeof url == "undefined") {
        return false;
    }
    if (url == 'blank') {
        $(id).hide();
    }
    else if (id == '#hidden') {
        $(id).hide();
        $(id).load(url);
    }
    else {
        if (id == '#rank') {
            var t = $('#rank').height();
            if (t == null) {
                $('#main').html('<div class="inner"><div id="rank"></div></div>');
            }
        }
        var h = $(id).height();
        if (h > 150) {
            $(id).height(h);
        }
        $(id).fadeTo(100,0.5,function() {
            $(id).html('<div style="text-align:center;padding:20px;margin:0 auto;"><img src="'+ core_system_url +'/skins/jrProJam/img/loading.gif" style="margin:15px;"><br>Loading...</div>');
            $(id).load(url,function() {
                var l = $(id).text();
                if (l.length < 1 && id != '#player') {
                    $(id).html('');
                }
                if (h > 150) {
                    $(id).height('100%');
                }
                if (round_id && round_num > 0) {
                    $(id).fadeTo(100,1.00,function() {
                        if (jQuery.browser.msie) {
                            this.style.removeAttribute('filter');
                        }
                        $(round_id).corner(round_num +'px');
                    });
                }
                else {
                    $(id).fadeTo(100,1,function() {
                        if (jQuery.browser.msie) {
                            this.style.removeAttribute('filter');
                        }
                    });
                }
            })
        });
    }
}

Hope this helps!
douglas
@douglas
12/28/16 01:23:11PM
2,812 posts

How would you do it?


Design and Skin Customization

AndyF:
This is giving me a syntax error when I try to save it:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile} || $from_profile != 'yes'}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}


Give this a shot:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
{if !isset($from_profile}}
{jrCore_include template="header_menu_desktop.tpl"}
{/if}
{/if}
douglas
@douglas
12/28/16 12:28:10PM
2,812 posts

How would you do it?


Design and Skin Customization

You can do this by modifying a couple of templates, in your profile_header.tpl, find this:

{if jrProfile_is_profile_owner($_profile_id)}
    {assign var="from_profile" value="yes"}
{/if}

and change it to this:

{assign var="from_profile" value="yes"}

I'm not even sure how or why that if check was there, it is not needed.

Then in your header.tpl, change this:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {jrCore_include template="header_menu_desktop.tpl"}
{/if}

to this:

{* MAIN MENU *}
{if !jrCore_is_mobile_device() && !jrCore_is_tablet_device()}
    {if !isset($from_profile} || $from_profile != 'yes'}
        {jrCore_include template="header_menu_desktop.tpl"}
    {/if}
{/if}

That will show the main menu on the front end of your site but not on the profile pages.

Hope this helps!
douglas
@douglas
12/28/16 06:26:43AM
2,812 posts

Cosmetic Bug on Audio Pro


Installation and Configuration

I have this fixed for the next release.

Thanks!
douglas
@douglas
12/28/16 06:15:14AM
2,812 posts

Cosmetic Bug on Audio Pro


Installation and Configuration

Thanks @dazed, we'll get this fixed up.
douglas
@douglas
12/24/16 07:09:57AM
2,812 posts

Little Help With An Image


Design and Skin Customization

I would make sure that blog_on_air has a value of "on", what type of field is it?

I would also use the jrCore_image function to show images from your skin.

Change this:

<img src="{$jamroom_url}/skins/MixAP/img/onAir.png" width="50" height="50">

to this:

{jrCore_image image="onAir.png" width="50" height="50"}

Hope this helps!
douglas
@douglas
12/24/16 07:06:36AM
2,812 posts

Audio Pro - Bug on Index Page


Using Jamroom

This should be fixed for the next release.

Thanks!
  77