Forum Activity for @michael

michael
@michael
08/22/19 09:41:33PM
7,828 posts

one thing i DO NOT like about the new editor


Suggestions

Yeah, you're right. Where did that come from....

I'll see if I can get it back to what it was.

Thanks.
menu.jpg menu.jpg - 467KB
michael
@michael
08/20/19 09:38:34PM
7,828 posts

ALLOW_ALL_DOMAINS missing


Installation and Configuration

You'd need to setup a page on your site that contains your player then embed that player in the other site using an iframe.

--edit--
Add a new page to your site by adding a .tpl file to your skin (or a clone of an existing skin), eg:
/skins/YOUR-SKIN/somename.tpl

That will can be accessed by going to
your-site.com/somename

and everything you add after that as parameters will be available in the {$_post} variable. so if you had
your-site.com/somename/song_id=55

Then you could get the value of song_id via the variable {$_post.song_id}.

You can use this to pass into the {jrCore_list} (the get stuff from the database function for any jamroom datastore.)

eg:
{jrCore_list module="jrAudio" search1="_item_id = `$_post['song_id']`"}


Then take a look at how the item_detail.tpl file of the jrAudio module does it to setup a player.

updated by @michael: 08/20/19 09:44:26PM
michael
@michael
08/20/19 09:36:52PM
7,828 posts

allow streaming from other sites (embedding players in other websites)


Installation and Configuration

Removed the docs the ALLOW_All_DOMAINS is no longer needed.
michael
@michael
08/20/19 09:04:03PM
7,828 posts

Alt Image Tag Issue


Design and Skin Customization

How would you ".....For instance if i upload an image of a Bear I would name the file 'This is a bear'....."

If you're using a Windows PC I believe they hide the file extension of files so you cant see them (not sure). Each file will still have a file extension.

What I think you're after is in jrUpImg in the jrEmbed_item_list.tpl file. Add:
|substr:0:-4}
to the variable used in the ALT tag to trim the last 4 characters off of whatever is there. Maybe do the same for the TITLE="" variable too.

This location is for when you open the upload an image editor and click on one of the existing images.
{$item.upimg_file_name|addslashes}
to
{$item.upimg_file_name|addslashes|substr:0:-4}

four.jpg four.jpg - 417KB
michael
@michael
08/20/19 08:37:43PM
7,828 posts

Lots Of Issues With Updates


Design and Skin Customization

Actually, your two issues appear to be connected. I was not seeing the issue with the BR's after paragraphs until I added an image with the upload image editor, then the extra line breaks appeared.

My guess is some change in the way the upimg module works is the cause of both the .jpg and the extra br's.

Will look into it.
brs.jpg brs.jpg - 295KB
michael
@michael
08/20/19 08:30:49PM
7,828 posts

Lots Of Issues With Updates


Design and Skin Customization

Sounds like 'nl2br' is the cause of the extra line breaks at a guess. Im not seeing it here, but the fix is probably:
* take a look in your template for wherever its displaying and if it did look like this:
{$item.blog_text|jrCore_format_string:$item.profile_quota_id}
Then block 'nl2br' by changing it to this:
{$item.blog_text|jrCore_format_string:$item.profile_quota_id:null:nl2br}

That code is for BLOG though, so it depends on what module your using as to whether the base variable is the same or not.

--edit--
not seeing the issue in blogs, where are you seeing it?
blog.jpg blog.jpg - 488KB

updated by @michael: 08/20/19 08:32:44PM
michael
@michael
08/19/19 06:42:17PM
7,828 posts

If/Else Loops in Templates: Question


Using Jamroom

Almost right

Docs: "{debug}: Arrays"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1477/debug#arrays

try
{if $_post['option'] == 'adjectives'}
blah blah
{/if}
or
{if $_post['_1'] == 'adjectives'}
blah blah
{/if}
michael
@michael
08/17/19 05:35:17PM
7,828 posts

Wishing Simple Podcast Fields For Audio Module


Suggestions

User side audio form will be added using the Form Designer.

Output is handled by the templates, so probably "Using the Template Editor" or skin customization.

Docs: "Using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/1275/using-the-form-designer

Docs: "Using the template editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor
michael
@michael
08/17/19 05:32:47PM
7,828 posts

Youtube Views On JR VS Views On Youtube?


Using Jamroom

Youtube has access to video length so can call a "play" watching 5 seconds of the clip or watching the whole thing. Jamroom has no way of knowing if the play button was actually clicked so plays on jamroom will be opens of the detail page ( I think from memory )
michael
@michael
08/17/19 05:19:42PM
7,828 posts

If/Else Loops in Templates: Question


Using Jamroom

You could just use your IF/ELSE to put the title in there at the top, then you dont need to add in any html to the title.
  82