1
MrCoffee
Re: how can i set the permissions for a custom html page ?
  • 2008/5/2 17:12

  • MrCoffee

  • Just popping in

  • Posts: 4

  • Since: 2007/5/17


Found this today and it works great :)
<?php 
include '../mainfile.php'
include 
XOOPS_ROOT_PATH.'/header.php'

$in_group is_object($xoopsUser) && in_array(2$xoopsUser->getGroups());

//display group-specific information
if ($in_group) {
echo 
"Membership ONLY info Here";
}else {
echo 
"Regular user ONLY infor Here";
}

include(
XOOPS_ROOT_PATH."/footer.php");  
?>



2
MrCoffee
Re: how can i set the permissions for a custom html page ?
  • 2008/5/2 13:50

  • MrCoffee

  • Just popping in

  • Posts: 4

  • Since: 2007/5/17


wow, thank you for the reply, I will test both and see what will be the best for what I need.



3
MrCoffee
Re: how can i set the permissions for a custom html page ?
  • 2008/5/2 1:27

  • MrCoffee

  • Just popping in

  • Posts: 4

  • Since: 2007/5/17


cool that wat I was looking for :)

if I whant to set it for a other groups like ( Dealers group )
can I set it up somewhere ? or I have to put a code in the page ?



4
MrCoffee
how can i set the permissions for a custom html page ?
  • 2008/5/2 0:49

  • MrCoffee

  • Just popping in

  • Posts: 4

  • Since: 2007/5/17


how can i set the permissions for a custom html page, I am using the fallowing to add a html page to my site.

<?php
include("path/to/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
My html content
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

I would like set permission on that page so only the registered users will see it.




TopTop



Login

Who's Online

55 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 55


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits