Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Pages: [1] 2 3 ... 10
 1 
 on: September 29, 2018, 02:30:13 pm 
Started by philmoz - Last post by dirtyjokesfunny
Mhm... could explain why I never get anywhere in life...

 2 
 on: September 29, 2018, 02:02:24 pm 
Started by Sven - Last post by dirtyjokesfunny
I just ate my cookie, relogged, and no way: I canít search any word with last Chrome version (v11, under Seven with no particular settings).
But it works with Opera (last build too).
Weirdo. ???

 3 
 on: September 29, 2018, 09:50:09 am 
Started by sibas - Last post by dirtyjokesfunny
Simplest way is to give each submit button a unique name. Then check if it was submitted, and process accordingly.

    <form id="form_1" action="" method="post">
        <input type="submit" name="submit_1" value="Submit" />
    </form>

    <form id="form_2" action="" method="post">
        <input type="submit" name="submit_2" value="Submit" />
    </form>


<?php

if( $_POST['submit_1'] ) {

    // Do stuff

}
else if( $_POST['submit_2'] ) {

  // Do stuff

}

?>
It's a bit hackish, but will do exactly what you need it to.

 4 
 on: September 29, 2018, 09:46:30 am 
Started by matthiasrawles - Last post by dirtyjokesfunny
check the index.php file encoding
may have utf-8 and must be utf-8 without bom

 5 
 on: July 18, 2018, 10:58:08 am 
Started by Lauf - Last post by Lauf
Does anyone have a plugin to generate OPEN GRAPH tags for Facebook?
I think it would be very useful ...
Regards

 6 
 on: March 24, 2018, 02:06:04 am 
Started by mehmetsarr - Last post by Keyrocks
Sorry it's been a long time since you've had a reply. I assume your theme package includes the html slider script and any jquery file(s) included with it. If so, the next step would be to create a PHP function to generate the slider ... using the html slider script as the foundation. Doing it this way you would then be able to add the function tag into your index.php file where you want the slider to appear.

For example:
The new function:
Code: [Select]
function slider () {
// escape PHP
?>
(....... add your slider's html script here ......)
<?php // back to PHP
}

The function tag to be added to your index.php file (where you want the slider to display:
Code: [Select]
<?php slider(); ?>

Can you provide a link to the actual theme package you are using?

 7 
 on: January 27, 2018, 10:39:40 pm 
Started by matthiasrawles - Last post by Luka
You're missing a language file, or the language configuration is not right.

 8 
 on: January 18, 2018, 08:56:38 pm 
Started by matthiasrawles - Last post by mruqer

Hello to everyone, I am refreshing the topic.
After installation, the login page looks bad - there are no window descriptions, the forms look bad.
http://witektuleja.website.pl/login/ (test / test)
Can someone help?
Thanks in advance
Regards

 9 
 on: December 05, 2017, 05:24:43 pm 
Started by mehmetsarr - Last post by mehmetsarr
Hi, I want to make a slider. I have a responsive html theme with a slider, how do I make it into a module.

 10 
 on: March 17, 2013, 10:49:38 am 
Started by nukpana - Last post by sibas
Hello!!
I try to use this mod with [ADDON] showArticles
http://snewscms.com/forum/index.php/topic,10371.msg68728.html

how to change this to make it work?
Code: [Select]
file_include(str_replace('[break]', '',str_replace('&', '&amp;', $text)), $shorten);

Pages: [1] 2 3 ... 10