1
richardb96
Formulaire = NoPerm ... can you help?
  • 2008/5/15 17:33

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


HI,

I have installed Formulaire 3.33 form module & it works great but I can't access the form user side it comes up with a NOPERM message. I have set the permissions to all groups... both in Groups & in the module. It does allow me to use & see the form when I'm logged in a Webmaster.

Any ideas?

Richard

XOOPS Version: 2.0.18.1
Module Name/Version: Content 0.5
PHP Version: 5.2.5
MySQL Version: 5.0.5.1
Web Server Software (Apache/IIS/Other):
Operating System: Vista
Theme you are using: Custom
Custom template: (Yes/No) No
PHP Debug Messages:
MySQL Debug Messages:
Smarty Debug Messages:

Modules:
Newbbex 1.4
News 1.56
Sitemap 1.30
Smartsection 2.13
Formulaire 3.33
SmartFAQ 1.08
MultiMenu 1.74
Backpack 0.81

2
blueteen
Re: Formulaire = NoPerm ... can you help?
  • 2008/5/15 17:54

  • blueteen

  • Quite a regular

  • Posts: 379

  • Since: 2004/7/16


Hello,
https://xoops.org/modules/newbb/viewtopic.php?post_id=283434#forumpost283434

3
richardb96
Re: Formulaire = NoPerm ... can you help?
  • 2008/5/15 18:21

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


would you know if I would be able to put the contact form into a page from smartsection?

https://xoops.org/modules/newbb/viewtopic.php?topic_id=64082&forum=27

4
richardb96
Re: Formulaire = NoPerm ... can you help?
  • 2008/5/15 18:36

  • richardb96

  • Just popping in

  • Posts: 78

  • Since: 2008/4/29


followed the link & removed

//check if the curent user has the right to see the form

$groups = is_object( $xoopsUser ) ? $xoopsUser -> getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler = &xoops_gethandler( 'groupperm' );

$module_handler =& xoops_gethandler('module');
$formulaireModule =& $module_handler->getByDirname('formulaire');

if ( $gperm_handler -> checkRight( 'Droits des categories', $id, $groups, $formulaireModule->getVar('mid') ) ) {}
else
{ redirect_header(XOOPS_URL,1,"NOPERM");
}

//

works great now. Thanks

Login

Who's Online

238 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

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

Latest GitHub Commits