Free PHP ShoutBox Script V 20 - php Form

Author Topic: Free PHP ShoutBox Script V 20  (Read 17694 times)

Offline nomadgraphics

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #15 on: July 29, 2010, 11:27:36 AM »


getting this odd error when I use install.php from my site:


Warning: mysql_connect(): Access denied for user 'root'@'192.168.1.1' (using password: YES) in /www/zxq.net/v/i/p/viperwow/htdocs/shoutbox/menage/sett.php on line 6 Could not connect: Access denied for user 'root'@'192.168.1.1' (using password: YES)


any suggestions?

Offline pedja

  • Supporter
  • **
  • Posts: 9
  • Karma: +3/-0
    • View Profile
Re: ShoutBox 20
« Reply #16 on: July 29, 2010, 02:34:03 PM »
pc server?

Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #17 on: August 05, 2010, 02:55:24 AM »
Hi!  ;D

I installed shoutbox with succes and works very well!...but I have a question...is it
posseble to move the error-messages to, lets say, under the smilies. Now, when
there is a error nobody can see it because its all te way down all shouts....

And my second question ... is there a flood protection agains spammers? now everyone
can shout as much as they like and i think thats not good

greetings and many thanks
from Holland
Paris

Offline niko

  • VIP
  • ****
  • Posts: 15
  • Karma: +1/-1
    • View Profile
Re: ShoutBox 20
« Reply #18 on: August 05, 2010, 04:07:43 AM »
Now, when
there is a error nobody can see it because its all te way down all shouts....

When you hit the submit button without filling in any information,  error message ("The field must be at least XX characters long", "Inavalid Characters") is visible in FF, Google Chrome but not in IE.(TOP CENTER).  :'(

Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #19 on: August 05, 2010, 05:15:44 AM »
Hi,

And I have (with many others) IE... live isn't easy for webdesign
with so many browsers....maybe there is a way to show the errors
in IE allso at the top..


Offline niko

  • VIP
  • ****
  • Posts: 15
  • Karma: +1/-1
    • View Profile
Prevent multiple form submissions
« Reply #20 on: August 05, 2010, 02:18:54 PM »
1 line shout.php
Code: [Select]
<?php @session_start();


form
Code: [Select]
<form action='../shout.php' method='post' name='form'>
<input type="text" id="sfeed" name="text" value="" title="Username"><br>
<input type="text" id="hfeed" name="home" value="" title="Home URL with http://"><br>
<textarea name="text1" id="lfeed" rows="2" title="Comment"></textarea><br>
<a onClick="addSmiley(' colly ')"><img src="<?php $root ?>/shoutbox/images/smiles1.png"></a>
<a onClick="addSmiley(' greeny ')"><img src="<?php $root ?>/shoutbox/images/smiles2.png"></a>
<a onClick="addSmiley(' idimid ')"><img src="<?php $root ?>/shoutbox/images/smiles3.png"></a>
<a onClick="addSmiley(' smily ')"><img src="<?php $root ?>/shoutbox/images/smiles4.png"></a>
<a onClick="addSmiley(' bluey ')"><img src="<?php $root ?>/shoutbox/images/smiles5.png"></a>
<a onClick="addSmiley(' redy ')"><img src="<?php $root ?>/shoutbox/images/smiles6.png"></a><br>
<input type="hidden" name="csession" value="<?php echo date('fYhis'); ?>">
<?php

if ($_SESSION['csession'] && $_POST['csession'] = true) {    
    echo
"Thank You.";
}else{
?>

<input type="submit" class="button" name="submit" value="shout"><br>
<?php ?>
</form>

replace

Code: [Select]
if(isset($_POST['submit'])){
with

Code: [Select]
if(isset($_POST['submit'])){
$_SESSION['csession'] = $_POST['csession'];

Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #21 on: August 06, 2010, 02:50:02 AM »
Your the man Niko, works great!! ;D
only 1 error----when you copy and paste the above code the line
<?phpif ($_SESSION['csession'] is the error it must be
<?php if ($_SESSION['csession']

many thanks!

ps: Is it also posseble to have the errormessages on that same line?

Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #22 on: August 06, 2010, 06:03:23 AM »
There is 1 snag if you use the above flood protection code....
when you enter 2 or more times something wrong the flood-protection kicks in
and you can't subscribe a shout   :(
 

Offline niko

  • VIP
  • ****
  • Posts: 15
  • Karma: +1/-1
    • View Profile
Re: ShoutBox 20
« Reply #23 on: August 06, 2010, 08:06:19 AM »
1 line shout.php

Code: [Select]
<?php @session_start();
Form

Code: [Select]
<form action='../shout.php' method='post' name='form'>
<input type="text" id="sfeed" name="text" value="" title="Username"><br>
<input type="text" id="hfeed" name="home" value="" title="Home URL with http://"><br>
<textarea name="text1" id="lfeed" rows="2" title="Comment"></textarea><br>
<a onClick="addSmiley(' colly ')"><img src="<?php $root ?>/shoutbox/images/smiles1.png"></a>
<a onClick="addSmiley(' greeny ')"><img src="<?php $root ?>/shoutbox/images/smiles2.png"></a>
<a onClick="addSmiley(' idimid ')"><img src="<?php $root ?>/shoutbox/images/smiles3.png"></a>
<a onClick="addSmiley(' smily ')"><img src="<?php $root ?>/shoutbox/images/smiles4.png"></a>
<a onClick="addSmiley(' bluey ')"><img src="<?php $root ?>/shoutbox/images/smiles5.png"></a>
<a onClick="addSmiley(' redy ')"><img src="<?php $root ?>/shoutbox/images/smiles6.png"></a><br>
<input type="hidden" name="csession" value="<?php echo date('fYhis'); ?>">
<?php
if(isset($_COOKIE['csession'])) {
$_SESSION['csession'] = $_COOKIE['csession'];

echo
"thank you" ;
print_r ($_COOKIE);
}else{
?>

<input type="submit" class="button" name="submit" value="shout"><br>
<?php ?>
</form>

Code: [Select]
replace
Code: [Select]
if(isset($_POST['submit'])){
Code: [Select]
with
Code: [Select]
if(isset($_POST['submit'])){
$_SESSION['csession'] = $_POST['csession'];
setcookie("csession", $_POST['csession'], time()+600);
print_r ($_COOKIE);


Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #24 on: August 06, 2010, 09:57:51 AM »
Unfortunately...it dasn't work...now the flood protection is not active...
Did you tested it yourself ......?

Offline shouter

  • Supporter
  • **
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #25 on: August 06, 2010, 01:05:24 PM »
1.top
Code: [Select]
<?php @session_start();

2....form.........
Code: [Select]
<a onClick="addSmiley(' redy ')"><img src="<?php $root ?>/shoutbox/images/smiles6.png"></a><br>

<?php
if($_SESSION['rand'] == false){

?>

<input type="submit" class="button" name="submit" value="shout"><br>
<?php
}else{

echo
"thank you" ;
echo 
$_SESSION['rand']; 
}
............

3.insert new lines after

Code: [Select]
if(isset($_POST['submit'])){
Code: [Select]
$numero = rand(1000, 9990);
$_SESSION['rand'] = $numero;
echo $_SESSION['rand'];
;D ;D


Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #26 on: August 07, 2010, 04:16:58 AM »
I have the feeling i am a sort of testdummy here...this also
dasn't work
Quote
Parse error: syntax error, unexpected '}' in shout.php on line 141

Did you tested it yourself ......?

Offline shouter

  • Supporter
  • **
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #27 on: August 07, 2010, 05:24:28 AM »
http://www.sweetsonly.net/  :D

Offline Paris

  • Supporter
  • **
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #28 on: August 07, 2010, 06:27:29 AM »
I have tested your shoutbox on your site and it didn't work there allso...when
i entered 2 times or more ...less then 4 characters... your shout button
disapears......maybe its the always shitty IE ?

Offline shouter

  • Supporter
  • **
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: ShoutBox 20
« Reply #29 on: August 07, 2010, 07:06:59 AM »
Here's the images.

1.Chrome


2.IE

« Last Edit: April 23, 2011, 03:49:39 AM by admin »