Not logged in. · Lost password · Register
Forum: Advanced Guestbook Modifications RSS
Add a simple human verification question (Important)
Page:  previous  1  2  3  4  5  6  next 
lym1inf (Guest) #16
No profile available.
Link to this post
Subject: What have I done wrong??
Hi Carbonize, Thanks for the mod I have changed the script as suggested but I am now getting the following message instead of my guestbook

Parse error: parse error, unexpected $ in /home/lyminf/public_html/Guestbook/lang/english.php on line 93

I must have made a mistake....can you help me

TG
Avatar
carbonize (Administrator) #17
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
Sounds like you missed a ; off the end of a line. Post in here the two lines you added to english.php and 4 lines either side of it.
C a r b o n i z e
lym1inf #18
Member since Jun 2005 · 5 posts · Location: Hampshire
Group memberships: Members
Show profile · Link to this post
Hi Carbonize,
Thanks, this is my script:

$LANG["ErrorPost8"]  = "Sorry! We have flood-control activated. Please try again after a period of time elapses!";
$LANG["ErrorPost9"]  = "Your IP adress is banned!";
$LANG["ErrorPost10"] = "Your message contains some invalid words. Please correct it and re-submit.";
$LANG["ErrorPost11"] = "You forgot to fill in the Comment field. Please correct it and re-submit.";
$LANG["ErrorPost12"] = "You forgot to fill in the Human Verification field. Please correct it and re-submit.";
$LANG["ErrorPost13"] = "The Human verification answer you supplied is wrong. Please correct it and re-submit.";
$LANG["PassMess1"] = "Please enter a valid username and password:";
$LANG["PassMess2"] = "Invalid username or password. Please try again.";
$LANG["PassMess3"] = "Sorry, but the password you entered was not correct.";

# Days
$weekday[0] = "Sunday";

looks ok to me, but then I know nothing!!!!!
 8-(
TG
Avatar
carbonize (Administrator) #19
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
Whoops line 93 is the months. Can you post the whole months section in here please starting at #Months
C a r b o n i z e
lym1inf #20
Member since Jun 2005 · 5 posts · Location: Hampshire
Group memberships: Members
Show profile · Link to this post
# Months
$months[0]  = "January";
$months[1]  = "February";
$months[2]  = "March";
$month

the script ends here..... thats funny shouldnt it have 12 months???
TG
Avatar
carbonize (Administrator) #21
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
# Months
$months[0]  = 'January';
$months[1]  = 'February';
$months[2]  = 'March';
$months[3]  = 'April';
$months[4]  = 'May';
$months[5]  = 'June';
$months[6]  = 'July';
$months[7]  = 'August';
$months[8]  = 'September';
$months[9]  = 'October';
$months[10] = 'November';
$months[11] = 'December';

?>
C a r b o n i z e
lym1inf #22
Member since Jun 2005 · 5 posts · Location: Hampshire
Group memberships: Members
Show profile · Link to this post
mmmm... everytime i save the file its cutting off the last few lines...is there a limit on these files?
TG
Avatar
carbonize (Administrator) #23
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
What are you using to edit it?
C a r b o n i z e
lym1inf #24
Member since Jun 2005 · 5 posts · Location: Hampshire
Group memberships: Members
Show profile · Link to this post
Ah hang on I think I've done it this time, The guestbook is back anyway. Thanks for your help...Im just going to test it now. :-D
TG
lym1inf #25
Member since Jun 2005 · 5 posts · Location: Hampshire
Group memberships: Members
Show profile · Link to this post
Yup that works brilliantly!
It was as I suspected obviously all my fault, though quite why it was cutting off the last few lines I'm unsure. I was using the default prog that the file opened up in on the server (on CPanel??). I pasted the script into 'Word' and then back in the end.
Thank you once again for sharing your knowledge.
Thanks   :-D  TG
Avatar
carbonize (Administrator) #26
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
I hate web based editors. They tend to mess things up. I always recommend downloading the files and using a dedicated text editor. For this I recommend PSPad which is the text editor I use. It has syntax hilighting and a built in FTP client to work on the files while they are on your server.
C a r b o n i z e
lauren4521 #27
Member since Jun 2005 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: THANK YOU!!
I just wanted to take a minute out of my life to THANK YOU, Carbonize!! 

I am a total noob making my way through all this/learning as I go.  You made this guestbook thing SOO much easier.  I installed the human verification mod today and it already has helped.  I'm sure we'll still get human spam but it looks like most of our spam were from those nasty spambots. 

Off to look for info on Lazarus...would love the ability for my clients to approve entries before they are posted publicly. 

Thanks again for all the hard work you do, for how much you give selflessly and for remaining pleasant when dealing with newbie after newbie after newbie question.   :-D
Lauren
RandyK #28
Member since Jun 2005 · 1 post · Location: illinois
Group memberships: Members
Show profile · Link to this post
Subject: Patch is awesome
I thank you so much for taking the time to develope code to let me concentrate on doing productive stuff to my web site. The spammers were getting to me. Once again thank you, the 5th Infantry thanks you!
gunn (Guest) #29
No profile available.
Link to this post
Subject: Re: Add a simple human verification question
next find
  <tr bgcolor=&quot;$VARS[tb_color_1]&quot;>
    <td width=&quot;25%&quot;><div align=&quot;left&quot; class=&quot;font2&quot;>$HTML_CODE<br>$SMILE_CODE<br>$AG_CODE</div></td>
    <td>
   
Replace that with
  <tr bgcolor=&quot;$VARS[tb_color_1]&quot;>
    <td width=&quot;25%&quot; class=&quot;font2&quot;><img src=&quot;$GB_PG[base_url]/img/user.gif&quot; width=&quot;16&quot; height=&quot;15&quot; alt=&quot;&quot;> Human Verification:</td>
    <td class=&quot;font2&quot;>To prove you are not a bot please type the word ARMADILLO into the box below.<br>
    <input type=&quot;text&quot; size=&quot;42&quot; maxlength=&quot;30&quot; name=&quot;bottest&quot;></td>
  </tr>
  <tr bgcolor=&quot;$VARS[tb_color_1]&quot;>
    <td width=&quot;25%&quot;><div align=&quot;left&quot; class=&quot;font2&quot;>$HTML_CODE<br>$SMILE_CODE<br>$AG_CODE</div></td>
    <td>


hello carbonize,
i have tried to find the above code in the file form.php of my 2.3.1 guestbook but i failed. can you help?
thanks a lot

gun
Avatar
carbonize (Administrator) #30
Member since Jan 2004 · 789 posts · Location: Bristol, UK
Group memberships: Administrators, Members
Show profile · Link to this post
try looking for just
$HTML_CODE<br>$SMILE_CODE<br>$AG_CODE
C a r b o n i z e
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smilies: :lmao: ':)' :hug: :-)) :shrug: :-' :lol: x-( :-x :'( :-o :-{} :-! :-? :"> :-(( B-) ;-) #-( :-# O_o TiT :-zZ :-) ZzZ
Special characters:
Page:  previous  1  2  3  4  5  6  next 
Go to forum
Unclassified NewsBoard 1.6.3 © 2003-6 by Yves Goergen
Page created in 211.2 ms (138.7 ms) · 106 database queries in 51.3 ms
Current time: 2010-07-09, 00:04:41 (UTC +01:00)