Loading...
 
Features / Usability

Features / Usability


embedding html pages?

posts: 10

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

posts: 2881 United Kingdom

> 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

posts: 10

i manage to that thing work and call the page, but the java pp in that page does nto work, si it related to tiki or java? what would be a work out?

thnx

posts: 10

we need simpler explanation for snarf plugin, i understand nothing from the parameters, and i gave up on this one, i am not sure but seems like snarf cannot render anything except simple html.i just wasted 1 hour on it, and i could not move an inch

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/


posts: 10

are you fast or what? thnx man,
i have 1.8.5 here, so i am downloading and copying snarf thing onto smae folder on my web server

anything else needed? sorry i am newbiesh in this stuff,


posts: 45 United Kingdom

Hi,

I want to do a similar thing with a piece of code picked up from statcounter.com. Is the Snarf the only way to go?

Maarten