NP_SubmitSystem.php

Let your users submit content

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin
  3. Add an link to “http://your/site/nucleus/plugins/submitsystem/submit.php?blogid=<%blogsetting(id)%>”, in your skin

How to use the plugin

At the link you added user can submit content for your blog, this content can be moderated through the admin. (You only can add content if you are on the blog team or if you are an administrator). Through the plugin options you can setup a skin, which will act as the “plugin” part of the default skin of that blog, the file upload, you can restrict upload to 0-5 files, only fileextenstions you like, limit the size and a prefix for the file (if you include a directory here you have to make sure it exists as a subdirectory of your media dir and is chmodded to 777), finally you can set a time limit between submits for one user.

Options

  • skin: a skin for the form, acts as “plugin” part of the default skin for that blog, must contain ”<%SubmitSystemMain%>”.
  • waittime: Number of seconds an user has to wait before he/she can submit again (0 = unlimited)
  • fileupload: Turn on and off file uploading
  • filesize: Max file size most hosts have 2 MB = 2097152 B as limit
  • filecount: Max number of files (can't be bigger than 5)
  • filetypes: Allowed filetypes (extensions seperated by |, “*” for anything)
  • fileprefix: Used as prefix for uploaded files
  • moderatemode: On team, administrators and blog team members can moderate, on team admin, only blog or global administrators can moderate, and on admin, only global administrators can moderate.
  • log: Turns on or off the logging of times allowed/denied per IP
  • excludeblogs: Enter the shortnames of the blogs to be excluded of the submitform, seperated by |.
  • extrafields: Enter the names of extra fields (no spaces or specialcharacters) followed by ['Description to be displayed'], if you want to add more than one field you have to seperate them by |. Example: “extra1['Some extra field']|extra2['anotherfield']”
  • captcha: Turn on or off captcha check (GD2 needed)
  • emailnotification: Send an email to the admin email (set in global settings), on a new submission
  • previewmode: Turn on or off the preview before add when allowing mode

Tips and Tricks

Intergration with the default skin

The skin option of the plugin must contain:

<%parsedinclude(head.inc)%>

<!-- page header -->
<%parsedinclude(header.inc)%>

<!-- page content -->
<div id="container">
<div class="content">
<%SubmitSystemMain%>
</div>
</div>

<!-- page menu -->
<h2 class="hidden">Sidebar</h2>
<div id="sidebarcontainer">
<%parsedinclude(sidebar.inc)%>
</div>

<!-- page footer -->
<%parsedinclude(footer.inc)%>

Then add in the sidebar.inc above

<!-- admin link, only visible if logged in -->

this

<!-- Submit System -->
<%if(skintype,error)%>
<%else%>
<dd><a href="<%sitevar(url)%>nucleus/plugins/submitsystem/submit.php?blogid=<%blogsetting(id)%>" title="Submit content">Submit content</a></dd>
<%endif%>

Wishlist

Bugs

History

  • Version 2.0.2, 04/11/2006
    • ADD: Added extended content support in preview mode
  • Version 2.0.1, 04/11/2006
    • UPD: Updated date functions to use the blog's offset
  • Version 2.0.0, 07/03/2006
    • N/A: Release was introduced for Nucleus 4, but it wasn't updated and is now nothing more than 1.4.6…
  • Version 1.4.6, 07/03/2006
    • FIX: No double plugin object creations
    • FIX: Updated functions to use nucleus internal functions
  • Version 1.4.5, 08/02/2006
    • FIX: Support for htmlentities and other charsets
  • Version 1.4.4, 23/01/2006
    • ADD: Added javascript to kill the submit button after submitting
  • Version 1.4.3, 15/01/2006
    • ADD: Added javascript to generate a preview in the preview mode
  • Version 1.4.2, 14/01/2006
    • ADD: Added additional information to the show body page in the admin
  • Version 1.4.1, 14/01/2006
    • FIX: Fixed media url
    • ADD: Back link after submitting
    • UPD: Reordered admin area
  • Version 1.4.0, 14/01/2006
    • FIX: Check if someone is allowed to moderate fixed
    • ADD: previewmode
  • Version 1.3.2, 10/01/2006
    • FIX: Extra fields not shown, when not set
    • UPD: Body on other page
  • Version 1.3.1, 10/01/2006
    • ADD: Email notification
  • Version 1.3.0, 09/01/2006
    • ADD: Captcha check
  • Version 1.2.0, 09/01/2006
    • FIX: The URL's in the submit forms are set correctly, and all skinvars useable on the index skinpart are useable
    • FIX: In the admin the blog shortname and a link is showed instead of it's ID
    • ADD: Logging how many alloweds/denials per IP (on option)
    • ADD: Possibility to exclude blogs from submission
    • ADD: Possibility to add extra textfields
  • Version 1.1.0, 08/01/2006
    • FIX: Email is displayed correct in the admin
    • FIX: The form also works with file uploads deactivated
    • ADD: IP is logged
    • ADD: The moderation level can be set
  • Version 1.0.1, 07/01/2006
    • FIX: Deletes files if a post is denied
  • Version 1.0, 07/01/2006
    • Initial release
submitsystem.txt · Last modified: 2006/11/04 18:37 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki