Author Topic: is there away to use this program to show the .txt files?  (Read 8026 times)

0 Members and 1 Guest are viewing this topic.

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
is there away to use this program to show the .txt files?
« 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

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
is there away to use this program to show the .txt files?
« Reply #1 on: June 14, 2003, 05:47:11 PM »
well txt is possible but html files i think not

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
is there away to use this program to show the .txt files?
« Reply #2 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 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
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Apollo13

  • Addicted member
  • ******
  • Posts: 1.093
    • View Profile
is there away to use this program to show the .txt files?
« Reply #3 on: June 15, 2003, 08:48:37 AM »
well i don't know the thing with html files *gg*

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
is there away to use this program to show the .txt files?
« Reply #4 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:

 :)

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
is there away to use this program to show the .txt files?
« Reply #5 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
is there away to use this program to show the .txt files?
« Reply #6 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
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
Help
« Reply #7 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

Offline notsowiseone

  • Pre-Newbie
  • Posts: 8
    • View Profile
<iframe> problems
« Reply #8 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

Offline syella1

  • Newbie
  • *
  • Posts: 12
    • View Profile
is there away to use this program to show the .txt files?
« Reply #9 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,