If a user doesn't select a catagory, this will bring an error, and prompt the user to press the back button, and select a catagory.
1. open the drkslinks_addnewlink template in your admin control panel, and replace everything with the attatched files.
2. Open links.php in the forum root, and find:
PHP Code:
// #################### Do Add New ####################
if ($HTTP_POST_VARS['action']=="doaddnew") {
add under it:
PHP Code:
if ($catid == '0'){
echo "You did not pick a catagory, please hit your browser back button, and choose a catagory from the drop down<br>";
}else{
3. still in links.php file, find:
PHP Code:
}
// #################### Search Links ####################
if ($action=="search") {
and replace with:
PHP Code:
}
}
// #################### Search Links ####################
if ($action=="search") {
That should do it, now test out by adding a new link, via the website, not the admin*
Enjoy, and good luck
-Arunan