Forum Activity for @michael

michael
@michael
12/16/16 10:21:23PM
7,826 posts

Question about Cometchat and PHP7


Using Jamroom

JR5 to JR6 will not effect comet chat at all. php5 to php7 may have though.
michael
@michael
12/16/16 09:07:21PM
7,826 posts

Possible Issue


Using Jamroom

any messages in the console log? When you do it in firefox, if you have firebug installed, you can hit F12 to open firebug. In there there is a CONSOLE panel that adds lines of what is happening with javascript at any point in time.

If you click the PERSIST button in that console, then even if the page refreshes, the log lines from the previous page will still be present. I'd be interested to know what those lines read at the point where you get kicked back.

Nothing in the error/debug/activity logs (probably not for javascript issues, but also worth checking.)?

Can try from here if you want to give me some steps.
michael
@michael
12/16/16 08:21:18PM
7,826 posts

Auto Join main chat room


Using Jamroom

lol, love it. :)

If we run out of things to do, and wacom or google dont get to fixing it first, and one of us comes across a wacom tablet with a pen ( like one, but dont have one ), then we might get to fixing it. Hows that for commitment, pretty washy....

--
That was taken in the airport on the way here, Im in New Zealand now escaping from the Tokyo winter.
Not going back until it warms up.

Its more likely that we could find a way to get those smileys working in chat than fixing the pen/tablet issue though. That doesn't seam so hard.

From what i understand, ( should start a new thread for this, it will get lost... ), smileys are working in the chat, but you have no visual way to select the smiley from the list is the issue. So your users would need to remember the key-combo for 100 smileys. If there was a button to allow smiley selection panel to open, you'd be happier right?
updated by @michael: 12/16/16 08:23:08PM
michael
@michael
12/16/16 06:34:44PM
7,826 posts

Quick Share Modal Window - item_share_modal.tpl


Design and Skin Customization

This won't find its way into documentation, its just some development steps and we're not running a school for developers. ( unless there was interest in that.... )

--
ctrl+shift+f shows the code wide search function. (it has a preview tab). Or you could run the search then click on the result, it has a preview tab too. or you could click on the result and go to the file where you would see the actual function.
michael
@michael
12/15/16 11:50:59PM
7,826 posts

Listing featured events that occur today and in future


Using Jamroom

you are a programmer ;) ( I'm going to claim that I left that code mistake in there on purpose :) )

Glad you figured it out.
michael
@michael
12/15/16 11:49:19PM
7,826 posts

How to search member accounts?


Using Jamroom

If you add that field to the ADDITIONAL SEARCH FIELDS setting found at:
your-site.com/search/admin/global

If you say, added
profile_bio
Then updated one of your profiles biography with
something avacardo and something 
Then ran the "Rebuild Index" tool found at:
your-site.com/search/admin/tools

That new field would be searched in the search results.

From there if you're using the Data Browser tab found at:
your-site.com/profile/dashboard/browser

and searched for:
%avacardo%
You would see the profile you added the string to as the only result.

You could use this technique to add other search fields to the search results as well.
michael
@michael
12/15/16 11:32:04PM
7,826 posts

Quick Share Modal Window - item_share_modal.tpl


Design and Skin Customization

Steps I take to get the info you're wanting:

* open up PhpStorm with the jamroom codebase project open and run a search for 'item_share_modal.tpl'

That returns 3 locations where that template is used, one is a comment, the other is the birthday module, so im 95% sure the one Im after is the one in the jrAction module.

I open that search result and see this function:
function view_jrAction_share_msg($_post, $_user, $_conf)
{ jrUser_session_require_login(); jrUser_check_quota_access('jrAction'); if (!isset($_post['_1']) || !jrCore_module_is_active($_post['_1'])) { return 'error: invalid module'; } if (!isset($_post['_2']) || !jrCore_checktype($_post['_2'], 'number_nz')) { return 'error: invalid item_id'; } $_temp = $_post; $_temp['module'] = $_post['_1']; $_temp['item_id'] = (int) $_post['_2']; // Does this module have a custom template? $_temp['template'] = false; if (is_file(APP_DIR . "/modules/{$_post['_1']}/templates/item_share.tpl")) { $_temp['template'] = 'item_share.tpl'; } return jrCore_parse_template('item_share_modal.tpl', $_temp, 'jrAction'); }

At the bottom of that function is the location where $template could possibly be set, its this piece of code:
    if (is_file(APP_DIR . "/modules/{$_post['_1']}/templates/item_share.tpl")) {
        $_temp['template'] = 'item_share.tpl';
    }

That piece of code reads: "If the current module which is active from the url contains an item_share.tpl file then use that file"

So the answer to your question is: If the module being shared has provided its own template, then that is used.

--
Modules that provide their own item_share.tpl files can be found again with phpstorm. It tells us that currently only 2 modules do provide that template, they are the jrGallery module and the jrComment module.
michael
@michael
12/15/16 11:22:35PM
7,826 posts

Auto Join main chat room


Using Jamroom

Strumelia:
I just noticed something-
If I'm using my Wacom tablet pen at my desktop to delete a chat post as admin, it doesn't work on Chrome but it does on FF. But if I use my regular mouse in Chrome, it deletes the post. Go figure.

That suggest that the wacom tablet is not sending the same key-code to chrome as a mouse click when the pen is touched to the delete icon button.

3 ways to handle that:
* ask wacom to send the same key-code as a mouse click in chrome
* ask chrome to interpret wacom's different key-code in the same way as the mouse click
* figure out what key code is coming in and compensate for that issue in the jamroom module.
michael
@michael
12/15/16 11:13:13PM
7,826 posts

Mailchimp Integration


Installation and Configuration

Currently in this thread, you are asking questions and we are replying as if you are debugging the jrMailChimp module. If that is what you want to do we can keep replying as is. If you want US to debug the module, its better to offer steps to show how we can setup to see the error happening.

So in answer to your question: "What does the debug log capture?" its easy to find that out by running a search on the module for jrCore_logger. or just '_logger'. that will return all the locations in the code base that log something to the activity log.

In this case there are 5 locations. (screenshot)
screenshot_logged_errors.png screenshot_logged_errors.png - 62KB
  305