[MOD] Shout Length ...
 
Notifications
Clear all

[MOD] Shout Length Counter

9 Posts
6 Users
0 Reactions
3,632 Views
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

I helped Jan_AQ set this up for her site.  You can see it at http://www.potionsandsnitches.net/fanfiction/

And the instructions for this change are here:

http://efiction.hugosnebula.com/forum/viewthread.php?forum_id=18&thread_id=29&pid=67#post_67


 
Posted : 19/01/2007 4:36 pm
(@fanfictionworld)
Posts: 149
Estimable Member
 

just something I've discovered with my site is that the length counter doesnt actually work (in i.e it generates a javascript error in the statusbar also doesn't work in firefox) but the shoutbox itself works fine

is the mod on Tammys site ( http://efiction.hugosnebula.com/forum/viewthread.php?forum_id=18&thread_id=29&pid=67#post_67) a fix for this issue?

my shoutbox is the one that came with efiction 3.2.1 btw unmodified πŸ™‚


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 15/05/2007 3:36 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

There's a problem with the shout with 3.2.1, but it should be fixed with 3.3.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 15/05/2007 3:43 pm
(@fanfictionworld)
Posts: 149
Estimable Member
 

aha thank you Jan_AQ  πŸ˜€


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 15/05/2007 3:44 pm
(@dark-shadow)
Posts: 5
Active Member
 

The link provided by Tammy is not working anymore... can anyone help me?

I would like to change the shout limit (200 characters) to 500 characters.


 
Posted : 22/01/2010 2:43 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Here are my modifications... I changed it to 300:

blocks/shoutbox/admin.php

line 25:

			$shout_message = preg_replace("/^(.{300}).*$/", "$1", $shout_message); # 2010-01-17: changed to 300 characters

blocks/shoutbox/shoutbox.php

line 15:

	$shout_message = preg_replace("/^(.{300}).*$/", "$1", $shout_message); # 2010-01-17: changed to 300

line 49 (?):

if(isMEMBER || !empty($blocks['shoutbox']['guestshouts'])) { # changed to 300!

There should be some JavaScript below. Change values of 200 to 500.

line 81 (?):

$content .= "<label for="shout_MESSAGE">"._SHOUT.":</label> <input name="shout_message" class="mceNoEditor" id="shout_message" maxlength="300" onkeyDown="return ismaxlength(this)" /> <input type='submit' name='shout' id='shout' value='"._SHOUT."'> <input size='1' class='small' type='text' id='counter' value='300'></form></div>"; # 2010-01-17: changed to 300

archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 22/01/2010 3:05 pm
(@babaca)
Posts: 722
Member Moderator
 

Tammy's website these days is

http://www.hugosnebula.com

But you will probably have to post over there and ask because much of the old website is gone. But it looks like Elle has something that may work for you.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 22/01/2010 3:06 pm
(@tammy)
Posts: 2577
Member Moderator
Topic starter
 

The limit in the database is 200 so even if you change the code, it'll still cut off at 200.


 
Posted : 22/01/2010 6:56 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Oo. That's what I was forgetting to post.

    alter table fanfiction_shoutbox modify shout_message VARCHAR(300) ; 

... I think.


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 22/01/2010 8:00 pm
Share: