Author Topic: HTML as Media type?  (Read 7188 times)

0 Members and 1 Guest are viewing this topic.

Offline Cat

  • Newbie
  • *
  • Posts: 21
    • View Profile
HTML as Media type?
« on: January 18, 2003, 02:16:36 PM »
I'm trying to add "html" as media type..make the 4images to read ready htmls. I get the htmls uploaded, but when viewing the "html" i get a text
./data/media/32/lessonnew28.html
instead of the html itself.
I added the mime type to be $mime_type_match['html'] = array("text/html");
I wonder what i'm doing wrong as page displays just the path to file. Maybe the html.html media type? I wasn't sure what to add there.
Or i'm trying something impossible? Adding html into html? Uh oh!

Anyone can help with this issue..? It would be apprecciated and lots:=)
I couldn't find any topic on this specific issue.. i did seach here and got the basics set up so far.

*Edited: To be more specific..i want to do this without using iframes but instead "embed" the htmls  into page, and avoid the extra scrollbars.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
HTML as Media type?
« Reply #1 on: January 18, 2003, 04:59:52 PM »
How does your template" media/html.html" looks like?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Cat

  • Newbie
  • *
  • Posts: 21
    • View Profile
Changed it back and
« Reply #2 on: January 18, 2003, 05:07:08 PM »
It looks like this as i couldn't figure any other way doing it but the iframes:
<!-- Template file for html Files -->
<table cellpadding="1" cellspacing="0" border="0" width="700">
  <tr>
    <td><iframe src={media_src}  width="700" height="500"  type="text/html"></iframe>
   </td>
  </tr>
</table>
<br />

but i'd want skip the iframes, and what ever i have tried, i have been without luck. Is there a way to add it as being "embedded" there?
Thank you too for answering so quick:=)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
HTML as Media type?
« Reply #3 on: January 18, 2003, 05:18:08 PM »
I don't know another way to embed html files in another way.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Cat

  • Newbie
  • *
  • Posts: 21
    • View Profile
Ok..
« Reply #4 on: January 18, 2003, 05:59:05 PM »
Sigh i suppose i'll have to use the iframes then..Seems i'm always asking something odd. What i was after is some sort of "add on" into the php script so i could have added just the {media_src} there and it would have opened up like the basic templates open up. I prollay explain this too hard ways, i mean modified code that "opens" the html itself there without  using iframes.
Anyhow thanks for your time..maybe i next time ask something "normal":=)
As add on to the earlier q i asked while back.. there are isps that use always new ip when connecting to web page; each image for instance is read by diff ip, eg  some individual aol isps..so the "downloading index.php" problem cannot be solved with everyone i believe unless ppl change their servers. Other ways,  the fix with missing  / (which is posted here) for netscape works with opera too.

Offline Cabbage

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://www.jimmieschickenshack.net
HTML as Media type?
« Reply #5 on: February 17, 2003, 09:13:19 PM »
Thanks this is great!

Put it in the FAQ / next release