Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Instant Txt/ Html/ Java File Forum Integration Details »»
Instant Txt/ Html/ Java File Forum Integration
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 06-11-2004 Last Update: Never Installs: 63
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-08-2005, 07:49 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Guys - it doesn?t work for me :

http://www.www.redlabour.de/forum/ht...impressum.html

as Example.
Reply With Quote
  #43  
Old 03-10-2005, 08:13 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
Sorry Guys - it doesn?t work for me :

http://www.www.redlabour.de/forum/ht...impressum.html

as Example.
You need to put the HTML file in the same or higher directory (not below), and you cannot link to http:// remote addresses.
Reply With Quote
  #44  
Old 03-26-2005, 12:53 AM
seiken2099's Avatar
seiken2099 seiken2099 is offline
 
Join Date: Dec 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack!
Reply With Quote
  #45  
Old 03-26-2005, 01:52 AM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I use subforms with this hack? I would like to keep the HTML files organized in a sub directory off the main forums directory.
Reply With Quote
  #46  
Old 03-28-2005, 03:50 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisBaktis
How do I use subforms with this hack? I would like to keep the HTML files organized in a sub directory off the main forums directory.
Read the first post.
Reply With Quote
  #47  
Old 03-30-2005, 02:59 PM
ekopapers ekopapers is offline
 
Join Date: Apr 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks installs

very nice had to use an inline frame however to get my script to work with it. either way I am very happy with it. integrated my store into my site nicely
Reply With Quote
  #48  
Old 05-09-2005, 05:07 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to use PHP files with this? if so, how?
Reply With Quote
  #49  
Old 06-02-2005, 02:08 PM
Rob Locke Rob Locke is offline
 
Join Date: Mar 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is fantastic!!! May I ask a few little questions?

1) Can I include vb code in the html file and will it be parsed? For example, can I set the parameters of a table to: cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" and so on?

Another example, can I include a signature using:

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

I think you get the picture.

2) Specifically I would like to use css styles that match my vb style. Is it simply a question of linking the html file to the vb stylesheet?

3) Can you add a little variable that allows specific users as well usergroups to integrate files?

If the parsing does not work at this time, please may I request you add it to the next version? To be able to utilize all the benefits of html, combined with vb functionality and style settings will be superlative.

-------------------------------------------------

One last thing...would it be possible to create a version of this hack which allows you to integrate html into a specific post? The use of html in the message editor is very limited. For example, using tables and div or span tags throws the layout way off (I guess this is because the message editor recognizes a hard return as a line break). To have specific users and/or usergroups (overriding the forum html posting defaults) able to include a separate html file (with full vb parsing enabled) would make you the KING in my opinion. It would be one of the most useful additions I can think of. If you can do this, may I ask you bear in mind the thread previews, which show non-parsed html when you mouseover them? Perhaps in the message editor, you can include a bbcode that wraps around text, which is just for the thread preview and is automatically hidden in the post. Perhaps another bbcode links to the html file and is automatically hidden from the thread preview? I know thousands of vb users would worship the ground you walk on for this!

Thanks again for all your amazing work,

Rob.
Reply With Quote
  #50  
Old 06-02-2005, 03:50 PM
oceanart oceanart is offline
 
Join Date: May 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would this be the best way of adding "About Us" page. I haven't found an add-on for only "about us" so I am considering to use this addition. I would like the same solution as "contact us" however I need to add a picture, some text and address, instead of form with all the header, footer content.

I thought to create it in Html and just integrate using the add-on. Is this the best approach?

I also considered the following

How to create your own vBulletin-powered page!
https://vborg.vbsupport.ru/showthread.php?t=62164

Fast access to forum rules from anywhere
https://vborg.vbsupport.ru/showthrea...threadid=34861

Instant Txt/ Html/ Java File Forum Integration
https://vborg.vbsupport.ru/showthread.php?t=66084

WebTemplates 3.x: VB Integrated Content Management System
https://vborg.vbsupport.ru/showthread.php?t=76422
Reply With Quote
  #51  
Old 06-02-2005, 11:28 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oceanart
Would this be the best way of adding "About Us" page. I haven't found an add-on for only "about us" so I am considering to use this addition. I would like the same solution as "contact us" however I need to add a picture, some text and address, instead of form with all the header, footer content.

I thought to create it in Html and just integrate using the add-on. Is this the best approach?

I also considered the following

How to create your own vBulletin-powered page!
https://vborg.vbsupport.ru/showthread.php?t=62164

Fast access to forum rules from anywhere
https://vborg.vbsupport.ru/showthrea...threadid=34861

Instant Txt/ Html/ Java File Forum Integration
https://vborg.vbsupport.ru/showthread.php?t=66084

WebTemplates 3.x: VB Integrated Content Management System
https://vborg.vbsupport.ru/showthread.php?t=76422
You can use any of those methods.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04866 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete