Advertisement:

Author Topic: Characters remaining of post  (Read 33485 times)

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #20 on: February 08, 2014, 09:38:23 AM »
Everything seems to upload fine but I have been getting this error in the error log when I add a picture to my gallery.


Code: [Select]
http://www.bayoustatefishing.com/community/index.php?action=gallery;sa=add
8: Undefined index: max_sig_characters
File: /community/Themes/default/GenericControls.template.php
Line: 34


Line 34 in that file appears to have been modified by this mod.
Code: [Select]
<div class="smalltext">', sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']), ' <span id="editorLeft">', $modSettings['max_messageLength'], '</span></div>';
I've tried setting that to "0" to see if it changed anything but it didn't.

Any suggestions?

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #21 on: February 16, 2014, 07:37:02 AM »
I have not this error in logs of my test forum and my online forum.

What MOD do you use for gallery?
Can you see message Max characters: NNN; characters remaining: MMM bellow of textbox?

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #22 on: February 16, 2014, 10:47:10 AM »
I'm useing SMF Gallery Lite. I never noticed that it doesn't show below the text box. I've attached screen shot.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #23 on: February 16, 2014, 12:31:56 PM »
My MOD (Characters remaining of post) does not work on SMF Gallery Lite.

"Characters remaining of post" adds
- a message below text box and
- code for count characters in all pages where this text box is used.

"SMF Gallery Lite" use this text box but, of course, no add code for count characters. And "SMF Gallery Lite" use this text box in many pages (that is, to count character would have to change many things in "SMF Gallery Lite").

It is easiest remove the message when the text box is used by "SMF Gallery Lite".
You can replace (on Themes/default/GenericControls.template.php, line 32)
Code: [Select]
if (!$editor_context['rich_active'] && !empty($modSettings['max_messageLength']))by
Code: [Select]
if (!$editor_context['rich_active'] && !empty($modSettings['max_messageLength']) && isset($txt['max_sig_characters'])) But, if you want uninstall "Characters remaining of post" you must restore this line.




Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #24 on: February 16, 2014, 02:26:25 PM »
That took care of it.

Thanks. :)

Offline Jade Elizabeth

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,652
  • Gender: Female
  • Keep your enemies close and your friends closer ;)
    • jadetrainor on LinkedIn
    • @alundra on Twitter
    • Jades-World
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #25 on: February 22, 2014, 05:37:25 AM »
I'm getting that error too, but on this block of code:
Code: [Select]
<!-- BEGIN MOD CharsRemainingOfPost -->
' . (!empty($modSettings['max_messageLength']) ? ('<span class="smalltext">' . sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']) . ' <span id="editorLeft2">...</span></span><br />') : '') . '
<!-- END MOD CharsRemainingOfPost -->
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #26 on: February 22, 2014, 06:50:24 AM »
I'm getting that error too, but on this block of code:
Code: [Select]
<!-- BEGIN MOD CharsRemainingOfPost -->
' . (!empty($modSettings['max_messageLength']) ? ('<span class="smalltext">' . sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']) . ' <span id="editorLeft2">...</span></span><br />') : '') . '
<!-- END MOD CharsRemainingOfPost -->
This code is in Display.template.php. Perhaps another mod uses this template?

You try this and tell me if it solves. Replace
Code: [Select]
' . (!empty($modSettings['max_messageLength']) ? ('<span class="smalltext">' . sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']) . ' <span id="editorLeft2">...</span></span><br />') : '') . '
by
Code: [Select]
' . (!empty($modSettings['max_messageLength'] && isset($txt['max_sig_characters'])) ? ('<span class="smalltext">' . sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']) . ' <span id="editorLeft2">...</span></span><br />') : '') . '

Offline Jade Elizabeth

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,652
  • Gender: Female
  • Keep your enemies close and your friends closer ;)
    • jadetrainor on LinkedIn
    • @alundra on Twitter
    • Jades-World
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #27 on: February 22, 2014, 07:04:13 AM »
There's a syntax error...I can't find it myself :(.
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #28 on: February 22, 2014, 07:24:00 AM »
There's a syntax error...I can't find it myself :(.
:-[ I am sorry.

...by
Code: [Select]
' . (!empty($modSettings['max_messageLength']) && isset($txt['max_sig_characters']) ? ('<span class="smalltext">' . sprintf($txt['max_sig_characters'], $modSettings['max_messageLength']) . ' <span id="editorLeft2">...</span></span><br />') : '') . '

Offline Jade Elizabeth

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,652
  • Gender: Female
  • Keep your enemies close and your friends closer ;)
    • jadetrainor on LinkedIn
    • @alundra on Twitter
    • Jades-World
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.7)
« Reply #29 on: February 22, 2014, 08:24:07 AM »
Ha ha no worries, it happens to me all the time. Hell I couldn't even fix it there - there is a lot going on, so please don't feel embarrassed! <3

Thanks heaps for the help :D. :-*
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.19, 2.0-2.0.8)
« Reply #30 on: June 25, 2014, 08:22:32 AM »
Compatible with SMF 2.0.8.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.20, 2.0-2.0.9)
« Reply #31 on: October 07, 2014, 07:47:54 AM »
Compatible with SMF 1.1.20 and 2.0.9.

Offline petejoh222

  • Newbie
  • *
  • Posts: 1
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.20, 2.0-2.0.9)
« Reply #32 on: April 04, 2015, 01:52:31 PM »
Thank you for this mod. Just installed it on my new 2.0.9 forum. Love knowing how many characters I have left, and I think most people do too! :)

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post, 1.0.4 (SMF 1.1-1.1.20, 2.0-2.0.9)
« Reply #33 on: May 23, 2015, 12:29:54 PM »
To moderators: Text to move to first post
Quote
Subject:
Quote
Characters remaining of post, 1.0.4 (SMF 1.1-1.1.21, 2.0-2.0.10)
Body:
Quote
Link to Mod



Characters remaining of post

ABOUT...

Characters remaining of post, 1.0.4
© 2013-2015 by davidhs


This work is licensed under a Creative Commons Attribution 3.0 Unported License.

DESCRIPTION

Shows the maximum number of characters and remaining while writing a post, as in the user signature.

This is shown in:
  • Create/modify post (not WYSIWYG mode only).
  • Create/modify PM (not WYSIWYG mode only).
  • Quick reply.
  • Quick modification of post (does not shown the initial remaining number).


SMF COMPATIBILITY

  • SMF 1.1 to 1.1.21.
  • SMF 2.0 to 2.0.10.

DOWNLOAD

Link to MOD

MANUAL INSTALLATION

See http://wiki.simplemachines.org/smf/Manual_installation_of_mods

SUPPORT AND COMMENTS

In English: http://www.simplemachines.org/community/index.php?topic=506862.0
In Spanish: http://www.simplemachines.org/community/index.php?topic=504643.0

CHANGE LOG

Code: [Select]
Legend:   ! Fixed   + Added   - Removed   * Changed   @ Note

1.0.4   2014-01-25
------------------
+ SMF compatibility: 2.0.7.

1.0.3   2013-10-24
------------------
+ SMF compatibility: 1.1.19 and 2.0.6.

1.0.2   2013-08-19
------------------
+ SMF compatibility: 2.0.5.

1.0.1   2013-07-07
------------------
! Typo in source code.

1.0     2013-07-01
------------------
@ This work is licensed under a Creative Commons Attribution 3.0 Unported License http://creativecommons.org/licenses/by/3.0/
+ Maximum number of characters and remaining of post.
@ Only works in not WYSIWYG mode.
@ Does not shown the initial remaining number in quick modification of post.
+ SMF compatibility: 1.1 to 1.1.18.
+ SMF compatibility: 2.0 to 2.0.4.



Compatible with SMF 1.1.21 and 2.0.10.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post
« Reply #34 on: October 01, 2015, 04:45:34 PM »
Compatible with SMF 2.0.11.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post
« Reply #35 on: October 12, 2016, 10:25:25 AM »
Compatible with SMF 2.0.12.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post
« Reply #36 on: January 12, 2017, 04:26:18 PM »
Compatible with SMF 2.0.13.

Offline davidhs

  • Sophist Member
  • *****
  • Posts: 1,055
  • Gender: Male
Re: Characters remaining of post
« Reply #37 on: November 25, 2017, 01:02:38 PM »
Compatible with SMF 2.0.14 and 2.0.15.