You can use the "Extra fields" that comes with Pligg.
First, you have to enable extrafields from the admin panel:
In admin panel, click on "Configure yoursite"
click on ExtraFields
Change the value "false" to true
Code:
Enable extra fields
description: Enable or disable extra fields when submittng stories.
value: true
default value: false
expected values: true / false
Open /libs/extra_fields.php and change the code as follows
Let's say you want a field for "Quotes" and another for the author
Code:
define('Enable_Extra_Field_1', true);
define('Field_1_Title', 'Quote');
define('Field_1_Instructions', '');
define('Field_1_Searchable', false);
//the variables below are not yet used in version 6.02.
define('Field_1_Required', false);
define('Field_1_Validation_Method', '');
define('Field_1_Validation_Error_Message', '');
define('Enable_Extra_Field_2', true);
define('Field_2_Title', 'Author');
define('Field_2_Instructions', 'Enter the quote\'s author name');
define('Field_2_Searchable', false);
//the variables below are not yet used in version 6.02.
define('Field_2_Required', false);
define('Field_2_Validation_Method', '');
define('Field_2_Validation_Error_Message', ''); If you want to change where the extra fields display on the page, just do the following:
open /templates/yourtemplate/submit_step_2.tpl
move the below code to wherever you want the extra fields to display.
Code:
{checkActionsTpl location="submit_step_2_pre_extrafields"}
{include file=$tpl_extra_fields.".tpl"}<br /> If you want to change the where they appear in the story display, open /templates/yourtemplate/link_summary.tpl and change whatever in the block of code of the extra fields.