Forum Activity for @ultrajam

SteveX
@ultrajam
05/29/14 07:54:14AM
2,589 posts

template_already_shown and page_begin.tpl


Jamroom Developers

I'm overriding jrCore page_begin.tpl and page_end.tpl in the skin dir.

page_begin is parsed twice on an admin acp page, and once on an item create/update form.

So I wanted to do this:
{if $template_already_shown === 0}
    <div class="page-wrapper">{else}
    <div class="just-another-div">{/if}
(edit: the html is being stripped out by this forum on create post save, but it saves ok updating the post.)


But on the acp page, the first occurrence of page_begin (at the beginning of the page) $template_already_shown = 1
and on the second occurrence $template_already_shown = 0

Shouldn't $template_already_shown have a value of 0 at the beginning of the page and 1 later in the page?

Thanks
updated by @ultrajam: 06/29/14 06:10:37PM
SteveX
@ultrajam
05/28/14 04:34:48PM
2,589 posts

Newsletter templates.


Using Jamroom

I'm not sure what the Jamroom jrMailer will do but I'd guess that it will send whatever you tell it to.

Charts via email would be complicated (lots of up and down arrows) and might not look right in some email clients.

Email works best with pictures, "buttons" and text imo. See, read, click button.

Carefully prepared mailouts rather than automated. It's best not to automate everything. Automated email has a smell.
SteveX
@ultrajam
05/28/14 03:48:48PM
2,589 posts

Newsletter templates.


Using Jamroom

My first thought was that you should automate a screenshot of the charts and send that with some blurb to encourage the click.
SteveX
@ultrajam
05/28/14 01:30:38PM
2,589 posts

World Cup (soccer)


Off Topic

I also do not bet on sport much, and am no longer a fan of football. But I did love this article about Hawking's predictions for the world cup (it's so interesting in so many ways):
http://www.theguardian.com/science/2014/may/28/stephen-hawking-formulae-england-world-cup-success

Marvellous. And for me, probably the best article to be written about the world cup, ever.

Please post suggestions for better articles here, 'cos I'd like to read them.


updated by @ultrajam: 06/29/14 10:37:22AM
SteveX
@ultrajam
05/28/14 11:41:25AM
2,589 posts

Songs still plays full length using the mp3 importer


Using Jamroom

When you use your browser tools it don't work,
when you upload images to this forum it don't work,
when you try to post code it doesnt really work either because you upload a screenshot of the code,
when you use the foolproof installer it don't work,
when you use the foolproof acp skin styler it don't work,
and foxycart really doesn't work for you.

Could be a pattern emerging, but a little early to tell.
SteveX
@ultrajam
05/20/14 01:07:53PM
2,589 posts

Mass payment with daily maintence


Jamroom Developers

You need to register a daily maiantenance listener in the module's init
jrCore_register_event_listener('jrCore', 'daily_maintenance', 'myModule_daily_maintenance_listener');
And a function to run every day:
function myModule_daily_maintenance_listener($_data, $_user, $_conf, $_args, $event)
{ if (jrCore_checktype($_conf['myModule_daily_maintenance'], 'number_nz')) { // Do the stuff } return $_data; }
SteveX
@ultrajam
05/18/14 10:47:00AM
2,589 posts

Invalid item array received after deleting a single uploaded file


Jamroom Developers

It looks like you need to use a different url in jrCore_form_result as you are sending the browser to the detail page of the item you just deleted.
SteveX
@ultrajam
05/18/14 05:27:41AM
2,589 posts

deleting module versions


Using Jamroom

There are two new tool buttons under jrDeveloper tools, Rebase Skin and Rebase Modules.

Probably safest to run those first. It will also delete the directories for you, but I haven't tried that part yet.
  156