|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
What is the content limit for the Shout Box? Is it adjustable?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It will store 30 posts by default. There isn't a control panel option to increase this, but there is a variable in scripts/getshouts.inc.php on line 54:
$shout_limit = 30;
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
Is there a limit on individual shout length? Any restrictions on use of html in a shout?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
No limit on the length, but the only html/ubbcode that is allowed is the smileys/graemlins.
|
|
|
|
Joined: Apr 2004
Posts: 232 Likes: 1
Enthusiast
|
Enthusiast
Joined: Apr 2004
Posts: 232 Likes: 1 |
|
|
|
|
Joined: Jan 2009
Posts: 6
stranger
|
stranger
Joined: Jan 2009
Posts: 6 |
It seems that the $shout_limit only affects how many shouts are kept in the DB. If you want to display more of the history of the past shouts, you would need to increase both the $shout_limit, to keep more and a constant in the Java script file shoutbox.js, to display more. This may have changed in later versions. I'm still using 7.4.2.
Line: if (x < (last_shoutid - 30) )
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yeah, this is currently hard-coded that we need to make adjustable. The table is meant to be small and quick since it's queried often, but we still need to allow for more to be kept.
|
|
|
|
Joined: Jan 2009
Posts: 6
stranger
|
stranger
Joined: Jan 2009
Posts: 6 |
We use the shout box for quick/private communication between Moderators and Admins. It would be nice if the $shout_limit was passed to the Java code. Lrae P.S. You guys should hire someone to go through the code and document it.
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
541
guests, and
181
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|