News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ultimate Shoutbox

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

Previous topic - Next topic

Jerry

there is an example for the default theme on page eight of this post, and there are many replies here that also tell you how you must add the shoutbox.


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

Anguz

Grudge, maybe you should pick the FAQs for this mod and add them to the mod description. :P
Cristián Lávaque http://cristianlavaque.com

SeaOfSin

#262
Did anyone ever figure out how to "View All" on a new page?

EDIT: OK I figured out how to do that...  :)

Also if anyone can also tell me how to put the User info on a new page too, it would be greatly appreciated.

EDIT: Sorted that out as well!! :)


Thanks


Sea Of Sin

mexie

Any chance of an 'idiot's guide to editing  font size/color  (and maybe the background color) of the shouts please ?
I've had various attempts but dont know enough about css, php etc: to know where to look

thanks
mexie

mank

is there a way i can make the shoutbox auto-refresh or add a refresh button, this would be a great help rather than refreshing the whole page manually

cheers all

lmowp

First of all thanks for the great mod :)

What is the best way to integrate the shoutbox to a popup window? Theoretically this is no problem, but I want just the shoutbox in the new window without calling the index.template. Before I start reading all the code I thought I'd ask here ;) Maybe someone can help me or has done something similar.

Thanks in advance :)

SeaOfSin

#266
Quote from: lmowp on March 04, 2005, 10:19:04 AM
First of all thanks for the great mod :)

What is the best way to integrate the shoutbox to a popup window? Theoretically this is no problem, but I want just the shoutbox in the new window without calling the index.template. Before I start reading all the code I thought I'd ask here ;) Maybe someone can help me or has done something similar.

Thanks in advance :)

I have worked on that and the best way is to use the ssi function of the shoutbox.  I just need it in button form on the forum. that is the problem I am having.

Here is what I did

in the main page of the website I have


<script language="javascript">
function pop_window(ShoutBox) {
//remove a attribute if you don't want it to show up
  var popit = window.open(ShoutBox,'console','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,width=220,height=445');
}
</script>
<a href="javascript:pop_window('http://www.YOUR WEBSITE HERE/shoutbox.php','ShoutBox')">Shoutbox</a>


and in the pop up window


<?php
require("/home/USERNAME/public_html/forum/SSI.php"); ?>

<html>

<head>
<meta HTTP-EQUIV="Refresh"
CONTENT="30; URL=http://www.YOUR WEBSITE HERE/shoutbox.php","Shoutbox">
<body>
<?php ssi_shout(); ?>
</body>
</html>



If someone knows how to convert that into a button please do, as my knowledge of Php and programming in general is rather bad.

Thanks

Sea Of Sin

lmowp

Sea of Sin, thanks a lot :)  The SSI function, should have thought about that...


To make your link a button use this:

<input type="button" onClick="javascript:pop_window('http://www.YOUR WEBSITE HERE/shoutbox.php','ShoutBox')" name="shoutbox_button" value="Shoutbox">

You can also assign a css class with the button (class="<insert class name>") and change the look of it.

SeaOfSin

OK thanks

And how can I put that onto the forum as a button as well. with the other buttons on the index page?

beetleman

First of all, this is a great script.  Looks great after I formated it like the News, User Info, or Key Stats boxes.
I put mine in the collapsable Header in the default template.

I need some help with further formating.


  • How can I force Ultimate Shoutbox to use the member color?  That way the Admin and Mods usernames would be different colors than the regular members.
    ie. Admins : Red, Mods : Blue.

  • How could I add a limited bb code helper to the Ultimate Shoutbox?  Just Font Color, Bold, Italics, Underline, URL, Smilies.


Thanks for any help. 8)
beetleman

russ

IVe been working on making my forum and pages XHTML compliant and have so far got all errors sorted out apart from the marquee commands involved in the shout box.

Line 259, column 22: there is no attribute "direction"

<marquee direction="up" width="150"


QuoteYou have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.



and further errors include:

Line 259, column 33: there is no attribute "width"
<marquee direction="up" width="150"

Line 260, column 10: there is no attribute "height"
height="200" scrollamount="1"

Line 260, column 29: there is no attribute "scrollamount"
height="200" scrollamount="1"

Line 261, column 15: there is no attribute "scrolldelay"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 32: there is no attribute "onmouseover"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 57: there is no attribute "onmouseout"
scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()">

Line 261, column 71: element "marquee" undefined
...seover="this.stop()" onmouseout="this.start()">


It recommends using CSS but so far I havent found anything online which will help me.

The line in question would be (in file shout.template.php):

// Scrolling?
if ($modSettings['enablescrollshout'] == 1)
echo '
<marquee direction="', $modSettings['shoutscrolldir'], '" width="', $modSettings['shoutscrollwidth'], '"
height="', $modSettings['shoutscrollheight'], '" scrollamount="', $modSettings['shoutscrollspeed'], '"
scrolldelay="', $modSettings['shoutscrolldelay'], '" onmouseover="this.stop()" onmouseout="this.start()">';


Anyone have any ideas how to make this compliant to:      XHTML 1.0 Transitional ?

Thanks a lot :) :)

[Unknown]

Well, marquee isn't valid xhtml... period.

-[Unknown]

zach21uk

#272
Hi There,

Just installed the shoutbox the other day, i have almost got it how i want it but theres something i cant quite figure out.

I currently have the shoout box near the top of the forums, and am trying to get a box around it or something as it looks a bit out of place atm, but each time i try to add a box or a cell around the shoutbox, i get parse errors.

obviously i am doing something rong, and to be honest this isnt really my area of expertise, so if someone could help it would be appreciated.

http://gqfleet.net/smfforums - - there are the forums

                // Show the menu here, according to the menu sub template.
echo '<table cellpadding="0" cellspacing="0" border="0" style="text-align: left; margin-left: 20px; background-image: url(' . $settings['images_url'] . '/pod/pod-midbar.gif);" ><tr>';
echo '<td><img src="' . $settings['images_url'] . '/pod/pod-leftbar.gif" alt="gfx" style="margin: 0px 0;" border="0" /></td>';
echo '<td><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: 0px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank-upshrink.gif" alt="" style="margin: 0px 0;" /></td>';
                template_menu();
echo '</td></tr></table>';
smfshout();
        // The main content should go here.  A table is used because IE 6 just can't handle a div.
        echo '
        <table style="margin-top: 4px;" width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
         echo '<td align="left" id="bodyarea" style="padding-left: 15px; padding-right: 15px; padding-top: 0px; padding-bottom: 10px;">';
}


thats basically where i have the shoutbox inserted in the coding, tho i have been considering moving it to underneath the news box.....

if someone could tell me how to add a box or cell etc around the shoutbox it would be much appreciated.

i did read through several pags of this thread before i posted this, but no-one seems to have asked this question.

hope to hear from someone soon,
kind regards
zach21uk

Col

OK,

I don't consider myself stupid, but this is getting the better of me. I get variouis errors no matter what I try. I'd like this to appear on every page, and am trying to add it to the default template. - The 'index.template.php' file.

<table>
<tr>
<td>
', smfshout(), '
</td>
</tr>
</table>


Anyway, I've tried the suggested code, and it breaks the template. I've tried adding 'echo' and 'echo '', but that doesn't work. HTML I understand, but this templateing is completely new to me. What do I need to add precisely to make this work?

I also tried this:
// Shout Box Start
        echo '
<tr>
<td class="catbg" colspan="2">"Shout Outs"</td>
        </tr><tr>
<td class="windowbg2" align="left" colspan="2"><span class="smalltext">', smfshout(), '</span></td>
        </tr>';


That would actually display the shoutbox, but when I try to shout, it asks for me to fill in all fields, but I only have the shout field displayed!

Anyone?


Also, is there a tutorial anywhere to help with modifying the template?


Thanks.

edchapman

Would someone please help me with adding a table to my site?
I installed the Ultimate Shoutbox Mod and I want it to show up on the right side of the Genreal category like I've seen on other sites. I'm guessing I need to add a table of some kind with the shoutbox code in it.
I'm not sure what to add or where to add it.

This is our site...
http://www.youth.kumcministries.com/newforum/index.php

Jerry

On page eight of this thread there is a post on how to add it to the left, not the same as the right... but if you know html you should know how to move it around :)


- Jerry
Find me on:
Facebook
Twitter
PlanetSMF

"If all you look for is the negative in things, you will never see the positive."

edchapman

Cool.. I'll look at that! Thanks!

edchapman

#277
Quote from: Jerry on March 15, 2005, 12:08:48 AM
On page eight of this thread there is a post on how to add it to the left, not the same as the right... but if you know html you should know how to move it around :)
That did not work for me.. I got an error.

btw.. I'm using the defult theme.

chitownjts

Need a little help.

In firefox everything looks fine and dandy.

In IE, when an administrator is logged in, you see a red X to the left of the normal delete "x"

any thoughts?

russ

Quote from: [Unknown] on March 13, 2005, 06:23:34 PM
Well, marquee isn't valid xhtml... period.

-[Unknown]

ah so theres no way ot make it scroll and make it xhtml compliant?

its ok without it scrolling and its xhtml atm :)

Advertisement: