|
#1
Mar 16, 2012, 05:31 AM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
I'm using qTranslate v2.5.28 to allow two languages on my website. For that purpose, I need to use expressions like:
Quote:
[:en]by %author%, on %date('F jS, Y')%[:pt]por %author%, em %date('j \d\e F \d\e Y')%
|
where [:en] and [:pt] indicate the start of the respective language version for a specific text.
This used to work in previous versions of Atahualpa but not now with 3.7.3 !! After I make my changes in Atahualpa Theme Options like the one above and I save them I will see only:
Quote:
by %author%, on %date('F jS, Y')%
|
which means that Atahualpa cleans it up, removing the qTranslate tags !!! Can anyone help????
Last edited by OP351net; Mar 16, 2012 at 05:38 AM.
|
#2
Mar 16, 2012, 06:03 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
that's odd because I just entered you settings and it saves fine. try disablinmg all other plugins except qtranslate and see what happens - I wonder if you have a plugin that looks at shortcodes
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Mar 16, 2012, 06:23 AM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
Thanks for your reply, juggledad.
Put ODD on that !! The worst part is: this code cleaning up is random, meaning, you might save Atahualpa Options, the shortcodes remain there but they might disappear at any time !!!!
Removing plugins it's quite hard !! I have 16 plugins installed !! Any clue about which type of plugins might be interfering?
|
#4
Mar 16, 2012, 07:00 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
There hasn't been a significant change in the code that saves teh options. What version were you using?
as for disabling the plugins, it is easy to disable all the plugins, though it might not make your site look good
if you can get a handle on a series of steps that cause the issue to happen, I can look at it in more detail, but if it is random it is hard to determine or even recreate.
what version of Atahualpa were you on?
What version of WP?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Mar 16, 2012, 07:10 AM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
Yes, with "hard" I mean what I would feel watching my website if I'd deactivate the plugins
I'm using Atahualpa 3.7.3, WordPress 3.3.1 and qTranslate 2.5.28 !!
I already started deactivating plugins one by one and I have started with those handling square brackets "[" and "]". I will post the result here if I succeed
|
#6
Mar 16, 2012, 07:52 AM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
Actual status:
1 - I deactivated plugins one by one. No improvement !!
2 - I finally deactivated ALL plugins but qTranslate. No improvement !!
3 - Meanwhile, I've found out that shortcodes are removed after I navigate through my website (read in pages, read in posts, etc)
Additional information: I have exactly the same problem on a different website running on Wordpress 3.1.1, Atahualpa 3.6.4 and qTranslate 2.5.19 !!!! Any clues?
|
#7
Mar 16, 2012, 09:55 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Very odd. The theme options are store in the database and viewing a post READs the options from the database BUT doesn't WRITE the theme options out to the database.
what is the URL?
if you are in the US please send me a PM with your contact information.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#8
Mar 16, 2012, 11:59 AM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
The URL is http://op351.net and http://ajbfec.com, both with the same problem.
I guess there is something wrong with Atahualpa handling post kickers, post bylines, post footers and footer (all fields are editable) when qTranslate shortcodes are included. There are other parts of the website with those very same shortcodes (for example, in several plugins) and they do not go away!
I had a look at Atahualpa code but my PHP knowledge sucks !! Any help would be very much welcome...
PS: I am from Portugal, so let's keep this conversation affordable keeping it on free means
|
#9
Mar 16, 2012, 12:53 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I've installed the qtranslate and can not get it to fail in any way - if you want, send me an admin ID/PW and I'll take a look
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#10
Mar 16, 2012, 01:29 PM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
May I get the URL of website where you installed qT to check it out? What versions are you using?
|
#11
Mar 16, 2012, 01:43 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
I'm running it on my local server and just downloaded the latest version of qtranslate off of wordpress.org.
The only time the theme re-wrtites the theme settings (which are stored in the database) is when you make a change and hit the 'Save' button'. Reading posts should do nothing.
here is an experiment. pt the code in and save it, then go to the 'Export/Import settings' option and export your settings. Now go back and see if those settings are still there. Next, go do the 'voodoo' (sorry, couldn't help it, it sounded so good in my head "..go do the voodoo... ) that changes the setting. Now go export the settings again.
Attach teh two files to a reply (use the paper clip icon'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#12
Mar 16, 2012, 02:45 PM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
juggledad, I guess you're scoring !!
I did what you said and maybe I don't need to send you the files because I tell you here what happened.
1 - When I place the line:
Quote:
[:en]by %author%, on %date('F jS Y')%[: pt]por %author%, em %date('j #d#e F #d#e Y')%
|
in the field "BYLINE: Homepage" and export settings, I can only find in the .txt file the string:
Quote:
by %author%, on %date('F jS Y')%
|
1 - When I place the line:
Quote:
[: pt]por %author%, em %date('j #d#e F #d#e Y')%[:en]by %author%, on %date('F jS Y')%
|
in the field "BYLINE: Homepage" and export settings, I can only find in the .txt file the string:
Quote:
by %author%, on %date('F jS Y')%
|
3 - If I place the line:
Quote:
by %author%, on %date('F jS Y')% por %author%, em %date('j #d#e F #d#e Y')%
|
which is similar to previous ones but without qTranslate shortcodes, I can find in the .txt file the string:
Quote:
by %author%, on %date('F jS Y')% por %author%, em %date('j #d#e F #d#e Y')%
|
Can you see??? Atahualpa is not handling correctly the qTranslate shortcodes !!!!
Actually, if I use shortcodes, Atahualpa only takes into consideration what it is after the [:en] one, which is the default language of my website. Meaning, shortcodes and everything after [: pt] are not saved in the settings backup file !!
I still insist, this is an Atahualpa bug. Agree? What's next?
|
#13
Mar 16, 2012, 02:58 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Quote:
I still insist, this is an Atahualpa bug. Agree? What's next?
|
no because when I insert the line
HTML Code:
[:en]by %author%, on %date('F jS Y')%[: pt]por %author%, em %date('j #d#e F #d#e Y')%
I find it in the export and it is still in the option when I go back to it.
I do get an error in runtime looks like the '#' are not liked, but the original code (in your first post) works fine.
again if you want, send me an admin ID/PW and I'll take a look
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#14
Mar 16, 2012, 03:40 PM
|
|
|
8 posts · Mar 2012
Porto PORTUGAL
|
|
Atahualpa recommends the use of # instead \ for escaping letters inside %date%
Go for me, this is an Atahualpa bug !!
|
#15
Mar 16, 2012, 03:52 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
There may be a bug, but since the only one having the issue is you and the fact that I can't recreate it, there is nothing I can do.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#16
Mar 18, 2012, 04:29 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
fyi,
here are two screen shots one when english is selected,
and one with portugues
and here is my 'BYLINE: Homepage' option
HTML Code:
[:pt]por %author%, em %date('j #d#e F #d#e Y')% [:en]by %author%, on %date('F jS Y')%
no problem. So it must have something to do with your environment which could be
character set used in the database, plugins you use, custom modifications to wordpress, language version of wordpress you are using, or maybe some environmental setting on your host.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
|