Blog: Tikiwiki architecture
Description: General comments about Tikiwiki: How to do it! How the code can be improved!
Created by sylvie on 02/08/08 13:05 EST
Last modified 06/22/09 13:49 EDT
(28 posts | 6680 visits | Activity=2.00)
Find:
By sylvie on 06/22/09 13:49 EDT

Terms and conditions in a tracker

You could need to show up a terms and conditiona page for a regidtration tracker.
There is 2 ways to display the terms and conditions by using a static text field with a wiki parse description
You can add in the description
[http://mysite.com/tiki-print.php?page=Terms+and+Conditions|See our terms and conditions|shadowbox;title=Terms and Conditions;]

{IFRAME(src="tiki-print.php?page=Terms+and+Conditions" width="600px" height="300px") /}

By sylvie on 05/21/09 07:10 EDT

How to know which objects have a special permission for a group

If you want to know on which wiki page or which file gallery an Anonymous has special perm
SELECT pageName FROM tiki_pages
WHERE md5( concat( 'wiki page', pageName ) ) in (select objectid from users_objectpermissions where groupName='Anonymous' and objectType='wiki page');
SELECT name, galleryId FROM tiki_file_galleries
WHERE md5( concat( 'file gallery', galleryId ) ) in (select objectid from users_objectpermissions where groupName='Anonymous' and objectType='file gallery');


By sylvie on 05/11/09 07:51 EDT

Lite css with width fixed size

Just put a margin-left and margin-right top auto and a width ok x px on the #main or #main-shadow description
By sylvie on 05/08/09 16:05 EDT

Use 3 minicalendars in a calendar view

The new module CALENDAR_NEW can be used like this
{wiki}{literal}
   {MODULE(module=calendar_new, viewmode=month, notitle=y) /}
   {MODULE(module=calendar_new, viewmode=month, month_delta=+1, notitle=y) /}
   {MODULE(module=calendar_new, viewmode=month, month_delta=+2, notitle=y) /}
{/literal}{/wiki}

Be carefull to put this at the end of tiki-calendar.tpl and to move this div up with absolute positionning (because otherwise your centtral calendar will be the last month not the first

A live example
http://fhsj.cgcom.com/tiki-calendar.php?viewmode=month&viewlist=list
By sylvie on 05/08/09 15:57 EDT

Search failed on tw.org

I do not know why, but today the search fails on tikiwiki.org with an sql error.
The problem was that the fulltext index was split into to; ft with pageName and data and description with description. In order to be able to do a fullsearch on the 3 columns, you ned to have a fulltext index on these 3 columns.
drop index ft on tiki_pages;drop index description on tiki_pages;create fulltext index ft on tiki_pages (pageName,description,data);

By sylvie on 03/24/09 09:58 EDT

Change the diaporama delay in tiki_browse_image.php

Use an url with delay=1000, the default is 3000
Or do to templates/tiki-browse_image.tpl and change the 3000 to your delay
By sylvie on 10/21/08 16:39 EDT

Search for tikwiki

Search in tikiwiki are not the best
I found an article about lucene
http://www.phpriot.com/articles/zend-search-lucene
http://framework.zend.com/manual/en/zend.search.lucene.html
I will give a try
By sylvie on 10/16/08 07:54 EDT

A pdf file is download in the window and displays strange characters

Sometimes, the mime type of a file is not well set. For instance a pdf file that can be application/pdf (but also application/download or application/force-download or application/x-download or...) has been recognized by the server as text/html. Sorry I do not know yet why - but it happens. Such file will open directly in the browser. Change the mime type in the database and it will popup again
By sylvie on 10/08/08 14:10 EDT

Tikiwiki script outside tikiwiki root

If you want to write a php script using tikiwiki
define('TIKI_PATH', '/var/www/localhost/htdocs/tiki');
chdir(TIKI_PATH);
include('tiki-setup.php');

By sylvie on 09/28/08 17:21 EDT

Why wikiplugin must return the string with np

If for instance you have a wikiplugin that returns a string 11:48PM, this will be interpreted as a link. So it is important to return the plugin data surrounded with ~np~ .... ~/np~ . This wiki tags tells tikiwiki not to do further parsing on the string.
Page: 1/3 Next Page Last Page
1 2 3