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)

Luggruff 02-12-2006 03:56 PM

Quote:

Originally Posted by Aftermath
And where do I place that exactly?

adminCP -> styles and templates -> style manager -> edit templates -> forumhome templates -> forumhome_vBshout

Find:

PHP Code:

<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' /> 

replace with:

PHP Code:

<!-- <input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' /> --> 

now the smilies button is invisible

Snake 02-12-2006 04:46 PM

Wow thank you.

cuphongle 02-13-2006 12:36 AM

Quote:

Warning: array_reverse(): The argument should be an array in /vbshout.php on line 282

Warning: Invalid argument supplied for foreach() in /vbshout.php on line 288

that's what i get when puttin in usergroup that cant view the shothbox, help?

cuphongle 02-13-2006 12:38 AM

nm, got it

GCA-Shawn 02-13-2006 02:58 PM

I'm working on a Safari fix. Currently, I have it fixed but need to work out some bugs with the fix. I'll update tomorrow with the fix, probably.

/fixxy fixxy fixxy


EDIT:

Okay, I had some extra time on my hands and I have my board up and running with it fine (http://forums.advancedmn.com/index.php)


Here's how to fix it.

In your Admin panel
Styles & Templates -> Style Manager ->Click the drop down menu next to your style -> Select 'Main CSS" and click Go

At the very bottom, you'll see a box for "Additional CSS Definitions." Paste the following code in there:
Code:

/* *****Safari Fix****/
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

/****** End Safari Fix ****/

Now, go to your Style Manager and find the forumhome_vbshout template. Open it up, and find the line...

Code:

<div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:100%;">

</div>

Just before that segment, place this...

Code:

<div class="clearfix">
and just after that segment, put...

Code:

</div>
Should work fine for Safari users now.

SnickersTK 02-13-2006 06:20 PM

ok, this just confuses me, I have version 3.5.3 and installed it yesterday.

Installed this one 2 minutes ago and did exactly as guide told me.

It is not showing up on my site, doesn't matter where I look for it, even if I check source, there is no sign of it being there.

HELP ME!

Ragnarok 02-13-2006 11:42 PM

I downloaded it from the attachment, but apparently it's only version 1.6?

I noticed something wasn't working when I tried to add on the "vBShout on all pages!" plugin and everything broke, and looking around it seems version 1.6 is what I've got

Ohiosweetheart 02-14-2006 03:39 AM

Quote:

Originally Posted by Ragnarok
I downloaded it from the attachment, but apparently it's only version 1.6?

I noticed something wasn't working when I tried to add on the "vBShout on all pages!" plugin and everything broke, and looking around it seems version 1.6 is what I've got

I took off the "vb shout on all pages". it's very buggy. Broke my shoutbox and had my entire forum all discombobulated. Once I removed it, everything was fine.

Ohiosweetheart 02-14-2006 03:43 AM

Is there a way to hide the sb from guests... anyone except registered users?

gtsch 02-14-2006 06:20 AM

I'm not so great with this stuff, I'm not sure what I'm doing wrong.

I uploaded the file to my forum's directory, and no matter what I do VB can' find it. Am I just an idiot, or am I missing something here?

TeaTree 02-14-2006 08:17 AM

I love this hack-Easy to install,works brilliantly and no problems! Thanks

Ragnarok 02-14-2006 10:57 AM

Quote:

Originally Posted by Ohiosweetheart
Is there a way to hide the sb from guests... anyone except registered users?

That one I can answer. In your vBShout options, set your banned usergroups to include all usergroups you do not wish to use the shoutbox, and set your banned permissions to "Can not view the shoutbox"

Thanks for the info about vBShout on all pages!

mrcrx 02-14-2006 12:40 PM

I am having a problem with banning a user from the shoutbox. I put there name in but they are still able to see the shout box and shout in it. For banned users I have it set so they shouldnt see it at all. any help on this issue?

Luggruff 02-14-2006 01:24 PM

Quote:

Originally Posted by mrcrx
I am having a problem with banning a user from the shoutbox. I put there name in but they are still able to see the shout box and shout in it. For banned users I have it set so they shouldnt see it at all. any help on this issue?

It's because you write his/her userNAME. It says write the user's userID
To get a users id: search his/hers name in the adminCP and you'll see the ID at the top, to the right of the users name.
Like this:
User: Luggruff (id: 1)

mrcrx 02-14-2006 03:10 PM

Thank you very much.

mrcrx 02-14-2006 03:41 PM

Is there a way to prevent old shouts from being stored. Or removing them without people loosing there shoutbox count. I have 80,000 shouts in a very short period of time.

Snake 02-14-2006 04:35 PM

Well you can just use the prune command?

vbreal 02-15-2006 03:13 PM

is there a way to make people post a certain amount of post before they can use the shoutbox every 24 hours

Titania 02-15-2006 03:59 PM

Awesome ZT :D Ten thumbs up...works great :D

mrcrx 02-15-2006 05:07 PM

Quote:

Originally Posted by Aftermath
Well you can just use the prune command?

the last time I did that it got rid of everyones shout count. people really got upset.

S@NL - BlackBik 02-15-2006 06:29 PM

At the moment you can't prune without losing the shout counts.....
The counts are made in the shout databasetable. If you empty that, the shouts are gone and the result will be 0 shouts for everybody.

Big_Ern 02-15-2006 07:09 PM

How do I change he name of the button to read something differnent the shout

tipoboy 02-15-2006 08:00 PM

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 would like to have the shoutbox in a page of it's own. i have added the code above to my vbshout.php template the thing is, i can get the shoutbox in its own window (http://scottishwheelnut.co.uk/forum/vbshout.php?do=chat? which is great but its still on my forum home(http://http://scottishwheelnut.co.uk). is there a way i can remove or hide it from the forum home without disrupting it from the window.

any help here would be gratefully appreciated

S@NL - BlackBik 02-15-2006 08:44 PM

Quote:

Originally Posted by Big_Ern
How do I change he name of the button to read something differnent the shout

Just change the phrase "vbshout_shout" to a term that's at your liking :)

Crusher77 02-15-2006 08:47 PM

This is some awesome hack :D Gr8 work m8!

S@NL - BlackBik 02-15-2006 08:50 PM

Quote:

Originally Posted by tipoboy
is there a way i can remove or hide it from the forum home without disrupting it from the window.

any help here would be gratefully appreciated

I think there is. It's a bit blunt, but it might work.

Maybe just disableing the plugin "vBShout [Template Alteration]" will do the trick.
If not, try this:

Open the plugin "vBShout [Template Alteration]". At the bottom, you'll find the conditions that place the shoutbox at your forumhome. Just change the condition there.

Example: if you have the shoutbox under your navbar change:
$Position = '$navbar';
to
$Position = 'yadayada';

That way the script cannot find the text after which it has to place the shoutbox and the shoutbox will not be visible.
I didn't test it, but i'm pretty sure that will work ;)

tipoboy 02-15-2006 10:55 PM

Quote:

Originally Posted by S@NL - BlackBik
I think there is. It's a bit blunt, but it might work.

Maybe just disableing the plugin "vBShout [Template Alteration]" will do the trick.
If not, try this:

Open the plugin "vBShout [Template Alteration]". At the bottom, you'll find the conditions that place the shoutbox at your forumhome. Just change the condition there.

Example: if you have the shoutbox under your navbar change:
$Position = '$navbar';
to
$Position = 'yadayada';

That way the script cannot find the text after which it has to place the shoutbox and the shoutbox will not be visible.
I didn't test it, but i'm pretty sure that will work ;)

cheers mate exactly what i was looking for

thanks again

username12 02-16-2006 12:49 AM

Quote:

Originally Posted by BlackRabbit1971
Ok... here ya go...



Hope this helps

Thanks BlackRabbit. Took me 50 pages to find what I was looking for. Hopefully this will turn this thing into less of a chatroom for me.

Edit: doesn't seem to work for me, though. I'm gonna try the refresh button instead.

leeman 02-16-2006 07:53 AM

Sorry to be repeating my self Zero....
But do you have any plans on trying to make it possible to use the shoutbox as a popup ... So you can have it beside your browser and still be able to chat and post.

tipoboy 02-16-2006 09:43 AM

[quote=leeman] sorryb to be repeting myself zero.....

i did this only last night with my forum, go to the php template for vbshout and find the following:
Code:

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

after that add this:
Code:

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'].'\')">https://vborg.vbsupport.ru/ ';
        }
    }
 
    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'].'\')">https://vborg.vbsupport.ru/ ';
            }
        }
    }
}
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'] == 2 && 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
// ---------------------------------------------------

then disable your plugin using your admincp=>plugin system=>manage products

then add this link to your nav bar "http://yoursitename.com/forum/vbshout.php?do=chat" target="new"

this will make the shoutbox pop up on a seperate page

hope this works and thanks again to mtha + S@NL - BlackBik for helping me do this

sorry if this post is a bit vague i'm quite new here myself and havent really helped a lot of people

leeman 02-16-2006 12:33 PM

I only have forumhome_vbshout and I can't find // Start Page Output in that one ...

Megareus Rex 02-16-2006 07:10 PM

Two questions:

1: Is there a way to reduce the size of the shout display text? The current text (at normal size) is bigger than I'd like.

2: An amateur html question, but...how can ?I left justify the title part of the shoutbox? Every other category-type header on the main page is left justed, so I'd like the shoutbox to be as well.

Thanks in advance for any help.

vbreal 02-16-2006 08:06 PM

Quote:

Originally Posted by Real Talk
is there a way to make people post a certain amount of post before they can use the shoutbox every 24 hours

anyone know if there is anything available like this

