The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#1302
|
||||
|
||||
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. |
#1303
|
|||
|
|||
How do I change he name of the button to read something differnent the shout
|
#1304
|
||||
|
||||
Quote:
any help here would be gratefully appreciated |
#1305
|
||||
|
||||
Quote:
|
#1306
|
|||
|
|||
This is some awesome hack Gr8 work m8!
|
#1307
|
||||
|
||||
Quote:
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 |
#1308
|
||||
|
||||
Quote:
thanks again |
#1309
|
|||
|
|||
Quote:
Edit: doesn't seem to work for me, though. I'm gonna try the refresh button instead. |
#1310
|
||||
|
||||
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. |
#1311
|
||||
|
||||
[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 // --------------------------------------------------- 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'].'\')"> ';
}
}
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'].'\')"> ';
}
}
}
}
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 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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|