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)

cheards 01-27-2006 12:22 PM

This is a GREAT shout addition , I've one question - how do I stop unregistered or banned e.t.c people from seeing previous Shouts ? .... I've placed these groups in the banned section but unregistered people can still see shouts

Cheers for any help ; :squareeyed:

Ohiosweetheart 01-27-2006 12:57 PM

Quote:

Originally Posted by Ohiosweetheart
Ok I did that... and now it shows me viewing who's online... but everyone else is viewing the shoutbox even tho I took the "sb on every page" hack off and I know the others are posting their little hearts out. *sigh*

I hope I don't have to uninstall this hack...

NM I fixed it myself... the who's online feature was set to refresh every 30 seconds. I turned the refresh off completely... and it's working fine now.

yayy me

S@NL - BlackBik 01-27-2006 01:40 PM

Quote:

Originally Posted by cheards
This is a GREAT shout addition , I've one question - how do I stop unregistered or banned e.t.c people from seeing previous Shouts ? .... I've placed these groups in the banned section but unregistered people can still see shouts


Cheers for any help ; :squareeyed:

You have a setting in your admincp where you can exclude groups from using the shoutbox.
admincp -> vbulletin options -> vbulletin options -> scroll down to vbshout options

DeMiNe0 01-27-2006 03:53 PM

Is there a flood protection? People on my board are flooding the shoutbox like crazy.

GamerJunk.net 01-27-2006 06:42 PM

How can I make this work in a side panel similiar to vbadvanced style shouting when it's on the right side? I tried the vbadvanced hack on the forumhome and it didn't work.

How would I format it to be in a skyscraper type format on the forum home?

mbader71 01-28-2006 03:15 AM

Is it possible to give a beep sound or some kind of a notification sound when another user have posted in the shoutbox?

Rickie3 01-28-2006 03:50 AM

Quote:

Originally Posted by mbader71
Is it possible to give a beep sound or some kind of a notification sound when another user have posted in the shoutbox?

i have a lot of users on my forum that use the shout,i recon a beep sound for each shout would drive you crazy after a short time :cross-eyed:

Solace-City 01-28-2006 05:12 AM

I just fixed an error I was getting that some others were getting too...

If you get this error: Warning: Invalid argument supplied for foreach() in /vbshout.php on line 288

then do the following (it worked for me anyway)

Find in vbshout.php:
Code:

if ($vbulletin->options['shout_messages_order'])

                {
                        $Output = array_reverse($Output);
                }

Below, add:
Code:

if (isBanned($vbulletin->userinfo) && $vbulletin->options['shout_banned_perms'] > 0)

        {
echo '<b>Sorry, you are currently banned from the shoutbox</b>';
exit(); }

I am under no circumstances saying this code modification will work in your forum environment, nor saying it is the magical fix.

mbader71 01-28-2006 06:39 AM

Quote:

Originally Posted by Rickie3
i have a lot of users on my forum that use the shout,i recon a beep sound for each shout would drive you crazy after a short time :cross-eyed:

well, that is what my users have suggested.

then what if it is a user option that he can set true or false in his UserCP or as a checkbox next to the shoutbox.

S@NL - BlackBik 01-28-2006 08:03 AM

I don't exactly know if it is posted allready, but I fixed the little bug that prevented users to edit or delete their own shouts.

In vbshout.php find:
Code:

if ($Shout['sid'] != $vbulletin->userinfo['userid'] && !can_moderate())
and replace it by
Code:

if ($Shout['s_by'] != $vbulletin->userinfo['userid'] && !can_moderate())
This line is found twice in the code. Once for editing and once for deleting a shout.

Rickie3 01-28-2006 08:06 AM

Quote:

Originally Posted by mbader71
then what if it is a user option that he can set true or false in his UserCP or as a checkbox next to the shoutbox.

yes i do like your idea of it being user selectable

tjad 01-29-2006 02:36 AM

i've installed but it only shows on the default skin and the pinky skin....

http://www.werbeyond.com/forum/index.php?

*edited ot add link so you can see

sickstrings 01-29-2006 04:25 AM

Quote:

Originally Posted by Littlebit
I'm using OSX and checked Safari. It's working when I'm logged in and only balloons as an unregistered for me. Maybe this can help narrow in on the problem. If I can figure it out, I'll post what I did.

I also checked it on Internet Explorer for Mac OSX. Per usual (with that ancient browser) it wouldn't even load and knocked the page out to kingdom come. That browser is awful with everything.

