Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Code Snippets

Asked Modified Viewed 4,630 times
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
asked
Member

www.php-fusion.co.uk/infusions/addondb/img/addon_logo.png

Code Snippets Panel v1.03

Copyright © 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]
Edited by skpacman on 14-04-2012 20:49,
0 replies

12 posts

S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

There is an update that fixes a problem with creating categories on some systems.

If you're having trouble creating categories, please download the v1.02 update from my home site.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Sounds great!
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Addon has been removed from Database on skpacmans request.
0 replies
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

Thank you Homdax.

The reason I requested it to be removed is there is a serious security flaw that I have confirmed in the category listing view of the user side.

I will no longer support v1.02 and have issued this warning:

Quote

Code Snippets v1.02 has been confirmed with a security flaw classified as CRITICAL. If you've previously downloaded it, use at your own risk.
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

@skpacman Thanks for informing us about this ..Are you planning on releasing a updated version later in the future,i really liked that infusion..;)
0 replies
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

Yes. I'm going to release a bug fix here soon once I'm done checking it.

It will be v1.03

I'm also working on the plans for the next major release v1.10

If there's anything you would like to see in v1.10, let me know.
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Panel that displays latest snippets??
That would be pretty cool.
Thanks for your help,looking forward to the release.
0 replies
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

That's a good idea.

I'll add a "Latest Snippets" and "Top Snippets" panel option as well.

:D
0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Awesome bro,good work and thanks again...
0 replies
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

v1.03 will be released later today.

v1.10 will be released in a few weeks, once I get some of the specifics planned out.
0 replies
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

v1.03 is released. It's now on my site's download section.

I have submitted it to the addon DB here, and it will be reviewed soon.
0 replies
— 1 month later —
S
skpacman
S
My PHP-Fusion site: https://skpacman.live
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

v1.10 is released. See the thread HERE.

@Mods: Please close this thread
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet