Module Same Author

More
12 years 9 months ago #32475 by igcorreia
Replied by igcorreia on topic Module Same Author
@filters that would be nice. I didn't you could IN TIME make the filters awesome :D Know I am exited. Wow, if you publish them until tomorrow I think I still can make them appear in this site. If not only in the next one :D

@Well I want to show items of the LOGGED IN user. think this is a feature request. Scope by logged in user.

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

More
12 years 9 months ago #32476 by ggppdk
Replied by ggppdk on topic Module Same Author
Code:
if ($behaviour_auth == 1) { $where .= ' AND i.created_by = ' . (int)$curitem->created_by; } else { $where .= ' AND i.created_by <> ' . (int)$curitem->created_by; }
Code:
if ($behaviour_auth == 1) { $where .= ' AND i.created_by = ' . (int)$curitem->created_by; } else ($behaviour_auth == 2) { $where .= ' AND i.created_by <> ' . (int)$curitem->created_by; } else { // $behaviour_auth == 3 $where .= ' AND i.created_by = ' . (int)$user->id; }

and find parameter behavour_auth in XML file and and one more value with value 3 and LABEL : Current Logged User


-- 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 9 months ago #32477 by igcorreia
Replied by igcorreia on topic Module Same Author
Great man. Make sure you add this as a feature. Now we can have MY ITEMS in view and in MODULES :D

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

More
12 years 9 months ago #32478 by ggppdk
Replied by ggppdk on topic Module Same Author
Just make this patch i will commit it with value "3" as i said in my previous post and LABEL

"Current Logged User (My items)"


-- 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 9 months ago #32479 by igcorreia
Replied by igcorreia on topic Module Same Author
you have a small bug there in the second else, should be else if I think.

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

More
12 years 9 months ago #32481 by igcorreia
Replied by igcorreia on topic Module Same Author
Please test it, because it not working for me. But I understand your code and should work. Will explore it more.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.542 seconds
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
Save