Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
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
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 09-25-2002 Last Update: Never Installs: 47
 
No support by the author.

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

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

Comments
  #82  
Old 05-24-2003, 06:47 PM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello again Erwin, just thought to mention I have Apache/1.3.24 and made a .htaccess with the code below and uploaded to

http://www.mysite.com/forums/.htaccess

*When i tried to access any page including my index I get "Internal server error"


**Thanks anyway for taking the time, if i can't get this to work will look for alternate method but was just looking for some way to integrate the VBB search engine and way to index all my extra file's in /data even if not possible with the VBB search engine

Thanks Erwin
Reply With Quote
  #83  
Old 05-25-2003, 03:54 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Weird - your server may not have .htaccess enabled or something like that.

Sorry, not much I can do to get around this without using redirection like that...
Reply With Quote
  #84  
Old 05-25-2003, 12:59 PM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nah .htaccess is enabled...I have on other directorys...cool enough erwin I'll get it figured and appreciate your help
Reply With Quote
  #85  
Old 05-26-2003, 12:35 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try my .htaccess file again, but remove the last line. See if that works.
Reply With Quote
  #86  
Old 05-26-2003, 12:52 AM
alesis404 alesis404 is offline
 
Join Date: May 2003
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried again last line removed but get internal error again, just to be sure and this may be stupid question...The contents of the .htaccess file should just be the code correct? and not the standard .htaccess contents like

AuthUserFile /home/whatever/info/.htpasswd
AuthGroupFile /dev/null
AuthName "Hello"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

*I have simply made a file named .htaccess and inserted just your code and none of the usual .htaccess code like above...is this correct?

RewriteEngine on
RewriteRule ^data/([^$]*).html$ html.php?file=data/$1.html
RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

**And then tried the second time with the contents of .htaccess being

RewriteEngine on
RewriteRule ^data/([^$]*).html$ html.php?file=data/$1.html
Reply With Quote
  #87  
Old 06-05-2003, 03:10 AM
skorzguy's Avatar
skorzguy skorzguy is offline
 
Join Date: May 2003
Location: Cleveland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used the hack and it worked but I don't understand how to make the VB DB work with it? Any info how to make this work? Here's what it looks like so far.

http://www.allstarchat.com/forums/ht...ile=index.html
Reply With Quote
  #88  
Old 06-05-2003, 03:12 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean make the vB Db work with it? Please explain, or use some examples.
Reply With Quote
  #89  
Old 06-05-2003, 11:59 PM
skorzguy's Avatar
skorzguy skorzguy is offline
 
Join Date: May 2003
Location: Cleveland
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only instructions are:

RealChat can be easily integrated with any user profile ( membership ) system. There is a set of parameters which allow you to pass additional information from an user profile database to client applet. You pass these parameters by using dynamically generated HTML code. You can use any server-parsed HTML tools such as ASP, PHP, Perl, or whatever you like.

Tip: The easiest way is to do this is to use any of your existing site login scripts as a template, and modify it so after a successful login the script dynamically generates the applet page.

In the example below parameters have been added to pass the user's nickname, real name, age, and favorite drink. The user is also prohibited from changing his/her profile once logged in.

There is detaied explanation for what each parameter does in the Configuration directives reference section.

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

<applet
codebase = "."
archive = "RealChat.jar"
code = "rcs.client.RealChatClient.class"
name = "ChatClient"
width = "300"
height = "100"
MAYSCRIPT>

<param name="nick" value="BadJohn">

<param name="pValue1" value="John Doe">
<param name="pValue2" value="35">

<param name="pLabel3" value="Favorite drink:">
<param name="pValue3" value="beer">

<param name="canChangeProfile" value="no">

</applet>

I don't know how to get these tags to use the information from VB. I tried putting "$bbuserinfo[joindate], [joindate],and "post$[joindate] in the value field as an example and it was blank when I opened the page. What should I put in the value field, I don't have a clue.
Reply With Quote
  #90  
Old 06-06-2003, 08:16 PM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack, but how can I have the "vBulletin Message" which seems to be some sort of default actually be the title of the document.

An example of what I am refering to:
http://www.spamsession.com/1/vb1/htm....htm&title=WXP

Thanks!
Reply With Quote
  #91  
Old 06-06-2003, 08:28 PM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, I figured it out after scratching my head a bit more.

Open your "standarderror" template and search for this code:
PHP Code:
    <b>vBulletin Message</b></normalfont></td
Just replate with this:
PHP Code:
    <b>$title</b></normalfont></td
And save the file with a new name.

In the html.php file, search for this code:
PHP Code:
        eval("dooutput(\"".gettemplate('standarderror')."\");"); 
And replace "standarderror" with the name of your new template.

Make sure you upload the html.php file after you finished.

You can see the final results here (for now at least):
http://www.spamsession.com/1/vb1/htm...0/Windows%20XP

:banana:
Reply With Quote
Reply

Thread Tools

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 05:22 AM.


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.08440 seconds
  • Memory Usage 2,308KB
  • 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_php
  • (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