Page 1 of 1

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

Posted: Thu Mar 31, 2005 7:49 pm
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

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

Posted: Thu Mar 31, 2005 7:59 pm
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.

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

Posted: Thu Mar 31, 2005 8:26 pm
by gnolen
Thanks! Works like a charme!

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

Posted: Thu Mar 31, 2005 9:51 pm
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