Mediawiki integrating with existing site - php

Hi to all i'm having the site which is fully having the video contents in it. What i want to do is i have to integrate mediawiki pages with my site. I have downloaded the mediawiki package and i have installed in in my system.Now i want to display the video files which is from my site using my own player in site. But the site functionalities should be like the mediawiki like. That means if any users access my page and edit it means it should be saved in media wiki history. Is that possible to use the media wiki functionalities in our site.Please suggest me any solutions.

You can do this with the MediaWiki API.
But it's much easier and probably also a lot cleaner to stick with including rendered pages from MediaWiki and sending people who want to edit to MediaWiki. When including rendered pages it's good to be aware of duplicate content issues (SEO).

Related

How to proxy part of a PHP website from GitHub?

We have a website containing a page http://www.openehr.org/downloads/modellingtools whose link "Download and Help Pages" in the first table row just goes to more PHP content - the documentation of a tool, in the same visual style as the main website, including top panel, menu and bottom menu.
Ideally this sub-tree of pages for the tool would live in the GitHub repo for that tool (rather than being directly part of the website), and the main website would proxy the content from GitHub - that way we would achieve two goals:
tool doc is maintained by those who work on the tool
but it is visually integrated into the central website.
I've messed around with various Apache proxy & rewrite rules on the main site server to do this, but no luck so far. I can't be the only one who wants to do this, so hopefully there is a known strategy out there.

Existing Joomla website - How to implement Mobile Theme + Functionality?

I need to create a mobile website for a Joomla website that is already live and running (has been for a while). I have no experience in using Joomla, so hence why I am asking you Guru's on here! I need to be able to display news and their categories, and possibly a few sub pages of cut down text from the full site.
I have found a few Joomla Extensions which hint at redirecting users to a mobile theme.
See:
Mobile Joomla!
Architect for Joomla
Do these include a mobile theme with them? Or do you have to manually create a separate theme for these extensions to identify and use when a mobile device or tablet is visiting the website? If so - can any of you direct me to the best possible route of implementing a "simple" mobile theme based on the current website? And note any common pitfalls + issues.
The website in question is here.
I look forward to your answers - thanks!
Due to the fact that a mobile version (if optimized for mobile devices) looks quite different to a normal website, I would write my own code which accesses the joomla database. For example, you create an own subdomain (no need to check "show mobile version" on every page) and there you can create a very lean and fast php/html5 version, for example. The php accesses the joomla database and gets all the news you need. Writing your own code has some advantages (in imho):
You can create a lean and dedicated version specific for your needs -> less code which handles generic things is needed
You can use some sophisticated gui-tools like iScroll to create a nice gui
I don't think that there's a great community for mobile joomla websites...

PHP-based CMS that can use static files as pages and include a forum and blog?

I am currently working on a project documentation site for an OSS PHP project. Presently all of the docs are written in Markdown and stored as separate files.
I would really like to keep the core documentation as static files within the project so that they can be downloaded and used as well as read on my website. But on the website, I'd like to render those pages from within a CMS.
In addition to presenting the code docs, I also want to provide a forum for discussion and a blog.
Wordpress is what I have experience with, but is there a better system for what I am trying to accomplish specifically?
For Blog and CMS I would suggest stick with Wordpress since you already have experience on it. And as far as Forum is concerned I would suggest SimplePress forum. I have been using it on my Wordpress installation and found it really good. You can see live forum on the link above to see how it looks in real world.
Also Wordpress has several nice plugins like Download Manager that will give you ability to manage your downloads/files.
Can't confirm if wp is the best, but it's certainly good enough.
To include your docs, you'll have to write a plugin, not likely that you will find one existing that does exactly what you want.
For forum, you should find a plugin. Google for posts similar to this to choose a best match.
Firstly Wordpress isn't a framework.
I believe CakePHP has the functionality to load hardcoded pages when they're placed in the webroot folder of the app. I'm unsure as to how they're loaded in regards to routing/templating however.

integratable php blog API for existing site?

I'm inheriting a php project of a complete website. It's currently static; the owner just wants a blog on the front page to keep things fresh. Is there a mature PHP blog software out there that I can make a few calls to and have a blog up and running on their front page, without having to convert their entire existing site to a blog or CMS software?
That's one of the use cases for Serendipity. It has a configuration option specifically for that. So unlike Wordpress you don't need to hack it. It's not as featureful and a somewhat bloated package, but has a far better security track record.
http://www.s9y.org/123.html <- embedding howto

Joomla to Static HTML website

I have a Hindi magazine website hosted on Joomla. Though helpful from publishing point of view the site was a maintenance nightmare. Joomla is so much susceptible to hacker attacks. My host will often shut down my site due to bots attacking my website. Recently I relaunched the site as a new Wordpress based site on a different name. The Joomla based website would therefore never be updated anymore. However, I do want to maintain the old content. I have used PHP but hardly am a power user.
I want to convert the files as plain HTML. I created a mirror of the website using HTTrack. But thanks to the fact that Joomla had variety of URLs for the same page (if you used a SEF URL plugin you would understand) the mirror is full of redundant content. Moreover I have repetitive HTML content (for header,footer,menu etc) in each page.
My questions are:
Which is a better option, create a static HTML site or PHP4.x pages (with Unicode content and having include PHP fragments for repetitive content)?
If latter is better should I use template system like Smarty? I am worried about caching since the content will hardly be updated I want caches to last forever.
Thanks for the help.
If the content is not going to change frequently I recommend using HTML files. They are static and hence faster.
However, if you are going to be updating content frequently, then you can either upgrade to the latest version of any popular CMS preferably joomla or drupal. I cite these two because they are actively developed and you can get a lot of support for them on the internet. Be sure to follow their security guide for hardening your installation.
If I were you I'd move everything over to WordPress since you have started using this. This way you will be maintaining a single website application keeping things better manageable in the long run.
You can copy the data out of Joomla using the Joomla administration interface. Or maybe even quicker using a database tool like MySQL Tools or Navicat which has a lot of export options.
Copying the HTML from Joomla using tools like HTTrack or TelePort Pro will result in lots of duplicate code and pages like you state.
Maintaining an extra PHP site just for the old content will be as much effort as getting everything into WordPress.
The "Static Content" project at: https://github.com/juliopontes/staticcontent does exactly what you are after although it looks like it may need to be updated for Joomla 3.5.

Categories