Jump to content

Recommended Posts

(Please read all the way through)

 

Hi, I'm new to PHP and basically wondering what the most efficient/practical way of making a news post is as someone with no background in PHP? I have a website - http://www.snackpatrol.com/ and I basically want news posts that look exactly like those posted up there but obviously...done in PHP, not html. Is there a script I could get that would easily keep the format for the rest of the page AND the font/fontsize/colors/bg images etc. of the news post area itself or would I be better off just learning PHP? The main goal is to have them up and running but if it's easy enough to learn how to do it myself I might as well, as I'll probably have other PHP stuff on there in the long run. If a script can do it just fine, I'm sure I could learn the basics in time just by looking at/fooling around with the code. What do you guys think the best road is for me to take?

 

Also, those posts are obviously fake/filler and sorry if I offended anyone by their inane subject matter, haha.

To keep the format you have to use HTML.  Look up CSS (cascading style sheets).  This will keep everything consistent and easy to change.  PHP is good for the dynamic content but not necessary for news posts.

 

If you are referring to RSS feeds, like news from other sites onto yours, then you should do it in PHP.  It's quite simple: IBM RSS tutorial.  But there are many free RSS feeders out there.

 

I think I may still be confused as to exactly what you're looking for...

well I mean, not "make my news posts look the best", i mean, I want to be able to write in a form somewhere my news post, and have it show up on the front page. I've seen a collection of html and php files zipped up that some guy had and his demo of it on his site looked great (for instance, one file you ENTERED posts one, one was the actual page), but I've long lost that during a bunch of reformatting. Basically something to output a news post I entered, into that format onto the page. And possibly say, after like a few posts it moves the old ones to another page (the archive section)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.