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: Basic sNews package with SEF switcher  (Read 8355 times)

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Basic sNews package with SEF switcher
« on: March 09, 2008, 06:05:46 pm »

I made a basic compilation based on Equilni's work, for everyone.

The modules included are adapted to work with SEF on/off (not big deal because was just minor modifications):

    * - Clickable Article Titles by BOB BAKER
    * - Article categorisation by Philmoz
    * - Smilies for Articles and Comments by Bob Baker, Zucye and Rui Mendes
    * - Images & Words Captcha by aRyo S
    * - Simple MySQL Backup v0.1 (no system calls) by bramsyuur

UPDATE 10 March 2008:

    * -The "Comments (0)" issue by bramsyuur, Henrich and Dom
    * -Faster cleanXSS() alternative by invarbrass

UPDATE 11 March 2008:

    * Performance booster - get_id() on steroids - by codetwist
    * Mutliple "boosters": l(), s(), db(), tags() by invarbrass - but all things included in snews.php, not external file
    * the package delivered include Resolved issue in SiteMap function on original snews.php with SEF switch provided by Equilini

UPDATE 12 March 2008:

    * Tag and Tag Cloud by Equilni, modified for SEF switch

UPDATE 15 March 2008:

    * Auto <p> <br> </p> for editor - by philmoz

UPDATE 16 March 2008:

    * Similar articles titles on article page (based on categories) - by Henrich and Rui, see that post.

UPDATE 21 March 2008:

    * [Mini MOD] RSS Article length (Title, Summary, All) - by funlw65.
    * Resolved issue with rss feed link for comments

UPDATE 22 March 2008:

    * Resolved issue in function files()

UPDATE 24 March 2008:

    * Auto <p> <br> </p> for editor - by philmoz (DISABLED by comments, still here)
    * [Addon Package] Whizzywig editor - by Joost (DISABLED by comments, still here)
    * [MOD] Admin comment styling - by Bakercad
    * [MOD - AddOn] - grAvatar, identity comments  - by Henrich
    * Resolved issues caused by me (no captcha in contact form...)
    * [MOD] Contact form with custom fields (sNews 1.6)  - by codetwist - not yet a control panel...
    * Added missed mysql query in Readme.html for email field in table comments

UPDATE 27 March 2008:

    * Resolved issue caused by smilies in shortened part of an article.
    * Updated code in my rss mod.
    * BBCode in comments and buttons in comment form.

UPDATE 30 March 2008:

    * MOD Read More link in shortened article by philmoz
    * Admin editor for comments form, generating bb code by funlw65
    * Modified function search_keywords - by funlw65
    * MOD Akismet by henno - with control panel by funlw65
    * The following modules can be enabled/disabled from admin panel: related articles, smilies, bbcode, akismet, gravatar.
    * -Faster cleanXSS() alternative by invarbrass  (DISABLED by comments, still here - if someone tested this...)

UPDATE 16 April 2008

    * - snews_startup() boosted - by joost
    * - update_articles() - by invarbrass
    * - content statistics - by bramsyuur
    * - retrieve() - by 1.7RC
    * - function use in articles - by philmoz
    * - site stats - by backstage
    * - simple admin/public content splitting - by Fred K
    * - control panel for contact form - by funlw65
    * - separated page for blog - by funlw65
    * - enhanced admin editor - by Rui Mendes
    * - cosmetics for editor buttons - by 1.7RC

UPDATE 18 April 2008:
    * - resolved captcha issue with help of khiddemann, codetwist and philmoz. Here are 4(four) captcha systems included. Only one can be active at a moment, selectable from admin panel (settings/content).

UPDATE 30 April 2008:
    * - New package with EliteCircle theme. http;//funlw65.googlepages.com/myblog.tar.gz



LAST UPDATE (I think ...)

UPDATE 17 September 2008:
    * - Picasa Gallery - KPicasa Wordpress plug-in ported for sNews
    * - related articles - by Mosh  -----  replacing Henrich mod
    * - Joost solved the problem with posting future articles.
    * - maybe here are more but I lost the count...

IMPORTANT NOTES!!!

For instalation, import my_db.sql file in your phpmyadmin. No readme file.

I will not add more mods to this package. Is already huge. snews.php file is split  in three parts:
 - config.php - (where are language variables and database details)
 - functions.php
 - snews.php

Also, if you use the EliteCIrcle Theme, you don't need to change links inside index.php, because are automatically generated (using _SITE variable from 1.7 version). If your site is not detected, you must make changes in config.php, where _SITE variable is defined (I left a comment there). Links inside index.php are looking like this:

Code: [Select]
<link href="<?php echo _SITE?>EliteCircle.css" rel="stylesheet" type="text/css" />
<link href="<?php echo _SITE?>lightbox.css" rel="stylesheet" type="text/css"  />
<link href="<?php echo _SITE?>kpicasa_gallery.css" rel="stylesheet" type="text/css" />
<link href="<?php echo _SITE?>highslide/highslide.css" rel="stylesheet" type="text/css" />

<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - Articles" href="<?php echo _SITE.seflink('rss-articles').'/'?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - Pages" href="<?php echo _SITE.seflink('rss-pages').'/'?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - Comments" href="<?php echo _SITE.seflink('rss-comments').'/'?>" />

<link rel="shortcut icon" type="icon" href="<?php echo _SITE?>favicon.ico" />

So, you don't need to change anything here.

If you don't need Picasa Gallery, just unpublish 'picasa' category (is generated at mysql tables creation). Not yet a control panel, sorry. Is not hard to made it but I had no time or in a good mood.  If you want to use it, you must change $username variable with your picasaweb id inside snews.php for both displayAlbums and displayPictures functions. Also, for displayPictures you can change variables $photoPerPage and $photoPerRow , and for displayAlbums only $nbAlbumsPerRow variable because for this, I not implemented pagination yet (but you have for displayPictures and is most important).

Another important thing: I changed the way tags are split: only with one comma instead of one comma and one space. I think this is easy for everyone.

Package is ... not available any more. Use this one instead

----------------------------------------------------------------
    * This package is designed for fresh installation.
« Last Edit: June 06, 2009, 11:25:01 am by funlw65 »
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #1 on: March 12, 2008, 08:42:30 pm »

This is all. I think is enough for a personal blog or site.

Thank you Equilini because you made this possible. Also to all sNews Dudes and MOD contributors.

I wanted very much sNews and now i'm using it on my site.

I hope sNews 1.7 to be "SEF switch" ready.

P.S.

I tested this only on an environment without mod_rewrite (SEF off). So, any testers are welcome. :) .
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #2 on: March 14, 2008, 11:32:15 am »

Today I managed to test this package under mod_rewrite conditions and I saw that Tag and Tag clouds not working.

This is because I forgot to copy .htaccess from Equilini's package. Now, is working as a dream, in both SEF on and off situations. Equilini, you did a great job with this SEF switcher.

I want it so much in sNews 1.7 ....

The package is disponible under the same link.
Logged

centered

  • Guest
Re: Basic sNews package with SEF switcher
« Reply #3 on: March 14, 2008, 11:58:10 am »

Awesome work man Karma for you!
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #4 on: March 14, 2008, 12:38:54 pm »

Thank you! From you it mean a lot to me.
« Last Edit: March 14, 2008, 12:54:26 pm by funlw65 »
Logged

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: Basic sNews package with SEF switcher
« Reply #5 on: March 14, 2008, 01:40:39 pm »

Awesome work man Karma for you!

Funlw65... I am with EQ... you did a fine job with this one! And another karma for you.  :)
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #6 on: March 14, 2008, 01:49:07 pm »

He he, Thank you Keyrocks!
Logged

Sheepdisease

  • Jr. Member
  • **
  • Karma: -1
  • Posts: 79
Re: Basic sNews package with SEF switcher
« Reply #7 on: March 18, 2008, 01:49:34 am »

Can we have a demo?
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #8 on: March 18, 2008, 01:53:43 am »

You have entire package :). Just install it...
Logged

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: Basic sNews package with SEF switcher
« Reply #9 on: March 18, 2008, 01:56:57 am »

Really good Job funlw65.

Karma for my friend.

Logged
Need a Job on Europe. Linkdin - Facebook / Group

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #10 on: March 18, 2008, 02:01:17 am »

Thank you Rui. Main credits go to Equilny.

A question, sNews1.7 will come with SEF switcher? If is secret dont answer. :).
Logged

jackp

  • Newbie
  • *
  • Karma: 2
  • Posts: 32
  • But you said "Stick it there!!"
    • Tim Chard - myEmote
Re: Basic sNews package with SEF switcher
« Reply #11 on: April 06, 2008, 02:12:07 pm »

Hi funlw65

I downloaded your package and have it running on my server. Great job. I couldn't log into the admin and for half hour I sit there wondering what feck is going on. Then I realise that in the Captcha you have to add or sub the numbers not just type the whole thing in. LOL. Jeez I feel dumb sometimes.

Jackp
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #12 on: April 06, 2008, 02:43:22 pm »

On first part of your reply I get very worried: (man, I uploaded a broken package!!!). I`m glad is working... I have under developement a control panel for Custom contact fields.... is almost ready... and I included another three boosters and statistics... just wait few days if you want to use this package....
Logged

invarbrass

  • Full Member
  • ***
  • Karma: 18
  • Posts: 117
    • http://snews.extremebittorrent.com
Re: Basic sNews package with SEF switcher
« Reply #13 on: April 07, 2008, 11:00:41 am »

good job funlw65! a live demo would be nice though
Logged

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: Basic sNews package with SEF switcher
« Reply #14 on: April 07, 2008, 03:43:21 pm »

my site is using this package. I don`t have a demo...
Logged
Pages: [1] 2