Script URL: http://helpdesk.caratec.de
Version of script: ?
Hosting company: 1&1
URL of phpinfo.php: http://helpdesk.caratec.de/docs/phpinfo.php
URL of session_test.php: http://helpdesk.caratec.de/docs/session_test.php
What terms did you try when SEARCHING for a solution: Request Entity Too Large, exceeds size,
Write your message below:
Hi there,
is there any possibility to change the default setting for the type of new articles to "draft" instead of "public"?
Thank you for your support.
Kind regards
Anika
change default setting for new articles to "draft" instead of "public"
Moderator: mkoch227
Re: change default setting for new articles to "draft" instead of "public"
In admin/manage_knowldgebase.php find this code (around line 295):
Just BELOW that add
That should do the trick.
Make sure:
#1 you backup any files before editing
#2 use a good text editor like the free Notepad++ to make sure files are saved correctly (Windows notepad will NOT save files in correct encoding!)
Code: Select all
if (isset($_SESSION['new_article']))
{
$_SESSION['new_article'] = hesk_stripArray($_SESSION['new_article']);
}
elseif ( isset($_GET['type']) )
{
$_SESSION['new_article']['type'] = intval( hesk_GET('type') );
if ($_SESSION['new_article']['type'] != 1 && $_SESSION['new_article']['type'] != 2)
{
$_SESSION['new_article']['type'] = 0;
}
}
Code: Select all
if ( ! isset($_SESSION['new_article']['type']))
{
$_SESSION['new_article']['type'] = 2;
}
Make sure:
#1 you backup any files before editing
#2 use a good text editor like the free Notepad++ to make sure files are saved correctly (Windows notepad will NOT save files in correct encoding!)
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: change default setting for new articles to "draft" instead of "public"
Thank you very much. This was the solution for my problem!
Have a nice day!
Have a nice day!