Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 06-01-2008 04:27:00

barbe
Members
Registered: 08-09-2007
Posts: 21

Need idea on where to look for the problem please

Hi there,

Several months ago, I took your mail program and expanded it into a staff application form by adding more fields and checkboxes.  I did not alter anything to do with the capcha and such.  The form worked beautifully with not a hitch.

Now, my client wanted to alter some of those fields and expand the application. So, I followed the same procedure that I previously did (kept my notes on what files I altered etc). 

Now the form wont work.  You can fill in the form/application and click send and the page just refreshes. Some of the fields remain filled in and others are blank again.  You have given the error message of: Please correct the errors in red:  However, there are no red error messages showing.  I did not alter anything in the sitestyle file and I made sure that the fields are accounted for anywhere in the code in files pertaining to error. 

Also, and this was a problem from before, but a minor one ... with the capcha ... it's a 5 character capcha, but sometimes (3 out of 5 times) the 5th character is white, and thus you can't see it.  Again, I never, from day one, altered ANYTHING concerning the capcha code.

I even used WinMerge to compare/contrast the original mail form script (untouched) and other than those codes that pertain to the fields themselves, nothing else is altered (send function, capcha, etc).

Once I have the form working, I'll need to put it behind a SSL certificate for obvious reasons when you view the form.

<a href="http://www.heavensangelsreadings.com/application/index.php" target="_blank" rel="nofollow">http://www.heavensangelsreadings.com/application/i  ndex.php</a>

If you can provide any suggestions, I would be more than appreciative. I have been looking at these files for the last 2 days and can't figure out why the form won't work now, when it worked perfectly fine before.  I went through with a fine tooth comb making sure all apostrophes and semi colons and all are intact. 

I'm half bald now and that doesn't look great on a gal *wink*

BTW: I did v3.1

Barbara

Offline

#2 06-01-2008 10:28:02

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

Hi Barbara,

Firstly, the captcha is working correctly. Because its randomly selecting a colour for each character, its possible that white is one of those colours. At the moment I don`t have a refresh option for Maian Mail for the captcha, but I will add one next time.

You can try opening the 'classes/php-captcha.inc.php' file and finding line 154:

&#036;iLineColour = imagecolorallocate(&#036;this->oImage, rand(100, 250), rand(100, 250), rand(100, 250));

Reduce the 250 to something smaller. The RGB for white is 255,255,255. So, reducing the 250 will reduce the amount of white used.

As for the form, well unfortunately I can`t be of much help because I can`t see what you have done with the code, so I have no idea where its failing. If you want to send a small donation I`ll take a look for you.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 07-01-2008 18:58:15

barbe
Members
Registered: 08-09-2007
Posts: 21

Re: Need idea on where to look for the problem please

David,

Am just doing a quick "drive-by" the forum as I'm swamped with stuffs ...

Will adjust the white as you suggested ... didn't even think of that. doh!

Donation ... how small is "small" ?  *wink*  hehehe

Will check back with you in another day or so.  And, thanks for your help and great scripts!

Barb

Offline

#4 07-01-2008 19:13:08

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

Thanks Barb. The donation is up to you. I don`t set an amount. Any donation is appreciated.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 07-01-2008 19:22:06

barbe
Members
Registered: 08-09-2007
Posts: 21

Re: Need idea on where to look for the problem please

Just really quick .. I went into that above file and changed the color set from

&#036;iLineColour = imagecolorallocate(&#036;this->oImage, rand(100, 250), rand(100, 250), rand(100, 250));

to ...

&#036;iLineColour = imagecolorallocate(&#036;this->oImage, rand(100, 150), rand(100, 150), rand(100, 150));
} else {
               &#036;iRandColour = rand(100, 150);
               &#036;iLineColour = imagecolorallocate(&#036;this->oImage, &#036;iRandColour, &#036;iRandColour, &#036;iRandColour);

And I still get a white 5th character in the captcha ... have to refresh form 3-5 times to get it to show.  I also tried 200, 225, 175, etc ... I'm not used to working with RGB ... so I'm not sure what I'm doing with the above code. *grins*  I do have a web page up showing all the RGB codes for colors. I think a gremlin is in my files. *chuckles*

Offline

#6 07-01-2008 20:10:00

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

Barb,

Check out this other thread for Maian Mail:
http://www.maianscriptworld.co.uk/forum/index.php? action=vthread&forum=5&topic=498

Look at Alexanders last message. He also wanted to change the colour. You could also adjust some of the settings in the captcha class. ie, you could create a blank jpeg and then specify that as the background.

You can also look for this code on line 298:

imagecolorallocate(&#036;this->oImage, 255, 255, 255);

That sets white as the background color. You can change these values. Only problem is you might still get a character generated with the same bg colour.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#7 08-01-2008 02:37:47

barbe
Members
Registered: 08-09-2007
Posts: 21

Re: Need idea on where to look for the problem please

Thanks for point me to that thread.

I guess what I'm confused about is that if RGB is made up of 3 numbers (ie, 250 250 250) ... then why is there only two listed per group (ie (100, 250)) ?  I guess I'm not sure how to read the code in the script.

Offline

#8 08-01-2008 02:58:32

barbe
Members
Registered: 08-09-2007
Posts: 21

Re: Need idea on where to look for the problem please

Ok, based on the other thread, I think I got my captcha problem taken care of.  I refresh over 20 times and didn't have any "invisible" characters, especially that 5th one.  Whereas before, it happened by the 5th refresh. *fingers and toes crossed*

Just to clarify, this captcha is NOT case sensitive?  It seems to work both ways, but wanted to double check.

As soon as my client pays me, I'll send you a donation so you can help with my major problem! *grins*

Thanks for your patience in helping.
Barb

Offline

#9 08-01-2008 08:13:46

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

Thanks Barb, thats very kind of you. Glad you got it sorted.

The rand() function generates a randon number between the given arguments. So if I did rand(1,9), this would generate a single number between 1 & 9. So, rand(100, 150) is generating a single random number between 100 & 150.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#10 23-01-2008 18:25:32

barbe
Members
Registered: 08-09-2007
Posts: 21

Re: Need idea on where to look for the problem please

David,

Today, I sent you a donation and an email via the contact form.  Let me know what you need in order to see why my form quit working (see first post).

Thanks in advance!

Barb

Offline

#11 24-01-2008 08:46:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

Thanks Barb, will look at this today.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#12 13-09-2008 06:45:06

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,072

Re: Need idea on where to look for the problem please

I will update the captcha when I get some spare time.

David.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy