4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: HelpMeNow on June 14, 2003, 03:56:38 PM

Title: is there away to use this program to show the .txt files?
Post by: HelpMeNow on June 14, 2003, 03:56:38 PM
Is there a way to show .txt or .html files in the details page. Like when users upload an image file...what if they upload a txt file. I would like to be able to have detail page show the content of the txt file or the html file....can someone help. thanks
Title: is there away to use this program to show the .txt files?
Post by: Apollo13 on June 14, 2003, 05:47:11 PM
well txt is possible but html files i think not
Title: is there away to use this program to show the .txt files?
Post by: V@no on June 14, 2003, 10:22:54 PM
Quote from: Cr@zy Sash
well txt is possible but html files i think not

yes, any files is possible ;) (this (http://come.no-ip.com/details.php?image_id=7550) game is 100% html and JS)

two steps u need to do:
1. create new template with name of your files exetension (i.e. txt.html ) and place it in /templates/<yourtemplate>/media/ folder (look in jpg.html template for the avalable tags).
2. add the extension in 4images settings
Title: is there away to use this program to show the .txt files?
Post by: Apollo13 on June 15, 2003, 08:48:37 AM
well i don't know the thing with html files *gg*
Title: is there away to use this program to show the .txt files?
Post by: HelpMeNow on June 15, 2003, 08:33:22 PM
okay everyone...thanks for you help. I didn't know it as easy as just creating a template for .txt or .html.  :oops:

 :)
Title: is there away to use this program to show the .txt files?
Post by: syella1 on June 25, 2003, 04:48:22 PM
Dear v@no
Did you use frames in details.php page of the gallery?
I want to display a html page like

http://mydomain.com/shower.htm?file=dfjhf&dfdsfs=0&nav=1

something like this as the details page of a thumbnail, i do not want to save the image in the database but only save the link.
I tried creating the template for .html but it does not seem to work
Title: is there away to use this program to show the .txt files?
Post by: V@no on June 25, 2003, 09:19:09 PM
Quote from: syella1
Did you use frames in details.php page of the gallery?

no, I use
Quote
<iframe src="{media_src}"></iframe>

*ofcourse with some "needed" extra parameters
Title: Help
Post by: syella1 on June 25, 2003, 09:51:39 PM
Dear V@no,

I am new to Php and mysql,  :oops:

In this page http://imgem.psych.uic.edu/2ddata/details.php?image_id=3

Click the download button - the page that is displayed is what i want to be the detail image. But when i use the link as the image path i cannot upload the image- i get check the field- Image

Help pls
Title: <iframe> problems
Post by: notsowiseone on June 25, 2003, 10:47:43 PM
hope you can help... I set up the iframes for .txt and all is well except there seems to be no parameter to prevent text from scrolling to the right.  for instance- looks a word pad doc with the wordwrap off.  I tried CSS on the iframe to no avail.  Any ideas would be much appreciated as we do not want to have to put returns in every line befor uploading
Title: is there away to use this program to show the .txt files?
Post by: syella1 on June 25, 2003, 11:29:08 PM
Quote from: syella1
I want to display a html page like

http://mydomain.com/shower.htm?file=dfjhf&dfdsfs=0&nav=1


I figured out

Use http://mydomain.com/shower.htm?file=dfjhf&dfdsfs=0&nav=1.htm   :wink: as the image path after creating the htm.html template file (using iframe)


Thanks guys,