Webmastersite.net
Register Log In

Submit no links at category permission
does not work when Editing a link

Comments on Submit no links at category permission

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Feb 27, 2005 - 5:35 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 01, 2005 - 7:59 PM:

In edit.php replace
   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);
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Mar 01, 2005 - 9:29 PM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 03, 2005 - 11:02 AM:

A real solution would be too complicated to post, but it should be in the next patch to 3.14 that I upload soonish.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.