vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - [AJAX] Extra Shoutbox Pro (https://vborg.vbsupport.ru/showthread.php?t=239547)

ry215 03-31-2010 10:00 PM

[AJAX] Extra Shoutbox Pro
 
1 Attachment(s)
Description:

When u user this mod
U can make a shoutbox in your site through an another sever
that means the shoutbox doesn't in the same sever with your forum
it locate in another sever so you can reduce bandwidth for your board
you just find a hosting free support PHP for using.


This mod can be installed in your hosting, just config url base on the tutoral


Requirement:


>>>> All files .txt and 'config.php' are writeable !!!
>>>> vB Options >> Site Name / URL / Contact Details >> Forum Url, remove / in last link
dont use: yourdomain/forum/
use: yourdomain/forum


How to install:

- Step 1: Upload 'shoutbox' folder to your free hosting support PHP
- Step 2: Run 'tools.php' in 'shoutbox' folder then edit settings

pls: see Shoutbox Tools >> Forum Link
dont use: http://yourdomain.com/forum.php
Use: yourdomain.com/forum.php


- Step 3: Rename 'tools.php' (for security)
- Step 4: Import 'product-dt_shoutbox.xml'
- Step 5: ACP >> vB Options >> Shoutbox Settings to edit shoutbox URL

Path to remote shoutbox. : http://otherhosting.com/shoutbox


- Step 6: Add
PHP Code:

{vb:raw sb_pro

to FORUMHOME template

Done ^^!

Features:
- Saving BW for your forum
- Using BBCode & Smilies
- Easy to install
- Store data via files
- Using commands:
+ User Commands:
[high]* ry215 <message>
[/high]
/ignore <UserID>
/unignore <UserID>

+ Admin Commands:
/prune
/prune <UserID>
/del <message>
/ban <UserID>
/unban <UserID>
/silence <UserID>
/unsilence <UserID>

+ Power User Command:
/reset


Demo: http://www.rahstyles.com/forum.php
it user other hosting :D

Kolbi 04-01-2010 09:52 AM

Tagged :)

Will have a closer look on it later.

cory_booth 04-01-2010 01:24 PM

Interesting mod...
Is there any protection to the tools.php backend?

ry215 04-01-2010 01:57 PM

you can rename file tools.php
or you can find some source have password
import to tools.php
i dont have big time for coder :D
sry ^^

cory_booth 04-01-2010 02:01 PM

Cool... I just imagine this could become porblematic if this gets real popular (people will forget) :-) Maybe a .htaccess entry... Dunno... But acceptable for sure. Now I need to see if I can get this running on Google App Engine - wouldn't that be cool? :-)

cory_booth 04-01-2010 02:30 PM

1 Attachment(s)
Recommendation:

Change line 159 in shoutbox.php to read:

PHP Code:

echo "<div><span class=\"time\"><img src=\"http://yourdomain.com/images/misc/CB_time.gif\" title=\"$day $time\" />&nbsp;</span> 

this will replace the time display with an image of choice (i.e. tiny clock) with the popup title as the time. This keeps the "workspace" uncluttered.

SwollenCranium 04-01-2010 02:32 PM

Is the layout/ color scheme editable ?

ry215 04-01-2010 02:33 PM

yes man you can edit

ry215 04-01-2010 02:42 PM

Quote:

Originally Posted by cory_booth (Post 2014050)
Cool... I just imagine this could become porblematic if this gets real popular (people will forget) :-) Maybe a .htaccess entry... Dunno... But acceptable for sure. Now I need to see if I can get this running on Google App Engine - wouldn't that be cool? :-)

if use .htaccess we are can run index.php :D

cory_booth 04-01-2010 02:46 PM

1 Attachment(s)
Steps to add as widget:

Install as recommended.

Make few edits:

1. Add new template: Call it whatever you wish (we'll call it shoutbox) and insert the following code...

PHP Code:

<div class="cms_widget">
<
div class="block">
<
div class="cms_widget_header">
<
h3>Chatter</h3>
</
div>
<
div class="cms_widget_content">
<
vb:if condition="$show['member']">
{
vb:raw sb_pro}  
<
vb:else />
<
p><center>Sorryyou must be registered and logged in to chat.</center></p>
</
vb:if>
</
div>
</
div>
</
div

2. ACP -> Plugins & Products -> Plugin Manager -> Product : Shoutbox for vB4
Change [SB]

2-1. Edit to following changes

Last line change
PHP Code:

vB_Template::preRegister('FORUMHOME'$sb_pro); 

to
PHP Code:

vB_Template::preRegister('(your new template or as we stated) - shoutbox'$sb_pro); 

i.e.
PHP Code:

vB_Template::preRegister('shoutbox'$sb_pro); 


2-2. Make Hook Location drop down change to process_templates_complete <-- Important

SAVE

3. Add new widget:
Add new JS Enhanced widget and make sure to change the "template" field to your newly created template (i.e. shoutbox) FOUND UNDER CONFIGURE....

4. Insert Widget onto your Layout.


All times are GMT. The time now is 07:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01083 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete