Here's how to prevent user choosing ROOT as category during submission

Discussion in 'Yellow Pages Script / Local Directory Script' started by boracayblue, Sep 12, 2017.

  1. boracayblue

    boracayblue New Member

    You may have found that some users add venues using ROOT as the category for their venue to be listed under.

    It is the default setting, so they can easily do this.

    It's annoying, because admin then has to manually choose an appropriate category and edit the listing for them.

    Here's how to stop users submitting to ROOT.

    Edit:- packages/yellowpages/category.php


    $categoryId || $categoryId = -1;

    and change it to

    $categoryId || $categoryId = 1;

    Hope you find this useful.
    maildawg likes this.

Share This Page