Forum Activity for @michael

michael
@michael
05/25/20 09:08:14PM
7,791 posts

An error was encountered loading the media URL


Using Jamroom

because its a strange thing to ask:
* "Here is a list of songs to play, some of them don't work."

Why are you asking the player to play a list of songs where some of them don't work.

The default player is JPlayer:
https://www.jplayer.org/latest/demo-02/?theme=0

The adjustment would need to be done by them.
michael
@michael
05/25/20 05:25:13PM
7,791 posts

An error was encountered loading the media URL


Using Jamroom

If this is a common issue for you try different hosting. Files should not go bad after they've been uploaded.
michael
@michael
05/25/20 04:10:00AM
7,791 posts

A - Z Artist / Profiles page - Audio Pro


Design and Skin Customization

One thing that helped me get started were the developer books by O'Reilly publishing. Really like the way they get straight to the point.

Recommend this one:
Amazon: "Learning Php"
https://www.amazon.com/Learning-PHP-Introduction-Popular-Language-ebook/dp/B01E9LU2BM

Jamroom has a bit more to it than that, but it comes at the problem of: "How do I build a community website and keep it customizable" from the developers perspective.

Wordpress is a bit more focused on making configurations and customizations available in a non-developer setting.

In Jamroom the skins determine what functionality is available to the end user as well as the colors and fonts.

So areas that are useful for studying are:
* php
* html
* css

Thats the bones/skeleton of the system, then customization begins at:
* smarty (which is VERY similar to php, just slightly different syntax)
michael
@michael
05/24/20 07:04:43PM
7,791 posts

A - Z Artist / Profiles page - Audio Pro


Design and Skin Customization

Same thing as the ABC's put a link on the column headers with a sort by parameter
{$base_url = jrCore_strip_url_params(jrCore_get_current_url(), array('sort_by'));}
<a href="{$base_url}/sort_by=genre_desc">Genre</a>
That $base_url will be whatever the current url is, but will have the sort_by parameter stripped out of it.

Its better to do that kind of logic stuff in a module on the php side of things before getting to the template in order to keep the templates simpler, but it will work in a template too.

Then you'll need a couple of IF/ELSE to determine whether the link should be DESC or ASC

Docs: Template Blocks
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/3126/template-blocks

{if $_post['sort_by'] == 'genre_desc' }
<a href="{$base_url}/sort_by=genre_asc">Genre</a>
{else}
<a href="{$base_url}/sort_by=genre_desc">Genre</a>
{/if}

and use that sort_by in the jrCore_list

Docs: jrCore_list: Order By
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/89/jrcore-list#order-by

{jrCore_list ....... order_by="audio_genre desc"}
using the post variable:

{if $_post['sort_by'] == 'genre_asc'}
{jrCore_list ....... order_by="audio_genre asc"}
{elseif $_post['sort_by'] == 'genre_desc'}
{jrCore_list ....... order_by="audio_genre desc"}
{else}
{jrCore_list .......}
{/if}

updated by @michael: 05/24/20 07:06:42PM
michael
@michael
05/24/20 06:48:52PM
7,791 posts

Idea for an option in polls


Using Jamroom

You don't care that anybody could build a bot that just cycles their pole choice up to a million while they're sleeping. Turning your poll system into an open invitation to start a DDoS attack on your site?

Guy 1:
* builds a bot to make his and win, sets the amount of votes to 10,000.
* wins

Guy 2:
* didn't win last time, so also build a bot and sets it at 20,000
* wins

Third time you have a battle and instead of your server loading your site for your real visitors it now splits that time between visitors and bots thereby slowing it down for your actual users.

That's not a concern?
michael
@michael
05/24/20 06:20:53PM
7,791 posts

hoping for clue with loading chat attached images


Using Jamroom

If he uses the 'download' button instead, does that work? or if he right-clicks the image which normally opens in a light-box and chooses "Open in a new tab" does the image show?

If it does show then there is something effecting his javascript which may be a browser issue or it could be a browser plug-in or something related to some sort of extra javascript (perhaps an advert) that shows on the page.
michael
@michael
05/24/20 06:11:33PM
7,791 posts

An error was encountered loading the media URL


Using Jamroom

We've built a tool to determine if the file exists on the server. Once the the tool is run it marks all the entries in the database that do not have files on the file system so you can delete them.

@metalscore check your CONSOLE to see what the error is. Is it a 404 error or something different.

Files don't go bad except for if there was some issue with the hosting. Which should be very rare and fixed by your hosting company. The most likely cause for need of this tool is if a file failed to upload correctly or the database was moved without the file system.
404.jpg 404.jpg - 828KB
michael
@michael
05/23/20 05:33:01PM
7,791 posts

An error was encountered loading the media URL


Using Jamroom

Actually, that's not going to work because the stream_url_error does not have the ID of the audio file that failed with it.

We'll build a tool into the jrAudio module that checks for 404 not found files and adds a flag to them, then you can use that while you're doing something about re-uploading.
michael
@michael
05/23/20 05:10:24PM
7,791 posts

An error was encountered loading the media URL


Using Jamroom

There is an event that happens when that message shows "An error was encountered loading the media URL", the event is 'stream_url_error'.

One solution could be to build a module that listens for that event and when it happens the audio file that was trying to be streamed gets flagged with a tag like audio_stream_error = 1.

Then in your playlist you could filter out any audio files that have been tagged as bad.

{jrCore_media_player type="jrAudioPro2_playlist_player" module="jrAudio" field="audio_file" search1="audio_stream_error != 1" limit="50"}

The real issue is that you have bad audio files, this would help locate those so you can get rid of them.
michael
@michael
05/19/20 04:34:54AM
7,791 posts

Event - How do I know who wants to attend my event?


Ning To Jamroom

If the people who are attending have clicked the attending then they probably show up on the events details page as a list of profile names. If you can see that, then the page that controls that is:

/modules/jrEvent/templates/item_details.tpl

and the code that controls that is:

    {if $item.quota_jrEvent_allowed_attending == 'on' && isset($item.event_attendee) && is_array($item.event_attendee) && isset($item.event_attendee_count) && $item.event_attendee_count > 0}
                                {assign var="attendees" value=""}
                                {foreach from=$item.event_attendee item="attendee"}
                                    {assign var="attendees" value="`$attendees`&nbsp;<a href='`$jamroom_url`/`$attendee.profile_url`'>@`$attendee.user_name`</a>,"}
                                {/foreach}
                                <br>
                                <span class="normal">{jrCore_lang module="jrEvent" id="38" default="Attendees"}: {$attendees|substr:0:-1}</span>
                            {/if}

The code is only configured to get the user_name of the people who are attending, but you can add in another section to retrieve their email addresses, but you'd only want to show that section to master admin users, so you could add in:

{if jrUser_is_master()}
 {foreach from=$item.event_attendee item="attendee"}
   {$attendee.user_email}}<br>
 {/foreach}
{/if}
and that should show a list of users emails to master admins who look at the page.
  64