Support > cpg1.6 permissions

Permissions for anycontent.php

<< < (2/2)

ron4mac:

--- Quote from: Fity on July 20, 2018, 07:17:04 am ---Now that I can have different front page welcome messages based on the user groups using the anycontent.php file, I would like to display different content also.

--- End quote ---

You would need a plugin to accomplish that.

Core files could be modified to do that but doing so is definitely not recommended.

Fity:
Thanks.  I might tackle a plug in one day.

Αndré:
I'd solve it this way. Disable the random images meta album in the config and add this to anycontent.php:

--- Code: ---if (USER_ID) {
    display_thumbnails('random', 0, 1, 4, 1, false);
}
--- End code ---
(maybe you need to adjust the numbers to your needs or use values from the $CONFIG array).

Fity:
Thanks André, I will give that a try.  In the meantime i have written a menu that changes with the user group. Works ok.

Navigation

[0] Message Index

[*] Previous page

Go to full version