Loading...
 
Skip to main content

Custom Share Module 0.1dev

Features / Usability

Features / Usability


Re: Re: embedding html pages?

posts: 78 India

1.8.5 here.

I placed wikiplugin_snarf.php in lib/wiki-plugins, put the following in a wiki page:

Copy to clipboard
{SNARF(url=>http://www.google.com)}{SNARF}


and previewed/saved, but get the following:

Copy to clipboard
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Only one top level element is allowed in an XML document. Error processing resource 'http://sridhark-hyd/tiki-editpage.php'... Notice: Undefined variable: snarf in c:\easyphp1-7\www\lib\wiki-plugins\wikiplugin_snarf.php&l...


Any ideas?

> > Hi
> > i am trying to run another html+java page link within wiki, for example i want yahoo.com to show up in wiki page,
> >
> > is it possible? i am trying to run a page with java in wiki. just to make sure, i am not trying to render html in wiki, i am trying to bring another html page outside of my web server into wiki page without moving into wiki syntax
> >
> > thnx
> >
>
> You can use the pluginSnarf for that purpose. I believe its currently only in the 1.9 branch, but it should be easy enough just to copy its file from lib/wiki-plugins into a 1.8 stable release
>
> Damian
> http://tikihost.net
> Image

posts: 47 France

Hi siridhar !

When I try the same as you,
 Plugin disabled
Plugin snarf cannot be executed.


Here I get the same:
test snarf
302 Moved
The document has moved
here. <---- that is a link to google.fr (not .com 😊

If y try http://toggg.com instead of google, I obtain absolutely nothing and no error report, same on tw.o :

 Plugin disabled
Plugin snarf cannot be executed.

If I use a full URL as http://www.toggg.com/tiki/tiki-index.php:
 Plugin disabled
Plugin snarf cannot be executed.


But by me it's segfaulting Apache ! No answer then 😊

That needs to be investigate further 😊
It's using CURL so it's certainly platform dependant.
CURL support enabled
CURL Information libcurl/7.11.1 OpenSSL/0.9.7a ipv6 zlib/1.2.1.2
(from phpinfo)

To recall, if I right understood, pluginSnarf should show the page but as text only. (no html)

Tikily yours
--
bertrand Gugger
http://toggg.com/