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.1 (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=213225)

mysql101 07-11-2009 04:21 PM

for some reason the styles don't work right.

I had to add this to the output for them to appear:

echo str_replace ("\"", "", $style);

Otherwise the output would look:

@import url(../"clientscript/vbulletin_css/style-b2d267a2-00005.css");

instead of:

@import url(../clientscript/vbulletin_css/style-b2d267a2-00005.css);

mysql101 07-11-2009 05:16 PM

Not sure I mentioned this in the previous version, but at the bottom of the output, I included a userlist. I just upgraded to the newest ver of dev shoutbox and no longer have this feature:

PHP Code:

        if ($user_id) {
                
$t time () - 300;
                
$q "select u.username, u.userid, h.ts from user u, shoutbox_hash h where h.userid = u.userid and h.ts > $t
                group by u.userid
                 order by u.username"
;
                
$res $db->query ($q);
                
$i 0;
                
$users = array ();
                while (
$row mysql_fetch_assoc ($res)) {
                        
$i++;
                        
$age time () - 30;
                        if (
$row['ts'] > $age) {
                                
$b1 "";
                                
$b2 "";
                        } else {
                                
$b1 "<s>";
                                
$b2 "</s>";
                        }
                        
$users[] = $b1."<a target='_user' $highlight 
href='/member.php?u="
.$row['userid']."'>".$row['username']."</a>".$b2;
                }
                if (
$i) {
                        echo 
"<p><b>".count ($users)." users in chat</b>:<br>".implode (", "$users)."<br>";
                }
        } 


mysql101 07-11-2009 05:33 PM

something I dislike is the cache table stores by IP address. If you're like me and have multiple computers online, the cache checking will assume I have seen text if one of my other computers loads first. Thus I end up missing posts all the time unless I hit reload on my browser.

It would be nice to make the key on userId+ip, that way it keeps track of unique users uniquely.

edit:

I put in bbsessionhash cookie value into the shoutbox_cache query so that everything looks like ip='$ip,$cookie', and that gives me a unique enough cache check so that multiple logged in users can auto reload as content comes in.

mysql101 07-11-2009 05:34 PM

one more thing - the old ver wouldn't allow & character. The new one doesn't allow +

:)

|Jordan| 07-20-2009 03:37 AM

Post removed 2x.

Maybe this picture of a kitten will make you happy:

http://img35.imageshack.us/img35/7925/kittenf.jpg

RichDavid 07-24-2009 04:48 PM

I like the look. I installed the newest version, but I get

The requested URL /VB/shoutbox/shoutdiv.php was not found on this server.

I am a fairly new vB user, so this may be an obvious issue, but I cannot find a reference to this error.

matthewhotdude 07-27-2009 05:14 PM

Ok got a SQL problem...Can be seen here http://www.chattaboxforums.com

Does this seem ok?


chdir('../');

require_once('global.php');
require_once('includes/class_bbcode.php');
require_once('includes/functions_newpost.php');

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$sql = $db->query("
select s.*, g.opentag, g.closetag
from " . TABLE_PREFIX . "shoutbox as s, " . TABLE_PREFIX . "user as u, " . TABLE_PREFIX . "usergroup as g
where u.userid = s.user_id and g.usergroupid = u.usergroupid
order by id desc
limit " . $vbulletin->options['ddsb_show'] . "
");
$alt_count = 1;

while ($row = mysql_fetch_assoc($sql))
{
$alt_class = ($alt_count % 2) ? 'alt1' : 'alt2';

$id = $row['id'];
$user_id = $row['user_id'];
$user_name = $row['user_name'];
$opentag = $row['opentag'];
$closetag = $row['closetag'];

DionDev 07-31-2009 05:40 PM

Quote:

Originally Posted by |Jordan| (Post 1851988)
I finally gave up on this buggy shoutbox and replaced with Cyb - Chatbox. If you're tired of lack of support and updates, i suggest you switch too (Cyb has all the features of this and more).

I'm sorry for the lack of support, but like I said, I have a new version coming out soon that will address many issues, include a smilies box, and more.

If you don't like this shoutbox then DON'T INSTALL IT. If you REALLY need support, send me a PM, I won't bite. Coming here and bashing coders who volunteer their time writing free mods for people is pathetic and immature.

People like you just piss me off. You have no consideration for the hours I spent working on this. If you don't like my coding or the way I try my best to support my scripts (while working a full time job of 60+ hours a week) then maybe next time you can keep it to yourself. Did you feel proud of yourself for posting this? Or is it just your instinct to try and demotivate other volunteer coders?

Quote:

Originally Posted by RichDavid (Post 1854735)
I like the look. I installed the newest version, but I get

The requested URL /VB/shoutbox/shoutdiv.php was not found on this server.

I am a fairly new vB user, so this may be an obvious issue, but I cannot find a reference to this error.

Make sure that you put the shoutbox folder in your MAIN vbulletin directory, that should fix it.

Quote:

Originally Posted by matthewhotdude (Post 1856652)
Ok got a SQL problem...Can be seen here http://www.chattaboxforums.com

Does this seem ok?


chdir('../');

require_once('global.php');
require_once('includes/class_bbcode.php');
require_once('includes/functions_newpost.php');

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$sql = $db->query("
select s.*, g.opentag, g.closetag
from " . TABLE_PREFIX . "shoutbox as s, " . TABLE_PREFIX . "user as u, " . TABLE_PREFIX . "usergroup as g
where u.userid = s.user_id and g.usergroupid = u.usergroupid
order by id desc
limit " . $vbulletin->options['ddsb_show'] . "
");
$alt_count = 1;

while ($row = mysql_fetch_assoc($sql))
{
$alt_class = ($alt_count % 2) ? 'alt1' : 'alt2';

$id = $row['id'];
$user_id = $row['user_id'];
$user_name = $row['user_name'];
$opentag = $row['opentag'];
$closetag = $row['closetag'];

I visited the URL and see on SQL errors. Please copy and paste them so I can tell you whats going on.

DionDev 08-03-2009 01:17 AM

Quote:

Originally Posted by |Jordan| (Post 1851988)
Post removed because coder is sensitive to criticism.

What you said wasn't even criticism. You said "this shoutbox is a buggy and has no updates, go use this other shoutbox".

Do me a favor and just don't visit my threads anymore. I'd rather have appreciative people using my free mods and styles.

struff 08-03-2009 12:09 PM

I installed this about an hour ago. Nice and easy (under 10 minutes and it was up and running).

I have a couple of (non-urgent) questions: would there be a way in the future to have multiple chat rooms? How about a way to move the archives into regular forums? Just a couple of thoughts - no big deal to me if they can't be done.

What would I have to do if I wanted the box to also appear in individual forums as well as on the main page? Can I just edit a template and add the stuff in the txt file?

No rush on replying to these.

Thanks.


All times are GMT. The time now is 01:20 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.02074 seconds
  • Memory Usage 1,769KB
  • 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
  • (1)bbcode_php_printable
  • (4)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