Page 1 of 1

How to allow URL's to messages??

Posted: Thu Nov 05, 2009 8:27 pm
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?

Posted: Thu Nov 05, 2009 9:12 pm
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

Posted: Sat Nov 07, 2009 6:27 pm
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.

Posted: Wed Nov 18, 2009 7:23 pm
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??

Posted: Wed Nov 18, 2009 8:51 pm
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')