Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles

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
  #32  
Old 06-01-2008, 05:14 PM
Axe_Grinder Axe_Grinder is offline
 
Join Date: Apr 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?


Thanks
Reply With Quote
  #33  
Old 06-06-2008, 03:02 PM
Axe_Grinder Axe_Grinder is offline
 
Join Date: Apr 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I give up... Anyone want to make some money?


Thanks
Reply With Quote
  #34  
Old 06-11-2008, 05:17 PM
m002.p's Avatar
m002.p m002.p is offline
 
Join Date: Jan 2007
Location: Worcester
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive replied to your PM, ill try to help you.

Sorry I didnt notice this earlier.

Matt
Reply With Quote
  #35  
Old 06-18-2008, 08:50 PM
Axe_Grinder Axe_Grinder is offline
 
Join Date: Apr 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Matt,

I've responded to your PM.
Reply With Quote
  #36  
Old 01-27-2009, 12:23 AM
Deyth's Avatar
Deyth Deyth is offline
 
Join Date: Sep 2003
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had a path wrong, it's working well now. Thanks for the hack.
Reply With Quote
  #37  
Old 04-12-2009, 04:34 PM
jgruberman jgruberman is offline
 
Join Date: Apr 2009
Location: Dallas, TX
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still having issues with it saying Loading...

I checked all the instructions and did them all again and still can't find out whats wrong?????
Reply With Quote
  #38  
Old 05-11-2009, 01:03 PM
nmilne nmilne is offline
 
Join Date: Aug 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed on my test server running in the left column and it runs fine in cmps_index as well as in my forumhome vba integrated page. However, whenever I go to another integrated page (like into an individual forum, to faq, memberlist, etc) then it disapears.

Any thoughts/pointers?
Reply With Quote
  #39  
Old 06-19-2009, 01:29 AM
evervoid evervoid is offline
 
Join Date: Jun 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having the same problem, I thought I was so close >_> someone please help, I really hope these requests wont go unnoticed.
Reply With Quote
  #40  
Old 09-21-2009, 12:14 PM
piraterevival piraterevival is offline
 
Join Date: Jan 2008
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried this, it seemed to work but totally screwed up the look of my front page so had to remove.

Any help would be appreciated

Cheers
Reply With Quote
  #41  
Old 01-29-2010, 09:12 PM
DJ29Joesph DJ29Joesph is offline
 
Join Date: Jan 2009
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the infernoshout.php file, you can edit it, and where it has require once, add

PHP Code:
chdir('/home/spiralg1/public_html/Forums/'); 
before it, except that path should match the path of your Forums, the relative path that is.

This worked great for me...

Should Look like this:

PHP Code:
chdir('/home/spiralg1/public_html/Forums/');
require_once(
'./global.php');
require_once(
DIR '/infernoshout/engine/inferno_engine.php'); 
Now with that file, place it in the public_html or www folder, DONT PLACE IT IN YOUR FORUM FOLDER
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 06:19 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.06885 seconds
  • Memory Usage 2,325KB
  • 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
  • (2)bbcode_php
  • (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
  • (2)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