vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - ZH - vBShout On All Pages (https://vborg.vbsupport.ru/showthread.php?t=133049)

parabat 03-07-2007 09:25 PM

I'm running 3.6.4 and vbshout 2.0 and have done both the manual and the xml changes. Both throw up this message.

Code:

Fatal error: Call to undefined function: isbanned() in /**/***/***/airbornesoldier.com/Forums/global.php(356) : eval()'d code on line 321
Any help please.

-PB

Ziki 03-07-2007 09:37 PM

Are you sure you removed:

Quote:

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

parabat 03-07-2007 09:48 PM

Yes, definitely.

As I said, I tried both methods.

-PB

parabat 03-07-2007 10:08 PM

I see the default is below the navbar. How do I set it to be above the Main forum as I have other things below the navbar?

-PB

cOuNtErFiET 03-08-2007 04:26 AM

i upgraded to 3.6.5 and wont work something is up i get that banned error too

EDIT: ok i got it had to change the vbShout Option: Banned Permissions to "can view shoutbox, but not message" and worked for me, i remember having to do this with an old vbshout, but of course im using vbshout 2.1 not 2.0

deezelpope 03-11-2007 11:50 AM

Quote:

Originally Posted by deezelpope (Post 1198169)
Bummer...won't work on my board.:(

Ok, tried again...it works, just not on all skins. Worked on 3 out of 5...bizarre. Didn't work on Blak-Ice or GirlTalk3.:confused: :eek: So, I reverted back to just having it on the index.:rolleyes: :(

GekkoPixie 03-19-2007 05:39 PM

Worked great for me! Thank you!

FRANKTHETANK 2 03-25-2007 06:27 PM

worked on vbshout 2.1 also good work

GnG_ShoOk 03-30-2007 05:23 AM

i installed it correct, but the box comes up and all but it just says loading... and it nevr changes...?

GnG_ShoOk 03-30-2007 05:38 AM

is there some link i need for a server ?

Ziki 03-30-2007 11:20 AM

Um no.What vBshout version?

Whatsoever 04-06-2007 10:08 AM

I've had a problem off the VbShout gone on some skins i had. I updated the navbar template.

Works fine for me. Just go to your navbar template and find:
Code:

<!-- / PAGENAV POPUP -->
</if>

You can also go too the bottom of the editor place.

Add below:
Code:

$Shoutbox

Ziki 04-06-2007 01:04 PM

Oh that's a good point.I will update post 2.

VaaKo 04-12-2007 07:38 AM

It's not working, when I import the product my index.php gets all blank!
I'm using vbshout v3!

Ziki 04-12-2007 05:32 PM

v3???This is vb 2.0 only.Where is v3?

beasterday78 04-19-2007 12:26 AM

OK! I have read through all of the posts for this thread. I have looked through and tried several things. I am using vshout2.0 And I have the latest version of vbulletin. I can see the shout box on all of my pages, but it is saying loading. It never changes.

ABeautifulBrown 04-21-2007 02:28 AM

v3 = v2.0.2
if you've downloaded the current zip, you have it.
has anyone gotten this working?

Ziki 04-21-2007 05:31 PM

This is only 2.0 !Read the thread!

Draygonia 04-29-2007 06:48 PM

<a href="http://www.cwalkerz.com" target="_blank">www.cwalkerz.com</a> - As you can see, it displays on the top page, but not the other pages, is there a way to fix it? It tries to display a table, but cant.

andrewtr89 05-03-2007 01:59 PM

Great work Ziki.

If you install this with anything other than vbshout 2.0 you will get a continuous loading message. I am using vB 3.6.5

Edit:

Another thing worth mentioning, which helped me.

Quote:

Originally Posted by Attitude5ire (Post 1057795)
If you get this error, while clicking member profile page, reading PM or reputations..

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1064) : eval()'d code on line 5
try doing this -
Edit plugin "vBShout [Template Cache]" and make the following change:

Find :
Code:

if (VB_AREA == "Forum")
Change it to
Code:

if (VB_AREA == "forum")
Kinda worked for me, though im using a different Version of Shoutbox which uses flatfile.
Cheers


