Jump to content


Photo

News Script?


  • Please log in to reply
42 replies to this topic

#1 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 04:18 PM

i've heard about this in the past.
was it ever perfected?

i was thinking about maybe building a flash/php site with news being dynamically updated from a "news" sub-forum inside our forum.

this way i can ditch the CMS all together and eliminate double posting, saving my SQL for a Gallery of some sort.
www.itsmod.com

#2 Detail

Detail

    King Detail

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

Posted 22 October 2004 - 04:55 PM

It was working well before all the server problems. While the server was down, mastermind has made a better version will 'All News'.

On the Revora front page and The Hive, there will be an all news section. anyone who posts a topic in there news forum will get there news on the front page and on the The Hive. Lots of advertising with just 1 post ;)
There may be some other sites using this to. If we had a HL2 network site (like me might), your news would also appear there.

Once mastermind arrives later today, he will post more about it.

#3 Mastermind

Mastermind

    Server Technician

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

Posted 22 October 2004 - 05:39 PM

It's done. I'll install it this evening. Right now, I have a test that is the final for one of my classes, so I can't afford to be late.
;)
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 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 05:40 PM

sounds great.

i would just like the ability to post in our forum under a news sub-forum and have that reflected dynamically on our new webpage.

i anxiously awaited MM's return.

/sits in corner
www.itsmod.com

#5 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 22 October 2004 - 05:47 PM

So will this affect the news on our site in any way? Or will the principle of posting in the news forum and then updating the news, to get it onto the news page stay?

#6 Detail

Detail

    King Detail

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

Posted 22 October 2004 - 05:54 PM

To get setup you will have to request a news forum. You will then be given a code. Example code: <?php @include ("forums.revora.net/news/065.txt"); ?>
You slap that into your page, where you want the news to show.

Then all you will have to do is make a topic in your news forum. The script will work its magic and news will appear on your site, the front page, the hive and anywhere else it is relevent.

#7 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 22 October 2004 - 06:05 PM

Right now I have a similar script:

include ("http://forums.revora.net/news/382.php");

And that one works, but it hasn't updated yet since I posted more news in the forum a few weeks ago.

#8 Mastermind

Mastermind

    Server Technician

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

Posted 22 October 2004 - 06:56 PM

This will be almost identical. The only difference is you won't have to hit anything to update the news.
;)
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 |

#9 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 06:58 PM

i am requesting a NEWS forum btw.

/hint hint
www.itsmod.com

#10 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 22 October 2004 - 07:07 PM

And how about giving ours a little hit on the update button? ;)

#11 Mastermind

Mastermind

    Server Technician

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

Posted 22 October 2004 - 07:12 PM

Hold your horses. There are some config issues with the old script, meaning it won't work properly. Once the new script is installed, I'll explain things.
;)
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 |

#12 Mastermind

Mastermind

    Server Technician

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

Posted 22 October 2004 - 07:56 PM

The new script is installed. What I need from you are these things:
A file named template.html, that will be how you want each news post to appear. You can find an example at http://forums.revora...e/template.html . A file articles.txt with a single integer containing the number of posts you want exported, and, if you have an existing forum, the number of that forum, or the name and description of the new forum you want for news.
:)
A few notes on this: The new script dynamically updates your news whenever you post a topic. It also can handle editing of posts. However, it does not support deletion of posts, unless a admin goes in and manually does it. If you are very nice to me, I will provide support for that, until I write a front end for you to do it yourself.
;)
One more thing: You can view what the output looks like by going to http://forums.revora...ws/news/211.php, and compare it to the post in the Defcon News forum. This script also supports smilies, which was one of the biggest feature requests.
;)
This is turning into one big post: You will need to post all new news for your new script, as this script does not support getting the old news from the forum. Sorry about the inconvenience, but it's incompatible with the script the way that would require to do that.
;)
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 |

#13 Guest_ImmoMan_*

Guest_ImmoMan_*
  • Guests

Posted 22 October 2004 - 08:30 PM

I wonder if winzip can zip the number "6" in articles.txt... ;)

Attached Files



#14 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 09:20 PM

i got everything but a News forum ready.

new site 75% complete.
www.itsmod.com

#15 Detail

Detail

    King Detail

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

Posted 22 October 2004 - 09:30 PM

i am requesting a NEWS forum btw.

/hint hint

<{POST_SNAPBACK}>


Forum name, description, moderators? ;)



I think all the stuff Mastermind talked about should be uploaded to your site, not the forum.

#16 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 09:42 PM

Forum name, description, moderators?:

News, In The Shadows News Forum, MagicGangsta
www.itsmod.com

#17 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 09:46 PM

uploaded - articles.txt & template.html


hope they are right but i dunno...
www.itsmod.com

#18 Detail

Detail

    King Detail

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

Posted 22 October 2004 - 10:25 PM

Your news forum is now made ;)

#19 MagicGangsta

MagicGangsta

    title available

  • Project Team
  • 409 posts
  • Location:Missouri
  • Projects:In The Shadows - Project Leader

Posted 22 October 2004 - 10:47 PM

merci monsieur David but...

http://forums.revora...p?showforum=457

why are there anon posts here already?

Edited by MagicGangsta, 22 October 2004 - 10:49 PM.

www.itsmod.com

#20 Mastermind

Mastermind

    Server Technician

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

Posted 22 October 2004 - 11:09 PM

Those are posts that disappeared in the merger. They are appearing now and again as we go to the higher forum numbers. They can be safely removed.
;)
I made them disappear.
:)
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 |




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users