Forum Activity for @ultrajam

SteveX
@ultrajam
11/29/16 02:46:24AM
2,584 posts

Managing power users


Using Jamroom

jrProfile_get_owner_info will return an array of the profile owners.

You can use it in a template like this:

{$_owners = jrProfile_get_owner_info($_profile_id)}
{foreach $_owners as $owner}
    {$owner.user_name}<br>
{/foreach}
SteveX
@ultrajam
11/24/16 09:41:20AM
2,584 posts

Beta 8 errors with custom module


Jamroom Developers

Doh! Of course!

That brings my items back :)

Thanks Brian!
SteveX
@ultrajam
11/24/16 09:36:06AM
2,584 posts

Beta 8 errors with custom module


Jamroom Developers

On my work test site, after upgrading to Beta 8 from 5.3.6 my microsites disappear on the profile's microsites index, and also when visiting a microsite page. (ujMicroSite is a sectional module similar to jrDocs).

Any clues as to why these errors are occurring would be much appreciated.

When viewing the profile list of microsites:
Quote: Data
Array
(
[error] => Query Error: Unknown column 'a._profile_id' in 'where clause'
[_post] => Array
(
[_uri] => /steve/microsite
[module_url] => steve
[module] =>
[option] => microsite
[_profile_id] => 1
)

[query] => /* [Steve] :/steve/microsite */ SELECT COUNT(a.`_item_id`) AS tc FROM jr_ujmicrosite_item_key a
JOIN jr_ujmicrosite_item_key b ON (b.`_item_id` = a.`_item_id` AND b.`key` = 'micro_section_type' AND b.`value` = 'header')
WHERE ((a.`key` = 'micro_category') OR (a.`key` = '_created' AND a.`_item_id` NOT IN(SELECT `_item_id` FROM jr_ujmicrosite_item_key WHERE `key` = 'micro_category')))
AND a.`_profile_id` IN(1)
GROUP BY a.`value`
)



When viewing a page:
Quote:
Array
(
[error] => Query Error: Unknown column 'a._profile_id' in 'where clause'
[_post] => Array
(
[_uri] => /steve/microsite/workbook-features/2/question-types
[module_url] => steve
[module] => ujMicroSite
[option] => workbook-features
[_1] => workbook-features
[_2] => 2
[_3] => question-types
[_profile_id] => 1
)

[query] => /* [Steve] :/steve/microsite/workbook-features/2/question-types */ SELECT a.`_item_id` AS _item_id FROM jr_ujmicrosite_item_key a
JOIN jr_ujmicrosite_item_key b ON (b.`_item_id` = a.`_item_id` AND b.`key` = 'micro_group_id' AND b.`value` = '2')
WHERE ((a.`key` = 'micro_section_order') OR (a.`key` = '_created' AND a.`_item_id` NOT IN(SELECT `_item_id` FROM jr_ujmicrosite_item_key WHERE `key` = 'micro_section_order')))
AND a.`_profile_id` IN(1)
ORDER BY FIELD(a.`key`, '_created', 'micro_section_order') ASC, (a.`value` + 0) ASC LIMIT 500
)


updated by @ultrajam: 02/24/17 11:56:19AM
SteveX
@ultrajam
11/23/16 08:48:22AM
2,584 posts

Truncated description causes missing div tag


Jamroom Developers

discuss_description is probably an editor field which would save html to the database.

You can get rid of the html using the jrCore_strip_html smarty modifier before you truncate:
{$item.discuss_description|jrCore_strip_html|truncate:120}
SteveX
@ultrajam
11/23/16 04:30:53AM
2,584 posts

Just Purchased Google Maps Module


GoogleMaps

When you create the key, set the Key Restriction to: HTTP referrers (web sites)
Then add your domain to Accept requests from...
*.yoursite.com/*
SteveX
@ultrajam
11/23/16 04:19:07AM
2,584 posts

Just Purchased Google Maps Module


GoogleMaps

Hi, and thanks for buying GoogleMaps and thanks for letting me know about this!

You are right, the Google control panel has totally changed into something to manage their cloud services.

These are the new steps as far as I can see:

1. Log into Google.
2. Click the hamburger menu top left and select API Manager.
3. Go to the Library page.
4. Enable the Google Maps JavaScript APIand the Google Maps Embed API
5. On the Credentials page generate a browser API key which you will enter in the Global Config General settings of your Jamroom module.

There is also domain verification which I think is new, but I haven't done that and my maps are still working fine. Hopefully the above steps will do the job.
SteveX
@ultrajam
11/22/16 11:35:06AM
2,584 posts

Playlist cacheing


Jamroom Developers

My pleasure!

Thank you Brian :)
SteveX
@ultrajam
11/22/16 03:39:50AM
2,584 posts

Playlist cacheing


Jamroom Developers

When an item on another's profile is added to a newly created playlist it doesn't appear until the cache is emptied.

When adding an item on my own profile everything works as it should.

I needed to fix this on my system, so I edited the module by passing the user home profile id and the module parameters into the jrProfile_reset_cache functions in both view_jrPlaylist_inject_save and view_jrPlaylist_add_save

To reproduce on a system with caching on:
Go to the video list page on another's profile.
Add a video to a new playlist.
Try adding another video to that playlist.
updated by @ultrajam: 02/21/17 03:17:42AM
SteveX
@ultrajam
11/21/16 06:40:58AM
2,584 posts

How to change height of profile header?


Design and Skin Customization

Change the crop of the image itself.

It is currently crop=8:3, so to achieve half the height change that to crop=16:3

You can change that at the top of jrFollowMe/profile_header.tpl
SteveX
@ultrajam
11/21/16 02:40:24AM
2,584 posts

Conversion Job Browser shows converted items from another site


Jamroom Hosting

Thanks Brian.

I don't need a separate one, I just wasn't sure if it should be that way.
  56