How to allow URL's to messages??

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
JungleDongle
Posts: 2
Joined: Thu Nov 05, 2009 8:21 pm

How to allow URL's to messages??

Post by JungleDongle »

Script URL:
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
URL addresses
banned
url ban

Write your message below:

I tried to search for a question in couple of nigths and did not find nothing even close to my prob and also read the readme.html many times, without luck, so registered and here's my question.

How can I allow posting URL's to messages?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello JungleDongle,

Although it is highly not recommended, here you go.
You can enable posting of url's in messagess by disabling the use of the JunkMark spam filter.
Set $settings['junkmark_use']=0; in the settings.php file.

But be aware that this will also disable the blocking of spammers who post url's in their message.
You will only have the anti-spam question and Captcha to stop spammers when you disable the JunkMark filter.

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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

OR you could change

Code: Select all

$settings['use_url']=0;
to

Code: Select all

$settings['use_url']=1;
This will not allow posting URLs in the comments field, but will add a new field where people will be able to enter their web site address.
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
JungleDongle
Posts: 2
Joined: Thu Nov 05, 2009 8:21 pm

Post by JungleDongle »

Ok. That helped. Thanks. If I may I would like to ask one more question or is it suggestion.

I was thinking that would it be possible to reserve one or few names for administration purposes. Meaning that people who sign guestbook can not use certain names that are reserved for keeper of the guestbook.

I haven't found that kind of option and was thinking of adding that code myself. Can send it to you if i'm able to manage with it. I am not a wizard with php but have studied it for a bit so I was thinking of to try to write that code to learn php. For the code I was thinking of IF control for the name checking, if TRUE (in case of admin name) admin password check and after that back to normal posting measures.

What do you think? Would you have any hints or other points?

PS: And if I am not able to get working code, could it be possible to add this kind of feature to future updates??
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You can try modifying gbook.php file, just below

Code: Select all

	if (empty($name))
	{
        $error_buffer .= $lang['e03'].'<br class="clear" />';
	}
add something like:

Code: Select all

if ($name == 'Admin')
{
$error_buffer .= 'This is a reserved name<br class="clear" />';
}
You can add more names to the if sentence by separating the code with || , for example:

Code: Select all

if ($name == 'Admin' || $name == 'John' || $name = 'Wayne')
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