Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Pages: [1] 2

Author Topic: sNews 1.5.31 >> 1.6 changelog  (Read 16324 times)

Luka

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 36
  • Posts: 1716
    • http://www.snewscms.com
sNews 1.5.31 >> 1.6 changelog
« 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
Logged

Jochum Meester

  • Sr. Member
  • ****
  • Karma: 1
  • Posts: 309
    • JochumMeester.com
sNews 1.5.31 >> 1.6 changelog
« Reply #1 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?
Logged

David

  • Hero Member
  • *****
  • Karma: 7
  • Posts: 567
sNews 1.5.31 >> 1.6 changelog
« Reply #2 on: May 17, 2007, 01:26:51 AM »

yes you don't need to change someting in the db  :cool:
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
sNews 1.5.31 >> 1.6 changelog
« Reply #3 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
1,'box','bruce'); ?>
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
1,'box',''); ?>
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
1,'','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.
Logged
Of all the things I have lost, it is my mind that I miss the most.

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #4 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  ???
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Joost

  • Guest
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #5 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.
Logged

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #6 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...?
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Ken Dahlin

  • Full Member
  • ***
  • Karma: 30
  • Posts: 139
    • http://www.kendahlin.com/
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #7 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
Logged

Sasha

  • Hero Member
  • *****
  • Karma: 28
  • Posts: 938
    • cssanarchy.com
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #8 on: September 19, 2007, 07:18:17 AM »

yes i got some extra code nothing much but.....
Logged
Every morning, I get up and look through the 'Forbes' list of the richest people in America. If I'm not there, I go to work. | If you love your job, you haven't worked a day in your life. snews with ♥

Ken Dahlin

  • Full Member
  • ***
  • Karma: 30
  • Posts: 139
    • http://www.kendahlin.com/
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #9 on: September 19, 2007, 07:43:30 AM »

yes i got some extra code nothing much but.....

no buts!
Logged

Adder

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #10 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
« Last Edit: October 27, 2007, 07:39:08 PM by Adder »
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #11 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
Logged
Need a Job on Europe. Linkdin - Facebook / Group

Adder

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #12 on: October 27, 2007, 08:11:57 PM »

I dead that allready,  the same error .... :(
Logged

jlhaslip

  • Sr. Member
  • ****
  • Karma: 16
  • Posts: 374
    • My snews with AEF Forum site
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #13 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?
Logged
Yes! I have no siggy.

Adder

  • Newbie
  • *
  • Karma: 0
  • Posts: 6
Re: sNews 1.5.31 >> 1.6 changelog
« Reply #14 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.
Logged
Pages: [1] 2