News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMFPacks.com Shoutbox

Started by Nibogo, October 19, 2008, 11:41:06 AM

Previous topic - Next topic

tivaelydoc

Quote from: JCS on November 06, 2008, 08:47:22 AM
Quote from: tivaelydoc on November 03, 2008, 04:23:51 PMHow do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

- Strikethrough
- Preformatted Text
- Left Justified
- Centered
- Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?

adamcanada

I would love to be able to install this, I am using Tiny Portal..anyone have any luck getting this to work with Tiny Portal?

makito

To people who can read spanish...

Recomiendo este tema: [shoutBox] Ancho de banda usado

Saludos




You don't? follow this link, maybe it helps: Google Translation

Topic is about bandwidth used by shoutBox.

Greetings
Do not PM me for support, make a post if you need help.

ryozo

#103
JCS

what should be added in the action field to have this shoutbox show during browsing the board and or replying to the post.
its only showing in the forum page alone.

also, how to remove the loading/refresh gif?

thanks

Adish - (F.L.A.M.E.R)

When i go in the admin panel and shoutbox --> permissions --> as i click edit i get this:-


Not Acceptable
An appropriate representation of the requested resource /forum/skywise/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at goldysun.com Port 80


It happens on both the edit links...


Also is it possible to lock the shoutbox as in for maintanance when unwanted..? or just lock it in a way that by hitting /lock it shows the shouts by just the forum admins and no one else ?

Cal O'Shaw

Would it be possible to set permissions as to who can see it?  I'd like to use it as a way for our Admin Team to coordinate, but not be used by anyone else (it would cause problems).

Grazie

tink

Okay, I am so not a techie person so bear with me.

I downloaded and applied the mod and like it very much, but I want it in the info section so when my members go from thread to thread they can still see it and I can not figure out what to put in the (?action=) box to have this happen. I really don't want to go to my database to do this.

Can someone just tell me what to put in that box for this to happen?

gotorx7

Hi!

Thanks for the Mod, love it!

Is there practical way to increase the number of shouts held as History please?

Regards,
Dave

spliffeh

Nice mod

I'd also like to know if there's a way to increase history size?

Also... I've installed successfully and it runs, but I dont see any admin panel or new tabs in my Features & Options admin section. Is there supposed to be a screen for options somewhere that I am missing? It's not there in the default theme or the custom one I use. I'm using SMF 1.1.7.

haito

#109
how to make HacksPark shoutBox appear in orangelime theme?
below is the index.template

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;
echo 
'
</head>
 <body>
  <div id="wrapper"/>
 <div id="header">
<div id="head-l">
  <div id="head-r">
  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$context['current_time'],'<br />';
}
echo '
</div>
<div id="search">'
;
echo '
 <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
 <a href="'
$scripturl'?action=search;advanced" title="'$txt['smf298'], '"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="'$txt['smf298'], '" /></a>
 <input type="text" class="inputs" name="search" value="'
$txt[182], '.." style="width: 120px;" /> 
 <input type="submit" name="submit" value="'
$txt[182], '" style="width: 10ex;" />
 <input type="hidden" name="advanced" value="0" />'
;

 // Search within current topic?
if (!empty($context['current_topic']))
 echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

 // If we're on a certain board, limit it to this board ;).
 elseif (!empty($context['current_board']))
 echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';
echo '
</form>
</div>
<a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
  <div id="toolbar">
'
,template_menu(),'
  </div>
  <div id="bodyarea">'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

  echo '
</div>'
;


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footer">
 <div id="foot-l">
  <div id="foot-r">
<div id="footerarea">
<span class="smalltext">'
theme_copyright(), '
<br />OrangeLine by <a href="http://www.jr62.com"><b>Crip</b></a></span>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<br /><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.

if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])

{

// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";

}

}'
;

elseif ($context['browser']['is_firefox'])

echo '

window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '

var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{

if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))

codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)

{

window_oldOnload();

window_oldOnload = null;

}

}'
;

echo '
// ]]></script>'
;
}
echo '

</div>
  </div>
 </div>
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
echo 
'
</body></html>'
;

}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;
echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&#38;#0187;&nbsp;';
}
echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
  
echo '
  <div id="stylefour">
  <ul>'
;

 // Show the [home] button.
echo '<li><a' $current_action=='home' ' class="chosen"' '' ' href="'$scripturl'"><b>' $txt[103] , '</b></a></li>';

// Show the [forum] button.
echo '<li><a href="http://kawand.com/index.php?action=forum"><span>Forum</span></a></li>';

 // Show the [help] button.
echo '<li><a' $current_action=='help' ' class="chosen"' '' ' href="'$scripturl'?action=help"><b>' $txt[119] , '</b></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="chosen"' '' ' href="'$scripturl'?action=search"><b>Search</b></a></li>';

 // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="chosen"' '' ' href="'$scripturl'?action=calendar"><b>' $txt['calendar24'] , '</b></a></li>'

 // Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' $current_action=='admin' ' class="chosen"' '' ' href="'$scripturl'?action=admin"><b>' $txt[2] , '</b></a></li>';
 // Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="chosen"' '' ' href="'$scripturl'?action=profile"><b>' $txt[79] , '</b></a></li>';

 // Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="chosen"' '' ' href="'$scripturl'?action=pm"><b>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</b></a></li>';

// the [member] list button
 if ($context['allow_memberlist'])
 echo '<li><a ' $current_action=='mlist' ' class="chosen"' '' ' href="'$scripturl'?action=mlist"><b>' $txt[331] , '</b></a></li>';

 // If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
 echo '<li><a ' $current_action=='login' ' class="chosen"' '' ' href="'$scripturl'?action=login"><b>' $txt[34] , '</b></a></li>';

 // If the user is a guest, also show [register] button.
  if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='register' ' class="chosen"' '' ' href="'$scripturl'?action=register"><b>' $txt[97] , '</b></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="chosen"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><b>' $txt[108] , '</b></a></li>';
echo '
</ul>
 </div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;

}

elseif (!isset($buttons[$key]) || $force_reset)

$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';
$button_strip[$key] = $buttons[$key];
}
if (empty($button_strip))
return '<td>&nbsp;</td>';
echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}
?>


i had read http://www.hackspark.com/manuales/smf-shoutbox-instalacion-en-diferentes-temas_40.0.html
but im not understand~
www.japanesia.co.id | Portal Berita & Komunitas Untuk Kamu yang Suka Jepang

makito

#110
Quote from: haito on November 14, 2008, 09:26:18 AMhow to make HacksPark shoutBox appear in orangelime theme?
below is the index.template

I added an attachment with source code of the new index.template.php
Just upload it to your server

Please, edit your message and delete all that code, cuz it's too long  ;D

Quote from: gotorx7 on November 13, 2008, 06:50:45 AMIs there practical way to increase the number of shouts held as History please?

Quote from: spliffeh on November 13, 2008, 08:54:08 PMI'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Quote from: spliffeh on November 13, 2008, 08:54:08 PMAlso... I've installed successfully and it runs, but I dont see any admin panel or new tabs in my Features & Options admin section. Is there supposed to be a screen for options somewhere that I am missing? It's not there in the default theme or the custom one I use. I'm using SMF 1.1.7.

It is a language error

<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[# Hack's Park ||
$txt['hp_admin'] = 'Hack&#39;s Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';
]]></add>
</operation>
</file>


If you have english-utf language pack, or any other one, you should go to $languagedir/Modifications.language.php and add this in the end of file:

# Hack's Park ||
$txt['hp_admin'] = 'Hack&#39;s Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


Quote from: tink on November 13, 2008, 12:30:01 AM
Okay, I am so not a techie person so bear with me.

I downloaded and applied the mod and like it very much, but I want it in the info section so when my members go from thread to thread they can still see it and I can not figure out what to put in the (?action=) box to have this happen. I really don't want to go to my database to do this.

Can someone just tell me what to put in that box for this to happen?

You have to edit index.template.php and boardindex.template.php

Go to file $themedir/index.template.php

Search and Delete !!
# Hack's Park ||
template_HP_shoutBoxMain();


Ops  :P, I dont have boardindex.template.php, you have to wait ^^, sry

EDIT:

(Theme default) Go to file $themedir/boardindex.template.php

