Arla
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate] Language switcher as menu linkrosellipaolo,
The site I referred to has changed since the start of this thread. Another developer took over and I do not know how they implemented the language switcher that can be seen there now.
You can use
<?php echo qtrans_generateLanguageSelectCode('text'); ?>to output a basic language switcher and use CSS to position it.If you’re not happy with the HTML of that function you could define your own, using
qtrans_getSortedLanguages(),qtrans_convertURL()and$q_config['language'].— Arild
Forum: Plugins
In reply to: [WordPress Category Archive] qtranslate UrlI had this problem as well. It can be fixed by changing line 77 in wp-category-archive.php from:
return ($url);to:
return apply_filters($interval.'_link', $url);This might be a bug, and the appropriate solution might be slightly different than this quick fix.
Forum: Plugins
In reply to: [qTranslate] Language switcher as menu linkHi davidb!
Thanks for your helpful reply. However I managed to solve my problem by using the wp_nav_menu_items filter:
https://github.com/arildm/langswitch-item/blob/master/langswitch-item.php
— Arild
Forum: Plugins
In reply to: Textile plugin: Encoding failing, their options inoperativeThe Textiler plugin works much better (i.e. correctly). It’s a bit simpler, but provides the ability to set whether Textile should be applied to *all posts, *between
{{{and}}}or *no posts, for entries as well as comments.I tested every Textile function in Textiler and it works well, except left aligning (for example “
p<.“), since the editor seems to automatically add a space: “p< .“. Fortunately, left aligning is not very common.