<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: problem with qTranslate and background image URL</title>
		<link>http://www.themolitor.com/forums/topic/problem-with-qtranslate-and-background-image-url</link>
		<description>THE MOLITOR FORUMS &#187; Topic: problem with qTranslate and background image URL</description>
		<language>en-US</language>
		<pubDate>Sun, 10 May 2026 11:24:40 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/problem-with-qtranslate-and-background-image-url" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "problem with qTranslate and background image URL"</title>
			<link>http://www.themolitor.com/forums/topic/problem-with-qtranslate-and-background-image-url#post-22980</link>
			<pubDate>Thu, 05 Sep 2013 08:46:10 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">22980@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>The following is controlled via the category page...</p>
<pre><code>$customBg = get_tax_meta($term_id,&#039;cat_bg&#039;);</code></pre>
<p>... whereas the following is controlled via the post/page edit screen...</p>
<pre><code>$customBg = $data[&#039;custom-background&#039;];</code></pre>
<p>Unfortunately I'm not familiar with qTranslate, so I'm not equipped to troubleshoot issues that it presents. Since this issue really relates to a customization issue, I'll have to ask that you submit a customization request to add additional functionality like this to the theme: <a href="http://themolitor.com/custom" rel="nofollow">http://themolitor.com/custom</a></p>
<p>Hope you understand.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>basil on "problem with qTranslate and background image URL"</title>
			<link>http://www.themolitor.com/forums/topic/problem-with-qtranslate-and-background-image-url#post-22971</link>
			<pubDate>Thu, 05 Sep 2013 08:03:44 +0000</pubDate>
			<dc:creator>basil</dc:creator>
			<guid isPermaLink="false">22971@http://www.themolitor.com/forums/</guid>
			<description><p>$customBg = get_tax_meta($term_id,'cat_bg'); (don't work)<br />
$customBg = $data['custom-background']; (work)</p>
<p>how is the different between this 2 lines?
</p></description>
		</item>
		<item>
			<title>basil on "problem with qTranslate and background image URL"</title>
			<link>http://www.themolitor.com/forums/topic/problem-with-qtranslate-and-background-image-url#post-22970</link>
			<pubDate>Thu, 05 Sep 2013 07:01:02 +0000</pubDate>
			<dc:creator>basil</dc:creator>
			<guid isPermaLink="false">22970@http://www.themolitor.com/forums/</guid>
			<description><p>btw<br />
it works on single.php (post of cat)<br />
doesn't work on archive.php (list of cat page)
</p></description>
		</item>
		<item>
			<title>basil on "problem with qTranslate and background image URL"</title>
			<link>http://www.themolitor.com/forums/topic/problem-with-qtranslate-and-background-image-url#post-22968</link>
			<pubDate>Thu, 05 Sep 2013 06:15:49 +0000</pubDate>
			<dc:creator>basil</dc:creator>
			<guid isPermaLink="false">22968@http://www.themolitor.com/forums/</guid>
			<description><p>qtranslate code:<br />
&#60;?php<br />
if( qtrans_getLanguage() == 'en' ){ ?&#62;<br />
    &#60;!-- English content here --&#62;<br />
&#60;?php }else { ?&#62;<br />
    &#60;!-- Other language content here --&#62;<br />
&#60;?php } ?&#62;</p>
<p>in archive.php found:<br />
jQuery.noConflict(); jQuery(document).ready(function(){<br />
	jQuery(window).load(function(){<br />
		&#60;?php if($customBg){ $background = $customBg; } else { $background = ot_get_option('background');}?&#62;<br />
		jQuery.backstretch("&#60;?php echo $background;?&#62;", {speed: 1000});</p>
<p>I change to:<br />
jQuery.backstretch("&#60;?php if( qtrans_getLanguage() == 'en' ){ ?&#62;&#60;?php echo $background;?&#62;&#60;?php }elseif ( qtrans_getLanguage() == 'zh' ){ ?&#62;&#60;?php echo $background;?&#62;&#60;?php } ?&#62;", {speed: 1000});</p>
<p>the background does not shown in lang:zh<br />
I've tried echo "xxxx" in condition zh, it shown, so it could be the $background problem.</p>
<p>--------------------------</p>
<p>tried &#60;?php echo customBg;?&#62;, nothing shown in lang:zh.<br />
trace back,<br />
tried &#60;?php echo get_tax_meta($term_id,'cat_bg');?&#62;, nothing shown in lang:zh.<br />
here i stop, and need your help.</p>
<p>thanks
</p></description>
		</item>

	</channel>
</rss>