jessej 05-25-2007 05:54 AM

Quote:

Originally Posted by Ziki (Post 1130179)
If does not work on some custom styles: click

PERFECT!!! TYTY :)This is a great hack and been ok, but had 2 problems.

First was getting blank/white pages when reading pm's. I uninstalled it all, and re-installed it. Now it seems to work ok with pms, but when i go to read a pm, I get this

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 5


ONLY when I red a pm. This message is at the very top of the forum page, and it happens on all skins. I am on vb vers 3.6.5

jessej 06-02-2007 07:40 PM

now i locked out of the admincp all together. argh!! this is a lot of probs. how can i get back into the admincp? just getting a white screen and a message at top says;

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1219) : eval()'d code on line 5

Any help grreatly appreciated.
jj

---------------
UPDATE:
went into the server, found the plugin table, modified it, and now back in. damn thats NOT fun at all. along the way i hosed a few other hacks (in the test forum only), but got em back now.

But,
still the hack for the shoutbox is ok, its the hack to install it on all pages thats hosing my stuff. and not when i do it manually, only when i import the xml file. ..

blindman4556 07-04-2007 02:39 AM

on one of my skins, when your in internet explorer. and you type something in, it says error on page on that little bar on bottom of window. then it will open up a new window (/forums/vbshout.php?) any suggestions

the site is http://www.likenota.com/forums/ and its the default skin that does it, none of the rest

blindman4556 07-07-2007 12:14 AM

https://vborg.vbsupport.ru/external/2010/06/10.gifmy ass

GekkoPixie 08-12-2007 08:08 PM

This doesn't work on 3.6.8.

kellyandmark04 09-11-2007 03:13 AM

just installed the XML file and overwrote my previous version and it works great except for one prob

im running vb 3.6.7

it shows on all pages everything works correctly but when i open a private message i see this at the top of the screen

Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1243) : eval()'d code on line 5
can anyone help me resolve this issue thanks

skepticality 09-24-2007 10:14 PM

Damn,