All does look and works great with this hack and Firefox :up: (my main of course)

How hard would it be to start the shoutbox minimized for safari users? I'm thinking pretty hard...

sickstrings 01-29-2006 04:43 AM

Quote:

Originally Posted by mtha
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

I want the shoutbox on both the forum and on a seperate page. After searching long and hard, this (quoted) is the only post I see that offers a solution.

I'm only marginally technical, so can someone please verify that this will work for my needs, or how I can use it for my needs.

IrPr 01-29-2006 12:10 PM

AWESOME WOKR ZT !
is it compatible with vBA Gallery and Photopost vBGallery?

Annie^.^ 01-29-2006 12:28 PM

Hi I installed this great mod. I have a question. Is there a way to set which smilie category to show? I have nearly 600 smilies and some of the smilies I don't want in the shout box.

Annie^.^ 01-29-2006 12:33 PM

I wouldn't mind if only the generic smilies will show

S@NL - BlackBik 01-29-2006 04:13 PM

I made a autoprune function for vBshout.
Just download the attached file and put in the /includes/cron directory.
Then make a new scheduled task (see attached jpg).
I run it every night at 3 o clock but offcourse your free to run it more often than that.

What is does: It will delete all shouts that are older than 24 hours.
This way you will allways have an archive that's holds no shouts that are older than two days.
You can alter the deletion time in the php by altering the "(TIMENOW - (60 * 60 * 24)" statement.

Enjoy :)

[edit]Replaced the php with the right one [/edit]

bashy 01-29-2006 04:21 PM

Well done m8, this i will use :)

Thank you

Quote:

Originally Posted by S@NL - BlackBik
I made a autoprune function for vBshout.
Just download the attached file and put in the /includes/cron directory.
Then make a new scheduled task (see attached jpg).
I run it every night at 3 o clock but offcourse your free to run it more often than that.

What is does: It will delete all shouts that are older than 24 hours.
This way you will allways have an archive that's holds no shouts that are older than two days.
You can alter the deletion time in the php by altering the "(TIMENOW - (60 * 60 * 24)" statement.

Enjoy :)


firstrebel 01-29-2006 06:00 PM

Quote:

Originally Posted by S@NL - BlackBik
I made a autoprune function for vBshout.
Just download the attached file and put in the /includes/cron directory.
Then make a new scheduled task (see attached jpg).
I run it every night at 3 o clock but offcourse your free to run it more often than that.
Enjoy :)

Thanks, this will be very helpfull.

Bob

S@NL - BlackBik 01-29-2006 08:25 PM

bashy and firstrebel, thanks but please download the file again.
It seemes i've uploaded the wrong php file.
This one is OK, the other one pruned a bit too much.

Sorry if i've messed up your shoutbox....

Ohiosweetheart 01-29-2006 09:52 PM

Quote:

Originally Posted by Annie^.^
Hi I installed this great mod. I have a question. Is there a way to set which smilie category to show? I have nearly 600 smilies and some of the smilies I don't want in the shout box.

600 ??? http://www.exquisitelyerotic.net/for...milies/huh.gif I thought I was going wild with 234 of them, LOL

firstrebel 01-30-2006 03:17 PM

Quote:

Originally Posted by S@NL - BlackBik
bashy and firstrebel, thanks but please download the file again.
It seemes i've uploaded the wrong php file.
This one is OK, the other one pruned a bit too much.

Sorry if i've messed up your shoutbox....

No problem, your work is appreciated, even the mistakes, and we all make 'em.

Bob

Trana 01-31-2006 01:08 AM

I am using the CMPS module to output this script to my site.

Can anyone tell me how I can reformat the buildTime output so it doesn't have "Today at" as a value? I would like X:XX AM/PM, nothing fancy.

Thanks!

S@NL - BlackBik 01-31-2006 06:27 PM

You can comment out this line:
Code:

$Time  = vbdate($vbulletin->options['dateformat'], $time, $vbulletin->options['yestoday']);
But I don't know what that does when you bridge midnight....

bashy 01-31-2006 07:54 PM

Does anyone have any probs with regards to this frezzing, (sort of) and not posting the shout?
I sometimes have to refresh and or close the browser and open a new 1?
I only have it for my staff so only about 5 use it??

Any ideas please?

craiovaforum 01-31-2006 10:29 PM

Quote:

Originally Posted by S@NL - BlackBik
You can comment out this line:
Code:

$Time  = vbdate($vbulletin->options['dateformat'], $time, $vbulletin->options['yestoday']);
But I don't know what that does when you bridge midnight....

hmm I cannot find that
where exactly is that...

Trana 01-31-2006 10:39 PM

In vbshout.php. Comment out that line.

Also, I changed my time format:

$Time .= vbdate("g:i A", $time, $vbulletin->options['yestoday']);

rb290 02-01-2006 05:46 AM

Quote:

Originally Posted by rb290
Can you please tell me how or what I can edit to make the edit/delete shouts only allowed for Admins if thats possible, thanks!

^ ^ Anyone know? ^ ^

mrcrx 02-01-2006 10:05 PM

i have someone banned from the shotbox but there still able to shout. any suggestions?

Snake 02-01-2006 10:21 PM

Where is the vBShout code replacement in the templates? I coudn't find it.

mrcrx 02-01-2006 10:34 PM

Quote:

Originally Posted by bashy
Does anyone have any probs with regards to this frezzing, (sort of) and not posting the shout?
I sometimes have to refresh and or close the browser and open a new 1?
I only have it for my staff so only about 5 use it??

Any ideas please?

I have the same issue but with 25 or so people. this is such a great mod that people just deal with it.

Big_Ern 02-01-2006 11:51 PM

instead of banning certain usergroups, is there a way to ban users who are NOT part of certain usergroups?

all of the users on our forum are a 'registered user'. Then as they progress we vote them into a 'members' section with adition rooms they can access, but to do this we make the member functionality a secondary usergroup (ie they are still a primary 'registered user')

What I want is to only allow our 'members' to ahve acces to the shout box. Would this be possible?

I'm thinking it would be easy to chnage the logic in the code, but i thought I'd ask here first before I dig into it.

thanks

-aaron

Great Mod btw!

thisgeek 02-02-2006 04:57 AM

Disabling auto refresh and adding a 'refresh' button

Go to style manager, and edit (or customize) the template forumhome_vbshout

Find text:
HTML Code:

<input type="submit" value="Shout" class="button" />
And add immediately BELOW it:
HTML Code:

<input type='button' class='button' value='Refresh' onclick='requestShouts()' />
The code must go above the 'if condition' code.
This line occurs twice - add the new button to both.

THEN

Find the text:
Code:

setTimeout('requestShouts()', 10000)
And comment it out by enclosing it with /* and */ like so:
Code:

/* setTimeout('requestShouts()', 10000) */
You can also delete the line entirely.

The shoutbox will now only refresh if you a) Submit a shout, or b) hit the 'refresh' button.

Murty 02-02-2006 07:54 AM

does anyone know, how i can change the title of the box 'ShoutBox' to something else?

S@NL - BlackBik 02-02-2006 08:03 AM

@ Murty: You can edit that in the template Forumhome templates -> forumhome_vbshout (search for "Shoutbox" in the template).

S@NL - BlackBik 02-02-2006 08:08 AM

Quote:

Originally Posted by Aftermath
Where is the vBShout code replacement in the templates? I coudn't find it.

Aftermath, there isn't :)
Check the plugincode of the vbshout plugin at the forumhome_complete hook.
Scroll all the way down, and you'll see how ZT positions the shoutbox.
He substitutes a text in the forumhome template by that text plus $shoutbox.
This way, no template alterations are necessary.

S@NL - BlackBik 02-02-2006 08:10 AM

Quote:

Originally Posted by mrcrx
i have someone banned from the shotbox but there still able to shout. any suggestions?

You can edit the banning options for the shoutbox.
Just select "Can not view shoutbox" and you'll have no problem no more ;)

Murty 02-02-2006 08:23 AM

Quote:

Originally Posted by S@NL - BlackBik
@ Murty: You can edit that in the template Forumhome templates -> forumhome_vbshout (search for "Shoutbox" in the template).

ohh derr, thanks

mrcrx 02-02-2006 11:45 AM

Quote:

Originally Posted by S@NL - BlackBik
You can edit the banning options for the shoutbox.
Just select "Can not view shoutbox" and you'll have no problem no more ;)

Yes I played with it alittle. The only way i can ban someone from it is if i set it to can not view shotbox. The other features still let the user post. thanks for the help.


All times are GMT. The time now is 11:01 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.03026 seconds
  • Memory Usage 1,909KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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