Forum Activity for @michael

michael
@michael
06/02/15 09:13:15PM
7,832 posts

module template generate a data csv file


Design and Skin Customization

bad job of explaining, sorry.

Try again: The index template has this line:
{jrCore_include template="header.tpl"}

That line includes the header. If you don't want the header, don't include that line. Same for the footer.
michael
@michael
06/02/15 02:24:18AM
7,832 posts

Profile Layouts


Design and Skin Customization

The HTML issue I'm aware of, need to get that sorted. Same for creating tickets. on the TODO list.

The issue is you are getting back some response, so checking for the string length isn't going to work.

Good news is we know what might come back so lets check for that:
{$chk = $show_featured|strpos:'{jrCore_media_p'}
{if $chk !== 0}
{$show_featured}
{else}
<div class="block">
    {jrCore_include template="profile_index_image.tpl"}
</div>
{/if}

Thats using the php strpos function:
http://php.net/strpos

That returns 0 because that IS the first part of the string.
michael
@michael
06/02/15 12:36:28AM
7,832 posts

Timeline - One All


Suggestions

not sure I understand the question sorry.
michael
@michael
06/02/15 12:36:16AM
7,832 posts

Profile Layouts


Design and Skin Customization

put a debug below the whole thing, look in it for {$show_featured}. See whats in it. Somethings in it, just need to know what. Might be that its an empty div.
michael
@michael
06/02/15 12:32:47AM
7,832 posts

Audio module request


Suggestions

in that case, its the "targets parameter" section on the linked jrprofile-menu doc that your after.
michael
@michael
06/01/15 11:25:20PM
7,832 posts

module template generate a data csv file


Design and Skin Customization

Take index.tpl from your skin, it will look like this
{jrCore_include template="header.tpl"}

// stuff

{jrCore_include template="footer.tpl"}

Its the header and footer includes that cause the header and footer to be included.

Save it as:
report.tpl
/skins/YOUR SKIN/report.tpl

"Property","Month","Category","Task"<br>

{jrCore_list module="agTask" profile_id=$_profile_id order_by="_created asc" limit="10000" search1="task_complete = on" search2="task_invoiced = March" search3="task_entered = on" template="csv_list.tpl"}

That will appear at:
your-site.com/report
michael
@michael
06/01/15 11:11:41PM
7,832 posts

Cant Upload Images To Gallery


Using Jamroom

Strumelia:
It'd be great if when we have 'group by gallery' checked, it gave the quota a CHOICE to create a gallery for a new photo(s) or not...but didn't FORCE them to create or use a 'gallery' every time they just want to add a photo to their profile photo section. or...am I not 'getting' something or some setting maybe?

one way I could think that might be able to be done would be to have a 'default' gallery that is the choice for "I dont want to thing about a gallery right now", then display that gallery as the main gallery.

Not sure what the desired outcome is though for that setup, where you have and also dont-have galleries.
michael
@michael
06/01/15 11:07:26PM
7,832 posts

one all issues


Using Jamroom

try: dubmusic.api.oneall.com
michael
@michael
06/01/15 11:05:29PM
7,832 posts

Audio module request


Suggestions

Profile tweaks should allow the user to decide which tab of theirs is the default, your talking about setting a default for everyone right?

Might be something for that already in:

"{jrProfile_menu}"
https://www.jamroom.net/the-jamroom-network/documentation/development/1997/jrprofile-menu

--
couldn't see anything directly in that function, so tried this out in:
/skins/YOUR SKIN/profile_index.tpl
{* default index for profile *}

<div class="col9 last">
    {jrCore_include module="jrAction" template="item_index.tpl"}
</div>

Thats what the default skin looks like, so i changed it to this:
{* default index for profile *}

<div class="col9 last">
    {jrCore_include module="jrAction" template="item_index.tpl"}

    this is something
    {jrCore_location('http://jr500.iixxii.cc/two/flickr')}
</div>

hoping that instead of displaying the default index page, the redirect would kick-in. It did.

So you could put a check for the quota id coming in, then redirect by depending on the quota id like that.

Would that work in your situation?
michael
@michael
06/01/15 10:53:03PM
7,832 posts

Profile Layouts


Design and Skin Customization

gary.moncrieff:...Always fall into the same trap when to use " or '.....

The general rule I go by is which is the easiest to read.
$a = "hello there cat, you aren't \"very\" playful today";
$a = 'hello there cat, you aren\'t "very" playful today';

$a = 'today is  '. $the_date.' and some other text';
$a = "today is {$the_date} and some other text";

The difference is " will look for variables inside the string, so if there aren't any then you don't need to use it, but if there are words with a ' inside them then it can trip up on those so sometimes its better......... either works.
  533