Forum Activity for @michael

michael
@michael
08/09/21 04:04:29PM
7,718 posts

Purging Obsolete Media Files


Jamroom Developers

"that file" is the hard part. All images that come out on "img src" will first be stored in the cache at /data/cache/(module name).

They will have been put there by processing the master image which is stored with the data at /data/media/(one number)/(another number)/jrAudio_2_image.jpg

something like that ^

That's the image that needs deleting but if you just delete it without deleting the associated datastore entries the system will think it still exists.

So for an image like this one:
your-site.com/blog/image/blog_image/2482/xxxlarge/_v=63f541628547989

its a blog image, its datastore key is 'blog_image' and the datastore _item_id is 2482

Functions that may be useful:
jrCore_get_media_directory
jrCore_get_media_file_url
jrCore_delete_media_file
jrCore_delete_item
michael
@michael
08/03/21 07:14:04PM
7,718 posts

Skins and Modules


Off Topic

no, you only need to keep the very latest version.

What is happening is that initially you will have this structure
/modules/jrAudio/(all the module files)
then a new version comes out and the url /modules/jrAudio will turn into a 'symlink' to the newest version which will be put on
/modules/jrAudio-version-1.2.3

The main reason its done like this is because its quicker to copy all the files over from the main code repository to your server into the new directory /modules/jrAudio-version-1.2.3 then once they are all there change it to a symlink.

If instead the flow was to copy the files from the jamroom repository over directly to /modules/jrAudio/index.php or other file then if someone was using that at the time they could see errors.

If its just disk-space you're concerned about you can set the marketplace to just keep 1 version of everything at
ACP -> CORE -> MARKETPLACE -> GLOBAL CONFIG -> GENERAL SETTINGS -> MARKETPLACE VERSIONS

set it to 1.

If you're using the GIT version control system and you want to get /modules/jrAudio-version-1.2.3 back onto its main url of /modules/jrAudio/

then you can use the REBASE MODULE tool found at
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> GLOBAL CONFIG -> DEVELOPER SETTINGS -> ENABLE RESET TOOLS

Then
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> TOOLS -> REBASE MODULES
version.png version.png - 93KB

updated by @michael: 08/03/21 07:14:19PM
michael
@michael
08/01/21 06:33:03PM
7,718 posts

Make white blocks transparent.


Design and Skin Customization

Its probably in list.css, you can also use the "Search Selector" field under STYLE -> BASIC RULE EDITOR -> SEARCH SELECTOR to type in "item" and then look for the one that has ".item"

Alternatively in the Custom Editor at
STYLE -> CUSTOM EDITOR -> CUSTOM CSS
enter
.item{
 background-color: transparent;
}
michael
@michael
07/29/21 09:39:13PM
7,718 posts

Found bug in metatag module


Design and Skin Customization

The facebook debugger is reporting that page's og:image is fine, its complaining you're missing other different tags.
face.jpg face.jpg - 1.6MB
michael
@michael
07/29/21 01:53:13AM
7,718 posts

Found bug in metatag module


Design and Skin Customization

We've updated the meta.tpl in the next version of the jamroom skins, the change is:
{if isset($meta)}
{foreach from=$meta key="mname" item="mvalue"}
<meta name="{$mname}" content="{$mvalue}">
{/foreach}
{/if}
got changed to this:
{if isset($meta)}
{foreach from=$meta key="mname" item="mvalue"}
<meta name="{$mname}" property="{$mname}" content="{$mvalue}">
{/foreach}
{/if}
michael
@michael
07/27/21 06:41:06PM
7,718 posts

M3U parsing?


Off Topic

ah, gotcha. Yeah that will take some experimenting.

One issue you'll have is that the .m3u file and all the files it points to are probably all in the same directory, something like
list.m3u
file1.mp3
file2.mp3
file3.mp3

but those files are not inside jamroom, so I think you'd need to build a way to import them into jamroom and during that import system you could use the values in the .m3u file to build some jamroom playlists.

You might also consider making a module that takes a jamroom existing playlist and exports it to .m3u.

Just ideas.
michael
@michael
07/27/21 03:30:07AM
7,718 posts

How to easily figure out which .tpl to edit?


Design and Skin Customization

Here's some generalizations of where things could be:

site.com/avacardo
if there is a module that uses the module url 'avacardo' then the template that shows that page will most likely be
/modules/xxAvacardo/templates/index.tpl
But if there is no module then the template will probably be at
/skins/(YOUR SKIN)/avacardo.tpl

if the URL is on a profile then its probably controlled by a module, so if the url is
site.com/michael/avacardo
then the template will most likely be
/modules/xxAvacardo/templates/item_index.tpl
but that could have an over-ride template in place at the skin level, so if
/skins/(YOUR SKIN)/xxAvacardo_item_index.tpl
that will be over-riding the modules version.

if there is a number in the URL on a profile then you're likely not looking at a list, but at the DETAIL page of a single item, eg
site.com/michael/avacardo/24
then the template will likely be
/modules/xxAvacardo/templates/item_detail.tpl
but could have an over ride at
/skins/(YOUR SKIN)/xxAvacardo_item_detail.tpl

--edit--
ah yeah on that URL the template names is not so much help. What you have here:
https://example.com/forum/activity/10/username/p=2

is the forum module, so jrForum and the page we're looking at has another / after the module name so its most likely a function. the visibile functions are stored in the index.php file of a module, so
/modules/jrForum/index.php
is the file, then the function name is /activity/ so open that file and look for
function view_jrForum_activity() to see whats going on with the page.
updated by @michael: 07/27/21 03:34:26AM
michael
@michael
07/27/21 01:32:14AM
7,718 posts

How to easily figure out which .tpl to edit?


Design and Skin Customization

Why doesn't it help much, it should take you right to where you want to go.

For me the way I like to edit the templates is not from within jamroom at all, I like to do it from an editor that works on my computer.

I store a copy of my website on my computer and the software keeps the two in sync. I use "PhpStorm" but if you're only editing occasionally it might not be the best for you.

When I want to figure out what template I need to be working on I find some code that looks unique-ish on the page, usually a class="something-unique-looking" then do a search with phpstorm for "something-unique-looking" to see which-of-all templates it could possibly be.

If I'm lucky there are only 2 or 3 location, from there if I dont know which one it is I'll write something to all of them

class="something-unique-looking 111"
class="something-unique-looking 222"
class="something-unique-looking 333"

Then go look again to see which one shows up on the page I want to know about. if its 222 then I know thats the location to edit.

Also another thing to turn on when making edits is DEVELOPER MODE so you dont need to reset the caches each time. its at
ACP -> MODULES -> DEVELOPER -> DEVELOPER TOOLS -> GLOBAL CONFIG
developer.png developer.png - 62KB
michael
@michael
07/26/21 06:48:16PM
7,718 posts

M3U parsing?


Off Topic

There is a playlist module in jamroom, its called "Playlists"
https://www.jamroom.net/the-jamroom-network/networkmarket/56/playlists

The way it works is when someone is logged in to jamroom and they are browsing your site and they locate a song they like, they click ADD TO PLAYLIST button then create a new playlist or add it to an existing one. Then those playlists will show on their profile.

Its not an M3U playlist. Im not sure how an M3U playlist would work within jamroom now since files are not uploaded via FTP anymore.

How are you hoping an M3U playlist would work?
michael
@michael
07/22/21 08:30:23PM
7,718 posts

Family Tree API


Genosis

That sucks, I was interested to see what you were going to build.

Time to change hosting companies if they don't provide backups.

Thanks for trying Jamroom.
  34