sNews Forum

sNews 1.6 (previous version) => Miscellaneous - sNews 1.6 => Topic started by: Luka on May 16, 2007, 08:57:13 AM

Title: sNews 1.5.31 >> 1.6 changelog
Post by: Luka on May 16, 2007, 08:57:13 AM
====================================================
  File: sNews 1.5.31 -> 1.6 changelog
  Engine: sNews 1.6 CMS
  Modified on: May 15, 2007.
  Developers version: 1.6.0 Stable
  Copyright (C) Solucija.com
  sNews is licensed under a Creative Commons License
====================================================

LANGUAGE VARIABLES CHANGELOG

1. added SYSTEM VARIABLES which should not be subjected to translation
   -----------------------
   divider
   cat_listSEF
   paginator
   file_include_extensions
   allowed_files
   allowed_images
   ignored_items
   -----------------------

2. new language variables
   -----------------------
   allowed_files
   allowed_images
   ignored_items
   required
   rss_articles
   rss_pages
   rss_comments
   rss_comments_article
   no_articles
   error_404
   -----------------------

3. removed language variables
   -----------------------
   article - duplicate
   comments - duplicate
   newarticle
   a_true
   a_false
   a_prefix
   -----------------------
_______________________
FUNCTIONS CHANGELOG

1. secret_word variable is removed from function db() and relocated to function token()

2. function snews_startup()
   - completely recoded;
   - added multiple rss calls feature;
   - added 404 feature;

3. function pages()
   - minor change (title value displaced);

4. function extra()
   - completely recoded;
   - parametrized;
   - added advanced styling option;
   - index.php call can stay intact (in order to achieve backward template compatibility);

5. function paginator()
   - minor change (applied ternary operator);

6. function center()
   - minor optimization improvements (several variables extracted outside loops);
   - added new switch-case statement (404);
   - modified notification call;

7. function comment()
   - added badWords cleaning routine (which was missing in 1.5.31);
   - added comment flooding check;
   - added redirection after comment submission;
   - added l('required') language variable to the comment form;

8. function archive()
   - added if-empty archive check;

9. function sitemap()
   - minor optimization improvements;

10. function notification()
   - completely recoded (this change affects the whole engine);

11. function contact()
   - added l('required') language variable to the comment form;
   - added contact flooding check;

12. function menu_articles()
   - added if-empty menu check;

13. function new_comments()
   - modified SQL command;

14. function search()
   - search output stripslashed;

15. function rss()
   - completely recoded;
   - renamed to rss_contents() and parametrized;
   - this function now produces 4 types of RSS outputs (articles, pages, comments, article specific comments);

16. function html_input()
   - output changed from echo to return (this change affects the whole engine);

17. function administration()
   - added article title nex to unapproved comments listing;

18. function processing()
   - applied entity clean routine instead of single quotes str_replace;
   - modified SQL update command inside "save-settings" case;

19. function files()
   - completely recoded;

20. function filelist()
   - completely recoded;

21. function find_cat_sef()
   - completely recoded;

22. function mathCaptcha()
   - completely recoded;

23. function cleanWords()
   - added bad_words.txt filter (which was missing in 1.5.31)
   - in order to use this feature, please download file bad_words.txt and upload it into your site root (path should be http://your-domain/bad_words.txt)
   - after uploading, enable bad words filter via admin comments pane

24. function file_include()
   - changed file extension check;

25. function js()
   - completely recoded;
_______________________
NEW FUNCTIONS CHANGELOG

1. function error404()
   - displays 404 error note

2. function rss_links()
   - displays rss links on index.php
   - this function produces 4 types of RSS links (articles, pages, comments, article specific comments);
        - rss links are formed as an unordered list

3. function strip()
   - strips non-RSS fiendly data before it's sent to reader

4. function entity()
   - extracted htmlspecialchars function
Title: sNews 1.5.31 >> 1.6 changelog
Post by: Jochum Meester on May 17, 2007, 01:03:43 AM
So just to check; no changes to the mysql database? We can use the one from 1.5.31?
Title: sNews 1.5.31 >> 1.6 changelog
Post by: David on May 17, 2007, 01:26:51 AM
yes you don't need to change someting in the db  :cool:
Title: sNews 1.5.31 >> 1.6 changelog
Post by: philmoz on May 17, 2007, 02:09:54 AM
Just a note, about function extra($styleit = 0, $classname = '', $idname= '')
4. function extra()
    - completely recoded;
    - parametrized;
    - added advanced styling option;
    - index.php call can stay intact (in order to achieve backward template compatibility);

Usage:- If you choose to use the parameters, only then will you be required to enter 3 bits of information into the function.

First :- $styleit is the setting of whether you want extra() wrapped in
or not.
1 means do it, anything else means not to.

Second :- $classname is the class to apply to the
. This must be in quotes. If no class is to be used, empty quotes must be entered.

Third :- $idname is the id to apply to the
.This must be in quotes. If no id is to be used, empty quotes must be entered.

Examples.
(Note :- '' is two single quotes.)
Quote
Means :- wrap output of extra() in
. Use class="box". Use id="bruce".
You would then define the class and id in your style sheet.

Quote
''); ?>
Means :-  wrap output of extra() in
. Use class="box". Don't use an id.
You would then define the class in your style sheet.

