Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Create a working vBa Module for Inferno vBShout 1.1+
m002.p's Avatar
m002.p
Join Date: Jan 2007
Posts: 240

 

Worcester
Show Printable Version Email this Page Subscription
m002.p m002.p is offline 11-21-2007, 10:00 PM

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:

Code:
<!--{%SHOUTBOX%}-->
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:
Code:
infernoshout/browser/infernoshout.js
Before the code above, place your whole forum URL. Eg: "http://mywebsite.com/", so the code then becomes:

Code:
http://mywebsite.com/forum/infernoshout/browser/infernoshout.js
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:
Code:
./infernoshout/browser/infernoshout.js
Open the file with a txt editor and find the several occurances of:

Code:
infernoshout.php
In every instance, change this to your full site URL, for example:

Code:
http://mywebsite.com/forum/infernoshout.php
Save file and / or re-upload and you are done!

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

Code:
"infernoshout.php?{$session['sessionurl']}do=archive"
Replace with your whole forum URL, example being:

Code:
"http://mywebsite.com/forum/infernoshout.php?{$session['sessionurl']}do=archive"
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"

Code:
Admin CP > Vbulletin Options > Inferno VbShout Settings > Page Deployment
-------------------------------------------------------------------------------

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.

Code:
Admin CP > vBulletin Options > Inferno vBShout Settings > Editor Tools
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.

Code:
Admin CP > Styles & Templates > Search In Templates
Search for "Inferno" then browse for the template "inferno_shoutbox_editor" in your style. Now find (located at the top of your template):

Code:
		<input type="text" name="vbshout_pro_shoutbox_editor" style="width: 100%" class="bginput" id="vbshout_pro_shoutbox_editor" />
	</td>
Underneath ADD:
Code:
</tr>
<tr>
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:

Code:
<input type="text" name="vbshout_pro_shoutbox_editor" style="width: 100%" class="bginput" id="vbshout_pro_shoutbox_editor" />
	</td>
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
Attached Files
File Type: zip vbshout module.zip (335 Bytes, 190 views)
Reply With Quote
  #12  
Old 12-08-2007, 06:35 AM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you added "adv_index" to your page deployment area?
Reply With Quote
  #13  
Old 12-08-2007, 03:27 PM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by m002.p View Post
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.
Reply With Quote
  #14  
Old 12-08-2007, 06:39 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 02-03-2008, 10:45 PM
SpongeFreak52 SpongeFreak52 is offline
 
Join Date: Dec 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, thanks for the tip! Works just fine for me. ^_^
Reply With Quote
  #16  
Old 02-25-2008, 11:13 PM
dannefaerd's Avatar
dannefaerd dannefaerd is offline
 
Join Date: Feb 2006
Location: Wellington, New Zealand
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PennylessZ28 View Post
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 [DATE]1203989137[/DATE] at [TIME]1203989137[/TIME] ---------------

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!
Reply With Quote
  #17  
Old 03-01-2008, 07:06 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the tip ^^^^

Glad it works
Reply With Quote
  #18  
Old 03-09-2008, 10:04 PM
john.friel john.friel is offline
 
Join Date: Nov 2006
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need some help. I am trying to install Inferno_Shoutbox Lite into a module. I've got it working in the Forum just below the navbar but want to move it to the CMPS module center section. (ergo this thread I am following)

There appears to be a big leap of faith on instruction #1, the uploading of the module. What should all the cmps options be set to when doing the upload? After I did the upload and the Edit Modules page is displayed, I thought I did something wrong because it did not show in any column. So, I uploaded it again. I then realized I have two entries in the left column (I specified center?) that have no underlined title name, just the "Move to" and Order boxes. I now know these are the vbshout.modules I uploaded but no way to select them, change them or remove them. What happened?

Guess I'm stuck at this point.

Help!


--------

Running vBulletin 3.6.8 PL1, vBa CMPS 2.2.1 (vB 3.6)

--------------- Added [DATE]1205106262[/DATE] at [TIME]1205106262[/TIME] ---------------

Update: Looking at the link to the arrows for the nameless modules, I was able to figure out they were numbered 16 and 17. So I copy/pasted the url to edit one of the named modules and substituted these numbers so I could edit them and remove them.

So I guess I'm back to the Upload step or the faulty attached vbshout.module in this thread.



--------------- Added [DATE]1205108343[/DATE] at [TIME]1205108343[/TIME] ---------------

Not one to give up easily, I forged ahead.

I uploaded the module a third time and then crafted a URL to edit the nameless module. This time I set the Module Title to "InfernoShout", set the column to "Center Column", display order to 2 and set Active to Yes.

In the Template to Include, I have adv_portal_[vbshout ]

The rest of this setup is fuzzy because the instructions above do not say what should be set (another example of a programmer trying to write documentation maybe?)

Module Shell Template Options is set to No.

Usergroups is set so only registered users can view the module.

With that set, it still does not display in the center column.

So I check Step #2 and confirm that the template exists and that the correct shoutbox text was cut and pasted in. It is. Still no box.

Step #3, yep, see above since I seemed to have to do these steps out-of-order with the buggy no-name problem. it is there, active and set to the center column. The modules page shows it to be active and have the correct sort order. Still no box.

Step #4, I edited the code and placed http://www.cvmusclecars.com/ into all the places it asked. I think it did 4 search/replaces. Still no box.

Step #5, Edited the .js and did the same thing. Still no box.

Step #6, This I was not able to do because the search line does not appear in the inferno_shoutbox_box code anywhere.

Step #7, I made sure I have "index,index_cmps" in the Page Deployment box. I use index_cmps as my default page when going to the website and the forum also exists in the root.

Still no box.

What now?
Reply With Quote
  #19  
Old 03-14-2008, 10:08 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello sorry about the delay in reply,

Could you provide me with your URL and if you could; set up a temporary account to the admin CP options & styles only, that would be great so I can take a look for you. If you are willing to do this, please PM me this info.

Thanks
Reply With Quote
  #20  
Old 03-26-2008, 11:58 PM
shavedaccord shavedaccord is offline
 
Join Date: Apr 2006
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is this what i have to do in order to get the shout box to display under the navbar on my index since I have my forum setup to run within CMPS?
Reply With Quote
  #21  
Old 03-30-2008, 06:06 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

indeed ^^^^
Reply With Quote
Reply


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 01:08 PM.


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.07561 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (14)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete