Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1503 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Easy Content updates

Thread title: Easy Content updates
Closed Thread    
    Thread tools Search this thread Display Modes  
09-26-2005, 02:42 PM
#1
t0m is offline t0m
Status: Request a custom title
Join date: Jan 2005
Location: West Sussex, England
Expertise:
Software:
 
Posts: 2,829
iTrader: 21 / 100%
 

t0m is on a distinguished road

  Old  Easy Content updates

Hi,

Im basically trying to make my personal site full of weird pics, blog style entries and videos/audio.
If i make a nice template etc, what is the best way of constantly adding content?

Or would it be easier to use wordpress or something? and make a template to fit tht...

Just a thought, but when you create an iframe you get a seperate html txt doc that you just change the iframe content in... is there a way of doing this but within my content boxes.. and adding pics etc

Thanks

10-10-2005, 02:07 PM
#2
DateinaDash is offline DateinaDash
Status: The BidMaster
Join date: Nov 2004
Location: England
Expertise:
Software:
 
Posts: 10,821
iTrader: 0 / 0%
 

DateinaDash is on a distinguished road

  Old

You could use an iframe but it would be alot easier to use a cms or something

10-10-2005, 02:41 PM
#3
sliceandcode is offline sliceandcode
Status: Request a custom title
Join date: Aug 2004
Location: California
Expertise:
Software:
 
Posts: 1,004
iTrader: 0 / 0%
 

sliceandcode is on a distinguished road

  Old

Mambo! Use Mambo. It has so many features.. and your design can easily be skinned to it.

http://www.mamboserver.com/ - Get Mambo here

http://www.mamboawards.com/ - This site is amazing. Check out all the websites that are running on mambo, it's awesome.

http://www.mamboportal.com/ - And get add-ons and such for your mambo

10-10-2005, 03:54 PM
#4
Mr. Cheeky is offline Mr. Cheeky
Status: I love this place
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 739
iTrader: 0 / 0%
 

Mr. Cheeky is on a distinguished road

  Old

Insert this code into your content area:
Code:
<?
$val = $_GET['id']; // Replace id with whatever you want to use, eg ?id=page
$val .= ".php"; // Makes the filename complete so if you called ?id=index, it would be index.php it has to look for
$dirty = array("..");
$clean = array("");
$val = str_replace($dirty, $clean, $val); // Prevent people from viewing root files like your password 

if (isset($_GET['id'])) { // Replace id with whatever you want to use, eg ?id=page
if (file_exists($val)) { // This checks if the file you are trying to call exists
include "$val";
}
else {
include "404.php"; // If the file doesnt exists it calls your 404 error page
}
}
else {
include "home.php"; // If ?id= is not set it will now go to your news page
}
?>
I didn't make this script nor do I claim to. All your pages will have to be renamed to have .php extensions. This script is amazing, very easy to update pages.

Also use php includes for static content:
Code:
<? include("yourfilename.php") ?>

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed