TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,105
  • Total Topics: 21,345
  • Online today: 1,072
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 277
  • Total: 277

Inject html file(s)

Started by fenris_w0lf, January 24, 2006, 09:57:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fenris_w0lf

Thanks again Xarcell, really appreciate it!

One of the pages has MANY links in it, the other page has none. What is the other way of doing it ?

fenris_w0lf

#11
Hahaha this r0x !!!!

I just iframed this HUGE html file with tons of info (it did time out tho once) but when I refreshed it displayed it just nicely, and with the java-fix even nicer lol

THANKS !! :D

I'm still curious about that other way of doing it tho (when there's no links in the page thats gonna get iframed) - perhaps its possible in a block ?? (there's not much text in that file)

Xarcell

That other way is better, only if the links open in a new window I think. I haven't tested it to see if clicking a link loads it in-itself.

You can always make one of each and see what happens.

fenris_w0lf

Adding


<?php
include('myhtmlfilehere.html');
?>


to a phpbox block I get

Parse error: parse error, unexpected '<' in /home/evanss/public_html/Sources/Load.php(1598) : eval()'d code(32) : eval()'d code on line 1

IchBin

You do not need the <?php or ?> in the phpbox. All you need is the include line.

Xarcell


fenris_w0lf

Hmm...that didnt work all that well. I just got the title of the block and no text below it.

fenris_w0lf

#17
And the weirdest thing....I have this html block where I have 3 links:

<a href="index.php?action=chat">Chat here!</a>
<a href="index.php?page=10">Chat statistics</a>
<a href="index.php?page=13">Who's online now?</a>


Where the two last is "iframe-phparticles". Page10 is using the java-script and iframe that Xarcell tipped me about, and it works SO beautifully! So I copy/pasted the code from this one into my text-editor, search/replaced the iframeid and pasted it into a new php-article. But for some odd reason I get:

Parse error: parse error, unexpected '<' in /home/evanss/public_html/Sources/Load.php(1598) : eval()'d code(76) : eval()'d code on line 1

???

Edit: typos

feline

there is a singel ' in the line. this must masked ..

your code

<a href="index.php?page=13">Who's online now?</a>


change to

<a href="index.php?page=13">Who\'s online now?</a>


Fel

fenris_w0lf

Hmm...then I got this:

(notice the the html-block is on right side: "Who\'s online now?")




If I use the iframe or the php: include('myhtmlfilehere.html'); it gives this error, if I however change it to:

<a href="/files/irc/whosonafk.html">Who's online now?</a>

it works fine ???

This website is proudly hosted on Crocweb Cloud Website Hosting.