Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

News,php - administration, right

Asked Modified Viewed 2,340 times
K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions
asked
Senior Member

Hello everyone!

We have already happened several times that the admin deleted the article from another news admin / author.

Question:
1/Je in PHPFusion opportunity to appear in the Administration Administration / news only čláínky news from a particular admin?

Sorry!

Project ban articles bother. I came to the conclusion, why would admin Mazal himself cells. This is nonsense.

Still, however, my question is valid, slightly altered, whether in PHPFusion is possible to be in news display "Edit" admins only in their articles. So they could not edit and change articles other admins.

Merged on Nov 13 2013 at 06:48:27:
No one responding??

Basically it comes down to the admin login appeared "Edit" button only own articles admins!
The reason? To admin can not edit other article admin and delete the article.

I suggest to includes / theme_functions_include.php to

function itemoptions($item_type, $item_id) {
   global $locale, $aidlink;  /*$user_id == $news_name, $user_id == $article_name*/$res = "";
   if ($item_type == "N") {
      if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> &middot; <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
   } elseif ($item_type == "A") {

   if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> &middot; <a href='".ADMIN."articles.php".$aidlink."&amp;action=edit&amp;article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
   }
   return $res;
}



expand the code a condition:

$user_id == $article_name, $user_id == $news_name



Question I do not know exactly how this condition insert.
Someone help me?
Thank you very much!
Edited by Kvido on 13-11-2013 11:22,
0 replies
There are no post found.

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

1 participant

K
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet