Forum Activity for @michael

michael
@michael
08/13/21 06:53:16PM
7,816 posts

JrCore Router using too much CPU power


Using Jamroom

If its still slow after that, send the URL of some of the slow pages to support at jamroom dot net along with a link to this thread and I'll go take a look at it, see if I can see anything obvious.
michael
@michael
08/13/21 05:34:11PM
7,816 posts

email from Soundcloud... anything to worry about?


Using Jamroom

Thanks for the heads up. Yes the soundcloud module does use api.soundcloud.com and it does use 'client_id'. This is something we'll need to get the module updated to take care of. I'll open a tracker.
michael
@michael
08/13/21 05:30:22PM
7,816 posts

Elastic2 - Banner Image not appearing in profiles


Using Jamroom

There's a new version of the jrProfile module that's just been moved from BETA into the STABLE channel just now.

Update your system and try again.
michael
@michael
08/13/21 05:26:22PM
7,816 posts

JrCore Router using too much CPU power


Using Jamroom

EVERYTHING goes through the router so its probably not the router itself thats the issue but the endpoint or something along the way.

Those load times do seem way too long for a well running system though.

Could be some stalled or continuiously looping processes that have hung possibly. A system reboot may clear those out.

Is caching turned on, it should be in a production system. Make sure its not running in "Developer Mode"
ACP -> MODULES -> DEVELOPER -> GLOBAL CONFIG -> Developer mode.

When a page loads on jamroom the router.php file will
* router.php -> load the page
* router.php -> load first image
* router.php -> load second image
* router.php -> load third image

so it gets called a lot. Need to figure out which process is the slow one.
michael
@michael
08/10/21 08:40:53PM
7,816 posts

Purging Obsolete Media Files


Jamroom Developers

if you're looking to expand the storage size but not the server capabilities we do have facility to add extended storage to your current hosting account. The advantages are bigger storage for the server without the price jump of an actual larger server.

Brian's set it up for a couple of people with large space requirements but not such a big demand on traffic.

Have a chat with him if that's something that could be useful in your case.
michael
@michael
08/10/21 07:29:27PM
7,816 posts

Can I disable "Followers" tab on Forum Profile?


Design and Skin Customization

I think what you're after is when someone arrives at the community profile that they are immediately redirected to the forum.

If that's what you're after, setup another quota, maybe call it 'community'
ACP -> MODULES -> PROFILES -> PROFILES -> TOOLS -> PROFILE QUOTAS -> "community" -> CREATE NEW QUOTA

Then move the /community profile into that quota. Do this by visiting it as an admin user then clicking the gear icon. At the bottom of the PROFILE page you will see the quota.

Next install the "Profile Tweaks" module from the marketplace then visit it at:
ACP -> MODULES -> PROFILES -> PROFILE TWEAKS -> QUOTA CONFIG

Change the "Selected Quota" to be "Community" and the "Allow Customization" to be ON and the "Default Profile Index" to be "Forum"

When ever anyone visits that profile they will go directly to the Forum.

Hiding the side bar and the FOLLOW button will probably take some skin customization or some clever CSS tweaks.
quota.png quota.png - 94KB
michael
@michael
08/10/21 07:14:44PM
7,816 posts

Purging Obsolete Media Files


Jamroom Developers

Worst case I can think of: the user sees an error that is meant for the developers and doesn't understand it. A file not being there when the database expects it to be is not going to topple the system or crash it.

Maybe the item still appears in a list of items then when clicked on it goes to a 404 not found page. You can log 404 errors to the activity log via a setting in the ACP if you want to watch for that.

I often download a database of a site that needs working on from production but do not download the /data/ folder. The result is the site still works but the images show the default image placeholders.
michael
@michael
08/09/21 08:01:40PM
7,816 posts

Purging Obsolete Media Files


Jamroom Developers

maybe follow this flow:
Upload a bunch of images to a single jrGallery then it will have a DELETE button for each. That would setup a structure where you can follow the flow of functions that work to delete a single file from a datastore item that contains multiple images.

Im guessing thats what you're after rather than deleting the datastore item itself.

--edit--
the path in the image should be /index.php not /image.php, sorry.
a-delete-flow.jpg a-delete-flow.jpg - 1.4MB

updated by @michael: 08/09/21 08:02:47PM
michael
@michael
08/09/21 04:04:29PM
7,816 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,816 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
  43