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)

Sidewindr 05-01-2006 05:16 AM

Quote:

Originally Posted by Sn!per101
As an update to my other post about the WOL showing everyone on the forum index as "viewing the shoutbox" I believe it is not because of a newer apache but because of PHP 5 that I now have on my new hosting. My old hosting had PHP 3. So if you could please make this extention PHP 5 comptable to fix that bug I would appreciate it. Thank you.

I'm running latest vbulletin, php and apache and it all works fine including the WOL. I think you have problems elsewhere.

Zweeper 05-01-2006 09:44 AM

Quote:

Originally Posted by Zweeper
Can please help me somebody with a function that cut long words??
look @ attachment


hm, i'm getting just problems and i don't know what i can doo.

Davidspl 05-01-2006 01:13 PM

Quote:

Originally Posted by CP1
to fix the 'no gap' problem edit the forumhome_vbshout template and add <br /> at the top,

to fix the symbols problem, installing the latest version should fix that,


CP1

Thanks the <br /> thing worked a treat.

I just downloaded this again, and upgraded/reinstalled, still same problems with the symbols thou, enter & it shows as &amp; , enter " it shows as &quot


:cross-eyed:

Sn!per101 05-01-2006 02:01 PM

Quote:

Originally Posted by Sidewindr
I'm running latest vbulletin, php and apache and it all works fine including the WOL. I think you have problems elsewhere.

Then do you have any idea what is causing my forum index (forum.php) to show as "viewing shoutbox"? 1 thing I haven't tried is uninstalling vbshout and reinstalling it. Then all the shouts would be lost. Anyway to back them up?

Iain M 05-01-2006 02:10 PM

Quote:

Originally Posted by Davidspl
Thanks the <br /> thing worked a treat.

I just downloaded this again, and upgraded/reinstalled, still same problems with the symbols thou, enter & it shows as &amp; , enter " it shows as &quot


:cross-eyed:

np, installing the latest version should fix the symbols problem :\

i can enter & " e.t.c and they show up fine on my site

Damien2005 05-01-2006 06:43 PM

Quote:

Originally Posted by Damien2005
How can i set the $pagenav in to the shoutbox ?

Someone here who can help me out..

Come on guys i ask a simple question..
I want to add the $pagenav in to the forumhome_vbshout_shout.. but its not working.. what do i have to change to get it work..

Thanks for your help...

camoman 05-01-2006 11:47 PM

Quote:

Originally Posted by Davidspl
Thanks the <br /> thing worked a treat.

I just downloaded this again, and upgraded/reinstalled, still same problems with the symbols thou, enter & it shows as &amp; , enter " it shows as &quot


:cross-eyed:


I am having the same problem

utw-Mephisto 05-02-2006 10:00 AM

Sorry when I ask maybe a question which has been answered already, but 113 pages are not easy to follow :)

1. Is it compatible with 3.5.4
2. Can I use it to show in certain forums only and not forumhome ?

utw-Mephisto 05-02-2006 10:41 AM

Ok, answered the first question myself :)

Only the 2nd left ..

Impulse 05-02-2006 02:13 PM

Having big problems with this. but it does look great all around.

utw-Mephisto 05-02-2006 04:10 PM

I went back quite a few pages and it seems that Zero Tolerance gave up to support this mod or he is simply to busy .. so I guess I would have to uninstall until I get an answer .. Ah well .. great mod anyway ..

Zweeper 05-02-2006 04:40 PM

need wordcut function

ohgenki 05-02-2006 06:44 PM

i installed the right column hack by amy, how do i put this shoutbox on that place?

Impulse 05-02-2006 08:12 PM

Well whatever he did. The Shoutbox On his site still works. o_O

bigfoot 05-02-2006 08:18 PM

I did'nt read all 114 pages in this thread, so there is a chance this has been posted before.

I use vbShout at my forum. I have a small problem however. Special characters like & are converted to &amp;... how can this be solved ???

I guess it is for disabling HTML-codes in the Shoutbox.

Thanks i advance

thenewuser 05-03-2006 12:25 AM

If I install this can I put it on the bottom of my screen on the main page of vbadvanced? :)

ohgenki 05-03-2006 04:26 AM

does anyone here knows how to put this thing on the side?

Zweeper 05-03-2006 10:47 AM

look here: http://www.vbadvanced.com/forum/showthread.php?t=11628

But i need a wordwrap function because long words destroying the tables :(

Damien2005 05-03-2006 04:38 PM

Quote:

Originally Posted by Damien2005
Come on guys i ask a simple question..
I want to add the $pagenav in to the forumhome_vbshout_shout.. but its not working.. what do i have to change to get it work..

Thanks for your help...

I just want to thank you all for your help :banana:

vbreal 05-03-2006 05:37 PM

is there anyway to exclude this from certain styles. this slows down the load time for some users.

desiforums 05-03-2006 11:32 PM

can you help me...can you tell me how to change the height of the shoutbox...

vbreal 05-03-2006 11:35 PM

Quote:

Originally Posted by desiforums
can you help me...can you tell me how to change the height of the shoutbox...

go to vbulletin options and looke for the vbshout option. u can change it in there

desiforums 05-03-2006 11:37 PM

thanks for the quick reply i found it...

tvsf 05-04-2006 06:24 PM

I often get these &quot;quest&quot; in the shoutbox. What's wrong and how do I go about fixing it?

Dj megas 05-05-2006 11:50 AM

Hi!!!
In The shout box is eny way to make it so the only ppl to write there to be the mods but the members to see what we write only?

vbreal 05-06-2006 01:05 PM

Quote:

Originally Posted by Dj megas
Hi!!!
In The shout box is eny way to make it so the only ppl to write there to be the mods but the members to see what we write only?

you an exclude usergroups. go to vbulletin options the look for vbshout and just put the number of the usergroups u wanted excluded seperated by commas

thalamus 05-06-2006 06:45 PM

Quote:

Originally Posted by tvsf
I often get these &quot;quest&quot; in the shoutbox. What's wrong and how do I go about fixing it?

I was having the exact same problem, but it seems that by changing the 'shout' option to TYPE_STR (from TYPE_NOHTML) it's working.

Now, does that cause a security issue and, if so, can anyone tell me please where can I possibly find the antidote in the code base??

DjTaz 05-06-2006 08:07 PM

Hey Guys i have two things to say here :

First if you have an issue with this hack , it has more than likely been answered already (the quote issue, the server load issue, the height , the commands to clear the shouts,auto pruning shouts .... pretty much everything ) so PLEASE read the thread and look for it. I went through almost all of the posts on this thread - and about 50% of them are people asking the same questions over and over.

Secondly - something that hasnt been answered is this :
How to put the shoutbox on the Arcade main page , and heres how you do it.

In your AdminCP - go to Plugin Manager- Add a plugin

Product : Vbulletin
Product Hook Location : arcade_main_complete
Title : VbShout Arcade
Plugin PHP Code :
Code:

$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 src="'.$emo['smiliepath'].'" alt="'.$emo['title'].'" border="0" /></a> ';
                }
        }

        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 src="'.$GetEmo['smiliepath'].'" alt="'.$GetEmo['title'].'" border="0" /></a> ';
                        }
                }
        }
}
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.'</option>' . "\n";
                        }
                }
        }
}

function isBanned($user)
{
        return (isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));       
}

function isBanned_Check($bash, $against)
{
        global $vbulletin;
        return in_array($bash, iif($vbulletin->options[$against], explode(',', $vbulletin->options[$against]), array()));
}

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

        switch ($vbulletin->options['shout_position'])
        {
                case 1:
                        $Position = '<!-- what\'s going on box -->';
                break;

                case 2:
                        $Position = '<!-- end what\'s going on box -->';
                break;

                case 4:
                        $Position = '<!-- main -->';
                break;

                default:
                        $Position = '$navbar';
                break;
        }



$Position = '<--shoutbox-->';
$vbulletin->templatecache['arcade_main'] = str_replace($Position, ' $Shoutbox', $vbulletin->templatecache['arcade_main']);


Save and ACTIVATE the plugin.

The go to the arcade_main template and put the in this code where you want the shoutbox to be placed :

Code:

<--shoutbox-->
I put mine just under $navbar for anyone who wants it there (its pretty neat there)

If you want to put this on any other page (like say the WHOSONLINE page) - do another plugin up and change the settings at the very end of the code from :
Code:


$vbulletin->templatecache['arcade_main'] = str_replace($Position, ' $Shoutbox', $vbulletin->templatecache['arcade_main']);

to
Code:

$vbulletin->templatecache['WHOSONLINE'] = str_replace($Position, ' $Shoutbox', $vbulletin->templatecache['WHOSONLINE']);
and place the

Code:

<--shoutbox-->
into the WHOSONLINE template where you want it.


Hope that helps a few people out with this.

vbreal 05-07-2006 03:25 PM

Quote:

Originally Posted by DjTaz

Secondly - something that hasnt been answered is this :
How to put the shoutbox on the Arcade main page , and heres how you do it.

.

i haven't seen an answer to my question

i asked if there was a way to exculde vbshout from certain styles.

arcadian_girl 05-07-2006 04:51 PM

oh wow...this is awesome, completely. and even more awesome-no file or template edits! :D just upload a file and import a product and you're done. i'm loving it and so are my members. now, fingers crossed that i don't have problems with my host cos of the AJAX refresh thing...

DjTaz 05-08-2006 12:18 AM

Quote:

Originally Posted by Real Talk
i haven't seen an answer to my question

i asked if there was a way to exculde vbshout from certain styles.


Yes thats possible .. find the VbShout Plugin in your plugin manager - and go to Edit ....

find the code
Code:


$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);

at the bottom and replace it with
Code:

$Position = '<--shoutbox-->';
$vbulletin->templatecache['FORUMHOME'] = str_replace($Position , ' $Shoutbox' , $vbulletin->templatecache['FORUMHOME']);

This will make the shoutbox seem to dissappear from all of the styles , but you'll discover that on the styles that you want it to appear on , go to FORUMHOME and put in
<--shoutbox-->
where you want it to display (usually under the navbar)

That should do what you want.

Zweeper 05-08-2006 03:48 AM

and can someone code a wort wrap function for toooooooooooooooooooooooooooooooooooooooooooo long words?

D.Ilyin 05-08-2006 05:09 AM

Quote:

Originally Posted by Zweeper
and can someone code a wort wrap function for toooooooooooooooooooooooooooooooooooooooooooo long words?

Edit your template with vBShout
FIND:
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
AND REPLACE:
Code:

width="100%"
with yours left column widht.

Zweeper 05-08-2006 03:28 PM

hm, that don't works. :(

coffee 05-08-2006 07:01 PM

Thank you Zero Tolerance.

Iain M 05-08-2006 07:46 PM

Quote:

Originally Posted by D.Ilyin
Edit your template with vBShout
FIND:
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
AND REPLACE:
Code:

width="100%"
with yours left column widht.

ty D.Ilyin worked for me :)

FLMom 05-08-2006 09:28 PM

Just installed...thanks!! :banana:

I have to tell you this was very easy to install! Although I am having trouble the the weird quote thing, but I know I saw it here somewhere so off to look :)

FLMom 05-08-2006 09:43 PM

Ok there is too many pages to look through and now my eyes are hurting lol

I need to figure out how to get rid of this code: &quot;smilies&quot;

Can someone please help? Thanks!

GoTTi 05-08-2006 09:55 PM

why when i put "WORD" i get &quot;WORD&quot; ?

anytime i use the " " i get those charachters. why is that?

GoTTi 05-08-2006 09:56 PM

FLMOM thats funny we have the same post...im having the same problem. when we use the " " is the problem.


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.03061 seconds
  • Memory Usage 1,860KB
  • 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
  • (11)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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