Forum Activity for @michael

michael
@michael
02/17/18 01:23:52PM
7,823 posts

jrAparna module


Using Jamroom

The big issue is skins that provide template overrides such as the FollowMe skin.

What aparna does is create a module that supposed to work, but it doesn't on all skins, so its only going to get you half way there in some cases. Because its only going to get you half way there it causes confusion for those that it doesnt work for because they expect it to work.

If it works for you, keep using it, but its hard to support a module that creates a broken system in some cases that require technical knowledge to fix on behalf of the user using the module or us to go fix it for them.
michael
@michael
02/17/18 12:01:41PM
7,823 posts

max_allowed_packet


Using Jamroom

might need to restart your server or apache or something until that 16 turns to 32.

The request is to change 'max_allowed_packet' to 32mb and its saying that its currently set to 16MB
michael
@michael
02/17/18 11:59:11AM
7,823 posts

jrAparna module


Using Jamroom

There is a Hello World module here:
https://github.com/PMaynard/JR5-Hello-World

That shows you how to get "Hello World" out into all the various locations.

Once you understand all the locations you wont need that big of a module to start your own.

Depending on what you want to do, a complete module might only have an include.php file and a changelog.txt. If all you wanted was a listener to adjust how other modules work.

If it needs views then it would have an index.php

If you need a datastore then it would have a schema.php.

If you need GLOBAL CONFIG tabs then it would have a config.php

but each module is different so what your module needs will determine what exists.
michael
@michael
02/16/18 08:02:26PM
7,823 posts

symbols in gallery/image name cause weird issues (urls)


Using Jamroom

Think we've got this fixed for the next jrCore version.

If you just cant wait, its /modules/jrCore/lib/util.php

This is the new version of the function:

/**
 * Replace emoji unicode characters with placeholders in a string
 * @param $string string
 * @param $replace bool set to TRUE to store emoji replacements
 * @return int
 */
function jrCore_strip_emoji($string, $replace = true){
    if (is_string($string) && !jrCore_get_flag('jrCore_strip_emoji')) {
        jrCore_set_flag('jrCore_strip_emoji', 1);
        $pattern = '/([0-9|#][\x{20E3}])|[\x{00ae}|\x{00a9}|\x{203C}|\x{2047}|\x{2048}|\x{2049}|\x{3030}|\x{303D}|\x{2139}|\x{2122}|\x{3297}|\x{3299}][\x{FE00}-\x{FEFF}]?|[\x{2190}-\x{21FF}][\x{FE00}-\x{FEFF}]?|[\x{2300}-\x{23FF}][\x{FE00}-\x{FEFF}]?|[\x{2460}-\x{24FF}][\x{FE00}-\x{FEFF}]?|[\x{25A0}-\x{25FF}][\x{FE00}-\x{FEFF}]?|[\x{2600}-\x{27BF}][\x{FE00}-\x{FEFF}]?|[\x{2900}-\x{297F}][\x{FE00}-\x{FEFF}]?|[\x{2B00}-\x{2BF0}][\x{FE00}-\x{FEFF}]?|[\x{1F000}-\x{1FFFF}][\x{FE00}-\x{FEFF}]?/u';
        if (preg_match_all($pattern, $string, $_match)) {
            $_rp = array();
            foreach ($_match[0] as $e) {
                if (strlen($e) > 1) {
                    $_rp[$e] = $e;
                }
            }
            if (count($_rp) > 0) {
                if ($replace) {
                    $tbl = jrCore_db_table_name('jrCore', 'emoji');
                    $req = "SELECT * FROM {$tbl} WHERE emoji_value IN('" . implode("','", $_rp) . "')";
                    $_rt = jrCore_db_query($req, 'emoji_value', false, 'emoji_id', false, null, false);
                    foreach ($_rp as $k => $e) {
                        if (!$_rt || !isset($_rt[$k])) {
                            $req     = "INSERT INTO {$tbl} (emoji_value) VALUES ('{$e}')";
                            $eid     = jrCore_db_query($req, 'INSERT_ID', false, null, false, null, false);
                            $_rt[$k] = $eid;
                        }
                        else {
                            $eid = $_rt[$k];
                        }
                        if ($eid && $eid > 0) {
                            // Replace with placeholder in our string
                            $string = str_replace($e, "!!emoji!!{$eid}!!emoji!!", $string);
                        }
                    }
                }
                else {
                    foreach ($_rp as $k => $e) {
                        $string = str_replace($e, '', $string);
                    }
                }
            }
        }
        jrCore_delete_flag('jrCore_strip_emoji');
        return jrCore_strip_non_utf8($string);
    }
    return $string;
}
michael
@michael
02/16/18 07:25:34PM
7,823 posts

symbols in gallery/image name cause weird issues (urls)


Using Jamroom

Can see it happening here. Looking into why and what to do about it.
michael
@michael
02/16/18 07:22:57PM
7,823 posts

symbols in gallery/image name cause weird issues (urls)


Using Jamroom

For now, you can see the link location here:
https://www.dreadlockssite.com/daydreamer/gallery/64795

it links to
https://www.dreadlockssite.com/daydreamer/gallery/64795/(heart mark)

in each of the forward / backward links of the gallery
michael
@michael
02/16/18 07:19:32PM
7,823 posts

symbols in gallery/image name cause weird issues (urls)


Using Jamroom

best way to get me to understand the issue is if you can provide steps for me to take on my dev machine to reproduce the issue, then when I can see it happening I can debug it.
michael
@michael
02/16/18 07:17:18PM
7,823 posts

Profile datastore from purchase


Jamroom Developers

Sounds like you're wanting to make a module, nice one :)

Each module can have its own datastore, but only one datastore per module. (you can however have as many regular MySql tables as you need to support your module)

Developer docs are here:

Docs: Module Developers Guide
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide

Creating a datastore for the module is as easy as adding a line to its schema.php file. Take a look at other modules with schema.php files for reference.

"When a user purchases a specific item a function needs to happen to show exclusive items because they made this purchase. "

Thats the "Events and Listeners" system, add a listener to your module to an appropriate event to check whether the event meets all your required criteria.
michael
@michael
02/16/18 07:10:48PM
7,823 posts

How to you get comments to work on the wall


Design and Skin Customization

@annush if you have suggestions for improvements in the way things function now, add them to the suggestions forum category:

https://www.jamroom.net/the-jamroom-network/forum/suggestions

Otherwise if we just think its a request for how to customize your own site it will probably be treated as that and ignored once solved.

Thanks for helping make jamroom better :)
michael
@michael
02/15/18 07:57:57PM
7,823 posts

symbols in gallery/image name cause weird issues (urls)


Using Jamroom

Weird characters do not show up for me in a similar location on a skin that uses the default templates.

My biggest suspect is still a template override by your skin. Does the same issue still exist on a default jrElastic2 ?
characters.jpg characters.jpg - 268KB
  148