Not signed in (Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

RecentTags

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

This discussion has been inactive for longer than 90 days, and is thus closed.
    • CommentAuthorjcb86
    • CommentTimeAug 24th 2006
     permalink
    Is there any way to get the translator feature to appear in the sidebar, like on this site? http://www.askaboutexercise.com/ Can translator be added as a widget?

    Right now, translator (flag icons) appear above my page, in the background. This looks bad. I'd like to get them on the page, in the sidebar, if possible.
    • CommentAuthorMike_K
    • CommentTimeAug 24th 2006
     permalinkBuy a Drink
    Currently Semiologic does not provide a widget for the translator feature. There is a new 2.0 Pro of Translator available at http://blog.taragana.com/index.php/archive/angsumans-translator-plugin-pro-for-wordpress-blogs-released/

    I will tell you that they do charge extra for the Translator Pro veersion and the licensing prohibits Denis from distributing the new version with SL Pro.

    I do agree that a widget for the current translator to allow it to be in a sidebar would be nice though.

    Mike
    • CommentAuthorMike_K
    • CommentTimeAug 25th 2006 edited
     permalinkBuy a Drink
    Ok. I did some playing around for you. Here's what you need to do.

    1) Drop a custom.php file into the appropriate skin directory (wp-content/themese/semiologic/skins/xxx)

    2) Add the following code to it:
    <?php
    reset_plugin_hook('before_the_wrapper');
    ?>

    3) Under Presentation->Sidebar Widgets add a PHP Code Widget.

    4) Edit the widget and add the following:
    <?php
    if ( function_exists('create_translator_bar') )
    create_translator_bar();
    ?>

    Mike
    • CommentAuthorjcb86
    • CommentTimeAug 25th 2006 edited
     permalink
    Awesome. Thank you! This forum is lucky to have you, Mike.
    • CommentAuthorMike_K
    • CommentTimeAug 25th 2006
     permalinkBuy a Drink
    Thanks. I'm just holding down the fort (or should that be forum :-)) until Denis returns.

    Mike
    • CommentAuthorsminc
    • CommentTimeAug 25th 2006 edited
     permalinkBuy a Drink
    Mike,

    I went to the page above to add a widget, and I can't see how to add a widget, can you elaborate a little more?

    I was able to make the custom.php file, I dropped that into my theme folder on my server, thenI could get to the widget area, and added the text you mention in the bigger part of the Text 1 customizable widget that was there, and initially placed "Translator" in wide thin box at the top. When I saved everything and viewed the site, where I placed that Text 1 widget, I had the word "Translator" there with a thin line across the bottom of that word as wide as the column, but no series of flags.

    I went back in and removed "Translator" from the top thin box, saved and refreshed the site, and now nothing.

    I know I am close.

    Your advice in here is great, I really appreciate what you do.

    sminc
    • CommentAuthorMike_K
    • CommentTimeAug 25th 2006
     permalinkBuy a Drink
    You'll want to add this to a PHP Code widget. A standard Wordpress Text widget won't work.

    Under Plugins make sure that the Exec-PHP and Executable PHP Widget plugins are activiated. You can activate here or through Presentation->Features.

    Mike
    • CommentAuthorsminc
    • CommentTimeAug 25th 2006
     permalinkBuy a Drink
    That did the trick Mike, thanks!

    The only issue is the flag string is wider than will fit in either column, so a portion of the right most flag is cut off, is there a solution to this?

    Thanks again Mike!

    sminc
    • CommentAuthorMike_K
    • CommentTimeAug 25th 2006
     permalinkBuy a Drink
    If you edit the translator.php in wp-content/plugins there is a flag at the beginning of the file there is a flag to create 2 rows of flags.

    The other option is mess around with the css. There current settings are:

    .custom #translator_bar
    {
    margin: 10px 10px;
    }

    you could probably change the 1st number to 5 or such. This should work though my css skills still need a lot of work.

    Mike
    • CommentAuthorsminc
    • CommentTimeAug 25th 2006 edited
     permalinkBuy a Drink
    Hi Mike,

    Thanks again, I assumed you were speaking about custom.css, I made that file, inserted the code above with the first 10 reduced to 5, and uploaded it to the skins folder along side the custom.php you recommended previously. I did not experience any change.

    Did I do what you were thinking with the css file?

    sminc
    • CommentAuthorjcb86
    • CommentTimeAug 27th 2006
     permalink
    Sminc,

    I experienced the same result you did. When translator is placed in the sidebar (using the 2-col layout), the last flag is cut off partially. Adding

    .custom #translator_bar
    {
    margin: 5px 5px;
    }

    to the custom.css file produced no change. The last flag is still cut off.

    Any other ideas?
    • CommentAuthorsilencio
    • CommentTimeAug 27th 2006 edited
     permalinkBuy a Drink
    jcb86,

    one possible solution is to edit the proper css code to increase the size of the sidebar in the 2 Column layout. I think it is set at 198px wide and if you increase this you will most likely I think have to decrease the size of the #main accordingly.

    Your choices are 2 column widths with internal or external sidebar. I printed mine on paper and they are on page 4 if that helps.

    I have been able to adjust the sidebar size this way but Denis is certainly the css expert and I could be making mistakes on this but try it for the time being to see it that works. I have seen pages where it didn't seem to cause problems but I haven't used this feature much. It would be nice to have a Widget to control it........I am thinking.

    Here is the page that I recently saw with the translation in the sidebar, www.askaboutexercise.com/ and they might be able to help you figure this out. Looks like the sidebar is larger to me than the default but this is the one of the SemPro Gold skins it seems.

    Charlie
    • CommentAuthorMike_K
    • CommentTimeAug 27th 2006
     permalinkBuy a Drink
    Well I felt very ambitious this morning. I widgetized Translator and added widgets options for a Title, Use American Flag (instead of British), and display Multiple rows or a single row. I shrunk the flag width a few pixels which is fixing the problem with the right flag rolling off the sidebar.

    I'll submit this new version to Denis and hopefully it will be "blessed" make it into 4.2.

    Mike
    • CommentAuthorjcb86
    • CommentTimeAug 27th 2006
     permalink
    Wow, Mike. You are a superstar. Thanks!

    Charlie, it looks like the AskAboutExercise site is using an older version of Semiologic. Maybe that's why their Translator bar is inside the sidebar..?
    • CommentAuthorsminc
    • CommentTimeAug 28th 2006
     permalinkBuy a Drink
    Mike, thanks once again for all your efforts here.

    I reversed the steps above and await the approval of your code in the next version.

    sminc
    •  
      CommentAuthorDenis
    • CommentTimeAug 28th 2006
     permalinkBuy a Drink

    It'll be added as soon as I tweak it to avoid breaking old installs.

    Cheers, Denis

    • CommentAuthorangsuman
    • CommentTimeSep 23rd 2006 edited
     permalink
    > Mike_Koepke said: I will tell you that they do charge extra for the Translator Pro veersion and the licensing prohibits Denis from distributing the new version with SL Pro.

    The original version of the Translator is also not shipped under GPL or any Open Source License. It is copyrighted and illegal to ship with Semiologic Theme. I, author of Translator Plugin and Translator Plugin Pro, haven't provided any permission to Semiologic or Denis to ship it with.

    The copyright message for the original Translator plugin reads:
    Copyright: Angsuman Chakraborty. All Rights Reserved.

    Please do not ship Semiologic or any products with my Translator plugin or any of my plugins.

    I wonder how many other such third party plugins Semiologic ships without permission and makes profit from!
    •  
      CommentAuthorDenis
    • CommentTimeSep 23rd 2006
     permalinkBuy a Drink

    @Angsuman:

    As you may recall from the discussion in the wp-hackers list when I initially released the Semiologic Pro Package, I checked for license issues when bundling 3rd party components.

    Regarding your plugin in particular, and I cannot remember reading anything on your site that was a show stopper. When I tried to contact you to make sure there were no issues, your site had no phone or email address, and your comment form was not working due to a buggy spam protection scheme on your site. When I sent a message via the (at the time) form on taragana.com, noone bothered answering me.

    Regarding the question raised in my forum about Google potentially banning sites using their transation web service to serve more pages, it was not my question but a prospect's. In the event f there was any issue at all, I figured raising it in public would make more sense than secrecy. Your initial input (i.e. translator Pro has no issue, a link to buy it) was constructive and welcome.

    Your plugin, which directs users to your site, will be removed per your request, since you're making a big issue of a misunderstanding that unnoteworthy at best. It will be replaced by a plugin that is free, and GPL-licensed.

    Last but not least, your flaming me in public was unprofessional at best. It would have been sweet of yours to contact me and wait for an answer before posting junk like this on your web site. As an aside, notice that I'm answering in my forum and on your site, rather than flaming you on the front page of a blog. I'll be looking forward to reading a follow-up or an edit to your post in the lights of the above.


This discussion has been inactive for longer than 90 days, and is thus closed.