Forum Activity for @ken-rich

Ken Rich
@ken-rich
28 Jul 2021 04:20:51PM
888 posts

Play Counts - Stream Counts


Off Topic

It seems like there is an algorithm designed to only increment the counter once per unique IP but not on replays from the same IP (or perhaps session cookie).

I get complaints from artists who think the counter is broken (stuck) and I would prefer to have all plays counted regardless of IP or session cookie.

Is there a way for me to override this algorithm and if so where would I find that? I am using the Midnight Player - if that makes a difference.
updated by @ken-rich: 04 Nov 2021 01:00:35PM
Ken Rich
@ken-rich
27 Jul 2021 04:57:39PM
888 posts

Found Bug in Profile Tags


Design and Skin Customization

I tested and it works perfectly now.

Is anyone going to update the metatag module?

Tags are being ignored because they are using the old "name" convention instead of "property". I put it in the forum but no one responded.
Ken Rich
@ken-rich
23 Jul 2021 08:14:55AM
888 posts

Found bug in metatag module


Design and Skin Customization

It appears that the module needs an update. It is generating tags with the outdated name convention rather than property. Therefore the tags specified by the module are being ignored.

For example, the Facebook Debugger is giving this error on a URL where I used the module to generate tags.

Tag specified as 'name' instead of 'property'
The following meta tags are specified using 'name' instead of 'property' and will be ignored unless specified using the 'property' key: og:image, og:description

It appears these tags are also being ignored in Yahoo mail too as the wrong OG image is being pulled even though it is specified by the module.
updated by @ken-rich: 31 Oct 2021 10:04:28AM
Ken Rich
@ken-rich
23 Jul 2021 08:01:31AM
888 posts

Found Bug in Profile Tags


Design and Skin Customization

If you need an example go to this URL - https://indiegospel.net/ken-rich/tags/gospel

The titles and text are being listed properly but if you click on an item you are not taken to that content.

If you copy (or hover on) the URL to the content you will notice the profile ID is missing. So the URL for the first item, the "Revelation" song is https://indiegospel.net//uploaded_audio/5597/revelation but it should be https://indiegospel.net/1175/uploaded_audio/5597/revelation

With the profile ID missing it defaults to all songs (the main song index) rather than that specific song. The same thing happens with the blog item listed. It goes to all blogs rather than that specific blog because the profile ID is missing.
Ken Rich
@ken-rich
23 Jul 2021 07:37:12AM
888 posts

Found Bug in Profile Tags


Design and Skin Customization

This is in all skins I tried so I am assuming it is somewhere in the jrTags module templates.

Tags work correctly on the homepage of the network, but not in profiles.

In profiles, the tag cloud displays, when a tag is clicked an appropriate list unique to the profile is generated, however when you click on the title of a displayed item, it does not take you to that content.

The profile ID is missing from the URL and you are taken to a general listing on that content type. I can't find where the profile ID fetch is supposed to be added to the templates.
updated by @ken-rich: 27 Oct 2021 02:27:56AM
Ken Rich
@ken-rich
22 Jul 2021 06:52:58PM
888 posts

profile_sidebar.tpl - Headings Question


Design and Skin Customization

Hi Paul,

Thanks for the tip. I'll play with it and see if I can get it to work.
Ken Rich
@ken-rich
22 Jul 2021 07:56:57AM
888 posts

profile_sidebar.tpl - Headings Question


Design and Skin Customization

How can I make a header title not display if there is no content? For example, if someone has just joined but has not generated any stats, how can I prevent the Stats header from displaying in their profile?

I know I must modify this piece of code but I don't know what to add.


  {if isset($_conf.xxComplete_profile_stats) && $_conf.xxComplete_profile_stats == 'on'}
            {if isset($_conf.xxComplete_profile_stats) && $_conf.xxComplete_profile_stats == 'on'}
                    <div class="block">
                        <h3>{jrCore_lang skin=$_conf.jrCore_active_skin id="39" default="stats"}</h3>
                        <div class="block_content mt10">
                            <div style="padding-top:8px">

                                {capture name="template" assign="stats_tpl"}
                                {literal}
                                    {foreach $_stats as $title => $_stat}
                                    {jrCore_module_url module=$_stat.module assign="murl"}
                                    <div class="stat_entry_box" onclick="window.location='{$jamroom_url}/{$profile_url}/{$murl}'">
                                        {$title}: {$_stat.count|default:0}
                                    </div>
                                    {/foreach}
                                {/literal}
                                {/capture}
                                {jrProfile_stats profile_id=$_profile_id template=$stats_tpl}

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

