Hide user list in File field

More
12 years 4 months ago #20858 by ma57er
Replied by ma57er on topic Hide user list in File field
I made it a little different way. I think you wrong with file - filemanager.php. I make changes (that works for me) in fileselements.php

I change :
Code:
if (FLEXI_ACCESS) {

With:
Code:
if ($user->usertype == "Super Administrator" || $user->usertype == "Administrator")

And:
Code:
$CanViewAllFiles = 1;

With:
Code:
$CanViewAllFiles = 0;

Now normal users can see other Uploaders (on filter Uploader), but can't see their files.

I know you now want to POST core hacks and if you want, delete my post.

Thanks again! Everyday i respect you more and more!

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

More
12 years 4 months ago #20880 by micker
Replied by micker on topic Hide user list in File field
thanks for return

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 4 months ago #20885 by ggppdk
Replied by ggppdk on topic Hide user list in File field
Sorry, my original post was wrong, the new code should be after the if-else,

So restore original code (also better put it inside comments /*...*/) like this:
Code:
/*if (FLEXI_ACCESS) {[/b] $CanViewAllFiles = ...; } else { $CanViewAllFiles = 1; }*/

After the above code put the new code:
Code:
$user =& JFactory::getUser(); $CanViewAllFiles = ($user->usertype == "Super Administrator") || ($user->usertype == "Administrator);


-- 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 4 months ago #20895 by ma57er
Replied by ma57er on topic Hide user list in File field
Thanks, ggppdk! I'll try this method too.

I'll post now one more problem who i have :oops:

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.557 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