Please login or register.

Login with username, password and session length
Pages: [1] 2 3 ... 10
 1 
 on: August 04, 2017, 05:41:16 AM 
Started by stephane - Last post by Keyrocks
I hope TinyMCE worked out for you Stephane. I had used it with several sNews projects in the past and it always worked well for me.
Have you checked out my TinyMCE Add-On Package for sNews 1.7? It even has an sNews skin and is still available for download and the mod instructions are included on the project thread.

 2 
 on: July 03, 2017, 05:18:34 PM 
Started by stephane - Last post by stephane
Thank you Keyrocks,

I think I will change Ckeditor for TinyMCE. I'm actually testing it in local and it's working very well in sNews.
And I find a better free file manger to work with  ;)
http://www.responsivefilemanager.com

Happy holidays....

 3 
 on: July 03, 2017, 04:49:00 PM 
Started by stephane - Last post by Keyrocks
Sorry I cannot help you with this - I have no experience with it.
 8)

 4 
 on: June 23, 2017, 04:46:20 PM 
Started by stephane - Last post by stephane
No idea ? Anybody ?  :(


 5 
 on: June 16, 2017, 11:21:28 AM 
Started by stephane - Last post by stephane
Hello,
I would like to test ckeditor + kcfinder (https://kcfinder.sunhater.com/
kcfinder is like ckfinder but it's free with the same functionality  ;)

I have a problem about security option. How to disable upload function when we are not login as Admin ?
Documentation about that say : use Session https://kcfinder.sunhater.com/integrate#session

Code: [Select]
$_SESSION['KCFINDER'] = array(
    'disabled' => false,
    'uploadURL' => "/users/" . $user['username'] . "/upload",
    'uploadDir' = ""
);

Any idea of how to integrate this in sNews php file ?

Many thanks
Stef.

 6 
 on: June 15, 2017, 02:31:15 PM 
Started by stephane - Last post by stephane
Salut,
I didn't see your reply. Thanks.

But what is the difference ? Is it better ?


 7 
 on: March 26, 2017, 02:18:09 PM 
Started by stephane - Last post by skian
Salut voisin !

I would recommend using this code snippet to seamlessly switch between http and https based on the current url.

Code: [Select]
function site() {
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$host = $protocol.$_SERVER['HTTP_HOST'];
$directory = dirname($_SERVER['SCRIPT_NAME']);
$website = $directory == '/' ? $host.'/' : $host.$directory.'/';
return $website;
}

See https://github.com/skiane/snews1.80/blob/master/snews.php, line 112

 8 
 on: March 23, 2017, 11:07:33 AM 
Started by stephane - Last post by stephane
Ok I think it's OK. I just change the function site correctly like this
Code: [Select]
$host = 'https://'.$_SERVER['HTTP_HOST'];

For the first test I put an S also in SERVER, not an good idea  :P

Problem solved  ;D

 9 
 on: March 22, 2017, 07:41:15 PM 
Started by stephane - Last post by stephane
Hello,
I have to change a website in https. To do this is I think I have to modify the function site with https instead of http.
Code: [Select]
$host = 'https://'.$_SERVER['HTTPS_HOST'];

Is that right ? Do I have to change anything else in the snews file ?

And maybe in the htaccess file ?

(Of course I have a certificat in my server)  :P

Thank's for your answer.
Stéphane

 10 
 on: October 14, 2016, 10:06:54 PM 
Started by Rui Mendes - Last post by Rui Mendes
For who doesn't know him:
- Dennis Ritchie, Father of C and Co-Developer of Unix

Pages: [1] 2 3 ... 10