Forum Activity for @ultrajam

SteveX
@ultrajam
03/22/17 06:19:34AM
2,589 posts

Dindt find translate some language words


Using Jamroom

@Paul in Elastic2 there are language strings which haven't made it into the language file.

In the footer.tpl there are strings 161 and 162, but Elastic2 language file only goes up to 72, so the defaults are showing. Those strings are in FollowMe.
updated by @ultrajam: 03/22/17 06:20:34AM
SteveX
@ultrajam
03/22/17 06:16:31AM
2,589 posts

Dindt find translate some language words


Using Jamroom

You should wait, the Jamroom team will fix that.
SteveX
@ultrajam
03/22/17 06:15:24AM
2,589 posts

Dindt find translate some language words


Using Jamroom

Ah I see what you mean.

Those language strings have come from FollowMe and don't exist in Elastic2.
SteveX
@ultrajam
03/22/17 06:08:06AM
2,589 posts

Dindt find translate some language words


Using Jamroom

It will be in either User language tab, or Skin language tab.

If your skin is Elastic2 go here:
YOURSITE/core/skin_admin/language/skin=jrElastic2
SteveX
@ultrajam
03/22/17 05:55:46AM
2,589 posts

Dindt find translate some language words


Using Jamroom

If it isn't in User language tab, try the Skin language tab.
SteveX
@ultrajam
03/21/17 01:26:35PM
2,589 posts

Image crop=portrait


Using Jamroom

The easiest that I can see is to add this at line 1694 at the end of the // Cropping section of jrImage_create_image()
		$_offsets = explode(':', $_post['crop']);
		if (count($_offsets) == 4) {
			$src_x_offset = $_offsets[2];
			$src_y_offset = $_offsets[3];
		}
So that part of the function now looks like this:
                }
                break;
        }
		$_offsets = explode(':', $_post['crop']);
		if (count($_offsets) == 4) {
			$src_x_offset = $_offsets[2];
			$src_y_offset = $_offsets[3];
		}
    }
    else {
        // maintain aspect ratio of original image
        $new_height      = (int) (($src_height / $src_width) * $new_width);
        $_post['height'] = $new_height;
    }

    //----------------------------------
    // create resource
    //----------------------------------

Then in the jrImage_display smarty function use crop="16:9:0:0"

I don't see any notices or warnings in the error log, so I'll leave that in place and try out some different combinations of cropping.

I can manage without it by capturing multiple images per module item, but it would be very nice to have if possible :)
SteveX
@ultrajam
03/21/17 12:52:14PM
2,589 posts

node-fetch client in log


Using Jamroom

Thanks Michael.

The site is on http. Nothing on my mac, but previously the site was sending tracker emails to someone elses pc so it could be that.

I'll keep an eye on it.
SteveX
@ultrajam
03/21/17 11:13:44AM
2,589 posts

node-fetch client in log


Using Jamroom

I have a few of these in the log today with a node-fetch client.

What I'm wondering is how does it find the url given that it has always been a private tracker item and has not been linked to from anywhere?

Quote: Message 404 Page not found: /steve/tracker/383/a-how-to-use-google-workbook
Date 21/03/17 06:04:20PM
IP Address 35.160.36.119
URL /steve/tracker/383/a-how-to-use-google-workbook
Memory 2MB
Data
Array
(
[_post] => Array
(
[_uri] => /steve/tracker/383/a-how-to-use-google-workbook
[module_url] => steve
[module] => jrTracker
[option] => 383
[_1] => 383
[_2] => a-how-to-use-google-workbook
[_profile_id] => 2
)

[referrer] => none
[client] => node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
)

updated by @ultrajam: 06/23/17 12:22:43AM
SteveX
@ultrajam
03/21/17 04:42:15AM
2,589 posts

Updates


Installation and Configuration

If you are on JBServers that is different from Jamroom Hosting.

https://www.jamroom.net/hosting
SteveX
@ultrajam
03/20/17 07:02:22PM
2,589 posts

Image crop=portrait


Using Jamroom

I'm happy anyway man :) But thanks for thinking about it.

I was thinking that the simplest way might be to allow an offset to be passed in with the crop.

crop="width:height:x_offset:y_offset"

So crop="16:9:0:0" crops from the top left, crop="16:9:-0:-0" crops from the bottom right. I'm only really interested in cropping from the top though.
updated by @ultrajam: 03/20/17 07:03:15PM
  45