vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=163395

Create a working vBa Module for Inferno vBShout 1.1+
by m002.p
22 Nov 2007 23:08

1 Attachment(s)
This has been requested by many users who have downloaded the lite addition of Inferno Techs vBShout Mod found here

What does this tutorial enable you to do?

As the title suggests, this enables you to create a module in vBadvanced for your Shoutbox opposed to having it on the portal (ie the variable <!--{%SHOUTBOX%}--> within the "adv_portal" template or similar).

Demo?

See http://www.sog-team.co.uk/index.php (center module half way down)

Requirements?
  • Inferno Tech vBShout 1.0.1 or above
  • vBadvanced (Any versions)
How is it done?

1)
Firstly upload the module attached using the feature within the "Admin CP > vBa CMPS > Download / Upload Module"

2)
Create a new template in your style called "adv_portal_vbshout", and copy the following into it and click save:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3)
Ensure the module uploaded is active and on your desired page and linked to the template above.

4)
To get the Shoutbox to link to the Javascript file correctly, edit the template "inferno_shoutbox_box" and find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Before the code above, place your whole forum URL. Eg: "http://mywebsite.com/", so the code then becomes:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5)
To get the JavaScript file to now link to the correct PHP files you need to open up the following file; "infernoshout.js" located from this path below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Open the file with a txt editor and find the several occurances of:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In every instance, change this to your full site URL, for example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save file and / or re-upload and you are done!

6)
Re-Edit the template "inferno_shoutbox_box" and find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with your whole forum URL, example being:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

7)
Also take note that "adv_index" needs to be added to the page deployment. Remember to seperate the scripts by commas! eg. "index,adv_index"


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Extra Hints:

- If your center module or module space is quite compact for the shoutbox editor underneath your SB display, you can make a simple change to remove a few options to conserve width space.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Un Check some of the tools that you could do without. Example; "Smilies"

- If your text box for the shoutbox is 'crushed' or looks non existant within the module, dont panic as you can make one simple edit to make the shoutbox more 'module friendly' and space saving.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Search for "Inferno" then browse for the template "inferno_shoutbox_editor" in your style. Now find (located at the top of your template):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Underneath ADD:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save the template and ensure you update any other templates in the styles used.

Note if the text box looks odd after this change, be sure to play around with the following percentage found in the "inferno_shoutbox_editor" template:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Try a range between 90-100% as I wanted to match the length of the text input box to match the editor tools width below it.

Also note, that these edits above will change your global layout not just for your module

Display Problems?

Try this solution which should ensure the shoutbox works correctly in vbA & forums index.

- Make the inferno shoutbox plugins run AFTER the vbadvanced ones, in the plugin manager you'll be able to set the execution order of plugins, by default things are 5, try setting inferno shoutbox ones to 6

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

May I also take this opportunity to encourage users with the "Lite" version to purchase the "Pro" which is better supported and with more features for so little money.

Enjoy!

Matt

stud 27 Nov 2007 22:57

Thanks for your efforts Princeston

Unfortunately, this doesn't appear to be working.

vBadvanced CMPS v3.0 RC1
vBulletin Version 3.6.8
vBShout Pro v2.0.0

Followed everyone one of your steps and the shoutbox will not show on my CMPS index.php still

m002.p 28 Nov 2007 21:48

Firstly, Princeton just moderated it, and I actually released this fix / how to lol.

Secondly, I have exactly the same versions as you and it works for me and a few other friends of mine, so this would suggest you have made an error somewhere ;)

If you PM me your URL & a working ADMIN CP login with access to settings & styles only, I can take a look for you.

stud 29 Nov 2007 14:26

woops - sorry about that m002. Allow me to correct the improperly given credit :)

I'll start from scratch and keep you posted.

m002.p 29 Nov 2007 20:50

Quote:

Originally Posted by stud (Post 1391648)
woops - sorry about that m002. Allow me to correct the improperly given credit :)

I'll start from scratch and keep you posted.

Nps mate, easily done.

On topic, when starting again, ensure that you review each step by double checking what you do with that ive posted here.

Let me know how it goes :)

stud 04 Dec 2007 00:34

grrr, this still won't work for me

m002.p 04 Dec 2007 08:29

if you want me to take a look, I can do. I would require a URL, admin CP login to styles & settings only via PM, and I can review this.

Offer is open to anyone who gets a problem ;)

stud 07 Dec 2007 16:30

thanks Matt! One step you may want to add to the instructions above is to ensure "adv_index" is added to the the Page Deployment for the shoutbox.

Vbulletin Options > VbShout Settings (Pro) > Page Deployment

m002.p 07 Dec 2007 20:28

Done ^^^

Thanks for the feedback

PennylessZ28 07 Dec 2007 23:19

Module won't show up on integrated vbadvanced pages

m002.p 08 Dec 2007 08:35

Are you sure you added "adv_index" to your page deployment area?

PennylessZ28 08 Dec 2007 17:27

Quote:

Originally Posted by m002.p (Post 1397240)
Are you sure you added "adv_index" to your page deployment area?

yes I'm postive even have it set to global deployment, I can get it to show on any page without even adding it to the deployment area, however, if you intergrate a vbadvanced page with say, your memeberlist or your forumhome, then the shoutbox won't show up. I can and did create your module, that worked fine on vbadvanced portal page, but with it intergrated with my forumhome, even though I have the module there, it doesn't show up. So thats two for two, shoutbox refuses to show up. Refuses to display as itself and as a vba module.

I am guessing that a may have something to do with the fact that the shoutbox also checks the script its being deployed on and something happens when you intergrate the two.

I can't solve it.

m002.p 08 Dec 2007 20:39

If you PM me your URL and a temp admin CP login with access to styles & vbulletin options only, I can take a look.

I get my shoutbox showing on the vBa Portal Page and on the forumhome at once together ;)

SpongeFreak52 04 Feb 2008 00:45

Alright, thanks for the tip! Works just fine for me. ^_^

dannefaerd 26 Feb 2008 01:13

Quote:

Originally Posted by PennylessZ28 (Post 1397425)
yes I'm postive even have it set to global deployment, I can get it to show on any page without even adding it to the deployment area, however, if you intergrate a vbadvanced page with say, your memeberlist or your forumhome, then the shoutbox won't show up. I can and did create your module, that worked fine on vbadvanced portal page, but with it intergrated with my forumhome, even though I have the module there, it doesn't show up. So thats two for two, shoutbox refuses to show up. Refuses to display as itself and as a vba module.

I am guessing that a may have something to do with the fact that the shoutbox also checks the script its being deployed on and something happens when you intergrate the two.

I can't solve it.

I've got a similar problem ... the shoutbox runs fine on the index.php page (which is my vBa CMPS), but not on any other intergrated pages.

Did you manage to find a fix for this?

--------------- Added 26 Feb 2008 at 01:25 ---------------

Never mind - found a fix on another forum (phew)
Quote:

Make the inferno shoutbox plugins run AFTER the vbadvanced ones, in the plugin manager you'll be able to set the execution order of plugins, by default things are 5, try setting inferno shoutbox ones to 6
This worked for me!


All times are GMT. The time now is 13:09.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.