Forum Activity for @michael

michael
@michael
12/19/20 07:58:43PM
7,816 posts

phone version of tinymce text editor is limited?


Using Jamroom

That piece of code reads
* disable the side bar
then
* include the default item detail template

So your over-ride is overriding the default then including the default again after its turned off the side bar.

Fist thing to try is in the ACP -> MODULES -> (i forget the category, sorry) -> FORUM -> TEMPLATES -> item_detail.tpl -> MODIFY

Try adding HERE I AM!!! WHERE DOES THIS COME OUT?????, then SAVE
and see if that text appears on the forums location.

It might not because disable_override=true is set, but if it does then thats where to change. If it takes too long send the login details to support at jamroom ATTN; michael and along with a link to this thread and I'll get it fixed up.
michael
@michael
12/17/20 11:10:48PM
7,816 posts

Issue Tracker - Feature Request - External Bug Tracker Integration


Jamroom Developers

There's no reason you couldn't copy the jrTracker's function ( view_jrTracker_vcs_webhook() ) into your own module and use that to define your own triggers and actions.

The body of the view_jrTracker_create_save() function is the one that does all of the ticket creation so all the code needed to generate a ticket can be found in there. If you wanted to go that way.

That said, brian wrote the module so I've left a note for him to come take a look at this thread. He might want to include that in the module itself.
michael
@michael
12/15/20 07:55:33PM
7,816 posts

Block and unBlock of a User


Jamroom Developers

Changed the body of view_jrUser_block_save() to

    // Block a User
    if ($_post['mode'] == 'b') {
        jrUser_block($uid);
    }
    else {
        // UN-blocking a user
        jrUser_unblock($uid);
    }
from jrUser 2.9.3. Just needs to pass testing then will be in the next release.
michael
@michael
12/15/20 07:43:04PM
7,816 posts

Block and unBlock of a User


Jamroom Developers

The view_jrUser_block_save() function was added in 2016 and nothing has changed with it since. I think you'd be pretty safe copy+paste the innards to set the block.

SET THE BLOCK:
        // When blocking a user we set BOTH user and profile inactive and remove any sessions
        jrCore_db_update_item('jrUser', $uid, array('user_active' => 0, 'user_blocked' => 1));

        // Delete existing session and login cookie
        jrUser_session_remove($uid);

        $tbl = jrCore_db_table_name('jrUser', 'cookie');
        $req = "DELETE FROM {$tbl} WHERE cookie_user_id = '{$uid}'";
        jrCore_db_query($req);

        // Next - we need to get ALL profiles this user is linked to abd block the profiles
        $_pr = jrProfile_get_user_linked_profiles($uid);
        if ($_pr && is_array($_pr)) {
            foreach ($_pr as $pid => $user_id) {
                jrCore_db_update_item('jrProfile', $pid, array('profile_active' => 0));
                jrProfile_reset_cache($pid);
            }
        }

REMOVE THE BLOCK:

        // UN-blocking a user
        jrCore_db_update_item('jrUser', $uid, array('user_active' => 1));
        jrCore_db_delete_item_key('jrUser', $uid, 'user_blocked');

        // Next - we need to get ALL profiles this user is linked to abd block the profiles
        $_pr = jrProfile_get_user_linked_profiles($uid);
        if ($_pr && is_array($_pr)) {
            foreach ($_pr as $pid => $user_id) {
                jrCore_db_update_item('jrProfile', $pid, array('profile_active' => 1));
                jrProfile_reset_cache($pid);
            }
        }

If you're still feeling real nervous about it I'm sure we could separate those sections out into their own functions for next release.

--edit--
Actually, doing that is trivial, I'll get it added.
updated by @michael: 12/15/20 07:45:43PM
michael
@michael
12/14/20 06:27:23PM
7,816 posts

Any Override Options?


Jamroom Developers

You can over-ride a specific comment by use of a function, eg:
/somebody/comment/23
can be specifically addressed by creating a function:
profile_view_jrComment_23()
but I don't think that's what you're after here, you just want to run some type of catch to see if its a bot and throw it out if it is, so anywhere before the profile_view_jrComment_default() fires will work.

There's a listener that fires just before profile_view_jrComment_default() in the flow of things, its
'profile_data'

That looks to be the closest event.
michael
@michael
12/08/20 05:31:54PM
7,816 posts

Unable to initialize modules - verify installation


Installation and Configuration

ah, that would be why the error message reads "apache".

See what's in the error log, should give us a clue.
500_Internal_Server_Error.jpg 500_Internal_Server_Error.jpg - 395KB
michael
@michael
12/07/20 05:33:34PM
7,816 posts

Unable to initialize modules - verify installation


Installation and Configuration

Good place to check that's server related is, is 'mod_rewrite' enabled.

The expected flow is that any time any url is hit and the system is not found that mod_rewrite will redirect to the install.php location automatically, so if you're not turning up there automatically, that's my guess.
michael
@michael
12/06/20 08:43:22PM
7,816 posts

Unable to initialize modules - verify installation


Installation and Configuration

That specific error:
Quote: "unable to initialize modules - verify installation"
is only in one location. It occurs when a query to the jr_jrcore_module database table is run and the response contains nothing.

Its expected that that table will be a list of all the modules in the system of which the core module itself should be in the list.

So it suggest that either the install.php script has not been run, which it should have been if all the files are uploaded and the server meets the requirements.... OR that for some reason database table is not there, but can't think why that would be.
michael
@michael
11/24/20 10:56:24PM
7,816 posts

Uploaded audio files are not processing correctly.


Installation and Configuration

Check the activity log for any errors or related details, let us know what they are:
DASHBOARD -> ACTIVITY LOG -> ACTIVITY LOG
DASHBOARD -> ACTIVITY LOG -> ERROR LOG
DASHBOARD -> ACTIVITY LOG -> DEBUG LOG
michael
@michael
11/24/20 08:09:47PM
7,816 posts

phone version of tinymce text editor is limited?


Using Jamroom

In the jrForum item_detail.tpl page there is a specific check to not show the editor, see the screenshot.

The code flow goes:
* if the editor is turned on and this is not a mobile device, then show the editor
* OTHERWISE show the textarea.

On your site this might be at:
* ACP -> MODULES -> PROFILE -> FORUM -> TEMPLATES -> item_detail.tpl -> MODIFY
OR
* ACP -> SKINS -> (your skin) -> TEMPLATES -> jrForum_item_detail.tpl -> MODIFY

Remove the :
 && !jrCore_is_mobile_device()
and the editor will show as in brians screenshot. It is limited in functionality but will allow links and images to be added. Just does not have the full embed system like the desktop has.

--edit--
Before making the change do a test, type "AWHERE WSEORJERE ERA WHERE AM I ????" or some other text then check you can see that text where you're expecting to see it. In the screenshot you'll see the word "THIS??". Thats what im doing there, just checking im in the right place.
editor.jpg editor.jpg - 1.6MB

updated by @michael: 11/24/20 08:14:24PM
  55