Forum Activity for @ultrajam

SteveX
@ultrajam
09/27/16 09:25:29AM
2,589 posts

partially load of site


Installation and Configuration

Ah, you need a working webserver either on the internet or on localhost.

Look at the html source of your web page. Then click the link to the css stylesheets and see if they load.
SteveX
@ultrajam
09/27/16 08:21:09AM
2,589 posts

partially load of site


Installation and Configuration

Looks like you are not loading any style sheets, are they linked to in the source code?
SteveX
@ultrajam
09/27/16 06:21:00AM
2,589 posts

comments order newest first?


Ning To Jamroom

Copy the comment_form.tpl from jrComment to your skin and rename it mycustomcommentform.tpl

Then in your profile_index.tpl template change your jrComment_form function to this:
{jrComment_form module="jrProfile" profile_id=$_profile_id item_id=$_item_id template="mycustomcommentform.tpl"}

Then in mycustomcommentform.tpl find the two jrCore_list calls and change this
order_by="_item_id `$_conf.jrComment_direction`"
to
order_by="_item_id desc"
SteveX
@ultrajam
09/26/16 08:24:11AM
2,589 posts

Tinymce upimg Images and validation


Using Jamroom

Images uploaded using the editor need some way of specifying Alt text for each image, or at least using the image name as Alt text.

All images added using tinymce give these using the w3 validator:
Quote: error An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.

warning The “border” attribute is obsolete. Consider specifying “img { border: 0; }” in CSS instead.

updated by @ultrajam: 12/26/16 10:33:31AM
SteveX
@ultrajam
09/26/16 07:44:26AM
2,589 posts

jrImage with original size, width="original" appears in html


Using Jamroom

It's actually the smarty function output I'm seeing, and the image data isnt available there

Looks like I can deal with this in the template by passing in "width=false height=false" for "original" images:
{if $micro_image_display_size == "original"}
	<a href="{$jamroom_url}/{$murl}/image/micro_image/{$_item_id}/original" data-lightbox="images" title="{$micro_title|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="ujMicroSite" type="micro_image" item_id=$_item_id size="original" class=$micro_image_class crop=$micro_image_crop alt=$micro_title width=false height=false}</a>{else}
	<a href="{$jamroom_url}/{$murl}/image/micro_image/{$_item_id}/1280" data-lightbox="images" title="{$micro_title|jrCore_entity_string}">{jrCore_module_function function="jrImage_display" module="ujMicroSite" type="micro_image" item_id=$_item_id size=$micro_image_display_size|default:"xxlarge" class=$micro_image_class crop=$micro_image_crop alt=$micro_title}</a>{/if}
SteveX
@ultrajam
09/26/16 07:02:30AM
2,589 posts

jrImage with original size, width="original" appears in html


Using Jamroom

From jrImage/include.php:
    // See what size we are getting
    if (!isset($_post['_3'])) {
        $_post['_3'] = 'icon';
    }
    $_sz = jrImage_get_allowed_image_widths();
    if (!isset($_sz["{$_post['_3']}"])) {
        if (isset($_post['debug'])) {
            jrCore_notice('CRI', "invalid image size - must be one of: " . implode(',', array_keys($_sz)));
        }
        jrImage_display_default_image($_post, $_conf);
    }
    $_post['width'] = $_sz["{$_post['_3']}"];

For all other image sizes $_sz["{$_post['_3']}"] will be the number, but for original images it will be "original" as that is handled differently in jrImage_get_allowed_image_widths()
SteveX
@ultrajam
09/26/16 06:52:28AM
2,589 posts

jrImage with original size, width="original" appears in html


Using Jamroom

Hi michael.

No, they don't seem to, if I choose xxxlarge I get width="800". It looks like that is coming from jrImage_get_allowed_image_widths()
SteveX
@ultrajam
09/26/16 04:18:02AM
2,589 posts

jrImage with original size, width="original" appears in html


Using Jamroom

Now that we can use "original" as an image size, that can end up as the width of an image, which does not validate:

<img src="http://academicskills.uwe.ac.uk/workbooks/image/micro_image/17957/original/crop=none" width="original" alt="Temporary folder" class="ujdefault iloutline img-responsive center-block">

Quote: error - error Bad value “original” for attribute “width” on element “img”: Expected a digit but saw “o” instead.

updated by @ultrajam: 12/26/16 12:08:05AM
  62