newtnewt
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate] [Plugin: qTranslate] Different featured image per language?If you feel like adding a bit of php to your template, you can change the way the featured image displays on your post or page quite easily. But the problem is that there are many ways that a featured image could be called (for example in a list of search results, in a blog, on a category page). So to foresee all these options you might have a lot of programming to do. Perhaps there is a more elegant way to do it?
An example:
I created a multilingual slideshow with wp-cycle by uploading images into the usual target folder (uploads/2012/september/firstslide-en.png)But in fact these images are only called for the default language (english in this case)
Then I hacked wp-cycle to
1) check the current language and get the 2-letter code
2a) delete “en” from the filename if we’re not in english
2b) substitute “fr” if it’s in french, etc
3) call the localized filename for each successive slide.Then I upload (manually using ftp) the french version of the slide with the following path and filename: (uploads/2012/september/firstslide-fr.png)
This works perfectly as long as I keep track of where the image files are. And of course I would not want my clients messing with this. It’s for webmaster use only.
Hope this helps.
NN
Forum: Plugins
In reply to: [qTranslate] qTranslate: "home" link resets selected languageOne option is to hack the wp code so that search.php recognizes that there are different languages. Otherwise searches will always go back to your default language. Then you can add the 2-letter language code to the url of the search result.
You can also write some php to check which language you’re using and then overide the normal ‘home’ button so that it goes to yoursite.com/es/ for example.
(by the way, it does not matter which version of WP you are using)
Hope this gets you started. Sorry, it is not an elegant solution.
NN
Forum: Plugins
In reply to: [Plugin: Vote It Up] Make Order of Posts = # of VotesI’m trying to do the same thing – installed WP Smart Sort, but it doesn’t offer voting as an available custom sort field…
Forum: Plugins
In reply to: [Plugin: Vote It Up] Bug Fix: Incorrect URL variable usedOK, I solved my problem a different way: I went into the database and tweaked the votes info (for id=2) so that it matched the others.
Forum: Plugins
In reply to: [Plugin: Vote It Up] Bug Fix: Incorrect URL variable usedI used bradt’s fix, but am still getting one defective url from the sidebar menu.
“About” is still in that sidebar list.
And gives the user this broken link:
h ttp://localhost/?page_id=2the real link should be:
h ttp://mysitedeleted.com/wordpress/?page_id=2