vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Instant Txt/ Html/ Java File Forum Integration (https://vborg.vbsupport.ru/showthread.php?t=66084)

Erwin 06-11-2004 10:00 PM

Instant Txt/ Html/ Java File Forum Integration
 
INSTANT TXT/ HTML/ JAVA FILE FORUM INTEGRATION

Version 1.3 for vBulletin 3.x.x by Dr Erwin Loh

As the name suggests, this hack allows you to display any HTML file integrated into your forums automatically.

No file hacking! No template modifying! Just upload 1 file!

There is 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 - NOTE: the file name is case-sensitive.

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. :)

To let only certain usergroups see the page, instructions are in the PHP file on how to do it.


Installation- upload 1 file!

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!



Update

Version 1.1 - Made the the title of the forums show up in the page and the heading of the table if no title is set in the URL - if the title is set, the title is now also shown in the table heading.

Version 1.2 - added automatic navbar support. :)

Version 1.3 - reduce 1 query by caching template.

Enjoy! :)

MrZeropage 06-12-2004 07:16 AM

This sounds FANTASTIC and gives so many options to integrate in the forum ...

THANKS !

Logik 06-12-2004 08:07 AM

niceeeeeeee..

NuclioN 06-12-2004 09:25 AM

Very good :) Tnx Erwin.

Boofo 06-13-2004 06:24 AM

It works great! Can we change where it says vBulletin Message to the page title somehow?

Erwin 06-13-2004 01:44 PM

Quote:

Originally Posted by Boofo
It works great! Can we change where it says vBulletin Message to the page title somehow?

Mmm... I'm using the generic vBulletin STANDARD_ERROR template to make this hack easy to use - if you want you can add a new template and put its name into the html.php and you can name it whatever you want! :)

Boofo 06-13-2004 03:26 PM

Quote:

Originally Posted by Erwin
Mmm... I'm using the generic vBulletin STANDARD_ERROR template to make this hack easy to use - if you want you can add a new template and put its name into the html.php and you can name it whatever you want! :)

I can do that. I'll just copy the whole STANDARD_ERROR template and pass the title to it where the vBulletin message is now and voila! ;) Thank you, sir. ;)

ChurchMedia 06-16-2004 07:45 AM

GREAT idea! I'll make good use of this!

Synicide 06-16-2004 05:01 PM

This is just awesome, great way to integrate tournament signups into my fourm, I was thinking of doing something like this myself, but Erwin always does a much better job. :D Thanks dude.

[high]* Synicide frantically hits the install button.[/high]

gmarik 06-17-2004 12:18 PM

I give you my thanks, pal. Only one request. Could you remake
http://www.your-forums/forums/html.php?file=xxx.html to work with
http://www.your-forums/forums/html/xxx.htm ?


All times are GMT. The time now is 12:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete