231
Chainsaw
Bug in Formulaire module code? PHP guru help!
  • 2004/1/14 1:59

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Hi there.

I've installed Formulaire which is a multiple form module (allows you to create many submit forms which can be delivered to email address, XOOPS PM or XOOPS Group PM).

There is a bug in the module which prevents the use of New Zealand email address. eg myname@mydomain.co.nz

I've tried creating a form to send to nzchainsaw @ hotmail . com and that worked. But if I type in (for example) myname@mydomain.co.nz it says this is an incorrect email address!

I've checked the codes at admin/formindex.php and found this portion which could be the cause of our problem

function addform()
{
    global 
$xoopsDB$HTTP_POST_VARS$myts$eh;
    
$title $myts->makeTboxData4Save($HTTP_POST_VARS["desc_form"]);
    
$admin $myts->makeTboxData4Save($HTTP_POST_VARS["admin"]);
    
$groupe $myts->makeTboxData4Save($HTTP_POST_VARS["groupe"]);
    
$email $myts->makeTboxData4Save($HTTP_POST_VARS["email"]);
    
$expe $myts->makeTboxData4Save($HTTP_POST_VARS["expe"]);
    if (empty(
$title)) {
        
redirect_header("formindex.php"2_MD_ERRORTITLE);
    }
    if((!empty(
$email)) && (!eregi("^[a-z0-9.-_]+@[a-z0-9]{2,}[.][a-z]{2,3}$",$email))){
        
redirect_header("formindex.php"2_MD_ERROREMAIL);
    }
    if (empty(
$email) && empty($admin) && $groupe=="0" && empty($expe)) {
        
redirect_header("formindex.php"2_MD_ERRORMAIL);
    }


Can someone tell me what is this code suppose to do?

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

As far as I can decipher it is along the line of

if not empty $email and ......

How can I change it to accept a @domain.co.nz address?



232
Chainsaw
Re: Multiple Submission Forms?
  • 2004/1/14 0:50

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Whoops never mind. I managed to track down Formulaire at http://www.xoops-themes.com. A wee confusing to use (due to it being in French and all) but I think I got it sussed.

Thanks Chain for your help.

No problem Chain. :)



233
Chainsaw
Re: Trouble on this Site
  • 2004/1/13 22:47

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Same problem with Search (basic). I had to go to advance search to bypass the permission problem.



234
Chainsaw
Multiple Submission Forms?
  • 2004/1/13 22:44

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Hi there. Did a search but could not find a good result.

What I need is to make multiple contact forms for my site.

eg a form to submit a Prayer Request, another register for an Event etc. Each form will go to different email address.

Does anyone know of a module for this?

Cheers



235
Chainsaw
Re: How to make pages for each News Topic?
  • 2004/1/11 4:17

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Does anyone has an answer to this?



236
Chainsaw
Re: CoolMenu (javascript) won't work with WFSection
  • 2003/12/26 4:22

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


You know what? This sux! Maybe its the eggnog or the bottle of champange I had for xmas dinner. Anyway - it didn't work yesterday. I deleted all the files.

Today I decided, 'Oh heck, let's try again and see if I can find out why its not working...'

And yes, you guessed it, the darn thing is working. AFAIK I did exactly the same thing yesterday....

Arrgggghhhh... so there is no problem anymore. YAY! I've enabled the theme selection on my site (for now). Its called AlbanyCCTest.



237
Chainsaw
CoolMenu (javascript) won't work with WFSection
  • 2003/12/25 4:12

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Can someone please help me with this?

I found this DHTML horizontal dropdown menu which is absolutely breathtaking. (see http://simplythebest.net/info/dhtmscript52.html ). I want to use it for my website at http://202.89.43.124/www.albanycc.org.nz/xoops2/. The one I am using currently pales compared to the coolmenu script.

I've installed the scripts to the theme.html file and it works (YAY!!!!).

However....

When I click on the pages that are created from WFSection, the DHTML menu is not there. I've subsequently removed the menu from the site while I try to figure out why it won't work.

So in summary - Coolmenu.js works on the theme's index.html but not on WFSections pages.

Any idea why? It would be brilliant if I can get it to work.

Ta - and a merry christmas to all of you.



238
Chainsaw
Re: one more that is it, i promise
  • 2003/12/23 21:55

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28




Spam sliced thinly, then panfried till crispy, between toasts, cucumber and tomatoes... YUMMMY!!!!!!



239
Chainsaw
Re: I get spam from XOOP now? Good God....
  • 2003/12/23 21:30

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Good grief!!! A bit of Christmas cheers and tolerance won't break your hard disk space. With a wee bit of intelligence you'll know all subsequent emails with the same title are replies and can be deleted.

Harden up will ya?

Oh btw - it was a nice surprise getting the Xmas greetings from the XOOPS team. I really appreciate it. A Merry Christmas to you all.



240
Chainsaw
Re: MRBS Prob - SOLUTION
  • 2003/12/19 1:40

  • Chainsaw

  • Quite a regular

  • Posts: 304

  • Since: 2003/9/28


Sorry my bad..

Yes I meant I cannot add an Area (or a room for that matter). I have been running MRBS (non-Xoops module) without any problem for over a year now on the same server. So I do know how MRBS works and how to add Area, Rooms, meetings etc. Our office has been using MRBS to book rooms for quite a while now. When I discovered XOOPS it was to my pleasant surprise that I can run MRBS as a module.

Anyway I can install the MRBS module without any error message.

When I run MRBS I get the following PHP debug message at the bottom of page

Notice [PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexdbhost in file modules/mrbs/config.inc line 23
Notice 
[PHP]: Undefined variablePHP_SELF in file modules/mrbs/trailer.inc line 68
Notice 
[PHP]: Undefined variableQUERY_STRING in file modules/mrbs/trailer.inc line 68


When I go to MRBS admin I get the following PHP debug message
Notice [PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexdbhost in file modules/mrbs/config.inc line 23
Notice 
[PHP]: Undefined variableHTTP_ACCEPT_LANGUAGE in file modules/mrbs/admin.php line 130
Notice 
[PHP]: Undefined variablePHP_SELF in file modules/mrbs/trailer.inc line 68
Notice 
[PHP]: Undefined variableQUERY_STRING in file modules/mrbs/trailer.inc line 68


When I add an Area I get the following PHP debug message
Notice [PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexdbhost in file modules/mrbs/config.inc line 23
Notice 
[PHP]: Undefined variableHTTP_ACCEPT_LANGUAGE in file modules/mrbs/admin.php line 130
Notice 
[PHP]: Undefined variablePHP_SELF in file modules/mrbs/trailer.inc line 68
Notice 
[PHP]: Undefined variableQUERY_STRING in file modules/mrbs/trailer.inc line 68


No Area is created despite doing it correctly. Global_Register is on. And like I said, I can run MRBS (non-Xoops) without any problem on the same web server (vanilla Mandrake 9.1/Apache).




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



Login

Who's Online

54 user(s) are online (28 user(s) are browsing Support Forums)


Members: 0


Guests: 54


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