Jump to content


Photo

Un-Finished News Exporting Script


  • Please log in to reply
10 replies to this topic

#1 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 16 March 2004 - 12:06 PM

Nyarlathotep started making a news exporting script for everyone here to use.

When you made a new topic in your news forum the topic info would be exported into a text file, which could then be included on your site.
It exports the news because drawing information stright from the MySQL database would create too much activity for someone just viewing the news. Too much activity would slow the server down.

Unfortunately Nyarlathotep could not finish the script:

it is all attached. I've added a mock invision board in the zip, so you can see how they work together. The script is ented on forum/sources/lib/post_new_post.php on line 346, if you want it to work with new polls, you'll have to add a similar hack to post_poll.php.

For the importer I was going to use the Magpie classes: http://magpierss.sourceforge.net/


Hopfully someone will one day finish it.

Attached Files



#2 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 16 March 2004 - 08:35 PM

Can't he write a special one for TFH so it will put the news into MySQL :p
Posted Image

#3 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 16 March 2004 - 11:00 PM

I could probably look at this sometime. I'm learning PHP and MySQL, so I should be able to work this out sometime in the near future.
:p
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#4 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 16 March 2004 - 11:47 PM

Stino, the idea is that you do NOT use MySQL to show your news.

If every Origin site had there news read from a MySQL database for every viewer it would slow the server down. Exporting it to a simple text file is the best way.

#5 Beowulf

Beowulf

    Shipgirl

  • Advisors
  • 7,219 posts
  •  Azur Lane Fangirl

Posted 25 March 2004 - 02:54 AM

If you like text files, then use this news script.

NZ.org | BBPCG
Discord: The Astronomer#1314
Steam


#6 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 25 March 2004 - 02:46 PM

The plan was to use a forum and text files.

Any bum off the street can use one or the other, but this was going to be the perfect mix of both.

#7 ice

ice
  • New Members
  • 53 posts

Posted 25 March 2004 - 05:13 PM

hmm, but does it take more bandwith with the mysql database?
I mean you must load the file each time aswell, and it can't be that big difference can it?

I think I could take a look at it, but I'm busy until the weekend, so perhaps then.. But I have higher priority things, but since you host me I would be happy to help out :p

#8 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 03 April 2004 - 07:33 PM

I found this: http://mods.ibplanet.com/db/?mod=2358
It might help anyone working on this.

#9 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 03 April 2004 - 07:37 PM

Phoib told me you can use more forums for news exporting with IPB.
Posted Image

#10 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 03 April 2004 - 08:25 PM

For Perfection5 i'll make a smilies showing someone getting really frustraited by people stating the obvious. Swinging his arms around going ARRG!

:p

#11 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 03 April 2004 - 08:34 PM

Thanks.
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users