Shoutbox

My site....... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: My site....... (/showthread.php?tid=28478)

My site....... by king_of_cool_kids on 07-11-2004 at 03:30 AM

I need some help with my site. The forums are perfect (nice job myBB team).

I have a site and want to add the following to it:

To the contact form:

* Send auto email after submitting to let user know email has been recieved (requires database??)

* Let a user submit only 5 times a day to reduce spam (database or cookies??)

* Only click submit once to reduce spam (php please, no silly javascript codes)

* Send it to both me and someone else (simple little code like:

mail( "email@email.com, email@email.com", "Runescape Fan Site Mail"??)

I prefer something stable and unpreventable, eg: not javascript, cause it can be turned off by spammer in the form etc, so php would be nice. I have a database if you need it for the code. Let me know what to do. Much thanks to anyone who can help.

k776

P.S: Also, if you need the files of mine, here they are:


RE: My site....... by king_of_cool_kids on 07-11-2004 at 03:35 AM

And the second file:


RE: My site....... by Eljay on 07-11-2004 at 07:47 AM

what is your website?
i would be willing to help if you told me and made me admin ;)


RE: My site....... by king_of_cool_kids on 07-11-2004 at 10:45 AM

http://www.linuxbox.co.nz/~kieran/Runescape/ and no, sorry, I can't make you admin as its not my server, its my friends. You can join the forum though :)


RE: My site....... by x4nder on 07-11-2004 at 06:53 PM

well what ever you do try and stay away from cookies. they can be easily deleted. its how loads of sites block people. by ip and cookies.
fools........

also your menu gets in the way of the righting. im on ie just in case it was tested on firefox


RE: My site....... by CookieRevised on 07-11-2004 at 07:20 PM

quote:
Originally posted by x4nder
also your menu gets in the way of the righting. im on ie just in case it was tested on firefox
Tested in Netscape, works very fine....
RE: My site....... by Stigmata on 07-11-2004 at 07:22 PM

quote:
Originally posted by x4nder
also your menu gets in the way of the righting. im on ie just in case it was tested on firefox



fire fox its on the writing

but im 600x 800 though
RE: My site....... by x4nder on 07-11-2004 at 07:56 PM

might just be this pc then. ie suxs anyway


RE: My site....... by king_of_cool_kids on 07-11-2004 at 08:50 PM

the resultion for the site is 1024x768, so 800x600 will make it weird :/

As for the questions, no one has answered :( Im sure there is someone who knows how??

Just add the code to the documents, and reattattach them.


RE: My site....... by KeyStorm on 07-11-2004 at 09:35 PM

quote:
Originally posted by king_of_cool_kids
I need some help with my site. The forums are perfect (nice job myBB team).

I have a site and want to add the following to it:

To the contact form:

* Send auto email after submitting to let user know email has been recieved (requires database??)
Well, PHP doesn't know if you received the mail, but knows for sure if it has been sent. Doesn't need a db
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
don't rely on cookies if you can use sessions or db. But if it's not a big thing you can use simple text, ini or inc.php files
* Only click submit once to reduce spam (php please, no silly javascript codes)
huh?
* Send it to both me and someone else (simple little code like:

mail( "email@email.com, email@email.com", "Runescape Fan Site Mail"??)

I prefer something stable and unpreventable, eg: not javascript, cause it can be turned off by spammer in the form etc, so php would be nice. I have a database if you need it for the code. Let me know what to do. Much thanks to anyone who can help.

k776

P.S: Also, if you need the files of mine, here they are:

I cna't help you right now, I'm real busy with own coding (ie KSMAS), but if you know a big of PHP and have the official manuals and APIs you can do that easily. ;)
RE: My site....... by king_of_cool_kids on 07-11-2004 at 11:10 PM

quote:
* Send auto email after submitting to let user know email has been recieved (requires database??)
Well, PHP doesn't know if you received the mail, but knows for sure if it has been sent. Doesn't need a db
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
don't rely on cookies if you can use sessions or db. But if it's not a big thing you can use simple text, ini or inc.php files
* Only click submit once to reduce spam (php please, no silly javascript codes)
huh?

ok, dont worry about the auto email.

Would be glad if you could tell me and code the pages needed for the 5 times a day.

And submit once (when someone click the submit button, it greys out or something or fades out with the words "Processing, please wait", so it stops them clicking more than once to reduce spam)
RE: RE: My site....... by Guido on 07-12-2004 at 04:26 PM

quote:
* Send auto email after submitting to let user know email has been recieved (requires database??)
Doesn't require any database, just do a second mail() with the message of your choice and directed to the email inputted in the contact form.

quote:
* Let a user submit only 5 times a day to reduce spam (database or cookies??)
I would not reccommend cookies, I would use the IP and yes, via a database. Someone more expert at php/mysql will be able to provide you with the full code :)

quote:
* Only click submit once to reduce spam (php please, no silly javascript codes)
That can't be done with PHP, because it doesn't run on the client. You have to do it with javascript. However if the above point is working, he won't be able to send the e-mail more than 5 times.

quote:
* Send it to both me and someone else (simple little code like:
Yeah, almost that :)
code:
<?php
$headers = "From: Mysite.Com <webmaster@mysite.com>\r\n";
$headers .= "Reply-To: webmaster@mysite.com\r\n";
$send_to = "someone@here.com, someone_else@there.com, another@wherever.com";
mail($send_to, "My Subject", "This is my message", $headers);
?>

quote:
Originally posted by x4nder
well what ever you do try and stay away from cookies. they can be easily deleted. its how loads of sites block people. by ip and cookies.
fools........
Excuse me... are there many other ways that those fools don't know about? cookies and IP are pretty much everything you can use to block users...
RE: My site....... by saralk on 07-12-2004 at 06:18 PM

for the average joe, cookies would be fine for blocking people short term. Most people wont know how to delete their cookies, and so wouldn't be able to get to your site.
Also most people have dynamic IPs so you can only ban them for one session.


RE: My site....... by king_of_cool_kids on 07-20-2004 at 12:36 AM

ok, thanks guido and Todd B for helping with the mutliple people thing. Now, Im working on the ability to add attachments.

Attached is the file I have put the code in. This is the page: http://www.linuxbox.co.nz/~kieran/Runescape/contact.php

As you will see if you click ctrl + a, there is a parse error at the top. Much thanks to anyone that can get it going.


RE: My site....... by Guido on 07-20-2004 at 03:37 AM

Line 206: are you sure it's "$cleanmessage = $badword->word_fliter($bettermessage);" ?

Anyway the parse error consists in a { not closed. Check one by one and see if you have closed all of them towards the end of the code.


RE: My site....... by WDZ on 07-20-2004 at 04:03 AM

I assume you meant to have a } after the block of HTML for...

code:
elseif (!$validator->ValidateEmailBox($email)) {

In other words, above this line:

code:
// get the sender's name and email address

RE: My site....... by king_of_cool_kids on 07-20-2004 at 04:21 AM

Guido, yes, that is right. "$cleanmessage = $badword->word_fliter($bettermessage);" ? scans the messgae for swear words and cleans them by turning them into ####'s. Also, im a copy and paste then learn type person.

So thanks WDZ for the code. Unfortunatly:

The form does not send, there are no errors, and it doesn't go to the thanks page anymore.

Any other ideas??


RE: My site....... by ddunk on 07-20-2004 at 04:45 AM

quote:
Originally posted by king_of_cool_kids
Guido, yes, that is right. "$cleanmessage = $badword->word_fliter($bettermessage);" ? scans the messgae for swear words and cleans them by turning them into ####'s. Also, im a copy and paste then learn type person.

I think Guido means filter is spelled wrong, you've got it as fliter in your code.

RE: My site....... by king_of_cool_kids on 07-20-2004 at 06:40 AM

well, it still works :)


RE: My site....... by WDZ on 07-20-2004 at 07:00 AM

O_o

The function name is also spelled wrong when it's defined in the badword class? :rolleyes:


RE: My site....... by king_of_cool_kids on 07-20-2004 at 09:19 PM

it still works perfectly. All I need to do now is intergrate it with the attachment code. If anyone cna test it on their servers, get it to work, and post i back here, I will be very grateful. How many pages do you need??

* Contact form (contact.php)
* Process form (form.php)
* Thanks page (thanks.php)

I can post them all here if you need them.


RE: My site....... by king_of_cool_kids on 07-25-2004 at 03:20 AM

Please? Anyone?? I would appreciate any help. Can someone intergrate a code into the attached file that will allow people to send attachments using a php form. Please help. I can't get a response from anywhere else :'(