Forum Activity for @ultrajam

SteveX
@ultrajam
07/02/14 02:44:09AM
2,589 posts

php error log bug


Using Jamroom

The php error log shows the span tags and isn’t coloured correctly due to jrCore_entity_string() being used in the wrong place.
Existing code from line 5528 of jrCore/index.php:
            while ($cnt > 0) {
                $index = md5(substr($_er[$idx], 27));
                if (!isset($_ln[$index])) {
                    $level = str_replace(':', '', jrCore_string_field($_er[$idx], 5));
                    $_ln[$index] = "<span class=\"php_{$level}\">" . $_er[$idx];
                    $_nm[$index] = 1;
                }
                else {
                    $_nm[$index]++;
                }
                unset($_er[$idx]);
                $cnt--;
                $idx++;
            }
            $out = '<div id="error_log"><br>';
            foreach ($_ln as $k => $v) {
                $out .= jrCore_entity_string($v) . ' [x ' . $_nm[$k] . ']</span><br><br>';
            }

That is fixed by moving jrCore_entity_string to within the html:

             while ($cnt > 0) {
                $index = md5(substr($_er[$idx], 27));
                if (!isset($_ln[$index])) {
                    $level = str_replace(':', '', jrCore_string_field($_er[$idx], 5));
                    $_ln[$index] = "<span class=\"php_{$level}\">" . jrCore_entity_string($_er[$idx]);
                    $_nm[$index] = 1;
                }
                else {
                    $_nm[$index]++;
                }
                unset($_er[$idx]);
                $cnt--;
                $idx++;
            }
            $out = '<div id="error_log"><br>';
            foreach ($_ln as $k => $v) {
                $out .= $v . ' [x ' . $_nm[$k] . ']</span><br><br>';
            }

updated by @ultrajam: 09/03/14 02:33:36AM
SteveX
@ultrajam
07/02/14 02:06:39AM
2,589 posts

This forum stripping code tags on create thread


Using Jamroom

I've seen this a couple of times now, and it just again happened here: https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/12196/nova-typo

This forum strips things out after the opening code tag on create thread. Its fine on update and on following posts, just seems to be on creating a new thread.
updated by @ultrajam: 08/16/14 12:52:49PM
SteveX
@ultrajam
07/02/14 02:03:09AM
2,589 posts

Nova typo


Using Jamroom

The link still works (in FF) but there is a typo in Nova header_menu_desktop.tpl line 67 (PHP Error Logs link):
</a</li>

updated by @ultrajam: 08/17/14 04:04:54AM
SteveX
@ultrajam
07/02/14 01:56:13AM
2,589 posts

glDatePicker offset/position


Jamroom Developers

Quote: So the problem is jamroom is using an older version of some plugin that needs updating?
Not necessarily, I can't see any way of configuring the plugin within jamroom regardless of the version.

It isn't a problem, I've changed the 1.3 script to use position() and that works for my site.
SteveX
@ultrajam
07/02/14 12:49:49AM
2,589 posts

glDatePicker offset/position


Jamroom Developers

I cant really ask gl, they use the current version of the plugin which doesnt have the same problems, and which has documentation available.

You can control this on the current version, and probably on the older version, but not how its used in jamroom.

Also, there doesnt seem to be any copyright notice on the minified plugin or anywhere else in the jr5 core. The unminified version (which you can find in the archive branch on github) does state that the notice is required, and it does make gl easier to find.
updated by @ultrajam: 07/02/14 01:06:36AM
SteveX
@ultrajam
07/01/14 06:26:58AM
2,589 posts

glDatePicker offset/position


Jamroom Developers

This is the change I made, just changed offset to position in two places:
			// If calendar doesn't exist, make one
			if($("#"+calId).length == 0)
			{
				target.after
				(
					$("<div id='"+calId+"'></div>")
					.css(
					{
						"position":settings.position,
						"z-index":settings.zIndex,
						"left":(target.position().left), 
//changed from left":(target.offset().left),
						"top":target.position().top+target.outerHeight(true) 
//changed from "top":target.offset().top+target.outerHeight(true)
					})
				);
			}

updated by @ultrajam: 07/01/14 06:27:42AM
SteveX
@ultrajam
07/01/14 06:18:43AM
2,589 posts

glDatePicker offset/position


Jamroom Developers

I'm having trouble with the datepicker (glDatePicker 1.3) position - it is way out on my skin.

I've found that if I change offset() to position() in the js (using an unminified version) the picker appears in the correct location on both my skin and jrElastic. (as suggested by this https://github.com/glad/glDatePicker/pull/9)

Any ideas as to how I can achieve the same thing without editing the glDatePicker js?

Thanks
updated by @ultrajam: 08/03/14 12:27:10PM
SteveX
@ultrajam
06/30/14 05:44:50AM
2,589 posts

Setting up the subscriptions...


Installation and Configuration

Annush:
I sent foxycart a request to find out how to set up subscriptions and they said it was controlled inside our website not on their end so they could not help me with it. I will go back to them and request more information then.

I think you have misread Douglas' response.

Go to your Jamroom's FoxyCart module and click the Quota tab.
SteveX
@ultrajam
06/30/14 03:36:59AM
2,589 posts

pre tag in pages


Installation and Configuration

You could use css to set the height of a line break within pre tags to 0
SteveX
@ultrajam
06/30/14 03:32:39AM
2,589 posts

Cross-Origin Request Blocked:


Jamroom Developers

Then a url in the db maybe? (if you are transferring a db as well)
  151