Forum Activity for @michael

michael
@michael
08/23/19 08:13:33PM
7,823 posts

RSS Template Variables


Design and Skin Customization

Things are getting to cryptic for me, im not understanding. What do you want to get into the rss.tpl file?

You want to get the profile info out.

Could you post your ideal RSS structure here along with the current structure and what info you need. Cheers.

--edit--
and whats the URL (or example of) that you're accessing the rss on. is it the main site feed or a profile.
updated by @michael: 08/23/19 08:16:57PM
michael
@michael
08/23/19 05:13:17PM
7,823 posts

RSS Template Variables


Design and Skin Customization

What variables you have available in a template can be discovered with {debug}

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1477/debug
michael
@michael
08/23/19 05:11:35PM
7,823 posts

one thing i DO NOT like about the new editor


Suggestions

Fix will be in JR6.4.0 which is getting released soon.
michael
@michael
08/22/19 10:15:31PM
7,823 posts

RSS Template Variables


Design and Skin Customization

You use a foreach loop to loop over the elements in an array, so if you have an array like this:
$the_array = array('cat', 'dog', 'ant eater');
then a foreach loop over it would go
{foreach $_the_array as $animal}
The animal is a {$animal}
{/foreach}

But if your array looks like this
$the_array = array('tom' => 'cat', 'bill' => 'dog', 'simon' => 'ant eater');
Then the foreach loop would look like this

{foreach $_the_array as $owner => $pet}
The pet of {$owner} is a {$pet}
{/foreach}

So it depends on what your array looks like as to how you access it outside a loop.

For the second array you can go
the pet of Simon is a {$the_array['simon']}
or
the pet of Simon is a {$the_array.simon}

to get Simons pet.
updated by @michael: 08/22/19 10:16:57PM
michael
@michael
08/22/19 10:04:48PM
7,823 posts

one thing i DO NOT like about the new editor


Suggestions

The fix is going to be adding:
contextmenu: false,
into
jrCore/form_editor.tpl
jrSiteBuilder/form_editor.tpl

The cause of the issue is the 'link' plugin:
https://www.tiny.cloud/docs/plugins/link/

and the 'contextmenu'
https://www.tiny.cloud/docs/ui-components/contextmenu

Quote: ....By default it does not disable the operating system’s native context menu, if there are no items to display at the cursor position the native context menu will be shown....
Since you can always link anything 'link' is turning up all the time. Even when what you want is really spellcheck.

Thanks for reporting this.
michael
@michael
08/22/19 09:41:33PM
7,823 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,823 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,823 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,823 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,823 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
  81