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?
Related
I installed phpBB on my localhost and can access it via localhost/myProject/board/, while my normal access path to my website would be localhost/myProject/?s=home
I want to include phpBB into my site in a way that it won't feel like a different site anymore, but behaves more like an iframe. I tried adding a board.php which just executes
include("viewforum.php");
and is accessed via localhost/myProject/?s=board. Result should be my basic .html site, with the phpBB included in the contentArea. However it doesn't work by giving errors like
WARNING: INCLUDE(/BOARD/COMMON.PHP): FAILED TO OPEN STREAM: NO SUCH FILE OR DIRECTORY
I googled a bit and can't find a solution for this. My train of thought here is that board.php could act as a wrapper around the phpBB and include the whole stuff in my side to act like an iframe AND handle the GET parameters. For example when browsing normally in the phpBB i get URLs like
http://localhost/myProject/board/viewforum.php?f=2
This should be handled by the wrapper by wrapping the GET parameters like
http://localhost/myProject/?s=board&boardSite=viewforum&f=2
Is something like that possible without to much effort?
Thanks in advance!
One way to do this is that you may find a similar scheme theme to add to the forum and add required menu at the top by using html & css code from the main site's menu.
Well, the most easiest and worst way is to use an iframe. It would display the board in a frame inside the page. It virtually makes linking imposibble and has other negative side-effects.
You will have a very hard time attempt to embed it like this. The application is not designed to be wrapped like this.
Your best bet is to adapt the phpBB styles to your website templates.
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 need to use some PHP code inside of a MediaWiki form. Basically, I need to use some PHP date stuff and create a few infoboxes based on timeframes. Is there a way to use PHP to generate a "template" in the "edit" box?
I'm very new to developing with MediaWiki, so I'm not sure how MediaWiki exactly works, and this is a very small project, so I haven't really dived into any documentation for the most part.
You can certainly add secure HTML within a wiki page. It seems there is also a securePHP extension. I haven't tried the PHP one myself but the HTML one works very well.
I was able to do this myself with a MediaWiki plugin called SemanticForms:
SemanticForms
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.