Forum Activity for @michael

michael
@michael
04/14/18 06:50:12PM
7,823 posts

post to "a jr site"


Suggestions

here are the very well documented docs

Docs: "Ultrajam: LifeStream"
https://www.jamroom.net/ultrajam/documentation/modules/1692/lifestreams
michael
@michael
04/14/18 06:45:06PM
7,823 posts

Site Builder On Profile Pages?


Using Jamroom

Was wondering when this question would come up. It was one of the points bough up when considering releasing Site Builder. "But as soon as we release it, we'll get comments about it not working on profiles."

Its been a lot longer than soon.

The answer is no. Because site builder takes over the whole page as a replacement for the .tpl that controls the page. There is not one .tpl file that controls the page for any page on the profile, all the pages come from modules that are there because of the quota system. So its too complex to also add site builder on top of that complexity and still be able to support it.

Site Builder is supposed to be a way to allow the construction of the top section of the site without the need for template adjustment.

Template adjustment still has more flexibility than Site Builder but with the cost of being slightly more involved to setup and requiring the need to deal with code.
michael
@michael
04/13/18 10:15:19PM
7,823 posts

Skin Customization for Follow Me


Design and Skin Customization

Definitely will not be any updates coming out for any jamroom version pre JR6.
michael
@michael
04/13/18 09:45:00PM
7,823 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

The wrapper function is
 {if jrUser_is_logged_in() && $_conf.sedreadsiteskin4_profile_questions == 'on'}
so that would limit it to show only to users who are logged in and have a config setting set to on.

Looking inside the smarty_function_jrNingImport_signup_questions() function it calls the 'signup_questions.tpl' template.

That looks like this:
{if isset($_items)}
    {foreach from=$_items item="item"}
        {if
        $item.group  == 'visitor' ||
        ($item.group == 'user' && jrUser_is_logged_in()) ||
        ($item.group == 'power' && isset($_user.quota_jrUser_power_user) && $_user.quota_jrUser_power_user == 'on') ||
        ($item.group == 'admin' && jrUser_is_admin()) ||
        ($item.group == 'master' && jrUser_is_master()) ||
        (jrCore_checktype($item.group, 'number_nz') && $item.group == $_user.profile_quota_id)
        }
            <h4>{$item.label}:</h4> {$item.answer}<br>
        {/if}
    {/foreach}
{/if}

There are a lot of IF's that need to be met in order for things to display.
michael
@michael
04/13/18 03:16:37AM
7,823 posts

Overriding a View Function


Jamroom Developers

There are many ways to do things, what I normally do when trying to figure something out is use a server with xdebug on it and put a breakpoint where I want to be, then look back up to see what its run over.

If there's nothing in the chart of override points that works for you, how about a listener early on in the flow of things that checks if the $_post data matches a specific structure that is desired to be redirected and if it fits the case use jrCore_location() to redirect to where you want to go. It would cause a page refresh, but would probably not be noticed by the user who is waiting for a page refresh at that point anyhow.
michael
@michael
04/12/18 10:02:56PM
7,823 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

Looks like you're going to need to copy the smarty function to get just what you need if you need to refine the results.

Docs: "Defining your own smarty function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function
michael
@michael
04/12/18 09:48:15PM
7,823 posts

Overriding a View Function


Jamroom Developers

I made this diagram of override points a long time ago, there are probably more now, but its a map of router.php

https://upload.wikimedia.org/wikipedia/commons/6/60/A_diagram_of_the_routing_system_used_in_Jamroom_5.png

There are lots of override points.
michael
@michael
04/12/18 01:56:44AM
7,823 posts

RE: New Payments/Products etc Modules


Using Jamroom

Payment is made before work starts when the order is placed. Suggest not doing the work then hoping for payment.
michael
@michael
04/12/18 01:48:39AM
7,823 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

Add a {debug} in after that block. look at the page, wait for the popup window to open then ctrl+f (find) and search for 'signup_question'

that will tell you the variable name and if there is anything set at all.

Obviously nothing will come back if the jrNingImport module is not installed and active, because the function belongs to that module.
michael
@michael
04/11/18 11:39:11AM
7,823 posts

can't recall how to read Admin Notes in Banned Items list


Using Jamroom

This is fixed in the coming releases.
  134