vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Chat Modifications - Dion Dev Shoutbox v2.0 (uses AJAX) (https://vborg.vbsupport.ru/showthread.php?t=210126)

CFodder 04-05-2009 07:13 PM

Quote:

Originally Posted by DionDev (Post 1784363)
... Cfodder I checked your site and it seems to be quite slow. This lag could cause a large delay in the AJAX response ...

Slow it could possibly be, but the shouts appear in the archive immediately and I don't think it would be that slow that they still don't appear after 2 days in the main shoutbox area.

Reycer 04-05-2009 09:34 PM

Also, is there any way that we would be able to see the IP's of the Guest Comments?

DionDev 04-07-2009 08:50 PM

Quote:

Originally Posted by mdelcour (Post 1784627)
Also, is there any way that we would be able to see the IP's of the Guest Comments?

i'll add it to the next version list.

Reycer 04-10-2009 04:21 PM

um. We discovered today that the shoutbox dosen't recognize characters such as "&" or "$" any reason why?

DevJw 04-12-2009 01:42 PM

Quote:

Originally Posted by columbonet (Post 1783077)
Is there an edit I can do to allow mods to delete chatbox posts? We only have 2 admins and don't have time to monitor the chatbox.

I editted shoutshow.php so supermoderators can now also delete shouts.
Find:
PHP Code:

if ($vbulletin->userinfo['permissions']['adminpermissions']) 

New:
PHP Code:

  if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) 

Quote:

Originally Posted by mdelcour (Post 1788310)
um. We discovered today that the shoutbox dosen't recognize characters such as "&" or "$" any reason why?

I've edited shoutinsert.js and now it works.
At the end of the file:
Code:

  var url = 'shoutinsert.php';
  var params = 'body=' + document.getElementById('body').value;

I changed it to:
Code:

  var url = 'shoutinsert.php';

  var value = document.getElementById('body').value;
  if (encodeURIComponent) {
    url = encodeURIComponent(value);
  } else {
    url = escape(value);
  }
 
  var params = 'body=' + url;


Note to the creator:
I had to change line 44 in shoutshow.php because it was not showing the time.
Old:
PHP Code:

$shout_time vbdate($vbulletin->options['ddsb_time'], $row['shout_time']); 

New:
PHP Code:

$shout_time date($vbulletin->options['ddsb_time'], $row['shout_time']); 


DionDev 04-16-2009 11:46 AM

Quote:

Originally Posted by DevJw (Post 1789573)
I editted shoutshow.php so supermoderators can now also delete shouts.
Find:
PHP Code:

if ($vbulletin->userinfo['permissions']['adminpermissions']) 

New:
PHP Code:

  if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator']) 


I've edited shoutinsert.js and now it works.
At the end of the file:
Code:

  var url = 'shoutinsert.php';
  var params = 'body=' + document.getElementById('body').value;

I changed it to:
Code:

  var url = 'shoutinsert.php';

  var value = document.getElementById('body').value;
  if (encodeURIComponent) {
    url = encodeURIComponent(value);
  } else {
    url = escape(value);
  }
 
  var params = 'body=' + url;


Note to the creator:
I had to change line 44 in shoutshow.php because it was not showing the time.
Old:
PHP Code:

$shout_time vbdate($vbulletin->options['ddsb_time'], $row['shout_time']); 

New:
PHP Code:

$shout_time date($vbulletin->options['ddsb_time'], $row['shout_time']); 


Thos are some great fixes! By the way, you should use the vbdate function. It is a vbulletin function which is like the php date() function, but I believe it also shows the date in the time zone the user specified in their profile.

adiboy.net 04-20-2009 03:05 PM

Can the time and date be on the extremely left instead of on the right?

Chadi 04-21-2009 03:19 AM

Can someone please explain how to get this working if I uploaded all the files neatly inside a directory called "shoutbox"? I tried already, modified the files and couldn't get this working

I changed all instances of:

require_once('global.php');

to

require_once('/global.php');

I changed the template code to add /shoutbox/ before the shoutbox.php code, still didn't work.

DionDev 04-21-2009 04:44 AM

Quote:

Originally Posted by Chadi (Post 1795668)
Can someone please explain how to get this working if I uploaded all the files neatly inside a directory called "shoutbox"? I tried already, modified the files and couldn't get this working

I changed all instances of:

require_once('global.php');

to

require_once('/global.php');

I changed the template code to add /shoutbox/ before the shoutbox.php code, still didn't work.

It won't work that way because the shoutbox uses paths relative to the main vbulletin directory.

Maybe the next version I release will be in its own folder.

Milez 04-23-2009 08:08 PM

Quote:

Originally Posted by DionDev (Post 1795704)
Maybe the next version I release will be in its own folder.

Sweet as soon as this happens I will try this on my big board. Awesome plugin (have tested it) with a very active and dedicated designer - so refreshing! Great work Dion.

Uhm, any time frame on the changes? I can beta test ;)


All times are GMT. The time now is 03:46 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.01223 seconds
  • Memory Usage 1,762KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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