The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Compose External Javascript Details »» | |||||||||||||||||||||||||
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:
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:
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 --> 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&f=$foruminfo[forumid]">$vbphrase[composeexternal_categorystrip]</a></div> </td> <!-- / forum tools --> Search for: Code:
<if condition="$show['adminoptions']"> Code:
<tr><td class="vbmenu_option"><a href="composeexternal.php?$session[sessionurl]do=composecode&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 testsite. 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 Show Your Support
|
Comments |
#52
|
|||
|
|||
Quote:
How do you get the provided XML file into the phrase manager? |
#53
|
||||
|
||||
Quote:
|
#54
|
|||
|
|||
Hi all, I installed this mod but I am not getting to work. Nothing shows for the preview.
http://www.yourlincolnpark.com/lpsfo...seexternal.php I went through to make sure that I installed correctly but I still get no preview. Any help is greatly appreicated PS: I be a noobe....and one other question.... I can use this generated code to put in a non VB/PHP webpage correct? |
#55
|
||||
|
||||
Yes you can put thin in a non-vb page. You need to run it from the Navbar link or from the Tools dropdown in the Forum Display, not call it directly.
-Jason |
#56
|
|||
|
|||
Hi Jason,
Thanks for the response but I don't understand when you say I need to run it from the navbar link or tools dropdown....There is a link to create external JS but when clicked, it doesn't provide the code (it's blank). I have attached a graphic so that you can see that it's generated the JS but the code shows no preview nor does it appear when added to a page: |
#57
|
|||
|
|||
Ok I finally figured out what the problem was..... the composeexternal.php wasn't pulling my full path to the forums..... It's working now.....
But no matter what changes like reduction in title characters, specific forums that I choose.... the max 15 show for all forums. Any ideas how I can fix this? Also, is there a way to use this to pull members that are online? |
#58
|
|||
|
|||
Hi folks,
Sorry if this is a silly question, but where and how exactly do I insert the phrases (step 1). Thanks, Richard... |
#59
|
|||
|
|||
Is there any way to include n characters from the description (the thread content)? With that addition, this could be a great way to put news feeds on non-VB pages with not only the Subject but a few sentences or so to hook people in.
|
#60
|
|||
|
|||
Hello. Fantastic product!
I have just installed and re-checked my installation. All works great expect that I have to manually input the forum ID(s) seperated by a comma in the text box on the 'composeexternal.php' page. The text box will not populate with my forums as I expect it should do (assumed becasue your text reads "Hold Ctrl to select"). I wondered if this was a common problem. I have no idea. Running 3.0.7. Any help would be appreciation thank you. |
#61
|
||||
|
||||
Sorry for answering late, but I had many things to do.
Quote:
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|