Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
selected categories journalist - only show allowed category

 
Reply to topic    Forum Index » Help View previous topic
View next topic
selected categories journalist - only show allowed category
Author Message
fg



Joined: 25 Dec 2005
Posts: 14

Post selected categories journalist - only show allowed category Reply with quote
ok this should be a hard one Razz



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 View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Re: selected categories journalist - only show allowed categ Reply with quote
fg wrote:
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:

Code:
return 'disabled';




change it to this:

Code:
return 'style="display:none"';




and find this:

Code:
if ($category = category_get_tree('&nbsp;', '<label for="cat{id}">




and change it to this:

Code:
if ($category = category_get_tree('&nbsp;', '<label [php]multicats({id})[/php] for="cat{id}">






Quote:
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 View user's profile Send private message
nos



Joined: 19 Mar 2006
Posts: 11

Post restricted categories show up in Category list (search/calen Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
So who's the genius that redesigned cutenews? Was it that guy you mentioned before FI-DD?

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Fri Jun 09, 2006 12:57 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
scottdallas wrote:
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. Smile
Fri Jun 09, 2006 1:19 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Fri Jun 09, 2006 4:42 pm View user's profile Send private message Visit poster's website AIM Address
ky0t1c



Joined: 20 Jun 2006
Posts: 21

Post Re: restricted categories show up in Category list (search/c Reply with quote
nos wrote:
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 View user's profile Send private message
ky0t1c



Joined: 20 Jun 2006
Posts: 21

Post Reply with quote
nos wrote:
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Sun Oct 29, 2006 8:16 pm View user's profile Send private message Visit poster's website AIM Address
sudip



Joined: 02 Jun 2008
Posts: 30

Post Reply with quote
I was searching this option since long time... and finally i got it.. and it worked like a charm..... Very Happy Very Happy
Thank you very much FI-DD.. You Rock..
Fri Jul 18, 2008 12:01 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.