Forum Activity for @michael

michael
@michael
04/13/18 03:16:37AM
7,819 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,819 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,819 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,819 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,819 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,819 posts

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


Using Jamroom

This is fixed in the coming releases.
michael
@michael
04/10/18 10:01:24PM
7,819 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

The only part of that code related to signup_questions is this bit:
        {if jrUser_is_logged_in() && $_conf.sedreadsiteskin4_profile_questions == 'on'}
            {jrNingImport_signup_questions user_id=$_user_id assign="ning_questions"}
            {if isset($ning_questions)}
                <div class="block">
                    <div class="block_content mt10">
                        {$ning_questions}
                    </div>
                </div>
            {/if}
        {/if}
michael
@michael
04/10/18 09:50:30PM
7,819 posts

changes in configuration are not taking effect


Installation and Configuration

your php.ini file does have 2048MB for all 3 of the necessary items:
post_max_size = 2048M
upload_max_filesize = 2048M
memory_limit = 2048M
and your SYSTEM CHECK tool shows that it has that limit working. (screenshot)

But its not working, there are no errors, and it fails almost instantly on files larger than 512M. It doesn't even try to upload them partially.

I've replicated your php.ini setup here on my local environment but can not reproduce the issue. For me it does work.

That suggest something about the server is the issue, but I do not know what sorry.
system_ok.jpg system_ok.jpg - 129KB
michael
@michael
04/09/18 05:28:43PM
7,819 posts

Followers sometimes get doubled listing in 'my followers' list


Using Jamroom

In your jrFollower item_index.tpl template (yours is custom) I've added
group_by="_profile_id"
so double items are grouped together.

It now reads:
 {jrCore_list module="jrFollower" search1="follow_profile_id = `$_profile_id`" order_by="_created desc" pagebreak=40 page=$_post.p template=$ftpl pager=true group_by="_profile_id" }

That should fix it.
  134