investigating Forum appears on all quotas right after installing it

SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I installed jrForum on a new site, and enabled it under the info tab.

Then visited a profile and the Forum button showed in the menu, checked my other quota and the forum showed there as well. But I hadn't allowed the forum for any quotas.

So I checked the quota tab and "can post to forum" was checked for each quota, "Allow Profile Forum" was unchecked for all.

Enabled the forum for one quota and the menu button disappeared on the other quota.

So upon install, the forum appears on all profiles until you allow it for a quota, after which everything works as expected.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 03/16/15 09:01:26PM
brian
@brian
10 years ago
10,149 posts
Thanks Steve - I will check this out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I've just noticed this again on another module, a custom one.

jrCore_register_module_feature('jrCore', 'quota_support', 'ujLibDb', 'off');

I enabled the module under its info tab, but didn't enable for any quotas. The profile tabs button appears on all profiles - it doesn't lead anywhere as the module hasn't been enabled for any quotas.

Skin is completely unmodified jrElastic


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/09/15 08:08:28AM
brian
@brian
10 years ago
10,149 posts
Are there other Quota settings in that module or just the "quota_support" option?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Only quota support, quota.php looks like this:

<?php



// make sure we are not being called directly
defined('APP_DIR') or exit();

/**
 * quota_config
 */
function ujLibDb_quota_config(){
    return true;
}
?>



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/09/15 08:23:13AM
brian
@brian
10 years ago
10,149 posts
You can delete quota.php if that is all that is in it - it's not needed. The "quota_support" registration in the module init is good enough. You only need the file if you have actual fields you want to add to the Quota config.

I will check this out though - to be honest I've never seen it do that before.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I've never seen it before either, and I have just tried the same module on local site - the button does not show.

The server I have now seen this on twice uses the cache (whereas on localhost cache time is 0 and developer tools are in use). Both modules (Forum and custom) were installed via the marketplace.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/09/15 09:15:09AM
brian
@brian
10 years ago
10,149 posts
SteveX:
I've never seen it before either, and I have just tried the same module on local site - the button does not show.

The server I have now seen this on twice uses the cache (whereas on localhost cache time is 0 and developer tools are in use). Both modules (Forum and custom) were installed via the marketplace.

Was there a previous install of either module in the system? (i.e. you deleted the module, then re-installed it?)

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
No, both were new module installs on a new jamroom.

The jamroom is on a work network which might cause some problems, currently you can only see the site when on the network (only just discovered that, needs to be fixed), but has been set it up to allow it to connect to the jamroom.net marketplace.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
10 years ago
10,149 posts
Steve- just an update that I've tested this several times now on different installs (both local and on a brand new Jamroom Hosting install) and cannot replicate this, so I'm not quite sure what is happening.

Let me know if you see it on any other module except the forums.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 02/12/15 11:28:28AM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Ok, will do, thanks Brian.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags