Previous Thread
Next Thread
Print Thread
Hop To
#228495 08/20/2009 12:07 PM
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
What is the content limit for the Shout Box? Is it adjustable?


DennyP - www.dennyp.com
DennyP Travel
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Thanks.


DennyP - www.dennyp.com
DennyP Travel
Joined: Apr 2004
Posts: 232
Likes: 1
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Is there a limit on individual shout length? Any restrictions on use of html in a shout?


DennyP - www.dennyp.com
DennyP Travel
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
D
Enthusiast
Enthusiast
D Offline
Joined: Apr 2004
Posts: 232
Likes: 1
Thank you.


DennyP - www.dennyp.com
DennyP Travel
Joined: Jan 2009
Posts: 6
L
stranger
stranger
L Offline
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
R
Former Developer
Former Developer
R Offline
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
L
stranger
stranger
L Offline
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. cry


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 541 guests, and 181 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)