Forum Activity for @michael

michael
@michael
01/20/18 11:38:38PM
7,823 posts

DB and System Backup module now requires the AWS SDK module


Announcements

The full name of the module is "Amazon Web Services SDK" try searching for that in the marketplace.
michael
@michael
01/19/18 06:51:36PM
7,823 posts

Helping my members see their 'pending' Followers


Using Jamroom

right. That code immediately above should be the whole thing.

Check thats working, then remove the ( position X ) and your done I reckon.
michael
@michael
01/18/18 07:07:33PM
7,823 posts

Helping my members see their 'pending' Followers


Using Jamroom

great. So the way a programmer thinks is: figure out where I need to put it, then put it there. You now know that the location that contains ( position 3 ) is the location that you want to deal with so you can remove all of the other location edits you put in because we know where to edit now.

So just above that, put in the code to check for the entry we want to check for:
{if $entry.menu_label == "Private Messages"}
        THE CUSTOM CODE HERE
{/if}

The result is:
{foreach from=$_items name="loop" item="entry"}
    {if isset($entry.menu_function_result) && strlen($entry.menu_function_result) > 0}
        {if is_numeric($entry.menu_function_result)}
        <li><a href="{$entry.menu_url}">{$entry.menu_label} [{$entry.menu_function_result}]</a></li> ( position 1 )
            {else}
        <li><a href="{$entry.menu_url}">{$entry.menu_label} <img src="{$entry.menu_function_result}" alt="{$entry.menu_label}"></a></li>  ( position 2 )
        {/if}
        {else}

{if $entry.menu_label == "Private Messages"}
       {* THE CUSTOM CODE HERE *}
    {if jrUser_is_logged_in()}
    <li><a href="{$jamroom_url}/{$_user.profile_url}/follow">Pending Followers: {jrCore_list module="jrFollower" search1="follow_profile_id = `$_user._profile_id`" search2="follow_active = 0" return_count=true no_cache=true}</a></li>
    {/if}
{/if}

    <li><a href="{$entry.menu_url}">{$entry.menu_label}</a></li>  ( position 3 )
    {/if}
{/foreach}

{if jrUser_is_logged_in()}
<li><a href="{$jamroom_url}/{$_user.profile_url}/follow">Pending Followers: {jrCore_list module="jrFollower" search1="follow_profile_id = `$_user._profile_id`" search2="follow_active = 0" return_count=true no_cache=true}</a></li> (position 4 )
{/if}

and it should be close to what you're after.
where_we_want_it.jpg where_we_want_it.jpg - 168KB

updated by @michael: 01/18/18 07:08:03PM
michael
@michael
01/17/18 04:34:13PM
7,823 posts

An error was encountered loading the media URL


Using Jamroom

Seams like the wrong thinking to me, if you have an error, then fix the error rather than trying to find a way to ignore it.

If you do want to ignore it the player documentation ( http://www.jplayer.org/latest/developer-guide/ ) suggests creating a function to locate the next track.
Quote: ..... getNextMedia(); // A function you might create to move on to the next media item when an error occurs......
so you'd alter your playlist template and look for this code:
error: function(res) { jrCore_stream_url_error(res); },

Then write a function that moved the player on to the next track when an error occurred instead of showing the error.
michael
@michael
01/17/18 04:24:10PM
7,823 posts

when visitors tries to purchase an Item , there is no clear instructions telling the visitor to create an account to purchase an item...


Using Jamroom

If it was me, I'd add a page via Site Builder, that outlines how to use my system. Its not uncommon to have these pages:
* privacy policy
* terms of service

If you dont want to use Site Builder, you can use the Pages module.
michael
@michael
01/17/18 01:13:06AM
7,823 posts

JR CORE UPDATES


Using Jamroom

Try a different browser, If it works in a different browser, clear your browser cache.

If neither of those work, try the steps here:

Docs: "Somethings wrong what do I do?"
https://www.jamroom.net/the-jamroom-network/documentation/troubleshooting/114/somethings-wrong-what-do-i-do
michael
@michael
01/14/18 05:33:30PM
7,823 posts

Video stream in Safari


Jamroom Developers

For me logged in in safari as admin the video direct url does play, but initially it shows a very small icon, wait for a while ten the video loads and begins playing.
michael
@michael
01/14/18 04:26:54PM
7,823 posts

Video stream in Safari


Jamroom Developers

I have a file here:
https://hostsaba.com/video/stream/video_file/1/key=1/file.m4v

Admin profile set to "Private - profile owner only". The video does not play in Safari (desktop)

* Firefox (logged in as admin) video plays
* Firefox (logged in as member) video does not play
* Firefox (logged out) video does not play

That is all what I was expecting to happen for a working system. Nothing seams out of order or needing to be fixed.

Am I not understanding something?
michael
@michael
01/14/18 01:52:52PM
7,823 posts

Make my queue worker create other queue tasks, is this viable?


Jamroom Developers

Definitely is viable and is done in other locations. But make sure you don't pass in the queue_id as part of the data (think that's automatically filtered out now, but was a bug for a while)

Check out the function jrNewsLetter_prep_newsletter_worker($_queue) function, it does what you're thinking.

the reason you want to unset($_queue['queue_id']); before creating the 'sub' queue is because there are checks to see if a queue_id exists then do something, so if you pass the parents one in it can cause issues for the child worker thinking the queue is complete when its not.
unset.jpg unset.jpg - 86KB

updated by @michael: 01/14/18 01:54:55PM
  156