View Full Version : Contact page?
Hi,
First off, thanks for the great script.
I'm wondering how hard it would be to add a contact page, a basic form so site visitors may contact the webmaster. I've seen a few of the sites have a contact link with a mailto: link to their email address, but I think a form would be better.
The form would only need 3 fields - Name, Email, and Comment/Question. I'm thinking it would be similar to the submit.php and submit.tpl, but I'm not really sure.
Would this be easy to do, or not?
Thanks
:)
Ap0s7le
09-13-2005, 05:54 AM
Hello ing,
This shouldn't be to difficult.
I sent you a PM.
Kind Regards
-Casey
ginger
09-16-2005, 03:06 AM
Hi,
I have the same request.
How can I add a contact forum to my directory?
Thanks.
Ap0s7le
09-16-2005, 06:08 AM
Hi Ginger,
I sent you a PM.
If anyone else is interested, feel free to PM me directly.
Thank you for your time.
-Casey
senaia
09-16-2005, 06:13 AM
Content visible to registered users only.
Can you please pm me also. Thanks :)
Romario
09-17-2005, 12:01 AM
And me, please.
Nobody
09-17-2005, 10:06 AM
Why don't you just reveal it all in the public area? :lol:
WebDesignPoint
09-17-2005, 12:46 PM
I've done this on my directory. Maybe this info should be added to the wiki?
vkaryl
09-17-2005, 06:44 PM
Sounds like a good idea, webdesignpoint. Be good if you handled that, since you're the one with an operative form....
Thanks. Great site, too!
WebDesignPoint
09-17-2005, 11:26 PM
I'll need to register on the wiki first. If the admin is ok with it, I'll put it up tomorrow or the next day.
David
09-17-2005, 11:47 PM
Sure, go for it! :)
WebDesignPoint
09-18-2005, 03:49 PM
It's a nightmare trying to add this to the wiki, so I'm going to post it here instead.
Create a file called 'contact.php' with the code below and place it in the root PLD folder.
contact.php
Content visible to registered users only.
Create a file called 'contact.tpl' with the code below and place it in the templates folder.
contact.tpl
Content visible to registered users only.
Add a link to your contact.php file in your header.tpl or footer.tpl or where ever you want to link to it.
Note: You need to change this line in contact.php:
Content visible to registered users only.
Replace the email address with your own and the name with your name.
I'll post some other details about what other changes can be made shortly.
David
09-18-2005, 06:17 PM
Yes, the wiki is not what I had hoped it would be, mainly because we still have not figured out how to add code and images. As time allows I'll try to work toward an alternative solution.
Thanks for posting the code.
hosted
09-22-2005, 04:08 PM
Just added this contact form, and thought that I would share the changes I made to header.tpl
It is pretty simple, and it puts the contact link to the R/H side just above the Search button
Just go into the standard header.tpl file and change the Last line only to :
Original line
Content visible to registered users only.
New line
Content visible to registered users only.
* just make sure it is all on 1 line in your file
John D
02-14-2006, 12:56 PM
This doesn't seem to work for me..
Here is my contact.php
Content visible to registered users only.
contact.tpl
Content visible to registered users only.
I can't see any problems..anyone see whats wrong?
clubracer
02-21-2006, 09:19 AM
Installed the contact files on an v2.0 and it was working fine.
On a v3.2 installation the contact page is showing up but no emails are send...
Kevuk2k
02-21-2006, 01:06 PM
Content visible to registered users only.
No disrespect to others but I have already said to people that for a small donation to this forum and you can have a copy of mine. :wink:
Neticus
02-21-2006, 02:33 PM
@clubracer
If it helps you troubleshoot, I have 'contact us' working in v3.02 have not touched the files since v2, seems to work fine.
For now...
-
clubracer
02-21-2006, 04:51 PM
Content visible to registered users only.
Can you send me your (working) contact files (php & tpl) without your personal (email) information?
Thnx in forward.
Neticus
02-21-2006, 05:19 PM
Here is the child of elusive temperment, hope it works for ya:
contact.php
Content visible to registered users only.
contact.tpl
Content visible to registered users only.
-
David
02-21-2006, 06:07 PM
Keep in mind this is also going to be in the next release of the 3.0 branch.
igotdreams
02-24-2006, 05:39 PM
This was not implemented in 3.0.2 yet;
I used this mod and it works fine.
If anyone is using skyblue template then your going to need this;
contact.tpl
Content visible to registered users only.
Please note that I have some variations;
- form field titles are aligned to the right
- I am using graphics for to denote validation
- I put a note that reads (* denotes a required field)
- I have an extra column because I moved the validation
- I adjust the column widths
I know I changed a few things, but I thought you would have an easier time removing my changes then trying to add bluesky template theme to this page.
KoverPL
03-12-2006, 01:36 PM
i use skin blue template and this do not work for me, i have so in top_bar.tpl:
Content visible to registered users only.
something wrong ?
http://seodir.net <-
smugwimp
03-19-2006, 04:10 PM
First and foremost Thanks to David for a fine script, and the useful additions from WebDesignPoint on the Contact page.
I too, had issues getting it to work. I am running phpld v2.x, a Windows 2K Server Machine with IIS and hmailserver. I don't think that's a problem, though.
Without all the hoopla of all the files and searching and research I did to fix my problem, my fix was this:
In addition to altering the destination address as per WebDesignPoint's instructions, you must ALSO alter the METHOD of sending! Select the same method as set in your admin section:
System > Edit Settings > Emailer settings. And change the following line of contact.php (on or around line 29) to match:
Content visible to registered users only.
by default it says "mail". I don't use that method, and it took a bit to figure out why I would get site submissions, but the contact would error.
That is why.
I hope this fixes some folks problems, or keeps others from having them.
Cheers
Smug
antonio
04-25-2006, 10:15 AM
the contact page doesn't work with the 3.0.4 version :cry:
spyrit
05-02-2006, 02:32 PM
hy there, nice mod...it's working ok, one thing thoughm that i think it might have sliped you:
-instead of
Content visible to registered users only.
put
Content visible to registered users only.
changing THE WHOLE ADDRESS with the address of the place where your contact.php file is.
Unless you do this, the contact page will only be accesible from the main page!!
Optimit
05-02-2006, 02:36 PM
LOL, Would someone mind posting the code for whatever version is working in 3.04?
Also, whoever developed it, let me know, and I will donate something for it.
css59
05-02-2006, 05:47 PM
I would like to get this for 3.04 as well please
spyrit
05-02-2006, 05:59 PM
Oh btw, insead of a hardcoded link you can also use:
Content visible to registered users only.
droolingmnky
05-02-2006, 06:02 PM
I happen to have the code for a working 3.04 version it's at home and I'm at work so it'll be a few hours until I can post it.
droolingmnky
05-02-2006, 08:42 PM
okay break in work
Contact form for 3.04
contact.php
Content visible to registered users only.
contact.tpl
Content visible to registered users only.
Optimit
05-02-2006, 08:51 PM
Ahh cool thanks! Who do we credit for this? Did you make it?
droolingmnky
05-02-2006, 09:51 PM
Nah it was a few quick changes that David annouced with the release of 3.04 to remove the 6th parameter in SmartyValidate because of the smary upgrade with this version.
Content visible to registered users only.
Finally someone that reads the release notes :)
Yes, for phpLD 3.0.4 we have updated all libs and the SmartyValidate plugin changed a bit. This is why one of the parameters needs to be kicked away :lol:
We are planning to release also a phpLD 2.0 version with all the libs updated to have some security issues fixed.
Boby
shutzu
05-03-2006, 11:08 PM
how can I center this form in the contact page?
droolingmnky
05-04-2006, 04:52 AM
find:
<table width="50%" border="0" cellspacing="" cellpadding="" align="center">
replace with:
<table width="50%" border="0" cellspacing="" cellpadding="" style="margin-left: auto;margin-right: auto;">
ewwharhar
05-14-2006, 05:51 AM
Um ya, I thought it worked, but after one week, heh.. I tested it out, it doesn't work. the submission process works, but I never got the email I try to sent.. why?
Optimit
05-14-2006, 06:37 AM
Did you set the email address in the contact.php file?
ewwharhar
05-14-2006, 06:58 PM
Ya, I set it.
Optimit
05-14-2006, 07:08 PM
try setting the mailer to sendmail. So, it would look like this.
Content visible to registered users only.
agnivo007
05-19-2006, 06:57 AM
Anybody got it working on 3.05 ???
I am also interested in a contact page for 3.05.
anyone looking for a contact us page, nees to follow this link:
http://www.phplinkdirectory.com/forum/showthread.php?t=1611
head on over to VSDan's site, sign up for a membership, and then *Thank Him* for the tremendous amount of work and effort he has brought to phpld and especially for keeping all of his MODs *updated*
Thanks Dan,
Rob
agnivo007
05-21-2006, 06:08 AM
To all looking for 3.05 compatible page, do the following :
1. Use the code as listed here : http://www.phplinkdirectory.com/forum/showpost.php?p=18390&postcount=31
2. Copy /templates/Core/messages.tpl to /templates/your template/admin/ (create /admin/ )
doesnt work on my template :) :(
discover
05-29-2006, 12:53 AM
i get a blank page when i hit contact
UPDATE
works now
just make sure you check you have entered all you email contact details and it should work
ezimedia
06-07-2006, 10:20 AM
HI
Same I also get a blank page when I cleck on the contact us link, I have tried all formats of this contact us code and nothing works.
Im going to get my coder to look into it and will report back,
Tom
jaffa
06-11-2006, 09:00 AM
Here is a update for version 3.05
Create a file called 'contact.php' with the code below and place it in the root PLD folder.
Content visible to registered users only.
Create a file called 'contact.tpl' with the code below and place it in your templates/your template/ folder.
Content visible to registered users only.
Open file /templates/Core/messages.tpl and copy to /templates/your template/admin/ (create folder admin )
Change this line in contact.php
Content visible to registered users only.
Make a link to contact.php and place it in top_bar.tpl
example of link:
Content visible to registered users only.
arindra
06-19-2006, 01:40 AM
worked nicely , thanks :)
Brandon Sheley
06-21-2006, 05:03 AM
Content visible to registered users only.
thank you, works great :)
weaddyou.com
07-10-2006, 11:21 PM
edit: my error has been fixed thank you for your help!
chenxinhe
07-11-2006, 06:18 PM
Thanks ,I have got this work normally on Version 3.05
blindguardian
08-06-2006, 02:59 AM
Does anyone have the updated version for 3.06?
SyncMaster
09-25-2006, 12:42 AM
The updated code by jaffa for v3.0.5 works fine with v3.0.6 (TESTED)
nicnel
09-25-2006, 02:49 PM
Hi -
Could this contact form be modified so that rather than contacting the webmaster, they contact the person whose listing it is (OWNER_EMAIL)?
Thanks.
njoker555
10-10-2006, 02:54 AM
its not working for me, im using the peppermint skin, how would i put it on this skin? {url no longer in service} look there at the template
the codes by jaffa are working on 3.06.
Anyone knows how to add the captcha into the form like the submit form?
slayer
11-27-2006, 04:44 PM
i get the following error:
Content visible to registered users only.[/B]
stake
12-20-2006, 02:00 PM
Need for v. 3.1.0
shadav
12-25-2006, 03:22 AM
thanks for this mod...it works great on v. 2 :)
vignesh_natraj
01-06-2007, 10:48 AM
Content visible to registered users only.
i also keep getting this error in version 2..1 please help me
bbardot
01-22-2007, 12:59 PM
Many thanks, 3.05 worked for my 3.1 version.
torter
01-25-2007, 10:12 PM
i get this error for v 2.1 i need help?
Content visible to registered users only.
Dondor
01-27-2007, 09:11 PM
Content visible to registered users only.
I have this error in my 3.1 version:
Content visible to registered users only.
shadav
01-28-2007, 03:41 PM
I could be mistaken but i believe Dondor that means that either
1. your messages.tpl permissions need changed so that it's readable
or
2. that the file is missing and you need to replace it
mortgages
02-06-2007, 04:05 AM
Content visible to registered users only.
here comes a silly question...
I have set this up as instructed and all seems to work fine for V3.1, the pages are created perfectly, however I never received the test email I sent to myself...
here is the silly question.... :(
To get this to work do i need to choose one of the 3 options in my admin control panel, if so which one?
PHP mail function
SMTP server
send mail command
and do i have to fill in the fields for the SMTP server to get it to work?
thanks in adv..
James.
shadav
02-06-2007, 05:32 PM
in the contact.php did you change this line?
Content visible to registered users only.
you need to put your info there
and yes you need to chose one on versions 2.x i believe php mail function is the default...
mortgages
02-07-2007, 01:31 AM
Hi, thanks for the reply. Yes I had put my details in.
I have got it working by rewriting both pages and splicing another php code (from a different script) into the page :) It's working just great at the moment however I am about to try the 'official way' again in a bit as I have been too busy locking myself out of the admin control panel :)
note to everyone: when in the control panel, if you have "require registered users" set in the submit link area, do not set the minimum password length longer than the one YOU are registered with. :(
heh,
James.
off to redo the contact page, brb....
<add>
works fine, I even ftp'd up the .php & .tpl I had used previously. Don't ask what I have done, because I don't know although it is currently set to "sendmail command" .Just going to see if I can tweak it a bit. Thanks again for replying.
</added>
Darren Hester
03-26-2007, 12:59 AM
Thanks a lot for posting this mod. Just what I needed. You saved me a bunch of time ;-)
Feydakin
04-15-2007, 12:11 AM
Dredging this one up again -
Content visible to registered users only.
On a clean install of 3.1.0.. For the record, not a fan of smarty.. But that's ok..
James
04-15-2007, 05:00 AM
I suggest saving yourself the hassle and headache of this and join Vsdan's mod site for 10.00 and get a nice updated working out of the box contact mod as well as many other ones.
http://www.monster-submit.com/fmain.shtml?http://www.monster-submit.com/phpld/
VSDan
04-15-2007, 05:27 AM
Mine, would make a many of these people happier =) Are you using this in contact.php:
Content visible to registered users only.
=> **TWO** 'false's followed by a 'trim' (otherwise, arguments not matching correctly)
(was 3 in older versions of phpLD)
[/SIZE]
shadav
04-15-2007, 01:53 PM
hehehe yes oh the joys of that extra false....something so simple...and so easily over looked...but yet can cause all sorts of problems
Feydakin
04-15-2007, 02:42 PM
Yeah, I probably should pay to join vsDan's site.. But after funding the bulk of the regional directory development, probably a couple hundred dollars, and then continuing to dump money in to the standard LD in donations, purchases and support, it get's old sending more and more money for basic services..
Oh well, I was the one that told Dave that he should be charging for this stuff so I'm not complaigning.. Well, not much anyway.. :D
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.