I am thinking, adding another && to the first line that basically says "and the stats are greater than zero". However, I don't know how to write it. Something like "&& $_stat.count > 0" but that doesn't work.
updated by @ken-rich: 27 Oct 2021 07:53:40AM
Ken Rich
@ken-rich
19 Jul 2021 05:05:31AM
888 posts

OG Image Issues


Using Jamroom

Also, I have noticed that meta tags I generated by the meta tag module are being ignored on Facebook because they use the old convention of meta name which should now be meta property. Someone on staff should update that module accordingly.
Ken Rich
@ken-rich
19 Jul 2021 05:02:22AM
888 posts

OG Image Issues


Using Jamroom

Thanks, I'll look into optimizing the image size. I also stole code from elsewhere and now have a way to force the OG description to come from the "About Us" section in normal profiles but from the "Bio" section when the profile is created by a power user (since those have no "About Us" only the account tied to them does).

So the code in skins made available to regular profiles is now.

{jrCore_module_url module="jrProfile" assign="murl"}
<meta property="og:title" content="{$profile_name}" />
<meta property="og:url" content="{$current_url|replace:"http:":"`$method`:"}" />
<meta property="og:type" content="website" />	
	
			{capture name="aboutuser" assign="aboutuser_row"}
			    {literal}
			        {if isset($_items)}
			            {foreach $_items as $item}
            			    {$item.user_signup_question_2}
			            {/foreach}
			        {/if}
			    {/literal}
			{/capture}

{jrCore_list module="jrUser" profile_id=$_profile_id template=$aboutuser_row assign="abtuser"}  
   
{if isset($abtuser) && strlen($abtuser) > 0}			    
<meta property="og:description" content="{$abtuser|jrCore_strip_html|jrCore_entity_string|truncate:300}" />	  	
{/if}

<meta property="og:image" content="{$jamroom_url}/{$murl}/image/profile_image/{$_profile_id}/xxlarge" />
<meta property="og:updated_time" content="{$smarty.now}" />

The code in skins made available to profiles created by power users is:

{jrCore_module_url module="jrProfile" assign="murl"}
<meta property="og:title" content="{$profile_name}" />
<meta property="og:url" content="{$current_url|replace:"http:":"`$method`:"}" />
<meta property="og:type" content="website" />

{if isset($profile_bio) && strlen($profile_bio) > 0}
<meta property="og:description" content="{$profile_bio|jrCore_strip_html|jrCore_entity_string|truncate:300}" />
{/if}

<meta property="og:image" content="{$jamroom_url}/{$murl}/image/profile_image/{$_profile_id}/xxlarge" />
<meta property="og:updated_time" content="{$smarty.now}" />

There may be a more "elegant way of doing it but after testing this solution solves all my problems except image cropping.
Ken Rich
@ken-rich
18 Jul 2021 12:49:33PM
888 posts

OG Image Issues


Using Jamroom

I tried the debug after watching the video and reading the help file. Yes, I can see where that would be useful - THANKS AND SORRY FOR LOSING MY COOL...

I think I solved my mystery by comparing the code in the item_detail_meta.tpl to my code then verifying with the debugger.

I was missing the _ in front of the profile _id call. So my code for grabbing the the profile image for the OG image now looks like:
<meta property="og:image" content="{$jamroom_url}/{$murl}/image/profile_image/{$_profile_id}/xxlarge" />

I have tested on the profiles that were failing to load the profile image in the debugger and they now load.

Is there a way to control the size of the profile image besides values like xxlarge or xlarge? Depending on the shape of the uploaded image some are being cropped too much at xx large but that value works better than xlarge in most cases. Is there something in between or an alternative?
  2