How to proxy part of a PHP website from GitHub? - php

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.

Related

Developer Transitioning to Drupal/Wordpress

For the past 3 years I have been a PHP developer writing and creating websites in a "Vanilla" fashion (no CMS). When I created or altered a site I would write my own html, php, css and js files. I just started a job this week as a web developer at a small company that exclusively uses Drupal7/8 and Wordpress.
I was assigned, what in my mind is a simple task, of creating a landing page with a carousel and a form on it. In my past vanilla life this would take me all of two hours to have it live. This site however was created in Drupal 7 by a developer no longer at the company.
I have been through both Lynda.com courses on Drupal 7&8 development and have a good grasp on the concepts, but still don't know where to even begin.
Is there anyone out there who has come from a similar background of web development outside of a CMS and has since moved into it that can give me some advice on where to begin?
Thanks!
I followed the step in this video:
https://www.youtube.com/watch?v=WsLA7n9fknc
and here was the output I got on the page:
here
You should try to install and use drupal contrib modules to create the carousel and the form, for example:
Create a view with Views Slideshow module, you could start following this example:
https://www.drupal.org/docs/7/modules/views-slideshow/creating-a-slideshow
Use the webform module to create a simple form, please see the following tutorial: https://www.ostraining.com/blog/drupal/webform-module

Is firefox can trace the file and its location

I'm working on a project on localhost. Its kind of a company management application based on some php framework. Basically I'm a front-end developer and I've to fix some pages, their alignments and color scheme. I'm using firefox. Every single time when I've to change the settings of any page I've to go the php dev who built the app and they located file for me in the project, obviously they knew the file structure of the whole project. So is there any possible way, tool, addon or plugin that can identify the specific file (which is currently open in my browser) for me? so that I can reach the file on localhost directly and edit it right away rather than bothering the php developers all the time. Firefox inspect element can identify the css files though. Any help would be appreciated. Thanks

Mediawiki integrating with existing site

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).

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...

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

Categories