THT Community (TCom)

Full Version: FrameSys - Show external websites with ease!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
FrameSys is my first, ever plugin for TheHostingTool. Well, except the UMI yes.
This makes you to make "small" plugins easily. Don't waste time writing a template just to show an external link - You have better things to do. This small plugin lets you to show any external page using just this simple code.

PHP Code:
    public function forums(){
        global 
$style;
        
$array['AREA'] = "TheHostingTool Support Forums";
        
$array['FRAME'] = "http://thehostingtool.com/forum";
        echo 
$style->replaceVar('tpl/frame.tpl'$array);
    } 
Easy, huh? AREA defines the "name of the website" and FRAME defines the URL. Then just echo it. Lalala - You have an external website linked in a frame. Without any extra tpls.
Great to link your users from the Client Area to your forum without leaving the THT Page, etc. You have many uses for it. Use the imagination.

To install, extract the package and you should see an /includes folder, just that. Preserve the directory structure (just grab the /includes folder and upload it into your THT ROOT DIRECTORY) Wink

Download: [attachment=24]
Could you help me fix this? Cant figure out how it works :/
I don't get what it does.
It shows an iframe. Period.

Just a useless tpl to avoid doing the very easy iframe work. Smile
Simplistic and effective! Big Grin
where do I have to paste the code from the 1st post?
if I paste it into index.php I always get error messages...
upload and extract the attached file to the THT root directory.
(08-22-2009 11:04 AM)Nick Wrote: [ -> ]upload and extract the attached file to the THT root directory.

yes, that's the frame.tpl file. but how do i show a frame for example on my index-page instead of the order form?
this is nice i will check it out Big Grin
@bugmenot: THT doesn't have an index page.
Pages: 1 2
Reference URL's