Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 - 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Classified Ads Beta
by jfmoore on 2007/7/23 15:13:00

Quote:

davidl2 wrote:
spam?


Doesn't look like he's using Xoops, and is his first post. Obviously spam.

Is Captcha enabled on XOOPS signups?
Re: Classified Ads Beta
by davidl2 on 2007/7/23 9:03:48

spam?
Re: Classified Ads Beta 2
by arunskh on 2007/7/23 8:25:47

Free interactive online resources for advertising, classifieds, jobs, property, business, dating services, driving schools uk, Flats to rent London and finding local services.
Re: Classified Ads Beta 2
by Peekay on 2006/9/16 15:38:20

Hi jlm69

I have been doing some modifications to 'addlisting.php' and 'modify.php' which you might be interested in. I cleared all the PHP undefined var notices and changed the Javascript to add some regex field validation.

For example, I made the 'Name' field a required field (users can enter their nicname if they prefer) but this now keeps the email form happy. The new script also validates the format of the email address, the number format in the price field and it checks for 255 characters or less in the description.

I left the telephone field optional, but it validates the number if the field is completed. I used the UK telephone format, so you might want to change the regex for that on your final download, or perhaps you could provide some commented-out options for different coutries?

Anyway, I was hoping to email you the files rather than paste here. If you want to PM me with an address.

Problems User Side:

class/nav.php
Need to change instances of:

_CLA_NEXT and _CLA_PREV

to:

_ADS_NEXT and _ADS_PREV


BTW. Is the form checked for malicious code somewhere as part of a XOOPS thing?
Re: Classified Ads Beta 2
by jlm69 on 2006/9/16 2:15:48

Peekay,

No, it was not you. It was me. My site is now under phpsuexec, and it was with register globals off, but I accidently deleted the php.ini files in that module so I guess they were not off. I have incorporated some of your fix and added the xoopsSecurity to that page, to prevent hitting the back button and sending it again, it seems to work good. I will update the download tomorrow.

Thanks for your contribution.

John

Who's Online

201 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

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

Latest GitHub Commits