Results 1 to 2 of 2
  1. #1
    New Pligger oomta's Avatar
    Joined
    May 2011
    Posts
    1

    Show the URL in the second step

    Hello everybody,

    I tried searching the forums but came up empty.

    I would like to remove the URL submission box from step 1, but have it available in step 2.

    I want the URL to be optional (Required is set to false in the admin).

    Any thoughts?

    Thanks in advance!

  2. #2
    Constant Pligger urbn's Avatar
    Joined
    Oct 2010
    Posts
    107
    Can't give you an exact example because my submit.php page is too modified.

    To get you started add a new form field on your step 2 page. Name it something like story_url

    Then in your submit.php page search for:
    $linkres->title_url = makeUrlFriendly($linkres->title);

    And under this add:

    $linkres->link_url = makeUrlFriendly(sanitize($_POST['story_url'], 3));


    What this is doing is including your story_url form field in the linkres collection with the title, content, category, etc.

    I am guessing you will need to modify $linkres->store(); to include the link_url in the table update but this should get you started on your way.

    O and I'm not sure if makeUrlFriendly and or sanitize will work with URL's, if you run into problems I would suggest removing them and once you get things working re-add them for security reasons.

Similar Threads

  1. Is there another way to show categories in submit step 2?
    By gjrb29 in forum Questions & Comments
    Replies: 1
    Last Post: 04-28-2009, 10:35 AM
  2. Install Pligg, step 2 doesn't show up
    By findfindfind in forum Questions & Comments
    Replies: 1
    Last Post: 12-06-2008, 03:29 AM
  3. Can show full history in step 3 ?
    By Links in forum Questions & Comments
    Replies: 6
    Last Post: 12-03-2008, 06:14 AM
  4. INstall Pligg, Step 2 doesn't show up.
    By nytestorm in forum Questions & Comments
    Replies: 2
    Last Post: 06-06-2008, 08:40 PM
  5. Replies: 0
    Last Post: 09-29-2007, 01:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting