Ultimate Shoutbox

Started by Grudge, March 28, 2004, 09:11:20 AM

Previous topic - Next topic

i-bystander

I posted this under Support, but perhaps it will be more appropriate here:

I uninstalled Ultimate ShoutBox from the Package Manager and I got this error message:

Fatal error: Call to undefined function: smfshout() in /home/user/domains/mydomain.com/public_html/smf/Sources/Load.php(1036) : eval()'d code on line 286

I can't access the forum anymore, so I can't access the admin settings to see what happened. Any ideas? Thanks.

Grudge

Visit your forum using ?theme=2 in the URL (To temporarily change to the "classic" theme). Then go to admin -> Theme settings and options -> Select Default theme => Edit index.template.php

Then remove the call to smfshout()
I'm only a half geek really...

i-bystander

Ok, Matt - that did it. I commented out the line calling smfshout() earlier, but I guess that doesn't work.

Another question: I already uninstalled the shoutbox, but I'm still seeing it in my features and options - how can I get rid of it? A look at Package Manager says it's not installed anymore (no green box). Incidentally, the main reason why I deleted it in the first place is because I had two ShoutBox/es in my features and options page - is that normal? 

Grudge

Ummm... no. You obviously installed it twice in error. The result of this is that it hasn't uninstalled correctly. Not sure what mess your files may be in, personally I'd recommend just uploading a new modSettings.php IF you don't have any mods installed. Otherwise edit the modSettings.php file on your server and remove the references to the shoutbox area (Search for shout and remove the chunk of stuff there)
I'm only a half geek really...

casper_shadowrider

#164
Quote from: Grudge on January 10, 2005, 01:11:07 PM
I don't know where the character limit is coming from, apart from this line in shout.template.php:

<input type="text" value="', $txt['shoutbox_8'], '" name="message" size="16" maxlength="100" onfocus="if (this.value == \'', $txt['shoutbox_8'], '\')this.value=\'\'" /><br />


If you make maxlength = 500 does it still have a limit?

Yes, that worked a treat, thanks.


Quote from: Grudge on January 10, 2005, 01:11:07 PM
I think it should automatically do links, not sure why it isn't - BBC works though doesn't it?

Sorry, they do work, a breakdown in understanding at this end.

Thanks for a great mod.  You can see the install I've set up here, which is smf/coppermine integrated site, with the shoutbox on every page.  Please note this is still under construction and testing, and only open to the management team of the site, so please don't register.


To answer the earlier question about iframes, I could not get coppermine to accept the ssi method, so used the exact method you suggested above, called it into a blank php page within coppermine, and then called that page from the iframe.

I had to add the formating to the new php file for IE to show the correct styles, and change the links to target="blank", and it now all works perfectly.

Make god laugh, tell him your plans

Webby

Quote from: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!

It doesn't show the right smilies in the "shout-archive", how can I change that too ?

pj

Hi
Can somebody help me...and give detailed info on how to install ultimate shoutbox  mod manually.
I cant use Package Manager ...my host is safe mode  :(

I have SMF 1.0 RC2 

(>"<)
o",  ) good day!!
(¥ (,)
¿.¿.J

pj

I have done that,  but after I get something about the subs file and the forum dosent work anymore...
(>"<)
o",  ) good day!!
(¥ (,)
¿.¿.J

pj

I  have done so I`m not in safe mode now, but now I get this when I tried to install Ultimate Shoutbox from the package manager...

Fatal error: packageinstall(): Failed opening required '/home/virtual/site89/fst/var/www/html/smf/Packages/temp/shoutPdb.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site89/fst/var/www/html/smf/Sources/Packages.php on line 437

I test to install the mods SMF Arcade from the package manager and this install fine...

What do I wrong  :(
(>"<)
o",  ) good day!!
(¥ (,)
¿.¿.J

millenio

how much sql space any server bandwidth does this use per shout?

Grudge

SQL space is minimal, less than a message on your board. Bandwidth will obviously depend on how many views your site gets. I'd estimate with all the HTML etc you'd be sending 1kB of data per page load to the user (8 shouts at 100 characters plus HTML around it). The main thing is it will add an extra query to your page load, but that doesn't effect space nor bandwidth.
I'm only a half geek really...

LordAnki

I tried using the package manager to install the shoutbox and it dosnt show up anywhere on my board. The settings thing in the admin panel works but when i am viewing my board it dosnt show up anywhere.
[nofollow]

Grudge

You need to manually add smfshout() to your templates to make it appear (As only you can decide WHERE you want it to show). Read this thread for lots of ideas and comments on this. :)
I'm only a half geek really...

LordAnki

what template file do i put the


smfshout()


function?
[nofollow]

Alisha

Ok, I am trying to add the Shout Box to my DGS Under the Menu with the same type Box as the menu on the index.template.php ...  I want it so up on every page under the menu. 

Although, I am not sure where to put it.

// Show the menu here, according to the menu sub template.
echo '<table id="menu_background" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
<td align="left" valign="top"><img border="0" src="' . $settings['images_url'] . '/layout/dg_menu_left.gif" width="25" height="28" alt="left" /></td>
<td align="center" valign="bottom"><a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 3px; 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" />'; template_menu();
  echo '</td>
<td align="right" valign="top"><img src="' . $settings['images_url'] . '/layout/dg_menu_right.gif" width="25" height="28" alt="right" /></td>
  </tr>
</table><br />';
}


I have tried and tried everything, anyone care to take a shot ?? Basically I am looking to add a identical Box like the menu under the menu with the shout box in it.

www.DanceDancekc.com/Forums/  test:test

Webby

Quote from: Webby on January 11, 2005, 04:32:52 AM
Quote from: Grudge on November 30, 2004, 05:40:24 PM
Webby, Apologies, the line with str_replace on should be:

$message = preg_replace('~\[img.*?\].+?\[/img\]~is', '', $_POST['message']);


Sorry it took so long to get a working reply!

It doesn't show the right smilies in the "shout-archive", how can I change that too ?

Alisha

Another Quick Question? I would like to Format the "Shouts" from center to LEFT so all the little X's line up on the left.  Where can I edit this??

Midgard

<div align="left">Shout</div>
<span style="float: left">Shout</span>

e.g.

Alisha

#178
Quote from: Midgard on January 18, 2005, 05:41:49 AM
<div align="left">Shout</div>
<span style="float: left">Shout</span>

e.g.

Tried, although maybe we are not putting in the same place or right place?  Where do I need to change or add this? I added and changed in index.template, although thinking maybe in another file?

Solved: If anyone else is intrested, in shout.template.php on or around line 76

Search echo '
<center>';
// Scrolling?


Replace echo '
<left>';
// Scrolling?


Maynot the the RIGHT way to do this, but it worked the way I wanted.

Alisha

#179
I have a new idea here, is it possible to make the senders name the Color defined in the users group? Example on our site, Admins are a RED. I would like to make it where when a Admin posts something in the Shout their name would be that Red Color.

I would also like to change the color of the text somehow.  I have an ideas for this;

First would alternate the text colors.  Just two colors would be needed to kinda separate the texts.  Alternative would be to Bold line 1 and NonBold on line 2.  Alternating Bold/nonBold on each line.

Thanks for any help! :)

edit:
Sorry for the Double Post, I could have swore there was another post there after mine.

Advertisement: