Vsns V3.1 [News Publishing]

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Vsns V3.1

Download:
vsns-v3.1.zip

Category:
News Publishing

Archive Content:

Vsns3

Vsns3 > Functions

Vsns3 > Images

Vsns3 > Images > Smilies

Vsns3

Vsns3 > Templates

Vsns3 > Upgrade

Vsns3

Readme.html:






    VSNS Lemon 3.1 Readme File

    
        @import "templates/styles.css";

        body {margin: 10px;}
        pre {font-family: monospace;}
    







    




VSNS Lemon ReadMe File

Table of Contents


    History of VSNS
    Versions History of VSNS & Change Log

    Fresh Install of VSNS Lemon
    Upgrade from Previous Versions
    Including the News Articles Elsewhere
    Alternative to Including Files
    Styling this beast
    Can I change your script?  Can I redistribute it?  Can I sell it?

    What are pinned articles?
    Um . . . categories?
    Oooh,  comments!
    So how do I get help?  To whom do I complain?
    Credits


History of VSNS

VSNS started as the news script I made for my website.  Tired of updating my news articles manually,  I used my newfound skills at PHP and MySQL to write a very simple script that let me update it automatically.  Someone asked me for the script,  and eventually another person suggested that I develop it for public release.  Although I didn't think it had the potential for that,  I proceeded anyway.  And boy was I right,  eh.

I named it Very Simple News System,  which was . . . descriptive,  but not creative.  The interface was web-based,  and I added new features as I went.  This release represents a turning point,  as it is the third complete version of VSNS,  and on this occasion I alter the name slightly.

But why "lemon"?  It occurred on March 22,  2005,  in my science class of all places.  We were discussing the pH scale,  which is the logarithmic scale scientists use to determine the acidity of a substance.  Lemon juice is acidic,  of course,  and we talked about lemon juice.  When I came home,  I had the absurd idea to name version 3.0 of VSNS "VSNS Lemon."  A logo and script change later,  and VSNS Lemon was born.  So welcome,  to VSNS Lemon 3.0.

Yet it still wasn't complete!  More versions,  more wacky features!  It's not the best blog in the world,  but it is a blog.  I'm not forcing you to use it,  so if you don't like it,  let me know or go ahead and use another software.  Go on,  I won't be mad.  It's up to you.

Back to Top

Version History & Change Log


    Version 0.1 - September 1,  2004
        

            The initial script,  used only on my site.  To this day the basic concepts remain preserved,  although they have been greatly expanded and altered.
        
    
    Version 1.0 - September 8,  2004
        
            I redesigned the news system so that it works with a database.  This is where the script really got dynamic.
        

    
    Version 2.0 - September 15,  2004
        
            Redesigned version for public distribution.
            Added web-based control panel
            Added PHP Sessions
        
    

    Version 2.0.1 - September 16,  2004
        
            Added help file
            Work on a "pinned" feature for articles
        
    
    2.1.1 - September 20,  2004
        
            First public release of VSNS

        
    
    2.2.0 - Unreleased
        
            Developmental step between 2.1 and 2.3
            Merged all tables into the vsns_news table
        

    
    2.3.0 - September 29,  2004
        
            Added: Expiration feature
            Added: Date feature
            Fixed: Prefix problem

        
    
    2.3.1 - September 30,  2004
        
            Public release of VSNS 2.3
        
    
    2.3.2 - November 3,  2004
        

            Cleaned up code
            Redid the FAQ/help section
            Minor improvements to the control panel
            No MySQL changes
        
    
    2.3.3 - November 19,  2004
        

            Added: Update feature
            Added: Can unpin a pinned article
            Added: By default,  pinned articles are unpinned upon expiry rather than deleted.  Can be changed.
            No MySQL changes
        

    
    3.0.0 - Pending Final Release (April 25,  2005)
        
            Major rewrite,  I literally overhauled everything
            Added: Web-based configuration
            Added: Comment feature
            Added: Prototype WYSIWYG-style feature

            Fixed: Archive feature
            Renamed to VSNS Lemon
            New Control Panel layout
            Added: Author field
            Added: Categories

        
    
    3.0.1 - Stable Lemon Release (May 9,  2005)
        
            Minor tweaks to fix a few errors
            Added link name option to WYSIWYG link insert
            Added navigation display option
            Added header display option

        
    
    3.1.0 - VSNS Lemon 3.1 (August 18,  2005)
        
            .htaccess mod_rewrite functionality for friendly URIs
            Attempted to improve parsing
            Added RSS feed

            Fixed several bugs with the header level
            Improved admin functionality with easier config menus
            Added email notification of new comments
            Made code more efficient by centralizing news display functions
            Commment verification script
        

    
    3.1.1 - "Darn that feature creep" (October 29,  2005)
        
            Added smilies/emoticons
            Cleaned up parsing of (X)HTML
            Fixed a few bugs with the categories
            Streamlined code

            Totally rewrote comment functions
        
    


Back to Top

Fresh Install of VSNS Lemon

You need to be a little familiar with computers and the Internet.  The more experience you have with PHP and MySQL,  the better,  although no experience is required.

If you are reading this,  you have obviously unzipped the package,  that is a good first step.  Next,  upload this entire package to your website.  The preferable method to do this is via FTP.  However you manage it,  you must chmod the file settings.php to 777.
Make sure you have a MySQL database prepared,  with a user that has permission to create and alter tables.
Next,  go to the install.php file in your browser.  Fill out the form,  an explanation of each element is below:

    Hostname - The MySQL server to which the script must connect to access the database.  It is usually localhost

    Username - The name of the MySQL user you created prior to installing the script
    Password - The password of the MySQL user you created prior to installing the script
    Database - The name of the database where the script will create all the tables.  It must already exist
    Access Password - The password you will use to access your admin CP after the install

    Access Path - The absolute path (must start with http://) where the script resides.  If you still don't know what I'm talking about,  just do this: take the address in your web browser,  remove the install.php part,  and you have the path.
    Blog Name - The name of your blog.  (Used for the RSS feed,  mostly)
    Website - Link to your website (Again,  for the RSS feed)

    Email - Your email address.  Comment notifications are emailed here
    Name - Your name (for the feed)
    Blog Description - Description of your blog


The install should be successful.  If an error occurred,  double check that you chmodded settings.php correctly,  and that all information is accurate.
After install,  it is recommended you delete the install file.

Upgrade from Previous Versions

First,  upload everything in the package except settings.php.  Make sure to chmod settings.php to 777,  however.

Locate the appropriate file in the upgrade folder.  For example,  if you are upgrading from version 2.3.3,  then run upgrade_from_2.3.3.php.  This file will make the necessary changes to the database and update settings.php.
Once again,  it should run smoothly and you shouldn't encounter problems
(yeah,  what else am I supposed to say?)

Back to Top

Including the News Articles Elsewhere

VSNS Lemon is designed to work "out of the box" and "as is."  It is fully functional as soon as you finish running the install file,  and news articles will appear on the index page as you add them.  However,  it is quite easy to also make news articles appear on any other page of your website.  Just place the following code where you want the articles to appear:

<?php include /path/to/vsns/final.php"; ?>

Replace /path/to/vsns/ with the path to your VSNS (not the URI,  the path).  If you are unsure what I mean,  you might try my alternative method.

Back to Top

Alternative to Including Files

The alternative is to simply do nothing.  Run VSNS Lemon from wherever you have uploaded it.  If you wish to change the appearance of the page,  there are three pages to edit,  all in the templates folder: styles.css,  index_header.php,  and index_footer.php.
Styles.css contains the CSS information for the news script (especially the bottom part.  If you tweak the top part,  you may end up messing up the look of the Admin CP,  so be careful).  Use this to change the layout of the page to your heart's desire.
Index_header.php contains the top part of the page.  Here you can change the title of the page,  where it looks for a style sheet,  and even replace my logo with a logo of your own.  Anything goes.

Index_footer.php contains everything below the news script.

Back to Top

Styling this beast

You can style VSNS by including the lines from the style sheet in your own style sheet.  The style sheet is named styles.css and is located in the templates directory.  Copy and paste everything below the following comment,  changing it to what you want,  of course.


/***************************************************************************
*    Copy the following into your CSS if you aren't using this document.
*    The following controls the look of news articles,  wherever they may be.
***************************************************************************/

Back to Top

Can I change your script?  Can I redistribute it?  Can I sell it?

Indeed,  you can change the script as much as you want,  go wild.  My script is far from perfect,  I'm sure you can make many improvements.
You may redistribute VSNS Lemon as well.  Whether it is an untouched or a modified version,  you must distribute the source code as well.  VSNS Lemon is copylefted under the GNU General Public License.  A copy of the license is available in the file copying.txt.

If you do make useful modifications to release,  I don't mind being notified either.  But this is not absolutely necessary.
Under the terms of the GNU GPL,  you are allowed to sell my script,  however you must still make the source code available with the script.

Back to Top

What are pinned articles?

Pinned articles are news items that will be displayed no matter what the date.  They will continue being displayed until you manually unpin them,  or they expire according to a date set during the article's creation.  If they expire,  then they will be unpinned or deleted.  You can toggle that option from your configuration settings.
Pinned articles can have prefixes,  which you can modify from the configuration settings.  Also,  pinned articles are unaffected by category settings.

Back to Top

Um . . . categories?

Categories are a new feature to VSNS Lemon.  You can now organize your news by category.  For example,  a common type of news article is a "Rant, " in which the author will talk about one specific subject.  You have total control over the name and number of categories,  and can even disable categories from the configuration settings.

Back to Top

Oooh,  comments!

Indeed,  comments are perhaps the largest single feature added to VSNS.  You have the ability to allow people to add comments to your news articles.  Articles can either be open,  passworded,  or locked,  depending on your preference.
Open articles allow anyone to comment multiple times.  Passworded articles require a password (set by you) to be entered before someone may add a comment,  this lets you restrict who can comment on the article.  Locked articles are closed to comments,  and no one may leave a comment.

If you get a large number of comments and decide you don't want further comments,  you have the ability to lock it by editing the article and just changing it from "Allow Comments" to "Locked, " all comments will remain but no further comments will be allowed.
I am aware that there are those who will abuse this system.  Thus,  I have added a feature that allows you to ban certain IP addresses from making comments.  You can edit this list from the Manage IP section,  and also ban any IP instantly when Managing Comments.
In version 3.1,  I added a simple verification script in the form of a question.  This was designed to prevent bots from automatically filling out the field.

Back to Top

So how do I get help?  To whom do I complain?

You can contact me in a variety of ways.  My website usually provides up to date information on contacting me.  You may seek help from my forums as well.  Or,  if you prefer,  you can contact me at support  tachyondecay  net.

Back to Top

Credits

Thank you to the following people and resources for making VSNS Lemon a reality:


    Caleb RW - Encouraged me to redevelop VSNS for public release,  and has offered continual support.
    Thha - Also encouraged me to redevelop VSNS for public release.  He's started his own hosting site,  which supports PHP and MySQL . . . perfect for VSNS Lemon.

    Koolaidman - Doggedly asked me,  "Is it done yet?" and has eagerly awaited VSNS Lemon's release (but perhaps he's just feigning interest :D).  Loyal beta tester to the end.
    PHP.net - The home of PHP on the web.  I don't know what I'd do without its handy online reference manual.
    PHP Freaks - A great community of PHP coders who offer a variety of tutorials,  including those on sessions.
    Practical PHP Programming - A free,  online PHP manual that has taught me a lot about PHP,  and I still refer to it.

    The GIMP,  a free,  open-source graphics manipulation program,  is responsible for the VSNS Lemon logo.
    And of course,  I cannot forget Google


Back to Top




    Powered by VSNS Lemon 3.1 © 2005 by Tachyon.  All rights reserved.







Other News Publishing Scripts:

WebMaster Resources Home

©RingsWorld.com