WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Organizer
[resolved] Plugin Organizer + qTranslate (5 posts)

  1. mmx0
    Member
    Posted 1 year ago #

    Hi,
    I like Plugin Organizer. I also have qTranslate installed and when I try to selectively enable a plugin that I globally disabled, it only gets enabled for the permalink in the primary language. qTranslate generates a unique URL for each language of a post/page, so those language specific URL's don't work when I enable a plugin for a specific post/page. I was thinking that the way to deal with this is to hook the function in Plugin Organizer and strip the language from the URL before Plugin Organizer checks the URL against it's database. Any help would be appreciated.

    base URL: http://www.mysite.com/somecategory/some-page
    qtranslate urls:
    http://www.mysite.com/th/somecategory/some-page
    http://www.mysite.com/jp/somecategory/some-page
    http://www.mysite.com/de/somecategory/some-page
    http://www.mysite.com/fr/somecategory/some-page

    qTranslate has this function: qtrans_convertURL(string $url, string $lang)
    which can be used to return the base URL if passed the URL (permalink) of the post/page (I think ... :0 ) I haven't tested extensively.

    qTranslate helpful functions reference

    Thanks,
    MMX

    http://wordpress.org/extend/plugins/plugin-organizer/

  2. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    Use the URL admin to enter your language URLs. You could strip the language piece out of the URL but that would require you building a new mu plugin or modifying plugin organizer. You wont be able to use functions from the qTranslate plugin since it wont be loaded before the URL is checked by plugin organizer.

  3. mmx0
    Member
    Posted 1 year ago #

    Can you give me and example of the the "language URL" I would enter? I have a site with about 300 posts/pages/custom-posts and three foreign languages. Do I have to enter all 900 URLs in the URL admin? :)

    Thanks,
    MMX

  4. mmx0
    Member
    Posted 1 year ago #

    Is it possible to enter some sort of wildcard in the custom URL's admin area? I'd like to enable a specific plugin on all URL's that contain "frequent-questions" for example.
    Thanks,
    MMX

  5. Jeff Sterup
    Member
    Plugin Author

    Posted 1 year ago #

    If you have that many URLs then the url admin isnt going to be any help for you. The best solution would be for you to modify plugin organizer to do what you need.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags