Code Snippets Panel v1.03Copyright © Stephen K (skpacman) 2012
Developer: skpacman
Web: http://www.skpacman.com
Email: admin@skpacman.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see http://www.gnu.org/licenses
PHPFusion
Copyright © 2002 - 2012 Nick Jones
http://www.php-fusion.co.uk/
GENERAL:
--------
This is intended as a system for users to submit snippets of code for administrator approval and be displayed to the site's community.
This addon is by special request from Lenoox on my home site: skpacman.com
FEATURES:
---------
NO core file modifications
Whole system is contained in the infusion including comment and rate system
Administration approval for all user submitted snippets
GeSHi v1.0.8.10 highlighting for code snippets - Supports over 200 languages!!!
jQuery star rating system v3.14
bbcode and smiley support in snippet descriptions
bbcode and smiley support in snippet comments
custom edit, delete, like, dislike, approve, etc.. logos/buttons by psdgraphics.com
and much more!
INSTALL INSTRUCTIONS:
---------------------
1. Upload the contents of /files to your site's root
2. Go to Admin Panel - System Admin - Infusions and infuse "Code Snippets Panel"
--If you want a link in your navigation to the user's area--
3. Go to Admin Panel - System Admin - Site Links and add a link to "infusions/code_snippets_panel/code_snippets.php"
--If you want the administration notification panel--
4. Go to Admin Panel - System Admin - Panels and add a panel with the following options:
Panel Name: Code Snippets
Panel Filename: code_snippets_panel
Panel Side: Right (or left... whichever you prefer)
Panel Access: Administrator
NOTE: It doesn't have to be set to Administrator because of the panel code limits it to people that have specific permission, but it helps to be a bit paranoid about that stuff.
5. All done! You can now go to the infusion's admin area and start adding categories and snippets!
v1.02 to v1.03 UPDATE INFO:
---------------------------
NO NEW DATABASE TABLES
NO DATABASE TABLE CHANGES
If you've defused/deleted the addon previously, follow INSTALL INSTRUCTIONS above.
UPDATE INSTRUCTIONS:
DO NOT DEFUSE THE ADDON IF YOU HAVE SNIPPETS IN YOUR DATABASE
1. Upload the contents of /files to your site's root
2. replace ALL files
3. DONE
HOW-TO:
-------
After you infuse this addon, you'll need to add categories that your users can submit snippets for.
Once the categories are in place, your users can submit snippets, or you can add snippets through the admin panel.
New submissions will show up in your notification panel (if enabled) and on the admin page at the bottom.
You can edit the submission for later use, or you can edit it as you're approving it.
NOTE:
-----
The delete operations for all aspects do not have confirmation pages but there are warnings as to what each delete will do.
UNINSTALL INSTRUCTIONS:
-----------------------
1. Remove the site link (if applicable) from Admin Panel - System Admin - Site Links
2. Remove the admin notification panel (if applicable) from Admin Panel - System Admin - Panels
3. Defuse the infusion from Admin Panel - System Admin - Infusions
SUPPORT
--------
admin@skpacman.com
http://www.skpacman.com
Special Thanks:
---------------
Lenoox and KasteR for helping with testing
Fangree_Craig and Mittens Returns for helping me with the bbcodes problem
NetriX for fixing a security flaw
Homdax for helping with the v1.02 bug report
Last Full-System Test Performed: April 14th, 2012 (NetriX)
CHANGELOG
---------
v1.01 - First Public Release
v1.02 - Fixed problem creating category
v1.03 - Security Fix by NetriX -- see code for details
Submit page disabled if no categories in database
Fixed code display width problem
[size=20]v1.03 DOWNLOAD[/size]