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

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
  #12  
Old 06-19-2004, 04:57 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.1 update

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.

All you need to do is download and upload the new html.php - nothing else to do.
Reply With Quote
  #13  
Old 06-24-2004, 01:01 AM
dadymac dadymac is offline
 
Join Date: Nov 2001
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to get the navlinks in there?

also, if the shtml file (or any for that matter) does anykind of ssi, they wont show up, ive been trying to find some way around this without having to use an iframe, this is as close as i have gotten.
Reply With Quote
  #14  
Old 06-24-2004, 01:43 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The navbar? That can be easily added actually... I'll do that for the next version.
Reply With Quote
  #15  
Old 06-24-2004, 05:20 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great idea and great hack

1 question

Anyway to make it show up ascii ?

It would be great if i can show off some of my ascii art this way.
Reply With Quote
  #16  
Old 06-28-2004, 08:56 AM
genmud genmud is offline
 
Join Date: Aug 2003
Location: PHOENIX
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea... I installed this php file and renamed it to page.php.... everything includes fine, and i can do everything correctly, I also added a style named htmlinc for the wrapper of the page... what I tried to do was include the navbar, with all the links to the forums and everything... but I couldn't do it it wont even show up... here is the template:

I put the $navbar code in... so shouldn't it show up???

I am a noob @ hacking so :P
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
 <title>$pagetitle</title>
$headinclude
$headinsert
</head>
<body>
$header
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td width="36" align="left" valign="top" nowrap background="images/hardwired/misc/vborgmiddle_01.gif"><img src="images/hardwired/misc/vborgmiddle_01.gif" width="36" height="57" alt=""></td>
	<td width="100%" valign="top">
	  $navbar
	</center></td>
	<td width="37" align="right" valign="top" nowrap background="images/hardwired/misc/vborgmiddle_03.gif"><img src="images/hardwired/misc/vborgmiddle_03.gif" width="37" height="57" alt=""></td>
  </tr>
</table>
<table width="100%" height="378" border="0" align="center" valign="middle" cellpadding="0" cellspacing="0">
  <tr>
	<td width="36" height="100%" align="left" valign="top" nowrap background="images/hardwired/misc/vborgmiddle_01.gif"><img src="images/hardwired/misc/vborgmiddle_01.gif" width="36" height="57" alt=""></td>
	<td width="100%" height="100%" valign="top">
<br />
<br />
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center" valign="middle">
<tr>
 <td class="tcat">$vbphrase[vbulletin_message]</td>
</tr>
<tr>
 <td class="panelsurround" align="center">
 <div class="panel">
  <div align="$stylevar[left]">
 
  <if condition="$show['permission_error']">  
   <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
   <form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
   <input type="hidden" name="do" value="login" />
   <input type="hidden" name="forceredirect" value="1" />
   <input type="hidden" name="url" value="$scriptpath" />
   <input type="hidden" name="vb_login_md5password" />
   $postvars
 
   <input type="hidden" name="s" value="$session[sessionhash]" />
  
   <!-- permission error message - user not logged in -->
   
   
   <div class="smallfont">$vbphrase[not_logged_no_permission]</div>
   
   <ol>
	<li class="smallfont">$vbphrase[not_logged_in_fill_in_form]</li>
	<li class="smallfont">$vbphrase[may_not_have_sufficient_privileges]</li>
	<li class="smallfont">$vbphrase[administrator_may_disabled_account]</li>
   </ol>
   
   <fieldset class="fieldset">
	<legend>$vbphrase[log_in]</legend>
	<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center">
	<tr>
	 <td>$vbphrase[username]:<br /><input type="text" class="bginput" name="vb_login_username" size="50" accesskey="u" tabindex="1" /></td>
	</tr>
	<tr>
	 <td>$vbphrase[password]:<br /><input type="password" class="bginput" name="vb_login_password" size="50" accesskey="p" tabindex="1" /></td>
	</tr>
	<tr>
	 <td>
	  <span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span>
	  <label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" checked="checked" tabindex="1" />$vbphrase[remember_me]</label>
	 </td>
	</tr>
	<tr>
	 <td align="$stylevar[right]">
	  <input type="submit" class="button" value="$vbphrase[log_in]" accesskey="s" tabindex="1" />
	  <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" tabindex="1" />
	 </td>
	</tr>
	</table>
   </fieldset>
   
   <div class="smallfont"><phrase 1="register.php?$session[sessionurl]do=signup">$vbphrase[admin_required_register]</phrase></div>
   </form>
   
   <!-- / permission error message - user not logged in -->
  <else />  
   <!-- main error message -->
   
   
   <blockquote><p>$errormessage</p></blockquote>
   
	
   <!-- / main error message -->   
  </if>
  
  </div>
 </div>
 <!--
 <div style="margin-top:$stylevar[cellpadding]px">
  <input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" />
 </div>
 -->
 </td>
</tr>
</table>
<br />
<!-- forum jump -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
 <td>$forumjump</td>
</tr>
</table>
<!-- / forum jump -->
<br />
<br />
	</center></td>
	<td width="37" height="100%" align="right" valign="top" nowrap background="images/hardwired/misc/vborgmiddle_03.gif"><img src="images/hardwired/misc/vborgmiddle_03.gif" width="37" height="57" alt=""></td>
  </tr>
</table>
$footer
</body>
</html>
Reply With Quote
  #17  
Old 07-02-2004, 06:03 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news on adding the navbar Erwin ?
Reply With Quote
  #18  
Old 07-02-2004, 06:25 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been busy with my own site. This weekend hopefully.
Reply With Quote
  #19  
Old 07-02-2004, 08:46 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may call me idiot, but I have no great experience in vB, php etc.

What I am looking for, is a way to call an external .html file, to show a sponsors banner in every page of my forums. I know I can edit the templates to do it, but then every time I change something in my sponsors panel, I would have to edit the HTML code in several places. At the moment, I have the html code below my navbar, but not all forum pages use the navbar.

I am not sure if I can do it with your hack. If you could help me out, I would sincerely appreciate it.

My site is http://forum.m1911.org and what I am trying to put on the external html file is the table called "Sponsors Panel".

Many thanks and kind regards
Reply With Quote
  #20  
Old 07-02-2004, 01:27 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
I've been busy with my own site. This weekend hopefully.
No rush Erwin Thanks for the update on time scale for the navbar version. Our own sites come first so no rush
Reply With Quote
  #21  
Old 07-06-2004, 11:20 AM
KingAdora KingAdora is offline
 
Join Date: Oct 2003
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic! Just what I've been looking for all morning
Would really like to see the nav bar in there to finish it off..


#######

edit: nevermind I managed that bit myself

#####



So yeah, if you can get the navbar to work with this, I'd be very happy

Great hack, thanks again,
KA
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 12:04 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.07084 seconds
  • Memory Usage 2,319KB
  • 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
  • (1)bbcode_code
  • (1)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
  • (3)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