Embed PHP in a Mediawiki page - php

I have been googling this for the best part of yesterday without any joy, so I'm here for the last hope for an answer before I give up!
Can anyone tell me if it's possible to embed a .php page in a MediaWiki page?
I was hoping for an extension of some sort or some other type of solution - I did see a post her somewhere during my search that suggested using a hook to make an extension - but I have absolutely no idea where to even start!
Essentially the problem I'm trying to solve is that I have a .php script that spits out the results of a couple of array queries, and I would like to present this directly on a MediaWiki page. I'm not bothered how, in an inline frame I assume..
Has anyone tried anything this and made it work?
Any pointers would be very much appreciated.
Thanks

OK, as I suspected - as soon as I asked this question, I would find the answer!!
So here it is..
You need this extension:
https://www.mediawiki.org/wiki/Extension:IframePage
After a little fettling I was able to embed a PHP script inside an inline frame on any WikiMedia page I wanted. Genius!
Thanks to everyone who took a look, and I hope this will help someone else!
Cheers!

Related

Opencart product.tpl not updating

I really hope someone is able to help as I'm totally losing my mind on this one.
I'm using Opencart Version 2.0.1.0 and for the life of me I can't work out why changes I'm making to theme/xxx/template/product/product.tpl is not updating on the live site.
I haven't edited that template in a couple of weeks so not sure if the issue originated today or some time before. All other templates seem to be updating correctly when being edited... just not this one.
Does anyone have any idea why this might be so? I've deleted the cache in both system/cache and also vqmod/vqcache.
Any help is really appreciated. I've wasted the whole day trying to work this out :(
go in modifications and click refresh,after restart page
Put code in this file home2/faucetan/public_html/vqmod/vqcache/vq2system_storage_modification_catalog_view_theme_default_template_product_product.tpl
and also here product.tpl so you see result

Load Various Content into Div in Wordpress

I am wondering how to achieve this effect in Wordpress... http://www.wendys.com/
My client would like to have various clickable areas that will load content at the top of the page like on Wendys.com
What would be the most logical way to do this in Wordpress? I've done some research and it seems like ajax would be the best way to go, but I've never used it whatsoever. Can anyone walk me through this?
Thanks so much!
Here is a website that has instructions to get you going. The point of stacks is to help you in a project, but not to write the code for you. This will get you going in the right direction once you have it going and you have further problems come on back and I will be happy to help.
http://jquerytools.org/demos/overlay/external.html

PHP retrieve text value from custom tags with preg_match

Hi people I have searched the php website for a fast and simple solution, I searched also on google but nothing that I find seams to work.
preg_match("/\[video-code\](.*?)\[\/video-code\]/", the_content(), $match);
echo "result=".$match[1];
I am trying to get the text in between these to tags "[video-code]...[/video-code]"
Is there anybody who can help me out whit probably this small issue? I tried different things but it seams I am doing something wrong!?
Some help would be appreciated.
Thanks in advance.
'¬\[BeginingOfTag](.*?)\[/EndOfTag]¬is'
I have this pattern on use on a majority of my sites, I've used it in preg_match in the past but mostly in use for preg_replace.. So give it a shot and let me know if it works.

sifr not working in browsers, but can see it in dreamweaver preview

this is my first time trying to use sifr, so pleave be gentle and forget my noobness :).
ive been having some problems getting sifr to work... when finally it looked like it did (the dreamweaver preview saw the font change), no browser can see it...
http://www.creatica.ro/in2itivetest/index.html
this is the site im working on.
thank you in advance for helping.
One of your javascript includes is returned as a 404, meaning you're referring to a non-existing file (js-file) from your HTML document.
http://www.creatica.ro/Scripts/swfobject_modified.js is the path of the missing file. Would make sense for that to screw up something to do with flash I reckon :)
Check where the file actually is and move it or change the URL to reflect the correct path.
PS: Nice site by the way. Even though I found the top menu slightly annoying.. (the hover effect feels over the top and sluggish)

Autocomplete in .php framework doesn't seem to work any longer

I have a basic Autocomplete and Add to the database function and , for some reason, it has stopped working completely and I don't get any useful information from Firebug or otherwise what could be the problem.
I am guessing it is something simple, but don't know where to look.
This is the library where I am making the call:
http://github.com/allyforce/AF-upload/blob/master/Library/Target1.class.php
What browser are you debugging on? Firefox displays Ajax errors correctly, but no others do unless you apply this patch (which will be in the next release of QCubed):
http://trac.qcu.be/projects/qcubed/ticket/432
Someone found the right answer in terms of remvoing a QEvent.

Categories