PDA

View Full Version : Simple News/Article Perl Script Needed



nixonja
March 21st, 2001, 15:48
Does anyone know of a script like this:

-----------

Name [textbox]
Article title [textbox]
Article [textarea]

Publish [button]

--------------

articles appear here along with the date they were entered.

---------


This would all happen on the one page.

nixonja
March 22nd, 2001, 18:39
Anyone?

Epgs
March 22nd, 2001, 19:35
please explain more what do you want it to do?

Niaad
March 23rd, 2001, 15:54
I could write a script like that with PHP and MySQL...

But you might want to check out this CGI script:

(It only allows for the username and a message, nothing more...)

It seems to be targetted more for "leaving messages," but you could probably customize it into looking like real news.

http://www.stefan-pettersson.nu/scripts/oneliner/

That's all I know of...

LeX
March 24th, 2001, 06:19
Hey, that's exactly the sort of thing I'm looking for right now. Got any other similar scripts? Link me up, thanks... :)

keith
March 24th, 2001, 09:19
i've done this in the past by getting simple guestbook scripts and modifying them to work like a news script. i just included them into the site's format with ssi and left the form link off the site so only site administrators knew where it was and could submit news.

nixonja
March 25th, 2001, 20:49
It seems to be targetted more for "leaving messages," but you could probably customize it into looking like real news.

http://www.stefan-pettersson.nu/scripts/oneliner/


That's perfect except for this:

Is there a simple modification that can be done to allow multiple lines, i.e. I've changed the message field to a "textarea". If I put in:

line 1
line 2
line 3

it appears as line 1 line 2 line 3.

Any solution you know of?

Niaad
March 26th, 2001, 17:06
Just put <br> after the end of a line to go to the next one.