Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Increase shoutbox characters

Asked Modified Viewed 5,419 times
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Junior Member

How do i increase the amount of characters you can use in the shoutbox
0 replies

12 posts

R
Reload86
R
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 9 threads in the forums
answered
Junior Member

I'm not sure if there's anything in the php which limits characters, but the database field shout_message is set to varchar 200 so that needs increasing before any changes to php will work
0 replies
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Reload86 wrote:
I'm not sure if there's anything in the php which limits characters, but the database field shout_message is set to varchar 200 so that needs increasing before any changes to php will work


Where do i find this to change it.
0 replies
R
Reload86
R
  • Junior Member, joined since
  • Contributed 32 posts on the community forums.
  • Started 9 threads in the forums
answered
Junior Member

in your database in fusion_shoutbox table
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

You can use this piece of code - and VIEW the page NOT SAVE it!

Preview it in a new custompage:
<?php
$result = dbquery("ALTER TABLE ".$db_prefix."shoutbox CHANGE shout_message shout_message VARCHAR( 200 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL");
?>

- you should change the number 200 to something higher.

Remember backup first - if something should go wrong. But I have testet it and it works fine.
0 replies
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

<?php
?>
I had to delete this from the code to get it to work but i have done it,cheers for the code Smokeman.
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Hehe, it must be a mystery I think - how you can make it work without PHP-tags ???

If these tags ain't there - then just the code itself will be displayed - and nothing changes in the database.

Maybe it's too long time since I coded in v6. lol ;)

Anyway - it's nice you got it to work!
0 replies
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

smokeman wrote:
Hehe, it must be a mystery I think - how you can make it work without PHP-tags ???

If these tags ain't there - then just the code itself will be displayed - and nothing changes in the database.

Maybe it's too long time since I coded in v6. lol ;)

Anyway - it's nice you got it to work!


These tags were already in the code,so when i entered your code it displayed the entire code in my shoutbox.I know absolutely nothing about how to code but i took a lucky guess that these 2 bits of code were there already so i deleted them and it worked:)
0 replies
S
smokeman
S
  • Veteran Member, joined since
  • Contributed 920 posts on the community forums.
  • Started 79 threads in the forums
answered
Veteran Member

Ahh, I see. Lack of communication (from my side) - I should have written that the code should be inserted into a new empty custompage. If the page is empty - then there can't be the PHP-tags in it..

Anyway - just for other peeps that maybe know what were talking about.

Have a nice day!
0 replies
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

Damn,sorry it has not worked,i have a maximum of 288 characters.I am using my ftp program and navagating to this folder /public_html/infusions/shoutbox_panel is it the shoutboxpanel.php or the shoutboxarchive.php i go into,i added the code but it has not worked.You were saying about putting the code on a new page how do i do this.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

You're halfway there.

You also have to edit line 26 of shoutbox.php

$shout_message = preg_replace("/^(.{[b]255[/b]}).*$/", "$1", $shout_message);


and change 255 to the higher number
0 replies
H
Haggis
H
Haggis 10
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

I only have these 2 shoutbox_panel.php or the shoutbox_archive.php i have found that line in the shoutbox_panel.php at line 87 but it still has not changed anything.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

I tested it on an offline v6 site, worked ok. Changed shout_message in db to varchar 600 as well as altering line 26.
If you found it on line 87, you're not using the standard shoubox.php
It must be a modified version.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 4 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet