Forum Activity for @ultrajam

SteveX
@ultrajam
02/10/14 10:44:49AM
2,589 posts

line breaks in module item_list templates


Jamroom Developers

Here are some, the one from jrProfile was downloaded earlier today:
                        <h2><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}">{$item.blog_title}</a></h2>
                        <br>

                        <h2><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item.doc_category_url}/{$item._item_id}/{$item.doc_title_url}">{$item.doc_title}</a></h2><br>

                        <h1><a href="{$jamroom_url}/{$item.profile_url}">{$item.profile_name}</a></h1>
                        {if !empty($item.profile_bio)}
                        <br><span class="normal">{$item.profile_bio|jrCore_format_string:$item.profile_quota_id|truncate:250:"..."}</span>

                        <h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.audio_title_url}">{$item.audio_title}</a></h3><br>

                        <h3><a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.youtube_title_url}">{$item.youtube_title}</a></h3><br>
I've only checked those 5, but its in all of them.
SteveX
@ultrajam
02/10/14 05:29:56AM
2,589 posts

line breaks in module item_list templates


Jamroom Developers

Why is there a br after the heading in all of the module item_list templates?

It isn't a problem (override every template used is my new way of working, it saves so much time) but I'm curious as to why this isn't being done with css?
updated by @ultrajam: 03/19/14 04:07:16PM
SteveX
@ultrajam
02/10/14 05:21:08AM
2,589 posts

Marketplace updates- Sometimes have to install twice


Installation and Configuration

Tried updating user, developer and profiles modules today from a place with a really good internet connection.

The behaviour was different, it just hung twice on profiles (after modal reports it has installed user and developer). Refresh the page and none of the modules are installed.

I then installed developer using the individual update button, tried the update all again and it worked.
SteveX
@ultrajam
02/10/14 02:09:55AM
2,589 posts

Music Charts not showing properly and counter not counting accordinaly


Design and Skin Customization

There is some smarty code in the comments here:
https://www.jamroom.net/the-jamroom-network/documentation/modules/274/jrcharts

If you put that in your charts row for a few days you will be able to see how the charts are working with that data to produce the chart.

If your site is already live wrap the code in a check so that the info only shows for the master admin:
{if jrUser_is_master()}
...code here...
{/if}
SteveX
@ultrajam
02/10/14 02:01:55AM
2,589 posts

Empty module features headings showing


Using Jamroom

Ah, the buttons aren't appearing because of my ad blocker.

Shouldn't comments and tags have an {if} around the header, or default text if there are none?
SteveX
@ultrajam
02/09/14 12:37:42PM
2,589 posts

Empty module features headings showing


Using Jamroom

Also, when not logged in the share buttons show but comments and tags headings are showing.

They should maybe be hidden, or a notice saying you need ot be logged in to read comments.
not-logged-in.png not-logged-in.png - 40KB

updated by @ultrajam: 02/09/14 12:38:05PM
SteveX
@ultrajam
02/09/14 12:36:20PM
2,589 posts

Empty module features headings showing


Using Jamroom

Looking at the docs page here:
https://www.jamroom.net/the-jamroom-network/documentation/development/1599/the-image-system

There is an empty Share This section showing. I probably don't have any share networks enabled.
share-this-title.png share-this-title.png - 56KB

updated by @ultrajam: 03/31/14 02:16:13AM
SteveX
@ultrajam
02/09/14 12:18:12PM
2,589 posts

add admin image to pj5 site news


Design and Skin Customization

For admin with user id=1:
{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=1 size="medium" crop="auto" alt="admin" class="img_shadow"}

Change '"module="jrUser" type="user_image"' to 'module="jrProfile" type="profile_image"' if you wnat the admins profile image instead.

The image function parameters are at the bottom of this docs page:
https://www.jamroom.net/the-jamroom-network/documentation/development/1599/the-image-system
which seems wrong, should really be at the top.
updated by @ultrajam: 02/09/14 12:18:52PM
SteveX
@ultrajam
02/08/14 11:11:06AM
2,589 posts

Pull in form fields into created tpl files


Design and Skin Customization

If you have to get the profile info directly into the template use jrCore_list or jrCore_db_get_item:
{$your_profile_id = 7}
{$_profiledata = jrCore_db_get_item("jrProfile",$your_profile_id)}
{$_profiledata.profile_bio}

If you need only the bio, you can use jrCore_db_get_item_key($module, $id, $key)to get only that:
{$your_profile_id = 7}
{$bio = jrCore_db_get_item_key("jrProfile",$your_profile_id,"profile_bio")}
{$bio}
SteveX
@ultrajam
02/08/14 10:56:44AM
2,589 posts

Marketplace updates- Sometimes have to install twice


Installation and Configuration

This happened to me yesterday - I assumed it was an isp thing and clicked all the buttons to update the modules one at a time.
  195