Search
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';


Add before
# Hack's Park ||
template_HP_shoutBoxMain();


Quote from: Cal O'Shaw on November 11, 2008, 03:17:30 AM
Would it be possible to set permissions as to who can see it?  I'd like to use it as a way for our Admin Team to coordinate, but not be used by anyone else (it would cause problems).

Grazie

In this version you can't do it, but in the next one you will  :P

Quote from: F.L.A.M.E.R on November 09, 2008, 10:15:35 PM
When i go in the admin panel and shoutbox --> permissions --> as i click edit i get this:-


Not Acceptable
An appropriate representation of the requested resource /forum/skywise/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at goldysun.com Port 80


It happens on both the edit links...

Also is it possible to lock the shoutbox as in for maintanance when unwanted..? or just lock it in a way that by hitting /lock it shows the shouts by just the forum admins and no one else ?

mmm, could it be an error of the shoutBox? because it is the right index file (/forum/skywise/index.php), right?  :-\

You can disable (desactivate jaja  :P) the shoutBox by editing actions options (?action=*)  in admin panel to "" (empty or nothing xD).

In this version, is not possible to restrict it to a group of users, sry. I'm working on it

Quote from: ryozo on November 09, 2008, 08:56:07 PM
JCS

what should be added in the action field to have this shoutbox show during browsing the board and or replying to the post.
its only showing in the forum page alone.

also, how to remove the loading/refresh gif?

thanks

Just add "messageindex;display;post" in the field (dont delete the others actions)

the gif is part of the shoutBox, you wont remove it easily

Quote from: tivaelydoc on November 08, 2008, 01:08:17 PM
Quote from: JCS on November 06, 2008, 08:47:22 AM
Quote from: tivaelydoc on November 03, 2008, 04:23:51 PMHow do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

- Strikethrough
- Preformatted Text
- Left Justified
- Centered
- Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?
First, why do you want all that futures?... is not a chat !! well, is a little similar, but dont
uhm, just let me think about it  ;) ,, maybe I'll add they in the next version

Second
QuoteIn this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Third, go to admin panel and edit actions field to ";all"

Fourth, go to file $themedir/index.template.php

Search
# Hack's Park ||
template_HP_shoutBoxMain();


Replace with
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();


Quote from: ryuuza on November 08, 2008, 03:50:36 AM
i want to ask:

how to put the shoutbox on the bottom of the page?

and second question - where i can send my language modification so it could be available for everybody? (language: Polish)

You have to edit $themedir/index.template.php
I dont have the file now, you have to wait  :(, sry

Edit:

Go to file $themedir/index.template.php

Search and delete
# Hack's Park ||
template_HP_shoutBoxMain();


Search
function template_main_below()
{


Add after
# Hack's Park ||
template_HP_shoutBoxMain();


The lang pack... that's great!! thanks a lot, send it  by PM pls,, love you  :-*

Wooo, I did a lot here...

Greetings
Do not PM me for support, make a post if you need help.

spliffeh

Quote from: makito on November 14, 2008, 11:41:40 AM

Quote from: gotorx7 on November 13, 2008, 06:50:45 AMIs there practical way to increase the number of shouts held as History please?

Quote from: spliffeh on November 13, 2008, 08:54:08 PMI'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P


Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?


gotorx7

Quote from: spliffeh on November 14, 2008, 09:36:03 PM
Quote from: makito on November 14, 2008, 11:41:40 AM

Quote from: gotorx7 on November 13, 2008, 06:50:45 AMIs there practical way to increase the number of shouts held as History please?

Quote from: spliffeh on November 13, 2008, 08:54:08 PMI'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P


Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Understand the bandwidth and load problems..

How about logging into a text file or database, and having an archive view?

Cheers,
Dave

haito

waw... success.. thanks makito :D

but, how to make it appear in all page?
www.japanesia.co.id | Portal Berita & Komunitas Untuk Kamu yang Suka Jepang

gotorx7

Can anyone tell me if their font and colour selections are being lost after a refresh please?

Cheers,
Dave

spliffeh

Quote
Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Quote
Understand the bandwidth and load problems..

Granted I'm a rookie with php/java. But no - I don't understand why this is a bandwidth/load issue. We're talking about displaying maybe 1k of extra text, how does this create load? Is this using my smf sql database or something? (it shouldn't.. just display a text file). Or is it quering a 3rd party server or something? How is there more load?

As for bandwidth, on a small site like mine I don't see how this is an issue, even if it's displaying the extra 1kb 2000+ times a day I'm okay with it.

The size of the history should be changable & up to us to decide on. I ask again: what is preventing us changing it? I'm curious how is the code limited that this is an issue?


makito

Quote from: haito on November 15, 2008, 07:44:19 AM
waw... success.. thanks makito :D

but, how to make it appear in all page?

go to admin panel and edit actions field to ";all"

Quote from: gotorx7 on November 16, 2008, 06:35:19 AM
Can anyone tell me if their font and colour selections are being lost after a refresh please?

Cheers,
Dave

There is not a function that save selected colors, but I will add one in the next version.

Quote from: spliffeh on November 16, 2008, 02:02:44 PM
Quote
Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Quote
Understand the bandwidth and load problems..

Granted I'm a rookie with php/java. But no - I don't understand why this is a bandwidth/load issue. We're talking about displaying maybe 1k of extra text, how does this create load? Is this using my smf sql database or something? (it shouldn't.. just display a text file). Or is it quering a 3rd party server or something? How is there more load?

