221
Chainsaw
Re: Formulaire - problem with permission for Anonymous users
  • 2004/1/17 1:36

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Quote:

Stewdio wrote:
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.


Thanks for that tip.



222
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.



223
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.




224
Chainsaw
Re: change email address on contact us form.
  • 2004/1/16 6:38

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Correct me if I am wrong but I think the email address in the Contact Us form automatically insert the email address from the user's login account.

I am using Formulaire to create multiple forms. With Formulaire you can specify the email field to default with the user's account's email address or leave it empty.

Formulaire can be found at https://xoops.org/modules/mydownloads/visit.php?cid=24&lid=515



225
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.



226
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) at http://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 ... hp?title=Prayer%20Request

Thanks.



227
Chainsaw
Re: Bug in Formulaire module code? PHP guru help!
  • 2004/1/14 3:12

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Quote:

philroy wrote:
Carefully remove the code...but I wouldn't.....we're all human and sometimes make mistakes on data entry. It's harmless, so I'd leave it.

Doing a search of google for "validating email php" brings up some sites that might help you if you feel the validation isn't working, such as...
http://www.zend.com/tips/tips.php?id=8&single=1

Phil



Ahhh thanks for that URL. I checked it out but it looks like the other one ie 2 suffix check after the @

Some countries uses 3 suffixes eg .com.au (australia), .co.uk (for UK) and .co.nz (for New Zealand).



228
Chainsaw
Re: Bug in Formulaire module code? PHP guru help!
  • 2004/1/14 3:05

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


K mind you I'm not a PHP programmer but I know rule number one (keep a backup of original in case of FUBAR).

I change the code from
if((!empty($email)) && (!eregi("^[a-z0-9.-_]+@[a-z0-9]{2,}[.][a-z]{2,3}$",$email))){


to

if((!empty($email)) && (!eregi("^[a-z0-9.-_]+@[a-z0-9]{2,}[.][a-z]{2,3}[.][a-z]{2,3}$",$email))){


And that seem to work with a .co.nz address. Can anyone see any problem with what I've done?



229
Chainsaw
Re: Bug in Formulaire module code? PHP guru help!
  • 2004/1/14 2:44

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


That make sense.

Assuming that only the administrators can create a form (and therefore more likely to enter a correct email address), how do I disable this check?



230
Chainsaw
Re: Bug in Formulaire module code? PHP guru help!
  • 2004/1/14 2:34

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


OK I think I can see the problem (correct me if I am wrong).

The above code only covers an email address with two suffix after the @

ie me@aaa.bbb

If I enter an address with three suffixes it won't work?

ie me@aaa.bbb.ccc




TopTop
« 1 ... 20 21 22 (23) 24 25 26 »



Login

Who's Online

60 user(s) are online (33 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

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

Latest GitHub Commits