I have an existing custom feed using do_feed_* but I see there is an undocumented (and existing since 2.1) *_add_feed. Is one better than the other?
I have do_feed_* working but since I upgraded to 3.0 last week, any URL with "&author=" in it redirects to the root site page. Take it out and it loads the page fine (but of course does not show the proper author). So, as I investigate, I wonder if *_add_feed might be better?
Relying on an undocumented method in any API is more dangerous than figuring out how to properly use a documented method.
add_feed is the best starting point and is now a documented part of WordPress. This function has been in WordPress since v2.1.
You should prefer adding your custom feed using add_feed over do_feed_*. An example of how to add your own custom RSS feed to WordPress is discussed on the WordPress Answers site: Cannot get add_feed to work.
Related
I use MyBB for forum and Wordpress for blog. When I try to integrate both together into a page, I get conflicts between functions. The forum header and the wordpress includes have some functions with the same identifier.
I need both functions but I obviously can't change the name of something inside wordpress or mybb.
What are the solutions to these conflicting problems?
Can I deinclude an included file?
If I could use iframe then it wouldn't look good with the scrolls and the border. If this is the only way then how can I remove the border and the scrollbars so that it would look exactly the same when the code was in the original page itself?
First of all: That is a hell of a task.
Still thou, if you aim to do it, read up on namespaces.
I figure it is possible to add those to all wordpress classes and all myBB classes.
You would have to do a lot of rewriting, but some search and replace tools using regular expressions should be able to help you with that.
You could also try to havew them seperately (yourdomain.com/myBB and yourdomain.com/wp) and integrate them via webservices. So you myBB would access wordpress data via RSS?
I am looking to build a plugin for Joomla that will allow me to play video using HTML5 first before resorting back to Flash. In my effort to make this plugin in more dynamic I would like to have an easy way of embedding the video. In similar plugins I have seen where the user can put in a specific phrase surrounded with brackets. Something similar to the following:
{html5video}media/video{/html5video}
What is this method called and where can I find more information on how to implement it into a plugin?
As per my knowledge there is no specific term defined in Joomla for this method, but those who are much familiar with Wordpress calls it SHORTCODE method
You will need to create a content plugin -
use regex , php preg_match_all and extract this string and replace with your desired code.
One such plugin is available in Joomla. You can check it in plugins\content\loadmodule
You may need to modify the regex pattern used in this plugin
I have created a static website using xhtml, css and jquery. I have got zero knowledge or understanding of how php and mySQL works. Is it possible to create fully functional theme for wordpress? And how about using frameworks?
You'll be able to do it but you'd need some basic at least PHP knowledge to get going.
Start out having a look at the Wordpress Codex - http://codex.wordpress.org/Main_Page.
It's full of all the information you'll need to get started.
From there have a look at an existing Wordpress theme. Try making small changes to that and see how you get on.
You won't really need MYSQL as Wordpress runs it's own, easy to understand querys.
Good luck.
Anything's possible with enough time.
At the very least you will need to learn PHP, but you can do this by downloading an existing theme and modifying it to suit your desired HTML output.
I am using phpbb on a site for a client, and the client has requested that each different forum page have a different background color.
Such functionality is not built into phpbb (from what I can tell), so how should I go about doing this? Can I modify the code of phpbb directly?
My other thought was to use a js conditional statement, but seeing as the only difference on the forums page would be the page title, I don't know how I could format this.
If you can include a js in a way that won't break when the software is updated then that would be preferable, using the forum id from the url perhaps?
Otherwise, this is a stab in the dark, but try this:
Find where phpbb outputs the <head>
Use a switch/case statement and output the necessary css based on the forum ids.
Document exactly where you made the changes, and remember that you may need to make them again when phpbb is updated to new versions.
I need to setup a blog using wordpress engine but i need it support multi languages (3 languages), currently i am thinking of using custom field to identify the language of current post though i knew thats not a best practices, does anyone has better suggestions?
I've tested 2 plugins that both looked very promising: qTranslate and Gengo
qTranslate works by adding inputs for all used languages for each post, Gengo used separate posts and links them in a "post Y is a translation of post X" way, which I preferred much (because it allowed me to not translate everything) and it worked fine for me.
I have used the xlanguage plugin and I am happy with it.
xlanguage site
I fi i remember well, wordpress uses a gettext "customization" library to translate itself.
I think you can make some options based on a session variable, about the translation files you're going to read.
Try using plugin wordpress WPML.