TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

put txt into HTML.

Page: 1 2 Reply
Mar 24th 2003#96732 Report
Member since: Oct 10th 2002
Posts: 218
Is there a script so that txt files can be properly sized in an HTML document.

i dunno if thats clear but check this out. This is the site im working on.

www.tpscene.com

If you notice where "tptalk" is. I am using an iframe that goes to a txt file. The reason why i want to use txt is so my friend can upate his own page himself with out using html. He wants to be able to just type and upload. The problem is how do i get the font to match the rest of the font on the site. And i dont want it to scroll left and right.

thanks in advanced

sold
Reply with Quote Reply
Mar 24th 2003#96743 Report
Member since: Mar 20th 2001
Posts: 3367
Use PHP or SSI to include his txt file in a html coded page so you can format it?

<font face="...."><?php include("textfile.txt"); ?></font>
or
<font face="...."><!--#include file="textfile.txt" --></font>

Or use CSS to format it instead of font tags
Reply with Quote Reply
Mar 24th 2003#96805 Report
Member since: Oct 10th 2002
Posts: 218
i think something is missing im not seeing the txt file anymore

all i did was copy paste then enter the font in the font spot and the txt file in the txtfile part.

also just to let you know im doing this in dreamweaver.
Reply with Quote Reply
Mar 24th 2003#96809 Report
Member since: Oct 10th 2002
Posts: 218
i tried the SSI but it doesnt give me scroll bar on the right and the txt has no break's between paragraphs.
Reply with Quote Reply
Mar 25th 2003#96943 Report
Member since: Oct 10th 2002
Posts: 218
i guess he got banned bump can someone else help me?
Reply with Quote Reply
Mar 25th 2003#96951 Report
Member since: May 1st 2002
Posts: 3034
lol he's not banned he's a mod :D.. but just use the php method just make sure to name your file .php! and make sure your host supports php it'll work.
Reply with Quote Reply
Mar 25th 2003#96965 Report
Member since: Oct 10th 2002
Posts: 218
oh so the txt hasta be php? i know the host does php. Which file do i save as php?
Reply with Quote Reply
Mar 25th 2003#96968 Report
Member since: Nov 26th 2001
Posts: 2586
You can create a template page that is used to display the text - like how you would with a news box. Then you can format the width of the tables, etc. for display, and include a style sheet to automatically format the text once your buddy hits "submit".
Reply with Quote Reply
Mar 25th 2003#96969 Report
Member since: Oct 10th 2002
Posts: 218
ooo that sounds interesting i should try that. ill let you know how that goes. never really worked with template before how does this work.
Reply with Quote Reply
Mar 25th 2003#96980 Report
Member since: Oct 10th 2002
Posts: 218
ok so this template stuff is tuff. my friend doesnt have dreamweaver just to let you know. I dont understand how he is sappose to edit with template?
Reply with Quote Reply
Page: 1 2 Back to top
Please login or register above to post in this forum