1
Chainsaw
Formulaire - problem with permission for Anonymous users
  • 2004/1/16 6:22

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Greetings. I'm not sure if Formulaire is supported from this site so if I am wrong could someone please tell me where I can get help from? I've tried contacting Tuff at BrandyCoke.com but he said he is not the Formulaire developer. I have also posted this message at xoops-themes.org.

I've installed Formulaire (https://xoops.org/modules/mydownloads/visit.php?cid=24&lid=515) at my site (still under development) athttp://202.89.43.124/www.albanycc.org.nz/xoops2/

Formulaire works for registered users but will not for Anonymous users (no permission).

Could you provide me with help to enable Formulaire so that Anonymous can use it?

Click on the link below (as an anonymous user) to see the result. The link is for Prayer Network -> Prayer Request.
http://202.89.43.124/www.albanycc.org.nz/xoops2/modules/formulaire/index.php?title=Prayer%20Request

Thanks.

2
Chainsaw
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 6:25

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Oh btw - there isn't an option to set permission in System Admin->Groups

or

System Admin->Blocks

or

Formulaire -> Preference.

3
Anonymous
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 7:42

  • Anonymous

  • Posts: 0

  • Since:


Let me guess! On your server are register_globals = off?

Since code of mymenu is now part of the module this module is only working with register_globals = on or with a small cheat:

Open the files header.php and admin/admin_header.php of formulaire with an editor and paste in following code right after the line
include '../include/common.php';


Quote:
if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS);
}

if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS);
}

if (!empty($HTTP_SERVER_VARS)) {
extract($HTTP_SERVER_VARS);
}


BTW the permission for anonymous users have to be set in the menu-option of the module.

4
Chainsaw
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 8:09

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


I'm not sure of the server global setting (I'll have to ask my hosting company).

I tried your suggestion above and added the additional codes (in your quote) to the header.php and admin/admin_header.php file after the include line.

Then I log out and try to access the form anonymously without success. I then created another form, and making sure the permission is set from "Members Only" to "All Users". Then I log out and tried to load that form without success too.


5
Anonymous
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 9:48

  • Anonymous

  • Posts: 0

  • Since:


OK, next try! Perhaps this works!

Open formulaire/xoops_version.php with an editor change these lines

Quote:
// Menu -- content in main menu block
$modversion['hasMain'] = 0; //set this to 1


Then you can give anonymous module access. Then set administration/modules formulaire's position to 0.

Hope this works finally!

6
Stewdio
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 10:36

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I'm assuming your the Module creator, or know enough about it to answer my question, so I won't start a new thread.

I just installed and created some forms, so far it seems to work great with one exception. I tried to add a custom block to the forms pages but they don't show up for some reason. All the group permissions are set for the new block, it's set to visible in the center/center. So, where am I going wrong, I'm to much of an idiot to figure it out myself...

7
Stewdio
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 11:36

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I just tried adding

include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;

etc... etc... it still doesn't show the custom block. *slumps*

I did manage however to stop it from redirecting back to the comment form after it's been submitted and go to the main home page like I prefer.

8
Brad
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 14:38

  • Brad

  • Not too shy to talk

  • Posts: 150

  • Since: 2003/12/4


Quote:
Stewdio wrote:
I did manage however to stop it from redirecting back to the comment form after it's been submitted and go to the main home page like I prefer.

Could you let us know what change(s) you made to achieve this?

9
Chainsaw
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 21:01

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Quote:

francis wrote:
OK, next try! Perhaps this works!

Open formulaire/xoops_version.php with an editor change these lines

Quote:
// Menu -- content in main menu block
$modversion['hasMain'] = 0; //set this to 1


Then you can give anonymous module access. Then set administration/modules formulaire's position to 0.

Hope this works finally!


Arrghh wish it did work. Made the changes (ie set hasMain = 1, went to Admin, Groups, then loaded Anonymous group. But there isn't a tick box for Forms in Module Access Rights.

I even did a refresh just in case some setting was held in cache.

10
Stewdio
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/16 21:04

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Alter the last line in /modules/forumulaire/index.php from
redirect_header(XOOPS_URL."/modules/formulaire/index.php?title=$title", 0, $sent);

to
redirect_header(XOOPS_URL."", 0, $sent);

There might be a cleaner way of doing this, but I only know enough php to be dangerous, so I kept it simple.

I'm still looking for a way to include my custom blocks in this module if anyone has a clue.

Login

Who's Online

204 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

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

Latest GitHub Commits