Well the box is on all my pages, but it only sits there 'loading' and never comes up at all! :(

Anyone have a fix for that issue?

FreshFroot 09-26-2007 04:48 AM

best way to get rid of errors is to use the new shoutbox.. though it has less features I know it works on all and any pages you want it too...

mitomcua 09-29-2007 06:02 PM

FreshFroot,
Which version are you using that has the feature on all pages?

imports 09-29-2007 10:22 PM

how come mine just say loading....and it's not working

mystic10 11-25-2007 11:42 PM

this is strange for some reason smiles are not working why i dont know

problem is not the shout box its the smiles this is what u see when u pick smiles
<img src="images/smilies/1637.gif" border="0" alt="" title="1637" class="inlineimg" />
<img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> hello

i dont know what went wrong suddenly

mystic10 11-27-2007 03:32 PM

please please please someone help

this is strange for some reason smiles are not working why i dont know

problem is not the shout box its the smiles this is what u see when u pick smiles
<img src="images/smilies/1637.gif" border="0" alt="" title="1637" class="inlineimg" />
<img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/sport43.gif" border="0" alt="" title="Sport43" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> <img src="images/smilies/aq.gif" border="0" alt="" title="Aq" class="inlineimg" /> hello

Knightmane 01-11-2008 04:11 AM

While I couldn't get this to work in the format that you provided in Post #1, I did manage to get the shoutbox to function at the top of every Forumdisplay page (with the exception of the dropdown font shortcuts, which most people can overlook if they know how to manually set font sizes and fonts.)

Here is how I did it, for those members who might be having similar problems.
This is simply an easy and super quick copy and paste fix.
This has been tested to work on vb3.7.0 BETA 3 and it works.

Customize/Edit your style's Forumdisplay Template.

Find $navbar and add below that:
Code:

<form action="vbshout.php?{$session['sessionurl']}" method="post" name="vbshoutform" onsubmit="return postShout(this)">
<input type='hidden' name='do' value='shout' />
<input type='hidden' name='color' />
<input type='hidden' name='fontFamily' />
<input type='hidden' name='fontWeight' />
<input type='hidden' name='textDecoration' />
<input type='hidden' name='fontStyle' />

<div id='shout_emo' style='display:none'>
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <tr>
                        <td class="tcat" align="center">
                                Emoticons
                        </td>
                </tr>
                <tr>
                        <td class='alt2' width='100%' height='100%' align='center' valign='top'>
                                $Smilie_Build
                        </td>
                </tr>
                </table>
        <br />
</div>
                <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <thead>
                <tr>
                        <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>
                                <a href='vbshout.php?{$session['sessionurl_q']}do=archive'>Shoutbox</a>
                        </td>
                </tr>
                </thead>
                <tbody id="collapseobj_forumhome_vbshout" style="$vbcollapse[collapseobj_forumhome_vbshout]">
                        <tr>
                                <td class="alt1" align="left" width="100%">
                                <if condition="!$vboptions[shout_editor_position]">
                                        <if condition="$bbuserinfo[userid] > 0">
                                        <table width='100%' border='0' cellpadding='0' cellspacing='0'>
                                                <tr>
                                                <td width='100%'>
                                                        <input type="text" name="shout" style="width: 90%" class="bginput" />
                                                </td>
                                                <td style='white-space:nowrap' width='1%'>
                                                        <input type="submit" value="Shout" class="button" />
                                                        <if condition="$vboptions[shout_extra_options]">
                                                        <input type='button' class='button' value='Clear' onclick='sb_Clear()' />
                                                        <input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
                                                        <input type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
                                                        <input type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
                                                        <input type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
                                                        <select name='font_color' onchange='sb_PropChange(this, "color")'>
                                                                {$DropDowns['color_selector']}
                                                        </select>
                                                        <select name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
                                                                {$DropDowns['font_selector']}
                                                        </select>
                                                        </if>
                                                </td>
                                        </tr>
                                        </table>
                                        <div style="height: 2px"></div>
                                        </if>
                                </if>
                                        <div id="vbshout" style="overflow:auto;height:{$vboptions['shout_box_height']}px;width:100%;">
                                                Loading...
                                        </div>
                                <if condition="$vboptions[shout_editor_position]">
                                        <if condition="$bbuserinfo[userid] > 0">
                                        <div style="height: 2px"></div>
                                        <table width='100%' border='0' cellpadding='0' cellspacing='0'>
                                        <tr>
                                                <td width='100%'>
                                                        <input type="text" name="shout" style="width: 90%" class="bginput" />
                                                </td>
                                                <td style='white-space:nowrap' width='1%'>
                                                        <input type="submit" value="Shout" class="button" />
                                                        <if condition="$vboptions[shout_extra_options]">
                                                        <input type='button' class='button' value='Clear' onclick='sb_Clear()' />
                                                        <input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' />
                                                        <input type='button' class='button' style='font-weight:bold' value='B' onclick='sb_PropChange_Button(this, "fontWeight")' />
                                                        <input type='button' class='button' style='text-decoration:underline' value='U' onclick='sb_PropChange_Button(this, "textDecoration")' />
                                                        <input type='button' class='button' style='font-style:italic' value='I' onclick='sb_PropChange_Button(this, "fontStyle")' />
                                                        <select name='font_color' onchange='sb_PropChange(this, "color")'>
                                                                {$DropDowns['color_selector']}
                                                        </select>
                                                        <select name='font_selector' onchange='sb_PropChange(this, "fontFamily")'>
                                                                {$DropDowns['font_selector']}
                                                        </select>
                                                        </if>
                                                </td>
                                        </tr>
                                        </table>
                                        </if>
                                </if>
                                </td>
                        </tr>
                </tbody>
                </table>


</form>
<br />

<script type='text/javascript'>
<!--

postingShout = false

function requestShouts()
{
        if (!postingShout)
        {
                ShoutRequest = new vB_AJAX_Handler(true)
                ShoutRequest.onreadystatechange(showShouts)
                ShoutRequest.send('vbshout.php', 'nocache=' + (5 * Math.random() * 1.33) )
        }
}

function showShouts()
{
        if (ShoutRequest)
        {
                if (ShoutRequest.handler.readyState == 4 && ShoutRequest.handler.status == 200 && ShoutRequest.handler.responseText)
                {
                        Shouts          = fetch_object('vbshout')
                        Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>'
                        setTimeout('requestShouts()', 10000)
                        <if condition="$vboptions[shout_messages_order]">
                        document.getElementById('vbshout').scrollTop = 99999;
                        </if>
                }
        }
}

function sb_CollectHV(sbForm)
{
        rString = ''
        inputObjs = sbForm.getElementsByTagName('input')
        for (i = 0; i < inputObjs.length; i++)
        {
                if (inputObjs[i].type == 'hidden' && inputObjs[i].value != '')
                {
                        rString += '&' + inputObjs[i].name + '=' + PHP.urlencode(inputObjs[i].value)
                }
        }

        return rString
}

function postShout(formObj)
{
        doShout = new vB_AJAX_Handler(true)
        doShout.onreadystatechange(postedShout)

        if (postingShout)
        {
                alert('Posting in progress..')
                return false
        }

        Shout = formObj.shout.value

        if (Shout.replace(/ /g, '') == '')
        {
                alert('You must enter a shout!')
                return false
        }

        doShout.send('vbshout.php', 'do=shout&shout=' + PHP.urlencode(Shout) + sb_CollectHV(document.forms['vbshoutform']))
        sb_Clear()
        postingShout = true

        return false
}

function postedShout()
{
        if (doShout.handler.readyState == 4 && doShout.handler.status == 200)
        {
                postingShout = false
                requestShouts()
        }
}

function sb_Input_SC(sProperty, setting)
{
        eval('document.forms["vbshoutform"].shout.style.' + sProperty + ' = "' + setting + '"')
        eval('document.forms["vbshoutform"].' + sProperty + '.value = "' + setting + '"')
}

function getSelectionValue(eSelector)
{
        return eSelector.options[eSelector.options.selectedIndex].value == 'Default' ? '' : eSelector.options[eSelector.options.selectedIndex].value
}

function sb_PropChange(eSelector, sProperty)
{
        sb_Input_SC(sProperty, getSelectionValue(eSelector))
}

function sb_PropChange_Button_Value(sProperty)
{
        trueValue = ''
        switch (sProperty)
        {
                case 'fontWeight':
                falseValue = 'bold'
                break;

                case 'textDecoration':
                falseValue = 'underline'
                break;

                case 'fontStyle':
                falseValue = 'italic'
                break;
        }

        return (eval('document.forms["vbshoutform"].' + sProperty + '.value'))? trueValue : falseValue
}

function sb_PropChange_Button(cButton, sProperty)
{
        if (cButton.value.match(/\*/))
        {
                cButton.value = cButton.value.replace(/\s+\*/, '')
        }
        else
        {
                cButton.value = cButton.value + ' *'
        }

        sb_Input_SC(sProperty, sb_PropChange_Button_Value(sProperty))
}

function sb_Smilie(code)
{
        document.forms["vbshoutform"].shout.value += ' ' + code
        return false
}

function sb_Clear()
{
        document.forms["vbshoutform"].shout.value = ''
        return true;
}

function sb_Smilies(cButton)
{
        if (cButton.value.match(/\*/))
        {
                cButton.value = cButton.value.replace(/\s+\*/, '')
        }
        else
        {
                cButton.value = cButton.value + ' *'
        }
       
        document.getElementById('shout_emo').style.display = (document.getElementById('shout_emo').style.display == 'none')? '' : 'none'
}

requestShouts()

-->
</script>

Save your work and it simply works. No other edits are necessary.
You will have a single shoutbox at the top of every forumdisplay page.

((If my explaining this isn't allowed, then the Admins can remove it. Thanks.))

crazymilk 05-03-2009 12:21 PM

Works great on all pages but on vBadvance page there is no smilies? any help anyone


All times are GMT. The time now is 01:32 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.01398 seconds
  • Memory Usage 1,867KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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