I'm building a directory were I have some few main categories and various subcategories under each main cat.
I do want submissions only at subcategories, so for each main category at the Category usergroup permissions I have selected not to allow links submission for members usergroup.
This is working perfectly at submitting a link,
but when the user wants to edit his link it does not work, and it allows the user to select any category to post at.
Can you please give me an idea on how to solve this difficulty please.
else if ($nummatching == 1) { // only one match so go direct to edit for if (!$template) $template = new template("edit.tpl"); if (strstr($template->text, '{THIS')) $nomember = false; $row = $db->row($linkinfo); $thislink = new onelink('row', $row);
with
else if ($nummatching == 1) { // only one match so go direct to edit for if (!$template) $template = new template("edit.tpl"); if (strstr($template->text, '{THIS')) $nomember = false; $row = $db->row($linkinfo); $thislink = new onelink('row', $row); $selector = addcategoryselector($thislink->catid, 'link'); $template->replace($categorypref .'SELECTOR}', $selector);
Now at Editing, Categories selector is working perfectly, Alias selector is still allowing to select all categories. In order to not allow to select main categories I have replaced the {ALIASOPTIONS} with the {CATSELECTOR} variable, but I'm wondering if this is a correct way to solved this issue. I'll be await for your comments.
Comments on Submit no links at category permission
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Hello Paul,
I'm building a directory were I have some few main categories and various subcategories under each main cat.
I do want submissions only at subcategories, so for each main category at the Category usergroup permissions I have selected not to allow links submission for members usergroup.
This is working perfectly at submitting a link,
but when the user wants to edit his link it does not work,
and it allows the user to select any category to post at.
Can you please give me an idea on how to solve this difficulty please.
Thank you again.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In edit.php replace with
Forum Regular
Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile
Total Topics: 172
Total Comments: 462
Thank you very much,
Now at Editing,
Categories selector is working perfectly,
Alias selector is still allowing to select all categories. In order to not allow to select main categories I have replaced the {ALIASOPTIONS} with the {CATSELECTOR} variable, but I'm wondering if this is a correct way to solved this issue. I'll be await for your comments.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
A real solution would be too complicated to post, but it should be in the next patch to 3.14 that I upload soonish.