The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
HTML, TXT, JAVA Integrator 2.0 Automatically display any HTML, TXT or JAVA file in vB Details »» | |||||||||||||||||||||||||||
HTML, TXT, JAVA Integrator 2.0 Automatically display any HTML, TXT or JAVA file in vB
Developer Last Online: May 2013
vB HTML, TXT, JAVA Integrator 2.0 - Automatically display any HTML, TXT or JAVA file integrated into vB - by Erwin
Upgraded for vB3: https://vborg.vbsupport.ru/showthread.php?t=66084 Hack updated - made it even easier to install - upload 1 file, and you're done! Just change the URL parameters as needed. No need to add templates or edit files. As the name suggests, this hack allows you to display any HTML file as integrated into your forums. No need to make a new template or PHP file. Easy way to incorporate rules, messages, web pages etc. into your forums. All you need to do is to run this URL: http://www.your-forums/forums/html.php?file=xxx.html Where xxx.html is the HTML file you want to integrate into your forums. The file extension can be HTML, HTM, SHTML or even TXT (text files). You can add more file extensions by modifying html.php This is also a quick way to integrate java applets into your forum (for example, java chat applets). Just copy and paste the java applet code into a HTML file, and then put the HTML file name into the URL above. Instant java integration! For HTML files in subdirectories, use this URL: http://www.your-forums/forums/html.p...ctory/xxx.html By default, the title is the filename. To make a custom title in your forum page, use this URL: http://www.your-forums/forums/html.p...tml&title=Your Title You can have spaces in your custom title. I have disabled remote file integration - this way other people cannot use this link to integrate offensive pages into your site. Installation 1) Upload html.php into your forum directory. 2) Done! 3) Upload any HTML file or TEXT file into your forums directory, or sub-directory, and run the command line URL as listed above, and you'll see the file integrated into your forums automatically! If you like this and want to receive updates, do press the "Install" link at the bottom of the thread. Enjoy! This version here is lets ALL users see the integrated HTML page. To let members only see the page, make the modifications listed in the next post. Updates: Version 1.1 - Added ability to add a custom page title to the integrated HTML forum page! Version 2.0 - Removed the need to add a template. Just upload the file, and you're done. Download: Show Your Support
|
Comments |
#22
|
||||
|
||||
Thanks for the kind words. Hope it is truly useful for you!
|
#23
|
||||
|
||||
Unique hack
[high]* Goldknight install since this hack is support[/high] |
#24
|
||||
|
||||
thanks Erwin very good and useful hack
|
#25
|
||||
|
||||
Thanks for the comments and feedback! If you like it and use it, don't forget to click the install link at the bottom of the thread!
|
#26
|
||||
|
||||
Pro hack, I'm actually not going to use it for my forums..but in another site of mine I'm working on :-D
/me kicks install |
#27
|
||||
|
||||
not to be picky erwin... but isnt alot easier to add a file like that:
Code:
<?php error_reporting(7); $templatesused = 'error_nopermission, your_template'; require('./global.php'); $permissions = getpermissions(); if (!$permissions['canview']) { show_nopermission(); } eval("dooutput(\"".gettemplate('your_template')."\");"); ?> |
#28
|
||||
|
||||
TECK, using your way, you need to add every single HTML file you have on your site as a new template, and then have a different PHP file to call each of this template.
My way, the html.php file automatically takes any HTML file on your file server and inserts it into the site. There is no need to add the HTML file into a vB template. Using my hack, adding HTML files into your forums is as easy as changing the URL filename. Your PHP code doesn't work for automatically including HTML files into vB. Trust me. There is not even a $file variable to get the HTML filename. |
#29
|
||||
|
||||
Quote:
There's no point including 2 templates into $templateused if each template is mutually exclusive. The templateused uses 1 query. Without it, when you either call error_nopermission OR the other template, it's 1 query each - it's never 2 queries. So you don't save any queries using $templateused if the templates are mutually exclusive and never run together. And looking at your code, you completely misunderstand this hack. This hack doesn't require anyone to save their HTML file into the template database, and have multiple PHP files. All you need is the html.php file. Then, just change the filename in front of it like this : html.php?file=index.html or html.php?file=anything.html, and the HTML will automatically be integrated as though it is in the template, but it's not. It actually is harder to do than it looks. It's not a simple include() function. It's not even a simple eval() function. I had to look up PHP manuals and do a tricky array type code to make the HTML file parsed into the forum. Try it and have a look at my code. Your code will never work for what I intend this hack to do. |
#30
|
||||
|
||||
Thanks for explaining Erwin. at a glance i thought you are trying to include a custom file onto vbulletin.
about the error_nopermission, is just a habit... i add it to all my files as a reflex... since most of them cache multible templates. so i kind of got used to write it automatically, as well as the IF permission... |
#31
|
||||
|
||||
Quote:
Quote:
Thanks for the input though, TECK. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|