Archived showing to REGISTERS

More
12 years 7 months ago #25447 by igcorreia
haaaaaaa DAMMMMMMMMMMM :D

how can I "HIDE" them items then?

I think I am going to recreate the CATEGORIES structure and set permission with FACCESS. That is the only way I see.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25448 by igcorreia
In witch table is FC storing the CATEGORY and CATEGORIES, I need to change them. Can you help me with the query.

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25451 by ggppdk
well, if you really want to hack category model, then inside component/com_flexicontent/models/category.php

you could change lines (function _buildItemWhere() )
Code:
$states = $ignoreState ? '1, -5, 0, -3, -4' : '1, -5'; $where .= ' AND ( i.state IN ('.$states.') OR i.created_by = '.$user->id.' OR ( i.modified_by = '.$user->id.' AND i.modified_by != 0 ) )';

to
Code:
$states = $ignoreState ? '1, -5, 0, -3, -4' : '1, -5'; $where .= ' AND ( i.state IN ('.$states.') ';


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25463 by igcorreia
I have consider your suggestion but since i have the query done I decided to move the items to a special only category and changed the item permission to special only.

while doing this i notice something i flexiaccess.

i have 100 items in a public category then i move all the items to a special only category with flexi access should a register or a public user have access to this 100 items with the direct url to the items? since they are public the public users have access but shouldn't they respect the category permissions?

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #25466 by igcorreia
OMG to make this work I had to:

1 - set the menu item to my own items view so the users cannot see each other contracts
2 - after the contract is finish I had to moved them to an special only category, change the state to 3 so admins only and archive them.
3 - change the code with your help so users cannot see after archived their own items.

this was the only possible way to do it.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.688 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline