ACL levels shown at the frontend

More
12 years 3 weeks ago #43891 by gkhn
Hi there,

I would like to show the acl levels of each item to logged in super users.
Code:
#flexicontent .fc_markup.mu_obtained_acclvl.mu_has_text

At the moment, everyone can see each items permission which isnt really what i want :)

Is it possible to show the acl level to only super users? thank you

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

More
12 years 3 weeks ago #43892 by gkhn
wow 100 posts btw

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

More
12 years 3 weeks ago #43895 by ggppdk
Hello

This is not the intended usage of the ITEM list markups that show the needed/obtained ACL levels, there is no such option nor it is planned,

but can you explain the scenario / case in which such a thing may be needed ?


-- 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 review. Thanks!

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

More
12 years 3 weeks ago #43908 by gkhn

ggppdk wrote: Hello

This is not the intended usage of the ITEM list markups that show the needed/obtained ACL levels, there is no such option nor it is planned,

but can you explain the scenario / case in which such a thing may be needed ?

Hi there,

Thank you for the reply.

I am using virtual domains extension on jed.

Each virtual domain has access levels for (view)

So I need to assign where I want the particular item must be seen otherwise search engines will get mixed up and everything will be all over the place.

So lets say i have x.com i assing acl level from public to x.com

This "x.com" is now shown on the items (green thing)

This is the case that I need it to be hidden. I can just simply hide it display:none or should I override the .itemhml5.php?

Thank you.

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

More
12 years 3 weeks ago #43927 by ggppdk
Hello

how do you relate ACCESS level with the virtual domains ?

i mean an item has the same ACCESS level regardless of the virtual domain


-- 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 review. Thanks!

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

More
12 years 3 weeks ago #43931 by gkhn

ggppdk wrote: Hello

how do you relate ACCESS level with the virtual domains ?

I mean an item has the same ACCESS level regardless of the virtual domain

I think i should have said view access only.

Lets say I have an item on x.com

I linked a menu to this item so I have a link now @ x.com/mylink

If i dont place view access level on this menu, the link "/mylink" can be accessed from the virtual domains by visiting y.com/mylink for example.

if i dont place access level on the item itself, y.com/com_flexisadkaljd;lakdjkditem=2 will be available for everyone to see

In order to prevent this, I am assigning view levels for items and menu items.

When I place a view access level, even if you visit y.com/mylink you will see 404 page error.

To trick search engines that they are really different websites :)

Unless I am doing wrong this is what I get from that component.

Thank you

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

More
12 years 3 weeks ago #43970 by ggppdk
Hello

the links no meant to appear for a virtual domain should not appear, instead you want to give out 404 server errors (=not found) ?

plus an inaccessible item (due to access level will give 403 error (=not accessible) and error 404,

finally you assign view access level to menu items of different menus appearing according to the current domain,
this is not relevant to the component, maybe you can do something by adding custom code inside a custom template, but FLEXIcontent is not displaying Access level of menu items



and i don't think that your approach is correct,

maybe this is possible and will do the trick:
Create a new multiselect field and call it domain, with values:

domain1.com::domain1.com %% domain2.com::domain2.com %% domain3.com::domain3.com %% domain4.com::domain4.com


you will set this for every item , to select the domains in which the item will appear

then near the top of your Joomla template add:
if ID of your field is 51
Code:
$domain = $_SERVER['HTTP_HOST']; $domain = str_ireplace('www.', '', $domain); JRequest::setVar('filter_51', $domain);

The above may work and filter your category views, but i have not tested it

Anyway i have no other suggestions

Regards


-- 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 review. Thanks!

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

More
12 years 3 weeks ago #43991 by gkhn

ggppdk wrote: Hello

the links no meant to appear for a virtual domain should not appear, instead you want to give out 404 server errors (=not found) ?

plus an inaccessible item (due to access level will give 403 error (=not accessible) and error 404,

finally you assign view access level to menu items of different menus appearing according to the current domain,
this is not relevant to the component, maybe you can do something by adding custom code inside a custom template, but FLEXIcontent is not displaying Access level of menu items



and i don't think that your approach is correct,

maybe this is possible and will do the trick:
Create a new multiselect field and call it domain, with values:

domain1.com::domain1.com %% domain2.com::domain2.com %% domain3.com::domain3.com %% domain4.com::domain4.com


you will set this for every item , to select the domains in which the item will appear

then near the top of your Joomla template add:
if ID of your field is 51

Code:
$domain = $_SERVER['HTTP_HOST']; $domain = str_ireplace('www.', '', $domain); JRequest::setVar('filter_51', $domain);

The above may work and filter your category views, but i have not tested it

Anyway i have no other suggestions

Regards

Thanks for the reply.
Yes I am trying to redirect the user to 404 page.

If I create a menu on x.com/mynicelink (view access level is x.com)
The user should not be able to access it via the virtual domain by going to y.com/mynicelink

Thats the whole idea. And when they visit y.com/mynicelink they are redirected to 404 page(just tested it now).

Plus I set a smart internal search engine. If I dont set view access levels of each item/category/menu, the user will be able to search the whole site (domain1 domain2 etc)

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

More
12 years 3 weeks ago #43992 by ggppdk
OK

but how will the visiting user have different view access level?

users of different domains, will belong to different users groups thus they will be assigned different Access Level ?

e.g.
- he must login ?
- does the component that you mentioned do this ? (=give users different view levels according to current domain)


-- 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 review. Thanks!

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

More
12 years 3 weeks ago #43997 by gkhn

ggppdk wrote: OK

but how will the visiting user have different view access level?

users of different domains, will belong to different users groups thus they will be assigned different Access Level ?

e.g.
- he must login ?
- does the component that you mentioned do this ? (=give users different view levels according to current domain)


Thats right.
The component creates a view access for each domain. If you want to leave it as public you can but the problem is as mentioned before, people can place the link /mylink and access the other sites' pages...

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

Moderators: vistamediajoomlacornerggppdk
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