Tag Keywords limit

This topic contains 9 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #14289

    identity
    Lifetime Member
    Post count: 445

    Under the add listings, there is a limit placed on tags:

    Tags are short keywords, with no space within.(eg: tag1, tag2, tag3) Up to 40 characters only.

    Based on the database settings, looks like this actually has a 254 character limit and the 40 character “limit” is actually form entry imposed.

    Is there any easy way to increase this limit and change the corresponding help tip on the form?

    cheers

    #14293

    Simone
    Expired Member
    Post count: 3515

    The tag limit is set by the field which has maxlength=”40″.
    A quick workaround is to change

    maxlength="<?php echo TAGKW_TEXT_COUNT;?>"

    to

    maxlength="90"

    (or whatever is your limit, if any) in the file geodirectory_template_actions.php

    You can find the text
    Tags are short keywords, with no space within.(eg: tag1, tag2, tag3) Up to 40 characters only. in the .po file

    #14295

    identity
    Lifetime Member
    Post count: 445

    Thanks. Changes in the actions file will potentially get overwritten though with any updates unless they are ported over every time?

    cheers

    #14298

    Simone
    Expired Member
    Post count: 3515

    Yes, that’s why I said “quick” 🙂
    You need a function in the child theme so in this case it won’t be overwritten, I will do that later, at the moment I’m not home.

    #14305

    identity
    Lifetime Member
    Post count: 445

    No worries. That would be great though if you get a chance…unfortunately that kind of knowledge is still outside my pay grade 😉

    Actually seems like an ideal “configuration” setting as I’m sure the desired limit would vary considerably depending on site specifics.

    cheers

    #14331

    directory
    Expired Member
    Post count: 1502

    Hi Simone,

    Thank you for doing it. I also need to increase the keyword or tag characters beyond 40. 🙂

    #14457

    Simone
    Expired Member
    Post count: 3515

    unfortunately that “block” of code isn’t in any hook so it can’t be added in functions.php.
    the value is defined in a constant defined in languagues.php

    define('TAGKW_TEXT_COUNT',40);

    I can ask to Stiofan to add an option for the next releases

    #14461

    identity
    Lifetime Member
    Post count: 445

    Thanks for checking.

    I definitely think it would be worth looking at adding that kind of functionality.

    cheers

    #16343

    identity
    Lifetime Member
    Post count: 445

    Just wanted to check and see if this made the list for the next update? 😉

    cheers

    #17455

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    FYI this is in the latest price manager 🙂

    Stiofan

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket