Need to add 1 more extra field to the submit page - step2

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2007, 08:07 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
I'd like to add an extra question to the submit page (step 2). I do not want to use any of the extra fields, rather re-use an existing field. Basically I want to leave the program compatible for future upgrades and minimize using additional fields.

My site is a editorial style site, so I do not use the URL field ($submit_url)...

I'd like to add a question to the submit page (step2), such that the user will answer the question by selecting YES/NO from a dropdown. If the user selects YES, then i will display an image (eg. Image1.jpg) in the story, if the user selects NO, I will display a different image in the story (eg. Image2.jpg). Sounds simple, right?

I tried using the URL field ($submit_url) in submit-step2 in the morning and was unsuccessful. Since I do not know how to create drop-downs, I tried to display the URL field ($submit_url) as an editable input box in the submit-step2 page. When I did that it displayed 'http://' in the box by default; obviously this will confuse the user. The idea was to display a blank box, where the user would input YES or NO (Even better, pre-populate the box with YES). Then I would check the value of this field, in the link-summary page and if it was YES, then display Image1 and if NO, then display Image2. Ideally I would want a drop-down so the user could select YES or NO.

Can anyone offer guidance on how I could use the URL field ($submit_url) to accomplish my goal?

I know this task would be trivial for some here but is very hard for me, so any help would be appreciated....

Thx

Last edited by aaronpais; 05-15-2007 at 12:20 AM.
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 12:25 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
OK, after a lot of digging on the internet, found this. This code generates a drop-down list with 2 selectable options (YES and NO) ->

<SELECT NAME="url" id="url">
<OPTION VALUE="up.png">Yes</option>
<OPTION VALUE="down.png">No</option>
</SELECT>

This drop-down box displays on submit-step2, and is supposed to assign the 'value' to the url variable, but I am still unable to pass this to the $submit_url variable. I am not using submit-step1. I have disabled it in the admin panel. How can I assign the option to the url?

Please help..

Thx
Reply With Quote
  #3 (permalink)  
Old 05-15-2007, 02:02 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 168
Ok, I gave up. It seems too complicated to inject into the URL variable into Submit-step-2. I will try integrating it into submit-step-1. Will create a new thread and request help....

Thx

Last edited by aaronpais; 05-15-2007 at 07:49 PM.
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 03:37 PM
New Pligger
 
Join Date: Jun 2006
Posts: 3
I have enacted the extra fields, but I want to make one of them a drop down for states (Two letter abbreviation) and one for country. Any idea on how and in what file I would do that?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Variables Yankidank Wiki Articles 3 05-19-2011 09:21 AM
Displaying specific 'extra fields' based on category selected on Submit page aaronpais Questions and Comments 0 05-16-2007 04:41 PM
Adding more fields to the submit page, without using any extra fields aaronpais Questions and Comments 0 05-15-2007 08:46 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development