Results 1 to 10 of 10
  1. #1
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28

    Arrow No Category Selected Issue

    Hi,
    I have the vers 1.1.4 and I don't know why but I have people that post without selection a category and it's working, the post become live.

    I want to know how to setup this so no one can post without selecting a categ or if there is a way that I can delete all the posts that they are already posted.

    Thanks.

  2. #2
    Member sukrut51's Avatar
    Joined
    Dec 2010
    Posts
    95
    though it's not possible to post without selecting a category there might be some problem with your installation....!

    have you recently changed your hosting service??? bcoz this kind of problems occur during host changing..! if not try reinstalling your site..!

  3. #3
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28
    No, the host is the same...I can't reinstall the site ..it has 500k Alexa and 10k links..what can I do?

    Thanks

  4. #4
    Pligg Founder Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,065
    Site
    http://pligg.com/demo/
    Yeah, I have no idea how that would happen. Pligg should be marking the stories as discarded if the user doesn't finish submitting the story (ex. if they don't fill in the required details). Perhaps you are publishing discarded stories from the Admin panel?
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  5. #5
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28
    Hi Yankidank,

    I am not publishing the discarded stories I delete them all the time.
    Is there a mysql command that I can use to delete all these posts that are without category?
    Thanks

  6. #6
    Constant Pligger urbn's Avatar
    Joined
    Oct 2010
    Posts
    107
    Why not use a javascript / JQuery form validation for your submission page? You should be doing this anyways to verify all information the users are submittingg is accurate, formatted, not empty, etc.

    I would also guess that the problem is that your drop down has a space as a value for the default option

    Example:
    <select name="category" id="category" style="width:250px;">
    <option value = " ">Choose a rage Category.</option>

    When it should be:
    <select name="category" id="category" style="width:250px;">
    <option value = "">Choose a rage Category.</option>

    Or some such other minor problem. The submission page specifically checks that the category form is greater then zero (0), but no check is made to see if the field is empty or is numeric (which is really should be doing).

    I can't give an exact answer as I threw away the existing submission process and completly re-write one that works with AJAX and recaptcha.

    But again, your best fix is using javascript / Jquery to do form validation. Quick 20 minute fix.

  7. #7
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28
    Hi urbn,
    Thanks man..but how to do that java fixing?
    Thanks

  8. #8
    Constant Pligger urbn's Avatar
    Joined
    Oct 2010
    Posts
    107
    This is about as simple as it gets. Full documentation on how it works as well as working code examples.

    Form Validation using jQuery

  9. #9
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28
    I got the solution ..read below

  10. #10
    New Pligger cristimarin's Avatar
    Joined
    May 2011
    Posts
    28
    Here it is how I made this and it works for me just fine.

    On phpMyAdmin select de table pligg_links.
    Than click on SQL and input this Query:

    UPDATE `X`.`pligg_links` SET `link_category` = 'Y' WHERE `pligg_links`.`link_category` = '1';

    X= Replace with your database name
    Y= Replace with the id of the category that you wan to move all the links that has No Category Selected
    1= Leave that as it is. It's a default value for link that has No Category Selected

    Make sure you make a backup before just in case.

    Cheers

Similar Threads

  1. No category selected error when submitting
    By gragland in forum Questions & Comments
    Replies: 3
    Last Post: 01-18-2011, 06:14 PM
  2. Category with 2 parents issue!
    By craftymethod in forum Questions & Comments
    Replies: 7
    Last Post: 10-22-2010, 07:26 PM
  3. Showing recent entries of selected category
    By balisto in forum Questions & Comments
    Replies: 0
    Last Post: 11-30-2009, 06:23 AM
  4. Replies: 0
    Last Post: 05-16-2007, 12:41 PM
  5. Category Issue
    By spartacus in forum Questions & Comments
    Replies: 0
    Last Post: 04-18-2007, 07:45 AM

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