Modules Broken in Admin Interface

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pgoneill

Modules Broken in Admin Interface

Post by pgoneill »

We're using CMSMS for our corporate intranet (sorry, I won't be able to provide links or any information - it's all very "hush hush" :) ).

Internally, we get to it via "https://intranet.ourcompany.com" and externally, our sister and parent companies get to it through "https://intranet.parentcompany.com".  People outside were unable to get anywhere beyond the homepage, but this was solved by changing the config file to say:

Code: Select all

$config['root_url'] = '.';
$config['uploads_url'] = '.uploads';
$config['image_uploads_url'] = '.uploads/images';
This works fine until we get into the admin side, which works fine until you need a module within the admin interface.  For example, FCKEditor refuses to be pulled in and the news entries try to look in "/admin/admin/moduleinterface.php?.....".

We're going to try to get everyone (internally and externally) to resolve through https://intranet.parentcompany.com so that I could change the config file to:

Code: Select all

$config['root_url'] = 'https://intranet.parentcompany.com';
$config['uploads_url'] = 'https://intranet.parentcompany.com/uploads';
$config['image_uploads_url'] = 'https://intranet.parentcompany.com/uploads/images';
...but in the meantime if anyone can offer another solution...I'm all ears.  Thanks in advance!

Also, I tried a bunch of things with $config['admin_dir'] = 'admin'; - I changed it to '.', './', '../', and others to no avail.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Modules Broken in Admin Interface

Post by Ted »

Actually, you can get away with taking the domain off entirely...

Code: Select all

$config['root_url'] = '';
$config['uploads_url'] = 'uploads';
$config['image_uploads_url'] = 'uploads/images';
I've done this in the past with testing situations and it's worked fine for me.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Modules Broken in Admin Interface

Post by Ted »

Sorry, that would break image manager...  You'd want:

Code: Select all

$config['root_url'] = '';
$config['uploads_url'] = '/uploads';
$config['image_uploads_url'] = '/uploads/images';
pgoneill

Re: Modules Broken in Admin Interface

Post by pgoneill »

I've got it working now.  Thanks for the help.
Locked

Return to “CMSMS Core”