Forum Activity for @michael

michael
@michael
12/22/15 09:46:30PM
7,832 posts

jrAction_item_index


Jamroom Developers

got the images, deleted them.

Not understanding the problem though.

The full contents of jrElastic profile_item_list.tpl is
{if $profile_disable_sidebar != 1}
<div class="col9 last">{else}
<div class="col12 last">{/if}
    {$profile_item_list_content}
</div>
Its only purpose is to wrap {$profile_item_list_content} with either a section the DOES ore DOES NOT contain the sidebar.

In your screenshots it does contain the sidebar.

What I'm understanding is your getting:
<div class="col8 last">
appearing somewhere in there that is not wanted.

is it coming in from with profile_item_list.tpl or outside or coiming in from {$profile_item_list_content}

Maybe change it to:
aaaaaaaaaaaaaaaaaaaaaaa
{if $profile_disable_sidebar != 1}
<div class="col9 last">{else}
<div class="col12 last">{/if}
bbbbbbbbbbbbbbbbbb
    {$profile_item_list_content}
cccccccccccccccccccccccc
</div>

and see where the class="col8 last" comes out relative to that:
* before aaaaaaaa then its coming from profile_header.tpl
* after bbbbbbbbbbb then its coming from $profile_item_list_contents

or turn on the "template name in source" option in Developer Tools module to get the template names output to source code.
michael
@michael
12/22/15 09:08:15PM
7,832 posts

Combined audio 'require image' code question


Design and Skin Customization

The problem is 'jrSoundcloud' there is no module by that name, so you get the error:
{jrSeamless_list} inactive module specified

The 'c' needs to be a capital to match the modules name.
<div class="block_content">
       {jrSeamless_list modules="jrAudio,jrSoundCloud" search="audio_image_size > 0,soundcloud_title LIKE %" pagebreak=10 page=$_post.p pager=true}
    </div>
michael
@michael
12/22/15 08:59:41PM
7,832 posts

Combined audio 'require image' code question


Design and Skin Customization

Educated guesses are a good first thing to try, but when they fail, then you need to go step by step and understand the problem.

So back to
{jrSeamless_list modules="jrAudio,jrSoundcloud"}
Q: does it work? yes = continue, no = try simpler.

I'll your above examples here and see what I get.
michael
@michael
12/22/15 08:56:14PM
7,832 posts

Index Not Found


Installation and Configuration

Last change to router was a while back:
Quote:
router.php
2015-11-21
Fixes for XSS vulnerability in jrCore_page_table_pager()

router doesn't get changed much as its very integral. and even then the change was just a variable name and one in a series of checks that is pretty trivial.

Seams more likely that the data coming in is evaluating differently, and that could be the result of a module as they can tap into the flow and adjust variables all through the process.
michael
@michael
12/22/15 08:48:06PM
7,832 posts

jrAction_item_index


Jamroom Developers

ok, I'm missing the point by the looks of things.

To try to get the point, I've copied /modules/jrAction/templates/item_index.tpl to /skins/jrElastic/jrAction_item_index.tpl

Nothing unusual happens. I've added HERE IS THE SOMETHING to that template to confirm its working, it is.

My profile item list code looks like this (unchanged):
{if $profile_disable_sidebar != 1}
<div class="col9 last">{else}
<div class="col12 last">{/if}
    {$profile_item_list_content}
</div>

That is in that structure in case one of the modules wants to disable the sidebar by using the {jrProfile_disable_sidebar} function.

any of that useful? what am i missing to get me to understand what needs to happen/stop happening?
michael
@michael
12/22/15 07:57:38PM
7,832 posts

jrAction_item_index


Jamroom Developers

"profile_item_list.tpl is loading jrAction_item_index.tpl"... but the problem is the cache is not clearing out? Could it be there is a smarty error somewhere in jrAction_item_index.tpl thats causing the cached version not to be able to update.

Could try deleting via FTP all the stuff in:
/data/cache/*

So that we know old versions of the cache cant be used. That might drag a new error to the surface.
updated by @michael: 12/22/15 07:58:03PM
michael
@michael
12/22/15 07:32:10PM
7,832 posts

Combined audio 'require image' code question


Design and Skin Customization

What helps us out a lot is explaining the issue at each phase, then we can help with code.

What was the code you tried if it was just what paul pasted:
{jrSeamless_list modules="jrAudio,jrSoundcloud" search="audio_image_size > 0,soundcloud_title LIKE %" . . . }
that will fail because of those ....'s

DID THIS:
* ......
EXPECTED THIS:
* .....
GOT THIS:
* ......

Like your writing a test for kids in an exam that they have to figure out the answer to :)
michael
@michael
12/22/15 07:27:00PM
7,832 posts

Index Not Found


Installation and Configuration

What we need to figure out is why the router.php is not sending you to the index.tpl template for the url /

Is it a system I can log in to? Send me the login details if it is and I'll help with this issue.

What I would do would be to put stuff into router.php to find out where its exiting to.

So like we did above, put
echo 'got to SYSTEM INDEX part'
exit;

We need to figure out what path is being taken for /index vs what path is being taken for / and understand why a different path is being taken for each. Once we know that it will be obvious what needs fixing.
michael
@michael
12/22/15 06:26:34PM
7,832 posts

Index Not Found


Installation and Configuration

ok, so they are not the same page.

Try putting a debug in the 404.tpl page and see if there are any clues in the $_post variable.

Or if you have a debugger, walk through router.php to try to figure out what is not being found.

Should be firing around this section of router.php
//------------------------------------
// System Index
//------------------------------------
elseif (!isset($_post['module']{0}) && !isset($_post['option']{0}) && !isset($_post['module_url'])) {
// THE INDEX SHOULD SHOW IF ALL THOSE OPTIONS ARE TRUE
othewise, if it thinks there is a module there then

            if (function_exists($func)) {
                // default view function
                $out = jrCore_run_module_view_function($func);
            }
            elseif (is_file(APP_DIR . "/skins/{$_conf['jrCore_active_skin']}/{$_post['module']}_index.tpl")) {
                // default module index (note skin override in parse_template)
                $out = jrCore_parse_template('index.tpl', $_post, $_post['module']);
            }
            elseif (is_file(APP_DIR . "/modules/{$_post['module']}/templates/index.tpl")) {
                // default module index (note skin override in parse_template)
                $out = jrCore_parse_template('index.tpl', $_post, $_post['module']);
            }
            else {
                // page/module/option not found
                jrCore_page_not_found();
            }
michael
@michael
12/22/15 05:44:32PM
7,832 posts

Index Not Found


Installation and Configuration

Is just a matter of narrowing down down down until we hit the actual issue.

If the header and footer are there on index then my above test is useless, its routing. :)

Actually that is really really weird
site.com/
site.com/index

should be displaying the same thing. or in my case /index redirecting to /.

The header and footer are being added in from index.tpl so the question becomes "Why is the beginning of the file and the end of the file showing, but not the middle.....?"

index.tpl from elastic looks like this:
{jrCore_include template="header.tpl"}
// stuff....
{jrCore_include template="footer.tpl"}

Try adding some things to index.tpl "HERE IS THIS THING" and see if that displays.
  448