| Author |
Message |
fg
Joined: 25 Dec 2005 Posts: 14
|
|
selected categories journalist - only show allowed category |
|
ok this should be a hard one
anyway, when a selected journalist who is only allowed to add news to limited categories goes on the news page he see's all the categories, but the ones he can't post to are grayed out. Any way to only show him the allowed catergories ?
and second, how resource intensive is this script ? is it optimized for high traffic ?
thanks
|
|
| Fri Mar 03, 2006 5:26 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
Re: selected categories journalist - only show allowed categ |
|
 |  | anyway, when a selected journalist who is only allowed to add news to limited categories goes on the news page he see's all the categories, but the ones he can't post to are grayed out. Any way to only show him the allowed catergories ? |
Open inc/plugins.inc.php and find this:
 |  | return 'disabled'; |
change it to this:
 |  | return 'style="display:none"'; |
and find this:
 |  | if ($category = category_get_tree(' ', '<label for="cat{id}"> |
and change it to this:
 |  | if ($category = category_get_tree(' ', '<label [php]multicats({id})[/php] for="cat{id}"> |
 |  | and second, how resource intensive is this script ? is it optimized for high traffic ? |
I can't tell you from experience because I don't have a high traffic page. But I can tell you that it is far superior to the original Cutenews. The database (MySQL and even txtSQL) is way faster, and the whole script is optimized to reduce the number of database queries. And of course there is the cache which saves database queries, too.
|
|
| Fri Mar 03, 2006 11:46 am |
|
 |
nos
Joined: 19 Mar 2006 Posts: 11
|
|
restricted categories show up in Category list (search/calen |
|
Hello,
that works fine. but the other problem is, in the Category list they show up again. I tryed a lot with that code in etc.php and show.inc but I didn't succeed. Could someone help?
the next is to exclude them from search and calendar for the members who do not have the right login rights. Then it would be perfect (for me) I think.
|
|
| Fri Mar 31, 2006 4:58 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
So who's the genius that redesigned cutenews? Was it that guy you mentioned before FI-DD?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Jun 09, 2006 12:57 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
 |  | So who's the genius that redesigned cutenews? Was it that guy you mentioned before FI-DD? |
Don't know why you chose this topic to ask a question about the other but yes, lexa created it. 
|
|
| Fri Jun 09, 2006 1:19 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
you're right i have no idea either... i will choose better in the future.. i was just thinking it after reading about all the speed optimization and got carried away.. cause that's impressive
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Jun 09, 2006 4:42 pm |
|
 |
ky0t1c
Joined: 20 Jun 2006 Posts: 21
|
|
Re: restricted categories show up in Category list (search/c |
|
 |  | Hello,
that works fine. but the other problem is, in the Category list they show up again. I tryed a lot with that code in etc.php and show.inc but I didn't succeed. Could someone help?
the next is to exclude them from search and calendar for the members who do not have the right login rights. Then it would be perfect (for me) I think. |
Has there been a fix for this yet?
|
|
| Sat Jun 24, 2006 7:04 pm |
|
 |
ky0t1c
Joined: 20 Jun 2006 Posts: 21
|
|
|
|
 |  | Hello,
that works fine. but the other problem is, in the Category list they show up again. I tryed a lot with that code in etc.php and show.inc but I didn't succeed. Could someone help?
the next is to exclude them from search and calendar for the members who do not have the right login rights. Then it would be perfect (for me) I think. |
Has there been a fix for this yet?
|
|
| Sat Jul 01, 2006 3:43 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Not possible because you only can restrict by user (which means you need to be logged in). As soon as you are logged out you will see everything in category view or search.
|
|
| Sat Jul 08, 2006 7:03 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
one thing I don't understand about this is.. it works and they no longer show up in the category list for 'writer' status.. but how can i set categories that only specific writers can see specific categories? right now im able to add to 0 categories. like how do i make it so i can be like
Category name: Products
Category for user: scodal
?
update: nevermind this.. i must have been out of my mind when i wrote this
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Sun Oct 29, 2006 8:16 pm |
|
 |
sudip
Joined: 02 Jun 2008 Posts: 30
|
|
|
|
I was searching this option since long time... and finally i got it.. and it worked like a charm.....
Thank you very much FI-DD.. You Rock..
|
|
| Fri Jul 18, 2008 12:01 pm |
|
 |
|