vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097)

Allan 10-04-2005 07:51 PM

no update for vB 3.5 ?

mtha 10-04-2005 09:16 PM

ZT,

:) The shoutbox is great, but I want to make it a seperate page rather than using forums for it :) (Hope you dont mind me posting here)

so, I just take the action part and put it into vbshout.php?do=chat

Standalone chat: (just add before

// ---------------------------------------------------
// Start Page Output
// ---------------------------------------------------


PHP Code:

// ---------------------------------------------------
// AJAX Standalone Chat
// ---------------------------------------------------

if ($_GET['do'] == 'chat')
{
    
$navbits     = array("vbshout.php?" $vbulletin->session->vars['sessionurl'] . "do=chat" => 'Chat');
    
$navbits[""] = 'Shoutbox - Chat Area';

$Used    0;
$UsedArr = array();
$smilies $db->query_read("
        SELECT smilieid, smilietext, smiliepath, smilie.title,
        imagecategory.title AS category
        FROM " 
TABLE_PREFIX "smilie AS smilie
        LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
        ORDER BY imagecategory.displayorder, smilie.displayorder
    "
);
$Smilie_Build  '';
$Total_Smilies $db->num_rows($smilies);

if (
$Total_Smilies 0)
{
    while (
$emo $db->fetch_array($smilies))
    {
        if (
$vbulletin->options['shout_smilies_show'] > 0)
        {
            
$Smilie_Cache[] = $emo;
        }
        else
        {
            
$Smilie_Build .= '<a href="#" onclick="return sb_Smilie(\''.$emo['smilietext'].'\')">[img]https://vborg.vbsupport.ru/[/img] ';
        }
    }

    if (
$vbulletin->options['shout_smilies_show'] > $Total_Smilies)
    {
        
$vbulletin->options['shout_smilies_show'] = $Total_Smilies;
    }

    if (
$vbulletin->options['shout_smilies_show'] > 0)
    {
        while (
$Used $vbulletin->options['shout_smilies_show'])
        {
            
$GetEmo $Total_Smilies;
            
$GetEmo rand(0$GetEmo);

            if (!
in_array($GetEmo$UsedArr) && $Smilie_Cache[$GetEmo])
            {
                
$Used++;
                
$GetEmo $Smilie_Cache[$GetEmo];
                
$Smilie_Build .= '<a href="#" onclick="return sb_Smilie(\''.$GetEmo['smilietext'].'\')">[img]https://vborg.vbsupport.ru/[/img] ';
            }
        }
    }
}
else
{
    
$Smilie_Build 'No Emoticons Available';
}

$Options_DropDown         = array(); // Items included will be parsed to create drop down menus
$DropDowns                = array(); // Completed constructed drop down menus

$Options_DropDown['font_selector']    = array('Default''Arial''Arial Black''Arial Narrow''Book Antiqua''Century Gothic''Comic Sans MS''Courier New''Fixedsys''Franklin Gothic Medium''Garamond''Georgia''Impact''Lucida Console''Lucida Sans Unicode''Microsoft Sans Serif''Palatino Linotype''System''Tahoma''Times New Roman''Trebuchet MS''Verdana');
$Options_DropDown['color_selector']   = array();
$Options_DropDown['color_selector'][] = 'Default';

$hex   = array();
$hex[] = '0';
$hex[] = '3';
$hex[] = '6';
$hex[] = '9';
$hex[] = 'C';
$hex[] = 'F';

for (
$a 0$a 6$a++)
{
    for (
$b 0$b 6$b++)
    {
        for (
$c 0$c 6$c++)
        {
            
$Options_DropDown['color_selector'][] = '#' $hex[$a].$hex[$a].$hex[$b].$hex[$b].$hex[$c].$hex[$c];
        }
    }
}

if (
is_array($Options_DropDown))
{
    foreach (
$Options_DropDown as $Menu => $Options)
    {
        
$DropDowns[$Menu] = '';
        if (
is_array($Options))
        {
            foreach (
$Options as $Selection)
            {
                if (
preg_match("#^\#([a-z0-9]+)$#i"$Selection))
                {
                    
$Extra ' style="color:'.$Selection.';"';
                }
                else
                {
                    
$Extra '';
                }

                if (
$Selection == 'Default')
                {
                    
$Text = (($Menu == 'color_selector') ? 'Color' 'Font Face') . ' [Default]';
                }
                else
                {
                    
$Text $Selection;
                }

                
$DropDowns[$Menu] .= '<option value="'.$Selection.'"'.$Extra.'>'.$Text.'' "\n";
            }
        }
    }
}

if (
$vbulletin->options['shout_banned_perms'] == && isBanned($vbulletin->userinfo))
{
    
print_no_permission();
}
else
{
    eval(
'$Shoutbox = "' fetch_template('forumhome_vbshout') . '";');
}

    
$pagenav construct_page_nav($page$perpage$TS_D'vbshout.php?' $vbulletin->session->vars['sessionurl'] . 'do=chat'''
        
. (!empty($vbulletin->GPC['perpage']) ? "&pp=$perpage"")
    );
    
$HTML $Shoutbox;
}
// ---------------------------------------------------
// AJAX Standalone Chat
// --------------------------------------------------- 


You may also want to add

'chat' => array('GENERIC_SHELL',
'forumhome_vbshout',
),

to the action templates if you use it

edeab220 10-04-2005 10:32 PM

Quote:

Originally Posted by mikexxx
I had the same problem. Go to shout.php en you see what your problem is.

What am I supposed to be looking for? A few of my members are getting the "Loading..." error and I can't figure out what's wrong lol.

imported_-Sidekick- 10-04-2005 10:51 PM

Quote:

Originally Posted by TCM
It's working fine for me, but I thought I'd note the following (I assume it's the same in all versions):

If you send a message before it's finished loading, you're unable to send any more messages, and things screw up. It should be disabled until it's ready.

Thank you for the info. I'll just wait for the next version then.

Brandon Sheley 10-05-2005 05:42 AM

i have a small problem,, well actually 2, but the new one is this

www.locoforum.com i removed the code in forumhome_vbshout that took off the time,

i got the code form this thread,, if you don't know what i'm talking abotu i can get the post..

anyways if you look at my site, there is a space in between the users name and the shout..
how can i fix this ?

and my 2nd problem has been addressedwith no answer from my searching,
but how can we fix the who's online bug ?
it always says users are on the shoutbox.. and now it really does that i added vbshout to the portal page..

thx for the mod, and hopefully thx for some answers :)

-LM


*edit* i see a user with a longer name then mine posted on the shoutbox..
his post has now space..
would this cause all the rest of the post to be pushed out ?

Billspaintball 10-05-2005 01:07 PM

It took me forever to workout how to access the shoutbox archive and stats section.
For a while I was under the assumption that feature did not exist.

The link to it looks just like a plain heading, how about making a more obvious link?

JJR512 10-05-2005 02:21 PM

A member of my forums has pointed out that this hack does not work with the Ignore feature. That is, he is ignoring a member, and can't see any of his posts, but he can see his shouts.

I mention this for informational purposes. I've come to realize that none of us should expect to get any more help with this hack from its author. As far as I can tell, Zero Tolerance hasn't posted in this thread since August 27, and the "support" checkbox is not ticked. I guess we can help each other, but it'd be nice to get help from the guy who should know this hack better than anyone else.

Brandon Sheley 10-05-2005 06:04 PM

it doesn't matter to me who helps.. lol
maybe a member has figured out the problems and can share the answer ;)

paulomt1 10-05-2005 06:27 PM

Can anyone post here all the commands available, please?
I can't edit shouts.

mikexxx 10-05-2005 07:01 PM

Emoticons not showing up in the shoutbox ?


All times are GMT. The time now is 09:43 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.03297 seconds
  • Memory Usage 1,800KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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