Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • fmedia Friend
    #149209

    hi,

    i want dashes and Caps to be automaticly replaced when users upload a thumbnail using the “IMAGE” (plg_jathumbnail) tool integrated in the tinymce editor.

    for example when someone uploads an imagel like this:

    John Doe.jpg

    i want it automaticly converted to this:

    john_doe.jpg

    can this be done? if this includes custom programming, please let me know what i should ask for on scriptlance.com

    thanks

    histeriks Friend
    #334896

    fmedia;167702hi,

    i want dashes and Caps to be automaticly replaced when users upload a thumbnail using the “IMAGE” (plg_jathumbnail) tool integrated in the tinymce editor.

    for example when someone uploads an imagel like this:

    John Doe.jpg

    i want it automaticly converted to this:

    john_doe.jpg

    can this be done? if this includes custom programming, please let me know what i should ask for on scriptlance.com

    thanks

    Hi fmedia.

    Can i suggest you switch to JCE? It will do what you want by default, and it’s much better editor.

    fmedia Friend
    #334909

    i couldnt get the JCE work properly with the plg_jathumbnail plugin. any ideas?

    Anonymous Moderator
    #334989

    Hi fmedia

    JCE is adding some codes into img tag.

    You have to configure so that JCE don’t add some codes to img tag.

    Please kindly check again

    fmedia Friend
    #335043

    ok i tried JCE again but how do i set up JCE to reject or auto-correct images like this? isnt that something that should be done on plg_jathumbnail plugin instead?

    John Doe.jpg

    Saguaros Moderator
    #335462

    Dear fmedia

    I think that the JCE Editor has not any plugins or any extensions having the function as you like:

    <blockquote>
    John Doe.jpg

    i want it automaticly converted to this:

    john_doe.jpg
    </blockquote>

    I’ll give you the solution to the ja thumbnail plugin to be work well with any kind of image’s name.

    pls open the file pluginscontentplg_jathumbnail.php and try to find codes at line: 264 ( in my files):

    [PHP]
    $ext = strtolower(substr(strrchr($image, ‘.’), 1)); // get the file extension
    $rzname = strtolower(substr($image, 0, strpos($image,’.’))).”_{$dst->w}_{$dst->h}.{$ext}”; // get the file extension
    [/PHP]
    replace:

    [PHP]
    $ext = (substr(strrchr($image, ‘.’), 1)); // get the file extension
    $rzname = (substr($image, 0, strpos($image,’.’))).”_{$dst->w}_{$dst->h}.{$ext}”; // get the file extension
    [/PHP]

    and find codes at line 274:
    [PHP]
    $folders = explode(‘/’,strtolower($image));
    [/PHP]
    replace:
    [PHP]
    $folders = explode(‘/’,($image));
    [/PHP]
    After done, pls check this issue in detail and give me the result 🙂

    Good luck

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

This topic contains 6 replies, has 4 voices, and was last updated by  Saguaros 14 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum