Search found 10 matches

by bouton
Mon May 22, 2006 11:41 am
Forum: General discussions
Topic: multiple faqs/one software installation?
Replies: 1
Views: 4694

multiple faqs/one software installation?

I ws reading the documentationand found it unclear if, to have multiple faqs I can have one software installation and multiple subdirectories under it, or if I need subdirectories with copies of the faq software under each one.

If it is the latter, does anyone have any good suggestions for sotware ...
by bouton
Wed Feb 08, 2006 12:59 pm
Forum: General discussions
Topic: Turning "ask question" on and off
Replies: 17
Views: 29741

ok corrected functions which seems to work

function checkBannedWord($content)
{
$blockedWordsFile = 'blockedWords.txt';
// got original from from blocklist2 cookbook at pmwiki.org
require_once('local_changes/fileIterator.php');
// this include is from Richard Heyes (http://www.phpguru.org ...
by bouton
Tue Feb 07, 2006 9:41 pm
Forum: General discussions
Topic: Turning "ask question" on and off
Replies: 17
Views: 29741

i don't think it quite works just yet.
seems to always return false!! i forgot to test it with a non bad word coment!

am fixing it
will keep you posted

sorry
by bouton
Tue Feb 07, 2006 4:06 pm
Forum: General discussions
Topic: Turning "ask question" on and off
Replies: 17
Views: 29741

oops
typo in function - add last lines

function checkBannedWord($content)
{
require_once('inc/fileIterator.php');

// Set the block counter

foreach (new FileIterator('inc/blockedWords.txt') as $line)
{
// gets the content as part of a whole if (preg_match("/$content/i", $line)) {
if (preg ...
by bouton
Tue Feb 07, 2006 3:41 pm
Forum: General discussions
Topic: Capture IP
Replies: 13
Views: 19413

is the list under banned IPS a list separated by commas?

I've never got bannedIPs to work.
Any suggestions?
by bouton
Tue Feb 07, 2006 3:39 pm
Forum: General discussions
Topic: Capture IP
Replies: 13
Views: 19413

good to hear.

and thanks
K
by bouton
Tue Feb 07, 2006 3:29 pm
Forum: General discussions
Topic: Turning "ask question" on and off
Replies: 17
Views: 29741

I am a beginner too - and the spammers on ask question were driving me nuts

so with php book in hand i wrote a banned word function and did some tweaking

1. added to functions.php

function checkBannedWord($content)
{
require_once('inc/fileIterator.php'); //http://www.phpguru.org/

// Set the ...
by bouton
Tue Feb 07, 2006 3:16 pm
Forum: General discussions
Topic: Capture IP
Replies: 13
Views: 19413

I captured the IP by editing the file e.g. savequestion.php

change
$username = strip_tags($_REQUEST["username"]);

to
$username = strip_tags($_REQUEST["username"])." (".$_SERVER["REMOTE_ADDR"].")";
by bouton
Fri Jan 20, 2006 11:46 am
Forum: General discussions
Topic: contact.tpl and copyright notice
Replies: 2
Views: 5194

thank you.

great work by the way

K
by bouton
Thu Jan 19, 2006 3:15 pm
Forum: General discussions
Topic: contact.tpl and copyright notice
Replies: 2
Views: 5194

contact.tpl and copyright notice

Just wondering why the contact.tpl has a different copyright notice to all the otherpages, including animage, and a notice not to remove it.

May I replace the image with the 'powered by' words?

Thanks