Forum Activity for @michael

michael
@michael
05/18/15 10:37:46PM
7,832 posts

Custom uploader


Jamroom Developers

the 'file' form_field type is registered by the jrCore module
/modules/jrCore/include.php
jrCore_register_module_feature('jrCore', 'form_field', 'jrCore', 'file');

If you created a module that was processed after jrCore was in the startup process you could also register that same form_field then your version would be used instead.

As to whether it would break all the modules or not, that would have to be discovered along the way. Can't say for sure what issues you would run into because I've never tried. As long as you returned all the things the modules are expecting to see so they can continue it should be possible.
michael
@michael
05/18/15 09:06:55PM
7,832 posts

Template Cache directory issues


Jamroom Developers

That's it.
Quote: ...Symbolic link not allowed...

Your server needs to allow symlinks. Jamroom uses symlinks with the update system.

A symbolic link is placed at:
/modules/(the module base url)
/modules/jrCore

and that links to the current version
/modules/jrCore-version-5.2.33

If you look in the modules directory you will see all the version
/modules/jrCore-version-5.2.33
/modules/jrCore-version-5.2.32
/modules/jrCore-version-5.2.31
/modules/jrCore-version-5.2.30
.....

and the symlink on /jrCore will link to the most recent version.

If you can't get symlinks turned on for your server then the marketplace update system is not going to work.

In order to update in that case, you will need to download the modules and upload them via FTP so that instead of a symlink on:
/modules/jrCore

the actual files are there instead. This would get round your servers limitation.
michael
@michael
05/18/15 07:54:32PM
7,832 posts

New Module Page Not Found


Jamroom Developers

If profile.php defaul() function returns FALSE then this flow occurrs in jrProfile/include.php:
 $_it = jrCore_db_get_item($mod, $_post['_1']);
            if (!isset($_it) || !is_array($_it)) {
                // Redirect to module index for this profile
                jrCore_location("{$_conf['jrCore_base_url']}/{$_rt['profile_url']}/{$_post['option']}");
            }
            // Make sure the item belongs to the profile
            if (isset($_it['_profile_id']) && $_rt['_profile_id'] != $_it['_profile_id']) {
                jrCore_page_not_found();
            }
            // Lastly - check to see if this item is pending approval.  If it is, only
            // admins and the profile owner(s) can view it
            $pfx = jrCore_db_get_prefix($mod);
            if (isset($_it["{$pfx}_pending"]) && $_it["{$pfx}_pending"] == '1') {
                if (!jrProfile_is_profile_owner($_it['_profile_id'])) {
                    jrCore_page_not_found();
                }
            }
            $dir = $mod;

            // Send our item_detail trigger
            $_ag = array(
                'module' => $mod
            );
            $_it = jrCore_trigger_event('jrProfile', 'item_detail_view', $_it, $_ag);

* the item is got
* make sure there it exists
* make sure the location the item is trying to be shown on is the owner of the profiles.

eg:
site.com/admin/blog/1/welcome-to-jamroom shouldnt show on
site.com/nate/blog/1/welcome-to-jamroom because the owner is /admin/

* see if it is still pending

and if it passes all that then it should show.
michael
@michael
05/18/15 06:43:18PM
7,832 posts

New Module Page Not Found


Jamroom Developers

hard to guess at, first guess is: does that user have permission to create the xtjobs? If a module is not set via a quota to be allowed that module on their profile, it would thow a 404 for the details page.

Sounds like the user is able to create the entry. Sounds like the user's created entry IS showing up in lists on their profile, but JUST the details page is in-accessable?

Check the URL is correct, make sure the
site.com/admin/blog/1/welcome-to-jamroom
site.com/(PROFILE)/(MODULE URL)/(ITEM ID)/(TITLE)

Is correct, could be that the link pointing to it is pointing to the wrong location.

--
after that I would start poking around in:
/module/(your module)/profile.php
profile_view_(your module)_default() function to see what variables are arriving if any.

--
(probably not, but..) make sure the sure the spelling of the filename for item_detail.tpl is correct:
/modules/(YOUR MODULE)/templates/item_detail.tpl

I've sometimes called it item_details.tpl by mistake.

--edit--
(long shot..) make sure you've run the integrity check so the datastore has been created.
updated by @michael: 05/18/15 06:47:48PM
michael
@michael
05/18/15 06:32:18PM
7,832 posts

Template Cache directory issues


Jamroom Developers

That error is saying the permissions of the root folder do not allow access to the top level of the site.

Its not an error I would expect to see on a functioning jamroom site.

Does your server have any error logs that you can look at? That would show what the error is complaining about with a bit more info.

I'd make sure that you have an .htaccess file in the root jamroom directory first, then go looking for the server logs.

What do you mean by "I had replaced the router.php"?
updated by @michael: 05/18/15 06:32:28PM
michael
@michael
05/18/15 06:25:16PM
7,832 posts

jrProfile_disable_sidebar


Using Jamroom

Yeah thats not right.

The first section reads "if the value contained in variable $profile_id equals 1 then show the sidebar".

The second reads "if the value contained in variable $profile_id equals 1 then set the value of the variable $profile_disable_sidebar to 1"

If thats what your after then go with that.

Its also very important to know that:
{jrProfile_disable_sidebar}
Is completely different to
{$profile_disable_sidebar}

One is a function, the other is a variable. The first does something, the second contains something.
michael
@michael
05/17/15 11:40:16PM
7,832 posts

Google adds


Using Jamroom

izhmel:
How do I make Google adds show in the bio section ?

I added (script) to the allowed HTML and when I save the blog all the code get deleted ..

Thanks in advance

Very difficult to help you without clear instructions as to what is going on. Why do you think saving a blog would cause the bio section to change?
michael
@michael
05/17/15 11:38:32PM
7,832 posts

one all issues


Using Jamroom

If you didn't change anything, then something probably changed at facebook. You'll need to do some research into what the issue is to find out the steps needed to fix it.
michael
@michael
05/16/15 01:46:37AM
7,832 posts

Template Cache directory issues


Jamroom Developers

I've just downloaded the latest version of jamroom from here:
https://www.jamroom.net/

to confirm that the files:
modules/jrCore/templates/page_tool_entry.tpl
modules/jrCore/templates/page_search.tpl

are in the package or not. They are.

So for whatever reason, your system is missing them. That error is most likely caused by the server being asked to copy those files from where they are into the cache system.

Check via FTP whether those files are there or not. If they are not there, download the core package and upload it via FTP to your server.
  543