1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Comment counter in profile.

Discussion in 'Closed Suggestions' started by ChemicalKicks, Sep 27, 2011.

  1. ChemicalKicks

    ChemicalKicks Well-Known Member

    This is what you see if you post a message on a profile that's too long, it would be useful if the error message also provided the current actual character count.
     
    Alien, HydraulicJack and Shelley like this.
  2. Carlos

    Carlos Well-Known Member

    In what section of the profile, Status? Status comments? o_O
     
  3. ChemicalKicks

    ChemicalKicks Well-Known Member

    Status comments.
     
  4. Shelley

    Shelley Well-Known Member

    I hadn't realised there was a post amount restriction when commenting. If the comment count option is added i think it should be left of the comment button just like the post count digit resides on the left hand side of the post button in profiles. Then there's the argument, what are the chances of any person posting above the character limit? very rarely imo because then if they have that amount to say they would bring it to the person in private via the PC system.

    Is that error message your getting from creating a profile post or comment to a profile post?
     
  5. ChemicalKicks

    ChemicalKicks Well-Known Member

    Comment to a profile post Shelley :)
     
  6. HydraulicJack

    HydraulicJack Well-Known Member

    Absolutely! ALSO in Beta 3 not only does it not warn you, IT DELETES THE MESSAGE YOU'VE COMPOSED WITHOUT A MEANS OF RECOVERY (that I was able to determine, anyway).

    Definitely NOT up to XF standards! Gave me the Beta Blues!
     
  7. HydraulicJack

    HydraulicJack Well-Known Member

    Sorry Shelley, I disagree with you 180 degrees on this one. I've been burned numerous times on this and am very disappointed it hasn't been remedied yet.
    With the latest release it also wipes out the entire post I made with no warning whatsoever until it was too late to do anything about it. Sux. Not up to XenForo standards of excellence.
    User hostile rather than user friendly.
     
    Shelley likes this.
  8. Shelley

    Shelley Well-Known Member

    If people post above the character limit and it wipes the entire post without warning then that isn't a good thing. I should have replied back saying so as i did like CK suggestion afterwards after thinking more about it.

    I suppose when i initially made the post above I looked at it being that i personally never posted over the 420 limit. That's not to say other people stay within that limit.
     
    HydraulicJack likes this.
  9. HydraulicJack

    HydraulicJack Well-Known Member

    Thanks for your update, Shelley :)
    It's a feature that's a cool one but feels half-baked at this point, and not up to XF's typical standards of excellence. I hope somebody steps to it and fixes it because that feature would get a lot more use from me, and very possibly by others.

    I find it to be very convenient IF it worked properly. At this time, it does not.
     
  10. ChemicalKicks

    ChemicalKicks Well-Known Member

    The latest incarnation of this is worse now then, I haven't checked this on the Beta release. I think I've got Beta 1 installed on my test forum.

    This bug and the 'working as designed' clicking on a read thread issue are rather annoying, hopefully both will get addressed.
     
  11. lasertits

    lasertits Active Member

    I don't mean to bump an old thread, but does anyone know if there's a way to INCREASE this limitation? My users consistently exceed the 420 limit but usually only by 50-100 characters... a small increase would be great.
     
  12. EQnoble

    EQnoble Well-Known Member

    Nothing like blowing off some steam to quickly burn past the 420 limit. :)

    If you really have to right now, I suppose you could go to...
    /library/XenForo/DataWriter/ProfilePostComment.php
    and find
    PHP:
        protected function _preSave()
        {
            if (
    $this->isChanged('message'))
            {
                
    $maxLength 420;
                if (
    utf8_strlen($this->get('message')) > $maxLength)
                {
                    
    $this->error(new XenForo_Phrase('please_enter_message_with_no_more_than_x_characters', array('count' => $maxLength)), 'message');
                }
            }
        }
    and edit the $maxLength = to be a higher number so it looks more like this...

    PHP:
        protected function _preSave()
        {
            if (
    $this->isChanged('message'))
            {
                
    $maxLength 540;
                if (
    utf8_strlen($this->get('message')) > $maxLength)
                {
                    
    $this->error(new XenForo_Phrase('please_enter_message_with_no_more_than_x_characters', array('count' => $maxLength)), 'message');
                }
            }
        }

    Just a guess that this will work for you but if I am wrong someone correct me please...and always download a copy of the file you are editing to your desktop before you edit it so that in the event that you mess something up you can just keep overwriting bloopers with a clean copy via ftp. Happy hunting.
     
    lasertits likes this.
  13. lasertits

    lasertits Active Member

    Excellent, thank you! Hopefully they'll include this as an option in the ACP in the future.
     
  14. Shelley

    Shelley Well-Known Member

    Suggestion: When you create a profile post you have a character counter telling you how many letters you have left. Though replying, and commenting on profile comments since their is a character restriction doesn't have a counter, I think it would be beneficial to somehow include that into comments also.

    Not sure whether this has been suggested.

    comment-counter.png
     
    MsJacquiiC, vVv, Veer and 1 other person like this.
  15. digitalpoint

    digitalpoint Well-Known Member

    Actually, there's not a character restriction on the replies (I just tested it with a 500 character reply to a profile post).
     
  16. vVv

    vVv Guest

    Not sure about that one though, because I tried replying before with a mini novel, and it was restricted. I had to guess if I cut enough out, then retry, then had to cut more again and retry, after waiting on the stupid time limit lol. Grr.. Lol!
     
  17. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's limited to 420 characters.

    XenForo_DataWriter_ProfilePostComment

    Code:
    	protected function _preSave()
    	{
    		if ($this->isChanged('message'))
    		{
    			$maxLength = 420;
    			if (utf8_strlen($this->get('message')) > $maxLength)
    			{
    				$this->error(new XenForo_Phrase('please_enter_message_with_no_more_than_x_characters', array('count' => $maxLength)), 'message');
    			}
    		}
    	}
    
     
    Shelley likes this.
  18. vVv

    vVv Guest

    Ah right, it's 420.. See, I keep forgetting that, hence Shelley's suggestion, which would be nice. It's a visual reminder of how many you have left. Lol!
     
    Shelley likes this.
  19. digitalpoint

    digitalpoint Well-Known Member

    lol... well, it was *about* 500 characters. But yeah... I just went back and counted and my test was 403 characters, so I guess that would have been within the 420. haha
     
    MattW and vVv like this.
  20. Despair

    Despair Active Member

    While doing this it would also be nice if the javascript were written to be reusable. I remember last time I wanted to use the remaining character counter for use in my own addons I noticed it was specifically for the status update only (you could reuse it I think, but it just gets ugly), so I had to create my own.
     

Share This Page