View Full Version : Disable Cat Pulldown on Submit.php
KartKorner
06-10-2006, 09:09 PM
Has anyone by chance put together a directory script mod that allows for directory owners to disable the ability to select an appropriate category? Instead of having an options menu can one have an input readonly showing the category name and path as seen in the detail page? Ran a search for this but have not found a solution that is still active or written for phpLD version 3.0.5. Thanks all.
KartKorner
06-10-2006, 09:13 PM
I know how to capture the name of the current category but wasn't for sure if there was an existing solution to grab the path as well (i.e. Sports, Motorsports, Karting) Can get the Karting just not sure about the first part yet. Will continue some more trial and error but if one exist it would help :)
KartKorner
06-10-2006, 09:46 PM
I suppose I was a bit premature with my post. After checkin out detail.php it was actually fairly selfexplanatory. Can someone verify these few lines of code will not conflict with anything else within submit.php because it appears to work but better safe then sorry :)
Submit.php
Find:
Content visible to registered users only.
Just Below Add:
Content visible to registered users only.
Submit.tpl
Find:
Content visible to registered users only.
Replace With:
Content visible to registered users only.
Does that look good to you smarty gurus out there?!? Thanks!
mystikmedia
06-10-2006, 10:05 PM
I hate it when sites disable the drop down. It seriously slows submission time. Doesn't matter much in this case since I don't have any karting related sites, but in case someone else sees this, I wanted to be sure and make my opinion heard. :)
KartKorner
06-11-2006, 03:07 AM
I can understand that because it serves to be a real pain for free listings. However for those that have thousands upon thousands of cats or offer just a paid directory then it may be beneficial to those folks. Found one bug in the above code. Please apply the change to the following if you plan on using this option:
Find Above:
Content visible to registered users only.
Replace With:
Content visible to registered users only.
Maybe this mod can help you ;)
http://www.phplinkdirectory.com/forum/showthread.php?t=4049
If you don't want the category selection you can remove it and leave just the category title in place.
Boby
KartKorner
06-12-2006, 11:20 PM
Boby,
Thanks for the link. I actually read through this directory mod prior to trying to work one out for myself. I needed to be able to restrict directory submissions from categories outside of the final cat. My db really isn't that big in comparison to most so it wasn't a bandwidth issue but rather a I don't want anyone to change the cat from the submit page because I am only going to allow for submissions within the deepest child subcategory. It is a really cool mod though....have seen a few directories with it already installed and thought that was way cool! Last piece I need to start work on is my redirect page if submission passes and it is not a paypal submission :)
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.