Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2007, 09:17 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 227
Thanks: 56
Thanked 22 Times in 18 Posts
How can I add more extra fields (i've used all 15)

I've used up all of pligg's 15 extra fields and need to add more.
Is it safe for me to add additional extra fields to pligg?
And if so do the steps below cover everything i need to do?

db
Add new extra fields columns to links table

submit.php
- for each new extra field add additional $main_smarty->assign('submit_link_field15', $linkres->link_field15);

submit_step_3.tpl
- for each new extra field add additional $linkres->link_field11 = trim($_POST['link_field11']);

submit_extra_fields.tpl
- add html form element for each new extra field

link_summary.tpl
- add new extra fields
Reply With Quote
  #2 (permalink)  
Old 01-17-2007, 11:13 AM
Constant Pligger
 
Join Date: Oct 2006
Posts: 227
Thanks: 56
Thanked 22 Times in 18 Posts
... ... *bump* ... ...
Reply With Quote
  #3 (permalink)  
Old 03-22-2007, 05:52 AM
New Pligger
 
Join Date: Jan 2007
Location: Dubai
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hey, I just added a new extra field and it works for me.
Here is a complete list of files I had to edit.

Basically you just need to look at the code and copy&paste all lines which have extra_field15 or link_field15 and increment it.

# DB, table pligg_links
# /libs/extra_fields.php
# /libs/extra_fields_smarty.php
# /libs/link.php
# /submit.php
# /templates/YourTemplate/submit_step_3.tpl
# /templates/YourTemplate/submit_extra_fields.tpl
# /templates/YourTemplate/link_summary.tpl

Hope it helps.
Reply With Quote
  #4 (permalink)  
Old 03-22-2007, 06:16 PM
Constant Pligger
 
Join Date: Aug 2006
Posts: 104
Thanks: 17
Thanked 4 Times in 2 Posts
Nice this should be a sticky thanks
__________________
www.mediacrumb.com
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Modification Tutorials 3 10-18-2008 10:28 AM
Enable Extra fields johnvgross General Help 5 02-14-2008 10:45 PM
How to link Extra fields in Profile to pull information from user table in database pliggnewbie Modification Tutorials 0 04-12-2007 01:59 AM
search extra fields cruci General Help 1 11-02-2006 05:17 PM
what are extra fields? inggenia General Help 4 10-08-2006 12:51 PM


Search Engine Friendly URLs by vBSEO 3.2.0