Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: Formulaire NOPERM for anon users
by ghia on 2009/10/20 0:19:36

Point is that the text should never been localised or translated. Its definition should stay in the code or in an include file, but not in an language file.
The upcoming v3.34 will also fail on multilangual XOOPS sites.
Re: Formulaire NOPERM for anon users
by pacho on 2009/10/19 23:43:54

This is what I did, and it works:

File: formulaire.php
Quote:
$res_perm = $xoopsDB->query("SELECT gperm_name FROM ".$xoopsDB->prefix("group_permission")." WHERE gperm_modid= ".$module_id." AND gperm_groupid=".$groupuser[0]." AND gperm_itemid=".$id );
if ( $res_perm ) {
while ( $row = $xoopsDB->fetchRow($res_perm)) {
$temp_perm = $row[0];
}
if ($temp_perm == $perm_name) {
// nothing here
} else {
redirect_header( XOOPS_URL . "/user.php", 1, _NOPERM );
exit();
}
}


I change value of $perm_name to my language customized value.
Re: Formulaire NOPERM for anon users
by pacho on 2009/10/19 22:45:24

Hi there,
Any advance about this issue?

I am having the opposite issue, I want a formulaire not to be available to anonymous users but there is no way to function.
I set permissions but they are ignored.
I have XOOPS 2.3.2 and formulaire 3.3

Regards,
Re: Formulaire NOPERM for anon users
by Anonymous on 2008/10/27 0:54:43

Thank you philou
Re: Formulaire NOPERM for anon users
by philou on 2008/10/26 19:26:44

Hi all,

sorry for these issues... I'm working on the new version of the module formulaire... and it correct bugs... I do my best to solve this perm problem is this new version.
Unfortunatly I have lost my internet connexion at home so please be patient... I think this new version will be available at the end of the month.

Who's Online

298 user(s) are online (210 user(s) are browsing Support Forums)


Members: 0


Guests: 298


more...

Donat-O-Meter

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

Latest GitHub Commits