qtranslate and mail press subject error

116 views
Skip to first unread message

albertop

unread,
Feb 9, 2010, 12:44:04 PM2/9/10
to MailPress
as many people have seen when you write a new mail in mail press and
you have qtranslate enabled in your website the subject of your email
will contain a strange tag like:
<!--:en-->my email subject<!--:-->

you can quickly resolve this problem by going on your wordpress user
profile and flag:
Disable the visual editor when writing

this way you will just have one subject box instead of two in your
write new mail panel.
obviously if you still want to use qtranslate for writing your post
you have to use two users:
1 user have visual editor enabled and write new posts but not new
mails
2 user have visual editor disabled and write new mails but not new
posts

this is a very bad solution but work and solve the problem

I hope that somebody else will find another solution
bye bye everybody

Giuliano Riccio

unread,
Feb 10, 2010, 10:13:13 AM2/10/10
to MailPress
I have edited the file qtranslate/qtranslate_wphacks.php and replaced

function qtrans_modifyRichEditor($old_content) {
global $q_config;

with

function qtrans_modifyRichEditor($old_content) {
if (isset($_GET['page'])&&strpos($_GET['page'], 'mailpress_')==0) {
return $old_content;
}
global $q_config;

so that the editor is not modified

regards
Giuliano

On Feb 9, 6:44 pm, albertop <alberto.provenz...@gmail.com> wrote:
> as many people have seen when you write a new mail in mail press and

> you haveqtranslateenabled in your website the subject of your email


> will contain a strange tag like:
> <!--:en-->my email subject<!--:-->
>
> you can quickly resolve this problem by going on your wordpress user
> profile and flag:
> Disable the visual editor when writing
>
> this way you will just have one subject box instead of two in your
> write new mail panel.

> obviously if you still want to useqtranslatefor writing your post

andré renaut

unread,
Feb 10, 2010, 11:28:41 AM2/10/10
to mail...@googlegroups.com
Great Giuliano

This should be sent to qtranslate author !

2010/2/10 Giuliano Riccio <ricciog...@gmail.com>
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.
Reply all
Reply to author
Forward
0 new messages