Newsscript - where to set custom 'admin' name so it will work?

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
gnolen

Newsscript - where to set custom 'admin' name so it will work?

Post by gnolen »

Hi there..

I am having problems with the newsscript again! And I am soooo close to deliver my first CMSMS site to a client! Feels great!

But I just can't edit or delete newsscript entries! I have reinstalled in now a couple of times without help(also checked that the news tables gets totally reinstalled when I am doing that.. :( Also the user rights to edit news are set(also tried other users)

Everything works great, I can enter new item and they gets listed and so on...But when I press edit or delete I just get a white screen..

I know now that it calls the wrong dir! I do not have my admin in the 'admin' folder but my own, which I have set in the config file..But the newsscript do not understand this 100%, so where do I set it in the newsscript? Can't find it anywhere!

Thanks / Gnolen
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Newsscript - where to set custom 'admin' name so it will work?

Post by Ted »

Ok, this is something I fixed in svn...

Open up lib/classes/class.module.inc.php

Find the CreateLink function

About 10 lines down you'll see

Code: Select all

$text .= '/admin';
Replace it with:

Code: Select all

$text .= '/'.$this->cms->config['admin_dir'];
That should do it.
gnolen

Re: Newsscript - where to set custom 'admin' name so it will work?

Post by gnolen »

Thanks! Works like a charme!
gnolen

Re: Newsscript - where to set custom 'admin' name so it will work?

Post by gnolen »

Hmmmm, this newsscript is my major problem! The script is producing really strange code! Strange and insertions! At least not valid code. :( Sometimes ok but sometimes not. Is there a way to turn the creation of off in tinymce?

And when I set the length of the summary and the last letter is a nordic å, ä or ö it generates the letter code instead! How should I fix that??

Thanks / Gnolen
Locked

Return to “CMSMS Core”