Quote
'','bruce'); ?>
Means :-  wrap output of extra() in
. Don't use a class. Use id="bruce".
You would then define the id in your style sheet.

Quote
Means :- don't wrap output of extra() using internal parameters. If this is chosen, then there is no difference in functionality between 1.5 and 1.6 versions of this function.
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Sasha on September 17, 2007, 10:27:06 AM
how we do upgrade 1.5.31 to 1.6 with this?Just replace snews file 1.5.31 with 1.6 and not touch data base or something  else need be done?I m confused  ???
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Joost on September 17, 2007, 12:25:20 PM
how we do upgrade 1.5.31 to 1.6 with this?Just replace snews file 1.5.31 with 1.6 and not touch data base or something  else need be done?I m confused  ???
Exactly, no database changes. Only a minor change to function calls in index.php. The difference is <?php rss_links(); ?>, if I have remember it well.
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Sasha on September 19, 2007, 05:25:56 AM
how can i use new rss function in 1.5.31?Just copy and past in snews core file or...?
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Ken Dahlin on September 19, 2007, 05:51:33 AM
how can i use new rss function in 1.5.31?Just copy and past in snews core file or...?

There's a little more involved than simply plugging in the new function... It's called a little differently in startup() for one. My advise is to upgrade. If your 1.5.31 is heavily modded, I feel your pain. I still haven't upgraded my site because I dread trying to make everything work with 1.6
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Sasha on September 19, 2007, 07:18:17 AM
yes i got some extra code nothing much but.....
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Ken Dahlin on September 19, 2007, 07:43:30 AM
yes i got some extra code nothing much but.....

no buts!
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 27, 2007, 07:37:21 PM
Hello,

i readed here that is no need to upgrate de mysql for -> 1.6 Update of Snews , onli overwrite de snews.php file.

Ok, I dead That and on Admin Login I have this error :

Error

Wrong username and/or password and/or sum entered.


User is corect, pass is corect, sum is corect... but steal error.

I browsed the row password from mysql table settings and I changed the paswordt to test and I tryed to log in and the same  error.  I rewrite bach the 1.5 snews.php file and the login process goes without errors.

Need a little help please.
10x
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Rui Mendes on October 27, 2007, 07:57:55 PM
Try reset your username/password.

In settings table, finda username and password and change to
098f6bcd4621d373cade4e832627b4f6

Hope help  you
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 27, 2007, 08:11:57 PM
I dead that allready,  the same error .... :(
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: jlhaslip on October 27, 2007, 08:28:05 PM
the above code should be added/altered in the Database using phpMyAdmin (or similar) to create a user=test and pass=test, just like the default sNews 1.6.
After you have made the change, use test/test as the admin log-in.

What version of sNews are you running?
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 27, 2007, 09:56:31 PM
I had 1.5 version, i want to upgrate to 1.6 .

Before i start posting here i dead that : I overwrite the snews.php file and wen i had the error i changed in mysql the user in test and the password in 098f6bcd4621d373cade4e832627b4f6 ,

but the error is teh same .

wen I overwrite de old snews.php back , the error desepear.
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: jlhaslip on October 27, 2007, 10:32:29 PM
did you modify the snews.php to include the correct paths for the set-up and all the mysql information?
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 27, 2007, 10:35:21 PM
yes ofcourse!
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Keyrocks on October 27, 2007, 10:58:05 PM
If you are upgrading from version 1.5.31... then your settings table in the database should have this encrypted string - 098f6bcd4621d373cade4e832627b4f6 in both the username AND password fields... when you look at (browse) the table in phpMyAdmin.

If you are upgrading from version 1.5.30 - as it was BEFORE the security problem (in January 2007)... then the username setting would have been "test" with only the password using the encrypted string. It was necessary to apply the encryption to both fields to eliminate a hacker invasion problem. So... just make sure you have modify the username field in the settings table so that they the same encrypted string... then you should be able to log in with "test" and "test".
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 27, 2007, 11:41:48 PM
ok, is working now in 1.6 version to, after i replaced the  username field with 098f6bcd4621d373cade4e832627b4f6

thank you a lot
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Keyrocks on October 28, 2007, 12:54:55 AM
Your welcome Adder... (Black Adder?)  ;)
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: Adder on October 28, 2007, 12:59:59 AM
Harmless Adder :D

thanks again, you people maded a great script.

Best regards
Title: Re: sNews 1.5.31 >> 1.6 changelog
Post by: mediart on November 13, 2007, 02:58:11 PM
Hello everybody

I think you should change the pass and username in the package 1.6

others will be happier.

thank's for script.