Loading...
 
Features / Usability

Features / Usability


Newbie plugin maker needs URL help

posts: 4656 Japan

I don't have much php/Smarty experience but decided to try my hand at a few wiki plugins, following the examples of the current plugins. I made an IFRAME plugin that works fine for a normal source URL (for the page that opens in the frame), but not for Tiki URLs (or any URLs containing '='). With a URL like tiki-index.php?page=Frame_content I get a Tiki error page in the frame saying, 'Sorry, "" has not been created.' The URL gets truncated after the equal sign. Can anybody help this plugin beginner with a tip on how to get that kind of URL to be passed on completely? smile TIA.

Also, I just finished an image popup plugin (click on a small image and a pop-up window opens with a larger image) which works fine except for the same problem: any URL containing an equal sign gets cut off after the equal sign, so for now the plugin only works for images with normal URLs (no equal signs).

Any clues on how to solve this would be greatly appreciated.

-- Gary

posts: 78 India

I don't know the answer but am just wondering that there's a better way to have the wiki page content display on another page rather than using a iframe for the same.

Have a look @ http://tikimods.com/tiki-index.php?page=PageOnlyDisplay

> I don't have much php/Smarty experience but decided to try my hand at a few wiki plugins, following the examples of the current plugins. I made an IFRAME plugin that works fine for a normal source URL (for the page that opens in the frame), but not for Tiki URLs (or any URLs containing '='). With a URL like tiki-index.php?page=Frame_content I get a Tiki error page in the frame saying, 'Sorry, "" has not been created.' The URL gets truncated after the equal sign. Can anybody help this plugin beginner with a tip on how to get that kind of URL to be passed on completely? smile TIA.
>
> Also, I just finished an image popup plugin (click on a small image and a pop-up window opens with a larger image) which works fine except for the same problem: any URL containing an equal sign gets cut off after the equal sign, so for now the plugin only works for images with normal URLs (no equal signs).
>
> Any clues on how to solve this would be greatly appreciated.
>
> — Gary
>

posts: 4656 Japan

> I don't know the answer but am just wondering that there's a better way to have the wiki page content display on another page rather than using a iframe for the same.
>
> Have a look @ http://tikimods.com/tiki-index.php?page=PageOnlyDisplay

Actually that method also uses an iframe, as I understand it. I've been doing something similar at my site for some time now. We have one page, for example, that has a small window where a second page is displayed, and the second page is only the wikitext portion, only the middle-center of a regular Tiki page, and without the wiki icons, etc. (see the "Updates" window in the center of LaurensWikiHome — sorry, some of the text is Japanese). Our method seems to be essentially the same as the one at Tikimods. Our "trimmed" page looks like this.

But so far I've had to enable HTML for that page because I needed to use normal iframe code. I've been wanting a wiki plugin for the job since we first started putting pages like this together, and I finally got around to trying. My iframe plugin works for conventional urls, but gets hung up on the equal sign in Tiki-style urls.

-- Gary

posts: 157 United States

> Actually that method also uses an iframe, as I understand it.

NO, the method at TikiMODS.com/PageOnlyDisplay doesn't use any IFRAMEs. The example on that page shows how to display only the wiki page content inside a module. Only the MODULE needs the iframe.

> But so far I've had to enable HTML for that page because I needed to use normal iframe code. I've been wanting a wiki plugin for the job since we first started putting pages like this together, and I finally got around to trying. My iframe plugin works for conventional urls, but gets hung up on the equal sign in Tiki-style urls.

The IFRAME Plugin on TikiMODS.com works with the equal sign because the source URL is entered as the DATA for the Plugin when you put it on a wiki page. In other words, you put the URL you want to be displayed in the iframe IN BETWEEN THE TAGS of the plugin, instead of as a parameter inside the brackets. For example:

{IFRAME(width=100%, height=400, align=center, marginwidth=0, marginheight=0, frameborder=0, scrolling=auto)}http://url-to-show.com{IFRAME}


posts: 4656 Japan

> > Actually that method also uses an iframe, as I understand it.
>
> NO, the method at TikiMODS.com/PageOnlyDisplay doesn't use any IFRAMEs. The example on that page shows how to display only the wiki page content inside a module. Only the MODULE needs the iframe.

I see. I didn't read the page very carefully; I'll have another look.


> The IFRAME Plugin on TikiMODS.com works with the equal sign because the source URL is entered as the DATA for the Plugin when you put it on a wiki page. In other words, you put the URL you want to be displayed in the iframe IN BETWEEN THE TAGS of the plugin, instead of as a parameter inside the brackets.

That gets around the = symbol in the parameters problem for an iframe, but I still have problems with = symbols in URLs in my popup window plugin. I haven't looked again at it, but it doesn't seem possible to put the URLs of both the thumbnail image and the full-size image as the data component. But I like tinkering. It seems like there must be a way to handle these characters even within the parameters, but I'm pretty clueless in that area. Anyway, thanks for the info.

-- Gary


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting