What am I doing wrong?

Dr. GBooky is here to help you with your guestbook problems ...
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: What am I doing wrong?

Post by Henrie »

The setting is to Prevent multiple submissions in the same session.
So to be able to add several posts you need to not prevent mulitple submissions

The following setting will allow you so add multiple post in one session.

Code: Select all

/* Prevent multiple submissions in the same session? 1 = YES, 0 = NO */
$settings['one_per_session']=0;
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Thanks Henrie. That's what it already is set to so there's nothing to change.
Appreciate your help.
Best wishes
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Hi Guys,

I just got myself banned again from my guestbook cos I was answering more than one person in a session. I got it going again by removing my ip address and uploading banned again. But what can I do to allow more than one answer to be submitted before being locked out? Sometimes even the guest wants to post more than one message and I don't want them blocked.

I know it's in Settings but just want to make sure I alter it correctly. Let's say I want to allow up to 4 posts in a session by one person. How would I amend that? I don't want to screw it up messing around.

Thank you.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

You can have "one per session" ON or OFF. There is no built-in way of allowing for example 4 messages.

To turn the "one per session" feature OFF, change

Code: Select all

$settings['one_per_session'] = 1;
to

Code: Select all

$settings['one_per_session'] = 0;
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Hi, thanks for that. I altered Settings to allow mulitple messages but now banned is not letting me in or post anything.
I deleted the banned file from the server - removed my ip address from the doc using notepad - uploaded it fresh - even deleted the guestbook cookie from Firefox and recent history and cache but it continues to genreate a banned ip address so I can't get in.
What am I don't wrong?
Thanks.

Also, I'm getting this now:

Parse error: syntax error, unexpected T_VARIABLE in /hermes/bosweb25c/b1502/ipg.heartlandproductions/ravensbreath/Guestbook/settings.php on line 105

thx

UPDATE:
I got ipage to fix the parse error above, but I still can't add a comment on my guestbook even after rebooting, deleting the bannded file, changing settings to allow me. Nothing I do will allow me to add a new comment. It keeps generating a banned ip address for me even though I've deleted it.
thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

Your GBook works fine, I was able to submit a message.

Try this:
1. close all browser windows. All of them.
2. upload an empty "banned_ip.txt" file to the server
3. try again

If this doesn't work then something you are trying to post is upsetting the SPAM filter. Make sure you don't include any URLs in the message.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Thanks Kelmen, and I do see you were able to post. I have done as you've described a hundred times today.
I just tried myself, after going through all the steps again and when I typed in test2 it worked. But when I copy and paste from a notepad doc into the field that's when I get locked out.

Here is exactly what I am trying to post but get locked out every time.

Dearest Miss Shae,

We are touched by your kind message that you want to help us. You do help us, you know, when you come to visit us. We know it's not the same as getting us out of this place and we do wish you could find a way to bring us to Georiga, but at least coming here helps. Thank you so kindly.

As for rain. Oh, don't mention rain. Here all it does is rain rain rain. Especially up in the tower where I am now. Wet and slimy and cold! Blimey! I've got goosebumps on my ghostbumps!
And that reminds me, why do I get so cold when I am a ghost? It's preposterous!

All right, I've decided. I'm going down. Perhaps Percy has made a warm fire in the Grand Hall. Not that the castle is much drier with half of it missing, but it rains lesser and lesser the lower we go on the island.

Anywhoo, I shall come check here again soon.

I will tell Molly what you said. She will be pleased. She'd be here now but there is a Walking Stick nest on a twig and the babies are soon to be born. ewwwww, just think of all those tiny legs walking over everyone!

Molly always wants to be there to help. You wouldn't think insects would need assitance delivering their own children but I guess there are many things we don't know. At least not on Ravensbreath Island.

Oh my white ghostly fingers are turning purple. What does that mean? It means I must go!

We shall haunt you for ever dear friend Shae,

Annabel and the ghost children.

__________
What can possibly be in that making this happen? I thought maybe it was the ewwwww looking like a url but tried 'yuck' and it still locked me out.
Can copy and paste be doing it? I like to do it that way so I can be sure the content is written all right.
Hope you can help. Maybe you could try pasting that in on your end.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

I can copy/paste this text into GBook without problems.

Can you try posting it to the demo guestbook?
http://www.phpjunkyard.com/gbook/gbook.php?a=sign

What do you use for "Name", "From" and "Email"?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Hi, just had dinner.
OK, I tried it on your GB and it worked fine. Went back to mine and was able to paste it in - as usual, but after submitting it locks me out - bans my ip.

Must be something on my end, but what?

I don't put anything in the where I live or email field. Just who it's from.

Oh, I just noticed you said you can copy/paste in with no problem. But did you do the whole process and submit? That is where it gets me. I can always paste it, just not submit.

:?:
UPDATE: I just retyped the entire message into the field so no copy paste at all, but it locked me out. I had made sure to post a new banned file on the server with nothing on it first but as soon as I try to add to the guestbook it generates a new banned ip file and locks me out.

Can you look at my Setting file and see if I did something or left something out? What I'm trying to achive is the ability to answer mulitple people's postings without being locked out or banned. I want to answer by Signing the guestbook so everyone can see all the posts. Thanks.
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Hi Henrie,
Yes, I know, that's what I have it set to - here is the exact copy from my settings file

/* Prevent multiple submissions in the same session? 1 = YES, 0 = NO */
$settings['one_per_session']=0;

SOOO I just did a test and succeeded in adding a message - after deleting the banned ip file that was generated. It worked. BUT - then with no banned ip file showing - I took the copy I am trying to post that is in a notepad doc, and pasted it in. Submit - again I'm locked out and a new banned ip files is generated.

I again deleted the banned ip file so there is NO banned up there at all - again pasted my copy which is this (silly nonsense to fans):


************
Dearest Miss Shea,

We are so touched by your kind message that you want to help us. You do help us, you know, when you come to visit us. We know it's not the same as getting us out of this dismal place and we do wish you could find a way to bring us to Georgia, but at least visiting us helps. Thank you so kindly.

As for rain. Oh don't mention rain. Here all it does is rain rain rain. Especially up in the tower where I am now. Wet and slimy and cold! Blimey! I've got goosebumps on my ghostbumps!

And that reminds me, why do I get so cold when I am a ghost? It's preposterous!

All right, I've decided. I'm going down. Perhaps Percy has made a warm fire in the Grand Hall. Not that the castle is much drier with half of it missing, but it rains lesser and lesser the lower we go on the island.

Anywhooo, I shall come check here again when I'm able.

I will give Molly your message. She will be pleased. She'd be here now but there is a Walking Stick nest on a twig and the babies are soon to hatch. ewwww. Just the thought of all those tiny legs walking all over me!

Molly always wants to be there to help with the babies, whatever they are. You would think insects wouldn't need assistance delivering their own children but I suppose there are many things we don't know. At least not on Ravensbreath Island.

Oh dear! My white ghostly fingers are turning three shades of purple. What does that mean? It means I must go!

We shall haunt you forever dear friend Shae.

Yours sincerely,

Annabel lee and the ghost children. :)

**************

And it locked me out again and generated a fresh banned ip file.

Sooooo- I even with through all the steps, deleted the banned file and re-typed the message without pasting it and it still won't accept it and bans me. What is in this copy it hates? I was able to add it to your dummy guestbook fine. But it won't let me post it on mine. Just this copy. It keeps generation a blockage of my ip even though I removd it.
I've been trying to add this copy all day. It's just simple stuff.

If you could copy/paste that message in my guestbook for me we can see if it's the message or something on my pc.
I'm curious to know. It's rediculous.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

After some testing I think I got it.

It looks like the "ewwww." part is indeed the problem - it is misleading GBook into thinking a URL was posted.

When I remove the "ewwww." part or change it to "ewwww!" it goes through.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

That is so funny - sort of! Because I did the same thing hours ago - I even posted it for Klemen, but it didn't work for me. But I thought that too.

Just did a new test, changing the word to ick. BANNED! Dang it! It created a new banned file.

Question: Did you try it with the ewwww in and did it ban you?

This is too weird. Why can't I even type this message in? What has it got against this message? It let's me post others.

Gotta go to bed soon. ick.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

You could try disabling the SPAM filter when you are posting.

A "quick and dirty" trick would be to use the "From:" filed to type in a secret password, make GBook detect it and ignore SPAM filter if detected.

For example open gbook.php in a text editor, find

Code: Select all

if ($settings['junkmark_use'])
and just ABOVE that code add

Code: Select all

    if ($from == 'secretpassword')
    {
		$settings['junkmark_use'] = false; $from = "";
    }
Of course change "secretpassword" to your own password.

Then when posting a message type that password into the "From: " field and it should work.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ghostgirl
Posts: 29
Joined: Wed Jan 08, 2014 1:44 pm

Re: What am I doing wrong?

Post by ghostgirl »

Sounds really good Klemen, sneaky's good! But to make sure I do it right, here is what I see:

/* Use JunkMark(tm) SPAM filter (recommended YES)? 1 = YES, 0 = NO */
$settings['junkmark_use']=1;

Where exactly do I edit that with what you said? Can you give me the whole thing - I'll change the password.

Also, would this mean I will be putting the secret password in the From field when I add a comment instead of my name or one of my characters? If so maybe I should make my character the secret password.

thx
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: What am I doing wrong?

Post by Klemen »

The code that needs changing is inside "gbook.php", not in the settings.php file.

When posting you would simply enter the password in the "Where are you from?" field. The rest can stay the same.

For example, if your password is "secret", you would enter:

Your name: Annabel Lee
Where are you from? secret
Your Web site: (your website)
Your e-mail: (your email)

Comments: (your comments)


Then after submitting, the "secret" would be recognized as a password, SPAM checking ignored and the password deleted before posting.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply