nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

argh, just post yshout.php.

And are those IDs the IDs of the GROUPS, or of the USERS?
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!

AHMER

i think group id bcz i go to admin cp and then click membergroups then click site owner and the url box it say group id is 1 and admin group id is 9 are those rite
IF U ARE LOOKING FOR A WEBMASTER THEN EMAIL ME @ ahmerfish [at] hotmail [dot]com

De4thPr00f

I'm having troubles using this on the overview, can someone tell me where should i include the shoutbox?

AHMER

IF U ARE LOOKING FOR A WEBMASTER THEN EMAIL ME @ ahmerfish [at] hotmail [dot]com

De4thPr00f

Ok, solved, i inserted it in a box matching the board, and made it to collapse (some users don't like to use)
but now i'm facing a problem:
if i use timeout of the shoutbox 20 or above, sometimes the shouts  disappear, leaving only the shout form. (changed in yshout.php) but if i use 10 or bellow nothing disappear. although, if no one shout in 10 seconds it doesn't refresh anymore (i think, or i just misunderstood?)
So, i'll be grateful to anyhelp.

nneonneo

Timeout -- your server likely has a 15 second script timeout, which means that you need to have the updateTimeout less than that (10 is fine).

As for it not refreshing: if someone shouts, it should automatically update, otherwise it will simply wait. If that's not the case, and it fails to display new shouts, then there is a problem.

Try this: log on to the shoutbox with two different windows, and wait 15 seconds. Then shout with one window, and see if it shows up on the other.
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!

De4thPr00f

sometimes it stops from updating, but that's all right.
Another problem, admins shouts are red, but mod one's aren't any special color...

nneonneo

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!

De4thPr00f

#1388
Worked, but how do i change the color mod? It's buggin me...
The color of mods is not blue...

*edit*
I changed the moderator color, i changed the #shouts .moderator a {

color: #00F;

}

on the yshout.php, and nothing happens... Blue, blue, blue, color of mods is orange...

nneonneo

#shouts .moderator a: if you changed that, then it should work...that's the only place where colors are referenced.

Did you change it in index.template.php?
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!

De4thPr00f

-_-
Thank you.
Great mod.
I only changed it in yshout.php.
Changing at index.template, solved it.
Thanks.

Chalk

Nice little mod. Installed it and it works fine on the default Core theme, but all of my members use a custom skin. I tried to change the index.template.php file as indicated but when I uploaded it back up it came up with a parse error.

I've attached the index.template.php file so you can look as it to find out if it just won't work with this skin or if there's something I'm missing.

nneonneo

There's no yshout code in there, and it looks like it would be perfectly compatible with the shoutbox...upload the version with your modifications (parse error) and I'll see.
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!

brianjw

Couldn't there just be a code that depending on what the person's membergroup colors are set as, it would automatically display the colors without adding this...?

brianjw

nneonneo

I was just thinking of that. It would (AFAIK) require inclusion of database code, since there doesn't seem to be just one function to get a formatted member name; instead, the code to do that is repeated in every SMF source file needing that functionality, irritatingly enough...
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!

Chalk

Sorry, should have uploaded the edited file as well. I've tried to place the 2nd bit of code (that places it at the desired place) in a div called "blank-box" which is apparently used to add in other stuff like ads. Wasn't sure exactly where would be best to place it.


De4thPr00f

#1396
Ok, neoneo how do i change the color for regular users :\
Sorry to bother so much, or actually, how do i make it bold for all users. Cause the regular user's post with the same color.

*edit*
Ok solved... Thank you :P

nneonneo

@Chalk: You pasted something wrong; the header has some random junk in it.

First few lines should read
<?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/
*/


@De4thPr00f:
Add a font-weight: bold; to
#yshout p {
line-height: 1;
margin-top: 0;
}

in index.template.php
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!

De4thPr00f

Actually i taked a look at the yshout.php and followed the $shoutuser (or something like that) and added the <b></b> tags before and after and it solved.

Chalk

Not sure what happened. This should be the right file. Its from the "Themes/SlickPro_Graphite/index.template.php" which I then edited.


Advertisement: