rejetto forum

How to use IFrame in HFS?

0 Members and 1 Guest are viewing this topic.

Offline nadzri87

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Hello.. want to ask you, how to use the iframe code so that if i mask the front page with html page it can show an Iframe where the content of my HFS is in there..


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13148
    • View Profile
best solution coming to my mind
1. create your "front page" as index.html
with a content like
<iframe src ="/~nodefault">Your browser does not support iframes</iframe>
2. add it to hfs, in the root/home
3. right click on it, and hide it
4. Menu > other options > enable ~nodefault




Funboss

  • Guest
I've got an Iframe embedded in my HFS template. It includes a shoutbox, using html/php. I'd like to use %user% as default nickname. Is this possible?

Template includes: <iframe src="website.com/shoutbox/index.php" (...) /iframe>
Url HFS: website.com:8080/


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13148
    • View Profile
you should refer to the shoutbox's documentation,
it's up to its capabilities.


Funboss

  • Guest
Thank you for the answer.

It's just a simple peace of php/html. Text input is saved in a text file. No documentation available at all.

Just a few lines (not for copy) attached.

HFS page: website:8080/
PHP Shoutbox: website/shoutbox.php

The shoutbox page is embedded in the HFS page using iframe tags. But i cannot use %user% in other pages than the HFS page. That's clear, I think? But is there another possibility to achieve it?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13148
    • View Profile
you can pass the username in the URL of the iframe,
so you'll read it by using $_GET in php


Funboss

  • Guest
Rejetto, you just made my day! I'm very thankful for your solutions!