S@NL - BlackBik 02-16-2006 08:28 PM

Quote:

Originally Posted by Megareus Rex
1: Is there a way to reduce the size of the shout display text? The current text (at normal size) is bigger than I'd like.

Yes, replace the "forumhome_vbshout_shout" template with this code:
Code:

<tr>
                                <td width="1%" style="white-space:nowrap" align="left" valign="top" class="smallfont">
                                        [{$Shout['time']}]
                                        <if condition="!$Shout[s_me]">
                                                <if condition="$Shout[s_by]">
                                                        <a href='member.php?{$session['sessionurl_q']}u={$Shout['s_by']}'>
                                                </if>{$Shout['username']}<if condition="$Shout[s_by]"></a></if>:
                                        </if>
                                </td>
                                <td width="100%" align="left" class="smallfont">
                                        <if condition="!$Shout[s_me]">
                                                {$Shout['s_shout']}
                                        <else />
                                                <span class='highlight'>
                                                        *{$Shout['username']} {$Shout['s_shout']}*
                                                </span>
                                        </if>
                                </td>
                        </tr>

(I added class="smallfont" to the td tags)

Quote:

Originally Posted by Megareus Rex
2: An amateur html question, but...how can ?I left justify the title part of the shoutbox? Every other category-type header on the main page is left justed, so I'd like the shoutbox to be as well.

Yep, that's also possible:
Open the template "forumhome_vbshout" and find this code:
Code:

                        <td class="tcat" align="center">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>

and replace it by:
Code:

                        <td class="tcat" align="left">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>

Quote:

Originally Posted by Megareus Rex
Thanks in advance for any help.

You're welcome :)

S@NL - BlackBik 02-16-2006 08:29 PM

Quote:

Originally Posted by Real Talk
anyone know if there is anything available like this

Nope, i haven't seen that arround yet.

S@NL - BlackBik 02-16-2006 08:31 PM

Quote:

Originally Posted by leeman
I only have forumhome_vbshout and I can't find // Start Page Output in that one ...

It's not in the template, but it's in the vbshout.php file on your server ;)

Luggruff 02-16-2006 08:41 PM

Edit: Allready answered (:

Muderman24 02-16-2006 09:03 PM

Is there a way to set certain usergroups to be able to edit and/or delete shouts or certain members?

Luggruff 02-16-2006 09:26 PM

[QUOTE=tipoboy]
Quote:

Originally Posted by leeman
sorryb to be repeting myself zero.....

i did this only last night with my forum, go to the php template for vbshout and find the following:
Code:

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

after that add this:
Code:

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]%27.$emo%5B%27smiliepath%27%5D.%27[/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]%27.$GetEmo%5B%27smiliepath%27%5D.%27[/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'] == 2 && 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
// ---------------------------------------------------

then disable your plugin using your admincp=>plugin system=>manage products

then add this link to your nav bar "http://yoursitename.com/forum/vbshout.php?do=chat" target="new"

this will make the shoutbox pop up on a seperate page

hope this works and thanks again to mtha + S@NL - BlackBik for helping me do this

sorry if this post is a bit vague i'm quite new here myself and havent really helped a lot of people

Neat !
But how would I get only the shoutbox, and not the entire enviroment?
Don't want all that in a popup :p

Megareus Rex 02-16-2006 11:16 PM

Quote:

Originally Posted by S@NL - BlackBik
Yes, replace the "forumhome_vbshout_shout" template with this code:
Code:

<tr>
                                <td width="1%" style="white-space:nowrap" align="left" valign="top" class="smallfont">
                                        [{$Shout['time']}]
                                        <if condition="!$Shout[s_me]">
                                                <if condition="$Shout[s_by]">
                                                        <a href='member.php?{$session['sessionurl_q']}u={$Shout['s_by']}'>
                                                </if>{$Shout['username']}<if condition="$Shout[s_by]"></a></if>:
                                        </if>
                                </td>
                                <td width="100%" align="left" class="smallfont">
                                        <if condition="!$Shout[s_me]">
                                                {$Shout['s_shout']}
                                        <else />
                                                <span class='highlight'>
                                                        *{$Shout['username']} {$Shout['s_shout']}*
                                                </span>
                                        </if>
                                </td>
                        </tr>

(I added class="smallfont" to the td tags)


Yep, that's also possible:
Open the template "forumhome_vbshout" and find this code:
Code:

                        <td class="tcat" align="center">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>

and replace it by:
Code:

                        <td class="tcat" align="left">
                                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_vbshout')"><img id="collapseimg_forumhome_vbshout" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_vbshout].gif" alt="" border="0" /></a>


You're welcome :)

Thanks! I really appreciate the help :)


All times are GMT. The time now is 08:06 AM.

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.03730 seconds
  • Memory Usage 1,996KB
  • 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
  • (14)bbcode_code_printable
  • (3)bbcode_php_printable
  • (19)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