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.

Author Topic: Changes in 1.7and developer version  (Read 2825 times)

stjepan

  • Full Member
  • ***
  • Karma: 3
  • Posts: 136
Changes in 1.7and developer version
« on: January 02, 2009, 05:08:53 pm »

Hello,

Is there a developer's version of 1.7, or explanation of function and new features?  I searched for changes explained and I found few posts but no one actually answered except "1.7 is better". 

H.A.C

  • Jr. Member
  • **
  • Karma: 20
  • Posts: 86
  • i love snews community for its great members
    • Chasoft Corporation
Re: Changes in 1.7and developer version
« Reply #1 on: January 02, 2009, 05:54:37 pm »

yes, that's right. me too! love sNews 1.6 but I have to leave for several months. after coming back a few days ago, i found 1.7 has been released! a lot of improvements without any official change log! I did ask in this thread without any replies     
sNews 1.7 - Where is the changes log?.

Anyway, after a few hours reading threads on the forum and snews.php.... now i could understand its new concepts!

It'll take time but I think you can read the code yourself to find out  new improvement... it's relaxing and interesting!

Thanks snews group!
Logged
I'm not available ....until the end of the year 2009!
----------------------------
The largest website powered by sNews is in its way to become the biggest!
My great personal website powered by sNews 1.6
http://www.chasoft.net
Come to see how it's great!

stjepan

  • Full Member
  • ***
  • Karma: 3
  • Posts: 136
Re: Changes in 1.7and developer version
« Reply #2 on: January 02, 2009, 06:10:57 pm »

Quote
after a few hours reading threads

When I ported my website to sNews it took me a few hours, and now I need to read threads a few hours. I modified my 1.6 installation and I would need to do that on 1. 7 but I have no patience to go through the code and decipher what it does. So I'll stick with 1.6 although it seems that 1.7 is way better.

Joost

  • Guest
Re: Changes in 1.7and developer version
« Reply #3 on: January 02, 2009, 06:42:21 pm »

Hello,

Is there a developer's version of 1.7, or explanation of function and new features?  I searched for changes explained and I found few posts but no one actually answered except "1.7 is better". 

Features (I am not that feature-aware, so this list is far from complete (administrators, feel free to add to this list) )

- sNews 1.7 is a three level system: Category/subcategory/article/.
- The page prefix, no longer exists: (/home/page/)
- Page, category and extra ordering applied
- Genuine 404 responds added
- Send e-mail on comment
- Multiple Extra content blocks.
- Generate readable non-english SEF titles: changes and to e etc.

Internals

At the visitors site the number of queries on each page call is reduced from 150 to approximately 25, depending on configuration. At the the admin side there is an increased number of queries per page call.

function get is removed and the (unnecessary) cleaning actions that came with it. It slowed down the system to much. Instead of using get('category') the system now uses:
$categorySEF == /seftitle/
$subcatSEF   == /seftitle/seftitle/
$articleSEF    == /seftitle/seftitle/seftitle/
A bit confusing, as $categorySEF might refer to a page as well and $subcatSEF can be an article.
These variables are distributed asglobal variables


More globals are used (line 213 - 225)
Most globals are retrieved in startup. That way, there is no need to access the database later in the script to retrieve an article `id` ($_ID) or category `id` ($_catID).

Constants used:
_SITE replacing db('website')
_PRE replacing db('prefix')
_ADMIN replacing $_SESSION[db('website').'Logged_In'] == token()


When porting a 1.6 mod to 1.7, be aware that function get no longer exists and use the new constants.







« Last Edit: January 02, 2009, 06:43:54 pm by Joost »
Logged

H.A.C

  • Jr. Member
  • **
  • Karma: 20
  • Posts: 86
  • i love snews community for its great members
    • Chasoft Corporation
Re: Changes in 1.7and developer version
« Reply #4 on: January 03, 2009, 03:24:24 am »

Thank you so much for your very completed change list! sNews 1.7 is really better than 1.6.
Logged
I'm not available ....until the end of the year 2009!
----------------------------
The largest website powered by sNews is in its way to become the biggest!
My great personal website powered by sNews 1.6
http://www.chasoft.net
Come to see how it's great!

stjepan

  • Full Member
  • ***
  • Karma: 3
  • Posts: 136
Re: Changes in 1.7and developer version
« Reply #5 on: January 03, 2009, 03:40:08 pm »

My respect and deep bow, oh thee who knows everything   :)

edsil

  • Jr. Member
  • **
  • Karma: 5
  • Posts: 97
Re: Changes in 1.7and developer version
« Reply #6 on: January 28, 2009, 04:32:20 pm »

Hi there...

Can anyone Please, Please, Please explain me how works : Multiple Extra content blocks. ? PLEASE...

Is this about more option locations for extra content?... if so, Please explain me how it works...

Thanks a lot in advance  ;)

edsil

Logged

centered

  • Guest
Re: Changes in 1.7and developer version
« Reply #7 on: January 28, 2009, 04:49:22 pm »

Create a extra group and place it in the template as so:
<?php extra('extra_group_name'); ?>

All extra content will show under the group name you provided.

Great way to have mini feeds/stories, ads aywhere etc.
Logged

Joost

  • Guest
Re: Changes in 1.7and developer version
« Reply #8 on: January 28, 2009, 05:03:25 pm »

... and enable "Enable Multiple Extra Options" on page "snews_settings/" (admin)
and create in "Extra Grouping" a group named: "extra_group_name"
Logged

edsil

  • Jr. Member
  • **
  • Karma: 5
  • Posts: 97
Re: Changes in 1.7and developer version
« Reply #9 on: January 28, 2009, 05:17:05 pm »

 :o
it is... it is...  :o
it is really Amazing.... Great... Incroyable... Estupendo!!!!  :o

I must say I was occupied with other things and I didnt take time to see new stuff in sNews 1.7 version...
But... it is possible to have a special post about all new stuff in sNews 1.7 version and how to use it?...

BIG BIG Thanks for this help... really!!!!  ;D  ;D  ;D  ;D

edsil
Logged