Loading...
 
Skip to main content

Features / Usability


Desperate for solution

Hi!

Is there any way to introduce "php scripts" — either as a plug-in, module or "iframe" — into individual wiki pages?

Please bear with me and let me start with where I am coming from:

  • In one educational application, I wish to show the interrelationships among organisms, for example, animals — that belong to the same family, order, class, phylum, etc.
    The "wiki" concept is a good way of tapping the knowledge of people from all over the world to help develop such as site.

  • Pursuing collaborative projects, such as the aforementioned, is the key reason why I wish to use Tikiwiki mainly because of its "wiki" and its refined "permissions" system

  • In the aforementioned project, I want to use a lot of photos, in a "dynamic presentation format" to aid in showing the interrelationships among organisms.
    For several months (almost a year) now, I have been exploring how to introduce dynamic photos into a "wiki" page.

  • I have explored both the capabilities of the Dynamic Content System (DCS) and the Banner system — both have potentials but also limitations that I discussed in numerous posts here already.
    I found Coppermine GalleryQuestion and related focused multimedia galleries, to be more suited for this purpose than the "in-house" image gallery of Tikiwiki.

  • There is a way of exporting individual or sets of dynamic images from CoppermineQuestion to another external site, as shown in this Test php pageQuestion
    This is just one example, and there are other more sophisticated ways of dynamic presentations.

  • I like the one above, as demonstrated in Test php pageQuestion, because it can be fine-tuned, for example, to show the interrelationships among organisms — that belong to the same family, order, class, phylum, etc.
    It has been shown to work, as integrated component of other CMS, like Mambo, XOOP, SMF Forums, WordPress, and others. Unfortunately, these other softwares are not "wiki".

  • Going back to my original question, I wonder if there is a way to integrate the dynamic photos, e.g., as demo illustrated in the Test php pageQuestion into individual pages using either a plug-in, module or even "iframe" (if the latter is the only way).
    The ideal situations would be a format where it could be introduced as a modular (plugin) php script. I have tried introducing php scripts before but it does not work (as confirmed when I tried again last night) when added through the DCS, banner or a global "tpl" page file. The code was partially deleted in any of the aforementioned — so that it would be disabled (a security precaution???).


Any ideas would be appreciated. I am so desperate to make this work, I am even exploring the use of either Mambo or XOOP, if this is not feasible in Tikiwiki. Unfortunately, none of the other choices are "wiki" so that is also a very grave consideration.

Thanks.

cgc0202

Hi cgc0202!

If you activate html for your wiki pages, you can use iframes.

It sounds to me you could use a custom plugin. Look at exemples in lib/wiki-plugins/

M 😉



> Hi!
>
> Is there any way to introduce "php scripts" — either as a plug-in, module or "iframe" — into individual wiki pages?

You can try this Iframe pluginQuestion.

-- Gary


Thanks Gary and marclaporte,

I was afraid that you would suggest "iframe" — that would be a last option, if possible. Yes, marclaporte I had to enable html.

In the test exampleQuestion I gave to create a wiki page like that — with the text in there as wiki editable — would a wiki page reproducing the test exampleQuestion require at least three "iframes" to reproduce the three independent sections of random pages? That would mean creation of three outside "random photo pages" other than the text of the wiki page itself (a total of four different pages) — to recreate the test exampleQuestion as a wiki page in Tikiwiki?

cgc0202


> Hi!
>
> Is there any way to introduce "php scripts" — either as a plug-in, module or "iframe" — into individual wiki pages?

I'm not sure what criteria is applied to the images being displayed on the test page that you link to, if any. Are these simply random photos displayed with CPMFetch? If so, Tiki has a random image module that might work, to display a thumbnail at least. Something new might have to be made to display a full-size random image. Could you give more detail about how the images need to be selected — random, random from a specified gallery, what logic if any needs to be applied, etc.?

A plugin is probably the best way to do what you are describing, since it can have php code and would be the most convenient for the page author.

-- Gary - zukakakina.comQuestion

Hi Gary,

I agree with you, a plugin is the way to go. For example, I was able to insert a java script plugin of flickr into a demo site that I am experimenting with in Tikiwiki because there is already a javascript plug-in I thinki in Tikiwiki. However, even in that case, I was only able to insert the flickr random photo viewer, in a global manner.

I am sorry for the delay in responding. It was intended. I was trying to find a solution to the issue I raised here but has not found a suitable one yet.

In regard to further details, the photos in the Test php pageQuestion are based from Coppermine Photo Gallery website. If you click on any of the photos, it will revert back to the actual photo, but also lead you systematically to the related photos as well as to the systematized arrangement, classification or grouping of the photos in the entire gallery.

The photos are "randomized" but also in a systematic way. For example, it is possible non-only to access the entire Gallery, but also specific albums, by photographer, or all sorts of permutations. At least that is what the developer of the module claims — and from what I have read others have accomplished.

Correct me if I am mistaken, but to my knowledge, the image gallery of Tikiwiki has not reached that level yet — at least the time when I investigated it. The Tikiwiki image gallery also doe not have many features that are standard in many dedicated photogallery software. In the case of Coppermine, it is actually a multimedia gallery accepting various options — photos, movies, pdf, audio, etc.

We also discussed the features of randomization that is possible through the Tikiwiki, as demonstrated in the "banner" random presentation in your website.

As I stated previous, what would have been ideal is if this could be done with the DCS because that is the only way I know where photos could be inserted on a page-by-page basis. You stated that it could be done. Maybe it is indeed the case. But so far, with my trial-and-error, I have been unsuccessful to do that with Tikiwiki. A great part of it is that there are no instructions.

While I have no scripting background, with adequate show-and-tell type of instructions, or detailed manual, I usually can make something work. This should be evident with the "Test Page" I showed in the previous post was quite rudimentary — as it is mainly meant as a discussion demonstration that I had to show to the guy who developed the mod in order to clarify some features of the mod.

Unfortunately, I could not do that with many features of Tikiwiki because there is practically nothing to begin with — based from documents sections. Even the absence of instructions would not faze me if it is simple enough.

For example, I was able to hack the default layout of Joomla, also a CMs like Tikiwiki, last night within a few hours — mainly because the index.php, CSS, and other related files to understand the entire architecture of their page is quite simple. I have been trying to do that with Tikiwiki for ages and my customized webpage is still not good enough for my taste.

I get overwhelmed and lost with the complexity of what should be a simple thing like a Tikiwiki CSS. And, with each upgrade, it seems the size of Tikiwiki keeps getting larger and larger. It is now almost 50MB???

It is the slowest among all the softwares I have used. You would think that a photo-rich site would be slow but I never encountered that with Coppermine or other photogalleries I have tried so far. In contrast, no one in my family would view the photos that are loaded in our Tikiwiki based album because it would take several minutes for a single photo to appear — when using a dial up (common in poorer countries).

Please understand that I am not frustrated with the you or any of the core developers of Tikiwiki. In fact, I am amazed how much effort they are placing into the creation of Tikiwiki.

I am frustrated because there are many key features of Tikiwiki that I like. And, I have looked at many CMS that do not have the advances that Tikiwiki has achieved, for example in its permissions features — a very critical issue for me. Unfortunately, they remain inaccessible for me, for reasons I already outlined above.

A more important consideration is the increasing bulkiness of Tikiwiki — it has become the Microsoft of CMS. 😀

cgc0202

N.B.

I am rethinking the whole issue of php script itself in a tikiwiki environment because of the potential security risk. Maybe this could be minimized by locking a wiki page if it has php scripts but I am not sure how robust Tikiwiki security even in such locked setup.