Hi Think Edit users!
Philippe has asked for me to send the mailing list some of my work on
Think Edit. As the title suggests this is for a contact form and to make
your links valid XHTML - meaning hopefully you can run your site through
the W3c validator and get a nice logo to place on your site and perhaps
make you look a bit pro ;-)
Firstly the contact form... Attached is a zip file with the page
template,config and plugin folders. It works via the simple Form2Mail
script written by George A. & Calin S. from Web4Future.com and has been
modified by myself with some extra protection and streamlining - firstly
a 4 digit security number must be entered and then the script checks for
any empty fields from the form. This is simple and I have found over the
years these minor changed to be very effective in protecting your inbox.
When an email is sent the user is forwarded instantly back to the same
contact page template using a node ID. I use the standard 'refresh'
variable (it saves editing thinkedit.init) set to '2' and this tells the
contact form to display a thankyou message instead. If you use the cache
a link can clear it allowing a user to resend an email. This is perhaps
a little bit clunky - it certainly works, but i'm sure it can be done
more neatly.
Lastly, to make your links valid XHTML open the file 'url.class' and on
line 345 change the '&' symbol to the character code '&' so the line
reads: "$url .='&';". This file is also included in the zip.
This is all just playing and i'm sure some of my techniques are a little
slap-dash, but my all means use the code as you wish and I hope it helps.
Maybe another time I can show gallery pages with a lightbox
(
http://www.forum-design.co.uk/thinkedit/index.php?node_id=2). This
script is still work in progress and only requires the user to select
the folder containing the images using a modified file browser. The
script then creates a directory called 'thumbs' and generates them to a
specified size. I wish to polish this up before distributing any work,
so you may hear from me again! Other work includes using more AJAX in
the structure editor while also making everything XHTML valid which may
be of use to some...and a shop system using a Paypal shopping cart. It
works using individual product pages and section pages...give me time =)
Regards, Hinch
_______________________________________________
Thinkedit.org, a simple yet powerfull CMS
Thinkedit-user mailing list
Thinkedit-user@...
https://lists.berlios.de/mailman/listinfo/thinkedit-user