Forum Activity for @michael

michael
@michael
02/19/18 12:42:59PM
7,826 posts

Gallery Photos showing as placeholder photos


Using Jamroom

private profiles would do that. Whats the URL of that page?
michael
@michael
02/19/18 12:41:51PM
7,826 posts

Index Page Featured Profiles


Design and Skin Customization

flashback asks you to set settings in the ACP -> SKINS -> FLASHBACK -> GLOBAL CONFIG to choose which profile ids show on the front page in that area.

If you just want random ones you can remove the profile setting restriction by chaning:
{jrCore_list module="jrProfile" order_by="_profile_id asc" profile_id=$_conf.jrFlashback_profile_ids template="index_artists_row.tpl" limit="4"}
to
{jrCore_list module="jrProfile" order_by="_profile_id asc" template="index_artists_row.tpl" limit="4"}

in the index.tpl file
michael
@michael
02/17/18 06:18:47PM
7,826 posts

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


Using Jamroom

nope, the rest of the file might not match up with your core version.

What were the issues you had when you changed it?
michael
@michael
02/17/18 01:23:52PM
7,826 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,826 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,826 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,826 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,826 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,826 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,826 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.
  148