Gossamer Forum
Home : General : Perl Programming :

Matt's WWWBoard.

Quote Reply
Matt's WWWBoard.
I m trying to make a modification to Matt's WWWboard but can't find a way how to do it.

The script is available for FREE download, if you want to have a


copy you can download it to have a view.
http://www.scriptarchive.com/...s=wwwboard&c=zip


I want to change the new file subroutine


----------------Currently---------------------
sub new_file {

open(NEWFILE,">$basedir/$mesgdir/$num\.$ext") || die $!;
print NEWFILE "<html>\n";
print NEWFILE " <head>\n";
and so on.

--------Modifications I want to make--------------------

First thing I want to name the new file differently

i.e open(NEWFILE,">$basedir/$mesgdir/$num.$email\.$ext") || die $!;

I want to add $email in the file name (not a big deal, I have added it)

but the basic purpose of writing in the email in name of file is to prevent duplicate entry of the same message. Now here comes the 2nd modification that how to prevent duplicate entry??????


Is there any addition could be made to New File subroutine that first it checks the directory for the file with same name, if it already exists then there should be no further execution of subroutine?
Quote Reply
Re: [zeshan] Matt's WWWBoard. In reply to
See this thread before continuing...

http://www.gossamer-threads.com/...rum.cgi?post=236130;
Quote Reply
Re: [zeshan] Matt's WWWBoard. In reply to
HINT: If you want a free forum script, try YapBB (PHP), YaBB (Perl), or Ikonboard (perl). If you have some spare $$$'s, then I would seriously suggest investing in GForum (from this site).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Matt's WWWBoard. In reply to
You will be really amazed to know that I am not using this script for Message Boards or BBS, not at all. There are hell of modifications for Matt's script are available on cgi.resourceindex but I am not using the script it is meant for.

I have modified the complete script for some other purpose and the only bug I am facing is this. Can you help me with this?

Zeshan.
Quote Reply
Re: [zeshan] Matt's WWWBoard. In reply to
phpbb is also a great board