Log in

View Full Version : Updating Content



Medyman
06-02-2007, 03:29 AM
Hey everyone...

I'm developing a website which is an integration of a 8 WordPress weblogs with some static content. It's quite a huge endevor for me as my recent work has almost exclusively been in Flash and ActionScript.

I got my start in CSS/HTML and jumped straight to ActionScript and haven't yet gotten a chance to learn up on my PHP and everything else that I probably should know.

So, here is the deal.
There is a section of the site that has a "News" section. Now, currently it's all html and therefore adding additional news in the future would require editing it in every single static file (around 15) and the WordPress themes for all 8 blogs. Not a very user friendly procedure.

So, I'm guess there is a way to do this via PHP + MySQL and I was hoping someone could help me with it.

Have a look at the current site to see what I mean (the left sidebar): www.demos.designsbvishal.com/thepaperbagwriter

(the site is still in development so there might be a few bugs still)

I'll also need a similar thing for the "personals" section below the video section.

thetestingsite
06-02-2007, 03:52 AM
Server Not Available/Found when I click on the link you provided. Anyways, take a look through this website for some help on PHP and MySQL.

http://www.php-mysql-tutorial.com/

Hope this helps.

Medyman
06-02-2007, 04:06 AM
Sorry about the link, had a typ0

THIS (www.demos.designsbyvishal.com/thepaperbagwriter) is the right url

thetestingsite
06-02-2007, 02:57 PM
Well, you could do it in more than one way. You could use one file (let's call it news.txt) and simply include that file in every page that displays the "news" by adding this to every page:



<?php include('news.txt');?>


That way there is only one file to edit for the news. The other option is (as you said) using MySQL. If you go that route, you could look through the site I linked to in my previous post and that will get you started.

Hope this helps.

bookwriter
06-07-2007, 06:29 AM
Well this did help me with an issue that I was pondering so thank you!
Can you offer suggestions to me on another thing?

I have a personal website where I maintain a journal. I have been using a form as such:

<form action="URI">
<p align="center"><textarea
name="my web site name"
rows="16" cols="65"
style="border-style: solid; background-color: rgb(255, 204, 255); font-family: verdana; color: rgb(153, 0, 255);"> Some text </form>


This form has never been easy to work and now that I've switched from Frontpage to a new html editor, all kinds of glitches occur.

I would like to find an easier way to maintain an online journal within my current page without having to send someone to a blog page or site, or have limits on the amount of text that I can enter (as with some tag boards).

Do you have any suggestions?
Thanks
D

bookwriter
06-07-2007, 06:45 AM
I just found a site by reading another post that has something that looks like could work.
[URL="http://www.diaboliquedoll.net/public/pages/home.htm"]
she has a journal link. Do you know what kind of script this is? Would this work for a site created in html? Thanks again.