News:

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

Main Menu

nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

nneonneo

Admin panel -> Membergroups -> Permissions -> Shoutbox
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

assam_siddibapa

Quote from: nneonneo on August 02, 2008, 09:08:25 AM
@assam_sidibapa: Just
<div id="yshout">Loading...</div>
is enough. You also have to have the <head> code installed to the theme.

I dint understand ???

psynx

Quote from: nneonneo on August 02, 2008, 11:48:50 AM

@psynx: You'll first need to add the <head> code to that theme (it's always in the same spot in index.template.php), then the shoutbox code. Some people have found it easiest to just make the shoutbox into a forum (by setting the description to <div id="yshout">Loading...</div>) or to put it in the news header (with a news item using the text <div id="yshout">Loading...</div>). If you don't like either of those options, then you need to edit index.template.php and add the shoutbox code in a suitable location.

alright shoutbox has appeared to my new theme now. but why can't i see my admin control for the shoutbox? like, history, commands, and etc. and in the permission - membergroup i dont see those text and boxes settings for shoutbox.

ccbtimewiz

Quote from: psynx on August 02, 2008, 01:13:48 PM
Quote from: nneonneo on August 02, 2008, 11:48:50 AM

@psynx: You'll first need to add the <head> code to that theme (it's always in the same spot in index.template.php), then the shoutbox code. Some people have found it easiest to just make the shoutbox into a forum (by setting the description to <div id="yshout">Loading...</div>) or to put it in the news header (with a news item using the text <div id="yshout">Loading...</div>). If you don't like either of those options, then you need to edit index.template.php and add the shoutbox code in a suitable location.

alright shoutbox has appeared to my new theme now. but why can't i see my admin control for the shoutbox? like, history, commands, and etc. and in the permission - membergroup i dont see those text and boxes settings for shoutbox.

Make sure your language setting in Admin > Server Settings is set to English and not utf8-english

psynx

#3244
thanks ccbtimewiz. my settings is already set to english, i can see some of shoutbox admin commands like 'del', 'ban' but i dont see 'history' and 'commands' in my admin control to the shoutbox.

and aside from that maybe you guys could please let me know how to insert text to the right side of my shoutbox? because i want to appear it like in this attached files to this post.



NaWaR

Hello  ..  please help  me !  i installed the http://custom.simplemachines.org/mods/index.php?mod=585 11.5  and upload it to the forum and  everything worked with no errors !  it's  just  it's keep loadin !

loadin....

like this !  and  i get nothing !   i used the default theme  and the  same !!  please help meh ..
thanks 

memyselfandI

Quote from: nneonneo on August 02, 2008, 11:48:50 AM

@memyselfandI: Wrap the shouts in a <marquee> tag:


Thanks, but it didn't do anything is there another file I need to do that in?

Threepwud

Very quick - is there any way to delete all the shoutbox history? Apparently the /clear: command simply clears what is displayed. My admin without ftp access had to manually delete each line last night.

Thanks

Rafferty

#3248
Quote from: nneonneo on August 02, 2008, 09:14:33 AM
#yshout #shout-text width: in CSS (index.template.php or yshout.css)

@Rafferty: Is there a CSS block in index.template.php?

I'm afraid I can't find it nneonneo, index.template attached
Don't Follow me I got No Idea what I'm Doing

[unplugged]

There is no CSS block for shoutbox in your index.template.php, which means there should be a yshout.css file located: Themes/{current theme}/css/yshout.css.

That is the file that you will need to edit to get the shoutbox to display to your liking. :D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Rafferty

but I have already adjusted the text width in the css file and it made no difference to the width
Don't Follow me I got No Idea what I'm Doing

[unplugged]

Do you have a test account I can sign up under to take a look at it (or can guests see the shoutbox)?
I would then be able to add a "manual override" to the width. Basically would be something to the effect of <div id="yshout" width="100%", although the placement of the width parameter may be elsewhere within the shoutbox() function.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Threepwud

Also, if you are using a different theme I had to manually link inside the index.template.php file to the new .css file. All changes made didn't work until I did this - could help?

Rafferty

an account would only show you the current box width which is standard
Don't Follow me I got No Idea what I'm Doing

Rafferty

I only use default theme
Don't Follow me I got No Idea what I'm Doing

[unplugged]

Quote from: Threepwud on August 02, 2008, 08:48:01 PM
Also, if you are using a different theme I had to manually link inside the index.template.php file to the new .css file. All changes made didn't work until I did this - could help?

Threepwud makes a very valid point here, too.

As far as an account (or guests being able to see it), I need to see what the "standard" width is on your theme with your setup so I can assess where to place the width override. Simply allowing guests to view but not post (in SMF permissions) would be fine.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

@assam_siddibapa: Basically, the description for the forum should just be
<div id="yshout">Loading...</div>
but it won't work unless you've installed the <head> code (see mod page) to the theme.

@psynx: Check Modifications.english.php in your Themes/<theme>/languages folder. If it exists, you should add the text required (see "No text?" on the main mod page or the first post of this thread).
For making the required layout, you should just add a table around the shoutbox:
<table width="100%">
<tr><td width="80%">{{SHOUTBOX CODE}}</td><td width="20%">{{TEXT}}</td></tr></table>


@NaWaR: Try 1.20

@memyselfandI: Truthfully, I have no idea how the marquee tag works (it's really non-standard and works somewhat differently on different browsers), but it's pretty much the only way short of a lot of JS to make it work. If you really, really need the feature and can't figure out <marquee>, then you should use Ultimate Shoutbox.

@Threepwud: By deleting or renaming history.home.txt. If you wish to never save history, set $historyFormat to '' in yshout/settings.php.

A /clearhist command can also be implemented. This would go right above "case "/clear":"
case "/clearhist":
unlink($historyPath);
return true;


@Rafferty: Like Threepwud said, there's no link in the provided index.template.php. On this page you can see the instructions for adding it:
Code (Find:) Select
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css
Code (Add Before:) Select
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/yshout.css?July022008" />
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Rafferty

Many thanks to Sunking for his help. Resolved the quiery thank you. We are a small forum of Ex-veterans and it's very important to us. Great job too nneonneo
Don't Follow me I got No Idea what I'm Doing

[unplugged]

We worked out resizing the input box by adding style="width:50%" to the <input id="shout-text". :D

And @Rafferty, it is a good idea to go ahead and add the link to the css file so that you can easily style your shoutbox further.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Kirsty

Hi,
Just wondering how to only show say 5 or 6 shouts, as I keep shouting, the page keeps getting longer.

Thanks
Kirsty

Advertisement: