Forum Activity for @michael

michael
@michael
12/22/24 08:15:25PM
7,746 posts

share template


Design and Skin Customization

If its missing in the module itself then its probably falling back to something else. Most likely the jrAction modules version of it, so if you create an override for that it should help avoid needing to add templates to the modules. The problem with adding templates to the modules is they will not be there if the module is updated.
michael
@michael
12/22/24 08:12:57PM
7,746 posts

Spectrum Module


Using Jamroom

It certainly is possible. A module made by The Jamroom Network is no different than a module Made By You. Even the core of jamroom is a moudle.

So modules are a core concept in jamroom.

You can create either a dedicated module that does something specific or a general module where you chuck all your changes for your specific site.

From there..... actually...

What might be more useful to you is: there already is jrCore_page_custom().

Eg:
                        $html = '<div id="pl-addon-options"><!-- addons load here --></div>';
                        jrCore_page_custom($html);

It will depend a lot on whether you're wanting to use the Form Designer to build the form or if you're building the form in php. The code above allows you to pass anything you want in and make it part of the form.

You'd generally use that method when its your modules form. If you're injecting into another modules form then either the Form Designer method or the Events and Listeners system are other ways to accomplish changing whats in a form.

For the form designer method you'd make a custom form field type that could be added via the Form Designer. To do that you'd use your module to create a form field type.

Lets look at 'daterange' since its very specific and is easily searched on in your IDE and is pretty simple.

First the jrCore module adds this line to its _init() function to register the form type:
    jrCore_register_module_feature('jrCore', 'form_field', 'jrCore', 'daterange');
Then these 3 functions are defined (you could do this in include.php, but the core is a big module so for tidyness it has an included form.php file where all form stuff is)
function jrCore_form_field_daterange_display($_field, $_att = null)....
jrCore_form_field_daterange_form_designer_options()
function jrCore_form_field_daterange_attributes()
function jrCore_form_field_daterange_assembly($_field, $_post)

If your custom field type was really simple you might not need _attributes() and _assembly().

Take a look at those functions, see if that's enough to get you going.
michael
@michael
12/22/24 02:39:23AM
7,746 posts

Spectrum Module


Using Jamroom

Good on you for trying to understand, I know it can be complicated.

Any module that you can use the CUSTOM FORM fields on is using what we call a 'datastore'. Its a KEY -> VALUE database structure:

https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1023/datastores

It gives modules flexibility to interact with each other.

Basic Concept:
* info gets INTO the database via forms.
* info comes out of the database via templates. (usually via {jrCore_list} )

https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/89/jrcore-list

https://www.jamroom.net/the-jamroom-network/documentation/modules/2885/simple-custom-forms


There's a ton of over-ride points to pretty much everything which allows for a lot of flexibility but it does create a lot of complexity unfortunately.

So: If you add something to some modules form like spectrum, when you add it you'll have to choose a name to add it on that starts with the 'prefix' of the module, so for the jrBlog module its 'blog_..... for jrAudio its 'audio_....... etc.

So when you open the CREATE or the MODIFY form and save it all the info gets stored along with that thing's '_item_id'.

Now its just info in the database, but if you go to a location where you can see the other info related to that item id you can customize the templates to do whatever you want.

So you need to decide what you want the color selected by spectrum to do. Once you know what you want it to do then you adjust the templates so it does that.
michael
@michael
12/21/24 11:54:10PM
7,746 posts

Spectrum Module


Using Jamroom

I don't know what the spectrum module is sorry. Is it from a different developer?

--edit--
Yeah its one of @ultrajam's
https://www.jamroom.net/ultrajam/networkmarket/148/spectrum-color-picker

if its allows a custom color picker to be saved to the database via CUSTOM FORM EDITOR then that will be a 2 step process.

Use it on the form to record the value. That value will then be there with the rest of the form information.

So if you added it to say a blog post as 'blog_background_color' then in the templates when you're using laying out the other blog info you will also have the value of what that was set to.

Maybe use it in combination with CSS or 'style=" to customize the look of whatever you're trying to build.
updated by @michael: 12/21/24 11:57:51PM
michael
@michael
12/21/24 11:51:59PM
7,746 posts

share template


Design and Skin Customization

If your skin is over-riding a module template it will be prefixed by that modules name.

To over-ride the jrBlog modules item_action.tpl file copy it to your skin and call it /skins/YOUR SKIN/jrBlog_item_action.tpl. then make changes to it and clear the caches.

--edit--
Turn that tool off after using it, it can screw stuff up on a production site.
which.jpg which.jpg - 274KB

updated by @michael: 12/21/24 11:53:11PM
michael
@michael
12/21/24 11:47:05PM
7,746 posts

ProJam5 video page


Design and Skin Customization

I would expect it not to be a template issue. First place I would look is login as a different non-admin user and look at that page and see if the menu item shows up. If it doesn't then it could be that the menu item is not registering that the profile has any content.

If you're looking at that menu as an admin you will always see all modules active even if they dont have content. Same for the profile owner. Regular users will only see the menu item to click on IF there is content for them to view.

So if its showing for a different non-owner of that profile who is a regular user then that's something to note and it should be easier to track down the cause knowing that.
michael
@michael
12/19/24 10:58:02PM
7,746 posts

ProJam5 video page


Design and Skin Customization

its an issue with the menu, check that that user has the video module enabled. check that the menu hasn't been customized to disable videos. The page itself is visible to logged out users, just there is no menu bar item while logged out.
see.jpg see.jpg - 400KB
michael
@michael
12/19/24 10:53:18PM
7,746 posts

Timeline redesign on Audio Pro similar to followme2 or Beat Slinger 2 Skin


Design and Skin Customization

jrAudioPro2 skin does not have skin level over-rides for the timeline module ('jrAction') where the 'beatslinger' skin does.

You could try copying those over-ride files into your skin, see how far it gets you. They're just module over-ride files so it may work:

action_input.tpl
jrAction_index.tpl
jrAction_item_action_detail.tpl
jrAction_item_detail.tpl
jrAction_item_detail_feature.tpl
jrAction_item_index.tpl
jrAction_item_list.tpl

Its always going to be best if you're working from a cloned skin though because any changes to an jamroom skin structure would get lost if the skin is updated.
michael
@michael
12/19/24 10:45:56PM
7,746 posts

blog_readmore


Design and Skin Customization

Use the 'page break' button where you want to split the read more. Above that point will show in the list view.
text.jpg text.jpg - 1.1MB
michael
@michael
12/14/24 04:40:15PM
7,746 posts

Forum Category URL -- bad URL


Using Jamroom

When I try to recreate that locally the URL that got created was:
/forum/tech-help-tips-tricks-techniques

Make sure your modules are all up to date. open the CATEGORIES section of your forum. click MODIFY then SAVE CHANGES.

See if that fixes the issue.
cat.jpg cat.jpg - 342KB

updated by @michael: 12/14/24 04:41:01PM
1