SMFPacks.com Shoutbox

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

Previous topic - Next topic

Steve

To be more specific ... admin -> permissions -> general permissions and click modify for the guest group. Set the shoutbox permissions the way you want them.
DO NOT pm me for support!

crazyearner

Quote from: Steve on March 24, 2015, 09:22:04 AM
To be more specific ... admin -> permissions -> general permissions and click modify for the guest group. Set the shoutbox permissions the way you want them.

Perfect thx for the info. Working :)

Steve

DO NOT pm me for support!

triple3

Hi! I installed this mod and I want it to be on the bottom of the boardindex. How can I do that? I saw that I need to modify index template, but what code I should insert there and where in the file? Thanks!

I have smf 2.0.9. hxxp:unmix.ro [nonactive]

br360

Quote from: triple3 on April 04, 2015, 08:55:09 AM
Hi! I installed this mod and I want it to be on the bottom of the boardindex. How can I do that? I saw that I need to modify index template, but what code I should insert there and where in the file? Thanks!

I have smf 2.0.9. unmix.ro

Take a look at this if you want to move it to the bottom-

http://www.simplemachines.org/community/index.php?topic=269091.msg3740850;topicseen#msg3740850


susieQ.V

I would like to remove the messages currently in the shoutbox and start fresh with an empty box. Can anyone please tell me how to empty it.

Thank you.

Ozzie

@ top right of shoutbox click the Moderation Panel  link then click clear messages

2000+ games available to download

susieQ.V

Thank you, Ozzie! Hope you have a great day :)


Steve

I would like to move the shoutbox to below the news fader. I searched this thread and there was a solution from around 3 years ago so I want to make sure it's still valid before I try it. I'm not a coder so I like to be as sure as possible before I try something. And yes, I always backup before doing anything.

At any rate, the previous post says to move this:

//SMFPacks Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- SMFPacks Shoutbox


from index.template.php and put it after this:

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<div id="newsfader">
<div class="cat_bar">
<h3 class="catbg">
<img id="newsupshrink" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
', $txt['news'], '
</h3>
</div>
<ul class="reset" id="smfFadeScroller"', empty($options['collapse_news_fader']) ? '' : ' style="display: none;"', '>';

foreach ($context['news_lines'] as $news)
echo '
<li>', $news, '</li>';

echo '
</ul>
</div>
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/fader.js"></script>
<script type="text/javascript"><!-- // --><![CDATA[

// Create a news fader object.
var oNewsFader = new smf_NewsFader({
sSelf: \'oNewsFader\',
sFaderControlId: \'smfFadeScroller\',
sItemTemplate: ', JavaScriptEscape('<strong>%1$s</strong>'), ',
iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
});

// Create the news fader toggle.
var smfNewsFadeToggle = new smc_Toggle({
bToggleEnabled: true,
bCurrentlyCollapsed: ', empty($options['collapse_news_fader']) ? 'false' : 'true', ',
aSwappableContainers: [
\'smfFadeScroller\'
],
aSwapImages: [
{
sId: \'newsupshrink\',
srcExpanded: smf_images_url + \'/collapse.gif\',
altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
srcCollapsed: smf_images_url + \'/expand.gif\',
altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
}
],
oThemeOptions: {
bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
sOptionName: \'collapse_news_fader\',
sSessionVar: ', JavaScriptEscape($context['session_var']), ',
sSessionId: ', JavaScriptEscape($context['session_id']), '
},
oCookieOptions: {
bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
sCookieName: \'newsupshrink\'
}
});
// ]]></script>';
}

echo '


in BoardIndex.template.php

Is this still correct?
DO NOT pm me for support!

margarett

Looking at the code, yes ;)

But before the latest echo!
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Steve

Thanks Bruno and thanks for the heads up on the echo. Wasn't sure what to do about that. :)
DO NOT pm me for support!

Steve

Awesome! Works a treat. Thanks again.

What does that echo do, anyway?
DO NOT pm me for support!

margarett

Starts the output of the categories/boards of the BoardIndex ;)

Is not part of the MOD anymore, is just part of SMF.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Steve

DO NOT pm me for support!

Steve

How can I get the same distance between the shoutbox and the first category (see attachment 1) as there is between categories (attachment 2)?
DO NOT pm me for support!

ComputerchickWV

The Shoutbox works - but only for Admins?
Registered Users on my forum cannot see it. I don't see any permission options to change??
What are we doing wrong?

br360

Go to Admin>>Permissions and then you will see-

View Shoutbox   
Post messages in Shoutbox

Check those for each membergroup you have.

   


ComputerchickWV

Quote from: br360 on April 24, 2015, 11:55:37 AM
Go to Admin>>Permissions and then you will see-

View Shoutbox   
Post messages in Shoutbox

Check those for each membergroup you have.

We got it fixed - that was it. Thank you for a great mod!

debiwebi

I have this mod on my forum and really like it. I switched the forum back to the default template (curve) to get this to work, but I'd really like to switch back to my customized Sunset 2.0 theme. I started reading through this topic and there are 51 pages (at least for me) of posts. I saw early on someone said to just pull files from the Shoutbox folder and put them in my theme's folder, no file editing necessary.

Is that still the case? Do you know if Shoutbox is compatible with Sunset? I'll keep reading in the meantime, but I was hoping to save myself from reading through all the posts to find out whether or not this was already answered.

Also, still being fairly new to SMF, would I be adding just the files in the Sources_2.0.x and Themes folders into my theme's folder? I'm running 2.0.10.
Some mornings it just isn't worth
chewing through the leather straps.
~Emo

Unlimited Own Posts Editing Time

Advertisement: