Back to vBulletin 3.0 Add-Ons

Compose External Javascript
Mod Version: 1.00, by Bernd Glasstett

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 18
Released: 06 Jan 2004 Last Update: Never Downloads: 14
Not Supported  

vB Compose External v. 1.0.3 (Updated)

This hack provides an easy way to generate JS-Code for the Javascript syndication system on vB 3. It has been tested with VB 3.0.0 RC 1 and higher.

Features:

  • Complete control of the HTML-code before, after and in between the links to the threads
  • Possibility to enter a maximum-value for the count of threads to be displayed by the administrator
  • Users can choose more than one forum to be displayed
  • Users can choose how many threads to be displayed
  • Users can choose how many characters in the thread title should appear (new in version 1.0.1)
  • Users can choose from three pre-made styles (new in version 1.0.3)
  • Integration into forumdisplay and navbar-templates (new in version 1.0.4)
  • Complete integration in the look and feel of vB 3
  • Phrase-compatibility
Plans for future versions:
  • Option to choose the forums from a pulldown-menü
  • Option to add it to the forum-tools (in order to be able to have the JS-Script created for this specific forum)
  • Options for creating the URLs for XML- and RSS-feeds
  • Adding new features when external.php will be updated with new features
These are the instructions how to install it:
  • New templates: 1
  • Templates to be changed: 2
  • PHP-files to be added: 1
  • Phrases to be added: 23
Step 1:
Insert the phrases using the XML-files. There are phrases for some languages. You can of course translate them to other languages using the phrase-system. If you do so, please send me the XML-files for these translations. I will add them to this ZIP. Right now there are:
  • German
  • English
Please be sure to save the language in the phrase system BEFORE you do so!

Step 2:
Upload the file composeexternal.php in the root of your forum.
Upload the files in the folder /images/composeexternal/ on the server.


Step 3:
Add a new template with the name "composeexternal" and add the content of composeexternal_template.txt (in this zip) to it.

Step 4:
Search for the following code on template forumdisplay:
Code:
 
 	    	<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></div>
 		</div>
 	</td>
 	<!-- / forum tools -->
Replace with the following code:
Code:
 
 	    	<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></div>
 		</div>
 		    <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[composeexternal_categorystrip]" vspace="1" /> <a href="composeexternal.php?$session[sessionurl]do=composecode&amp;f=$foruminfo[forumid]">$vbphrase[composeexternal_categorystrip]</a></div>
 	</td>
 	<!-- / forum tools -->


Search for:
Code:
 
 	<if condition="$show['adminoptions']">
Add above:
Code:
 
 	<tr><td class="vbmenu_option"><a href="composeexternal.php?$session[sessionurl]do=composecode&amp;f=$foruminfo[forumid]">$vbphrase[composeexternal_categorystrip]</a></td></tr>


Step 5:

Search for the following code on template navbar:

Code:
   		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>



Add below:
Code:
 		<tr><td class="vbmenu_option"><a href="composeexternal.php?$session[sessionurl]">$vbphrase[composeexternal_categorystrip]</a></td></tr>




Credits go to Ypsfanpage.de - a user of our forum. He coded the initial php-file. I ported it to the VB-system and created the php-file and the template.

See the screen-shots below, how it works, or visit our http://www.comicforum.de/comicforumtest/composeexternal.php

Version-History
v. 1.0.0 - Initial release
v. 1.0.1 - Added character-limitation
v. 1.0.2 - Got rid of a small bug, occuring in MSIE, happened when there where too less threads, genereal optimization of the code
v. 1.0.3 - Added three pre-made templates
v. 1.0.4 - Added support for forumdisplay-template and navbar-template

Please click on install, when you choose to use this hack

Download

This modification is archived and cannot be downloaded.

Screenshots

     


vblts.ru supports vBulletin®, 2022-2024