21
Peekay
Re: Classified Ads Beta 2
  • 2006/9/16 15:38

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/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?
A thread is for life. Not just for Christmas.

22
arunskh
Re: Classified Ads Beta 2
  • 2007/7/23 8:25

  • arunskh

  • Just popping in

  • Posts: 1

  • Since: 2007/7/23


Free interactive online resources for advertising, classifieds, jobs, property, business, dating services, driving schools uk, Flats to rent London and finding local services.

23
davidl2
Re: Classified Ads Beta
  • 2007/7/23 9:03

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


spam?

24
jfmoore
Re: Classified Ads Beta
  • 2007/7/23 15:13

  • jfmoore

  • Quite a regular

  • Posts: 360

  • Since: 2004/6/6 5


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

Login

Who's Online

278 user(s) are online (197 user(s) are browsing Support Forums)


Members: 0


Guests: 278


more...

Donat-O-Meter

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

Latest GitHub Commits