As for bandwidth, on a small site like mine I don't see how this is an issue, even if it's displaying the extra 1kb 2000+ times a day I'm okay with it.

The size of the history should be changable & up to us to decide on. I ask again: what is preventing us changing it? I'm curious how is the code limited that this is an issue?

Sorry if I didn't explain either

What I mean is that the current method of loading shouts with more than 50 in each reload could increase use of bandwith (what is not suppose to). I'm now working on a new one (the next version of shoutBox) where you will have the option to change the initial shouts displayed and it wont affect this with an overuse
I'm just suggesting that continue with 20 shouts...
But If you dont have a limitation of the use of bandwith, it wont be a problem

Go to file $sourcedir/HP_shoutBox.php and search
$query = db_query("SELECT ID_MEMBER, realName, style, message, timestamp, colorName FROM {$db_prefix}hp_shoutbox
ORDER BY timestamp DESC LIMIT 20", __FILE__, __LINE__);


Go to file $sourcedir/HP_shoutBox.php and search
$query = db_query("SELECT ID_SHOUT, ID_MEMBER, realName, style, message, timestamp, colorName FROM {$db_prefix}hp_shoutbox
ORDER BY timestamp DESC LIMIT 20", __FILE__, __LINE__);


and replace LIMIT 20 to LIMIT %
where % is the number of shouts displayed
Do not PM me for support, make a post if you need help.

pikeman

Hello! On the default theme all works really great. But in kelo-lt115v1 theme, that I use does not work. What's the problem?

tivaelydoc

Quote from: makito on November 14, 2008, 11:41:40 AM

Quote from: tivaelydoc on November 08, 2008, 01:08:17 PM
Quote from: JCS on November 06, 2008, 08:47:22 AM
Quote from: tivaelydoc on November 03, 2008, 04:23:51 PMHow do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

- Strikethrough
- Preformatted Text
- Left Justified
- Centered
- Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?
First, why do you want all that futures?... is not a chat !! well, is a little similar, but dont
uhm, just let me think about it  ;) ,, maybe I'll add they in the next version

Second
QuoteIn this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Third, go to admin panel and edit actions field to ";all"

Fourth, go to file $themedir/index.template.php

Search
# Hack's Park ||
template_HP_shoutBoxMain();


Replace with
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();



where is the actions field?

makito

Quote from: pikeman on November 16, 2008, 06:34:56 PM
Hello! On the default theme all works really great. But in kelo-lt115v1 theme, that I use does not work. What's the problem?

Could you please upload the source code of index.template.php?

Quote from: tivaelydoc on November 16, 2008, 06:44:41 PMwhere is the actions field?

Admin -> Hack's Park -> ShoutBox -> Sites where shoutBox will be printed (?action=)

Replace "boardindex;collapse" with ";all"
Do not PM me for support, make a post if you need help.

Advertisement: