I'm back

Formula Plugin

Quite a while back, I make a wiki plugin for Latex. Unfortunately, it should not be used due to a big security hole. The code is to be found at:
You can also get it via cvs:
$ cvs -z3 -d:ext:ggeller@cvs.sourceforge.net:/cvsroot/tikiwiki co mods
There is more information available at PluginFormula

Debugging Tips
Copy to clipboard
0. Turn on error reporting using method a and/or method b 0.a. edit /etc/php.ini so that: output_buffering = On error_reporting = E_ALL display_errors = Off Then you will see the errors and warnings at the top of the Tiki page in your browser. 0.b. edit /etc/php.ini so that: log_errors = On error_log = /var/log/php/errors # For example Don't forget to make your error log file writable by apache. 1. Use doc/devtools/ggg-trace.php. It dumps debugging data to a file on the server. It is documented in the comments you will find in the file itself. NOTE: doc/devtools/ggg-trace.php is included in Tiki 1.9 and 1.10 if you get the code using cvs. It is not included in Tiki distributions. 2. Insert echo statements in the php. 2.a. Turn On output_buffering in php.ini with a line like to following: output_buffering = On 2.b. Put lines like echo "<!-- In tiki-index.php -->\n"; in your code. even better is: echo "<!-- ", __FILE__, " line: ", __LINE__, ' $feature_categories = ', $feature_categories, " -->\n"; 2.c. Load the Tiki page in your browser and look that the html with View Source (or save the html file.) You get to see something like: <!-- /www/tikiwiki/tiki-index.php line: 14 $feature_categories = n -->

Misc dumb stuff

Sometimes you will give a group permission to use a feature you have not enabled. Then it is confusing when they try to use the feature. An example:

if you give a group tiki_p_upload_picture (permission to upload a picture to a wiki page), then you need to make sure pictures are enabled in tiki-admin.php?page=wiki.

Notes on CVS

To get the source for the head branch:
export CVS_RSH=ssh
cvs -z3 -d:ext:ggeller@cvs.sourceforge.net:/cvsroot/tikiwiki co tikiwiki

If you are not ggeller, you will have to use your own sourceforge login, or use anonymous:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki login
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/tikiwiki co tikiwiki

To get the souce for another branch (for example):

cvs up -dP -r BRANCH-1-9 tiki_1.8to1.9.sql
Edit it, then commit the changes:
cvs commit -m "Add feature_homework item to tiki_prefenences table." tiki_1.8to1.9.sql
Then take your cvs sandbox back to the HEAD version:
cvs up -dPA

You might want to get the source for mods. From your root Tiki directory:

cvs co mods

A bunch of files will be added in the doc directory.

Point your browser to http://cvs.sourceforge.net/viewcvs.py/tikiwiki/ for a list of all the modules in the cvs server.

You can also check out an entire revision in a sandbox:

cvs -z3 -d:ext:ggeller@cvs.sourceforge.net:/cvsroot/tikiwiki co -r BRANCH-1-9 tikiwiki

More information on cvs is available from:

More secure quizzes with a custom client

I've been looking into the problem of preventing emailing and similar mischief during quiz sessions. I can make a custom CD that will boot a x86 computer to Linux and administer a test in a kiosk-like environment.

The operating system on the boot CD would be a customized version of busybox, or possibly Knoppix. The client application that would administer the test would be a customized version of the Mozilla browser. The questions and answers would be in moodle on a web sever as they are at present.

The system could optionally email a text representation of the student's test to both the teacher and the student.

I need to know if there is sufficient interest in this project for me to continue working on it.

Thanks, George

Wikis in the news


Tiki and Math Expressions

I got Math expressions mostly woring on teach.wikiplanet.com using Tex with some files form mods.tiki.org.

There may be easier or better ways to do the same thing. One possibility is http://www.eder.us/projects/simple_equation/

Better to not use Tiki Math expressions (based on Tex) in your public Tiki. It has a big security hole.

Recipe for Modifing Tiki's Database Structure

When you have changed tiki's database structure as in implementing a
feature like Homework, you need to update the sql file in CVS. This
is only done for the CVS version of Tiki, currently 1.9. The databases
for the earlier releases are frozen.

How to update the sql files for CVS:
edit db/tiki.sql so it matches your new database structure.

Copy to clipboard
cd db/convertscripts ./convertsqls.sh <your-site-name> cd ..

Then test the generated sql by installing a tiki from scratch.
Then commit tiki.sql and the output from convertsqls.sh to cvs.

This may be documented elsewhere; I haven't found the documentation,
though. I suspect that the developers who have been modifiy the
database structure have been passing this information around among

You also have to revise tiki_1.8to1.9.sql.

Recipe for Finding Out When The Last Login to a Tiki Occurred

If you have a tiki on a server and you are not the tiki admin, but you do have root privilages in mysql, you can use this technique:

$ mysql -uroot -p
mysql> use tiki
SELECT `login`, FROM_UNIXTIME(`lastLogin`) FROM users_users ORDER BY `lastLogin` \G

Recipe for Adding a Top Banner in the Moreneat Theme

You need make several changes to add a top banner to your tiki site.

Start by copying the moreneat style sheet:

Copy to clipboard
cd styles cp moreneat.css dslwiki.css

Edit your new css and comment out the part specifying height of 12px for the
top part. This is on line 69 in my file.

Make a new directory:

Copy to clipboard
mkdir dslwiki chmod 777 dslwiki chown apache:apache dslwiki

Put the gif for your banner in the newly created directory (my gif happens to be named DSLlogo.gif):

Copy to clipboard
cp DSLlogo.gif dslwiki chmod 666 dslwiki/DSLlogo.gif chown apache:apache dslwiki/DSLlogo.gif

Most themes also have associated templates stored in templates/styles

Copy to clipboard
cd ../templates/styles cp --preserve -R moreneat dslwiki

Now make a file call tiki-top_bar.tpl containing:

Copy to clipboard
{* $Header:$ *} {* templates/styles/dslwiki/tiki-top_bar.tpl start *} {* by George Geller *} {* 20040219 February 19, 2004 *} <!-- templates/styles/dslwiki/tiki-top_bar.tpl start --> <div> <table width="100%" bgcolor="#000000"> <tbody> <tr> <td> <left> <img src="styles/dslwiki/DSLlogo.gif" alt="Deep Space Banner"> </left> </td> </tr> </tbody> </table> </div> <!-- templates/styles/dslwiki/tiki-top_bar.tpl end -->

The first line is useful should you ever check the file into cvs. The start and end lines are useful if you want to look at the resulting html and figure out what came from which tpl file.

Recipe for rescuing a tiki when you have lost the admin password

Edit tiki-setup_base.php. At about line 96 add a line $user="admin". Run tikiwiki and change the admin password. When you are finished, change tiki-setup_base.php back.

Daniel Carr correctly pointed out that your should look for code that says:
$user = NULL;

He said he found the code a line 216, but I don't know what version of tiki-setup_base.php he was looking at.

mose has a better way using mysql:

INSERT INTO users_users(email,login,password,hash) VALUES ('','admin','admin',md5('adminadmin'));

February 13, 2004

I think tiki 1.8 is not finding templates for themes that have -p in their name! Copy moreneat.css to eagleforum-public.css and the template directory moreneat to eagleforum-public. It doesn't work. Copy the moreneat stuff to test.css. It works. Copy the moreneat stuff to test-test, it works. Copy the moreneat stuff to ef-p, it doesn't work. Copy the moreneat stuff to efp, it works.

This maybe due to some stupidity in tiki-modules.php.

February 7, 2004

The Wiki page history feature is messed up in CVS and in tw.o. It shows the current version and the next previous version as the same number. I used webmin, a totally independent means, to verify that those numbers are also in the database. The 1.8 release does not exibit this problem. Webmin shows that the versions are numbered correctly in the db for the 1.8 release.

Recipe for setting up multiple tikis

My recipe for setting up multiple tikis on a redhat Linux box where you have root privllages.

Image Gallery Thumbnails Don't Work with if You Store Images in mysql

In 1.8 RC2, if I store the images in mysql (like I was for serey), thumbnails are not generated. If I store the image in the file system, the thumbnails work just fine.

See bug 857675 in sourceforge.net/tracker.
See ImageGalleryDev


Keep an eye on SimpleStyleDev. It sounds like a good idea. simple.css
Try it out maybe?

Trouble uploading large files

If you try to upload a large file and get a message like:

Request entity too large!

The POST method does not allow the data transmitted, or the data volume exceeds the capacity limit.

If you think this is a server error, please contact the webmaster.
Error 413
Mon Nov 10 16:25:34 2003
Apache/2.0.47 (Red Hat Linux)

The solution is to increase the size limit for attached files.
In ))RedHat(( 8 and 9 this is enforced as the line in /etc/httpd/conf.d/php.conf
that reads:
))LimitRequestBody(( 524288
Increase the number. For files greater that 2M you may need to change some
other files including /etc/php.ini. I didn't test that.

See also InstallTikiTroubleShootingDoc

Turning on the shoutbox

Select the shoutbox checkbox in Admin>Features
Install a shoutbox module in Admin, Modules. In Parameters, specify tooltip=1 to prevent the date stamping.
Don't forget to assign shoutbox permission in Admin Groups.


See my other pages: RecipeMultTiki|, ShowImageTest, and http://doc.tiki.org/tiki-index.php?page=MultiTiki

http://tikitalk.com/ has some good simple user-oriented documentation.

http://doc.tiki.org/tiki-index.php?page=Rewrite+Rules is an example of the CODE plugin.

Where was that example of using the SPLIT syntax? I want to see that documented on doc.tiki.org.

Does anyone else suspect that a robot could do a lot of damage to a site? For example, it would delete all the images in the image galleries.

I'm working on a Homework feature for version 1.9.

Testing Perl Compatible Regular Expression

You can play with PCRE in a simple script. The script shows how to test to find an pcre that matches three dashes -, but not four dashes --.

Save the text below as a file, say test_pcre.php. Then php test_pcre.php on our command line.


error_reporting (E_ALL);

# $re = "/[^\-]---[^\-]|^---[^\-]|[^\-]---$|^---$/";
$re = "/(^|[^\-])---($|[^\-])/";

if (preg_match($re,"Three dashes --- in middle of text."))
     echo "matched --- at line 9 \n";

if (preg_match($re,"Four dashes ---- in middle of text."))
     echo "matched ----  at line 12 \n";

if (preg_match($re,"--- Three at start."))
     echo "matched --- at line 15 \n";

if (preg_match($re,"---- Four at start"))
     echo "matched ----  at line 18 \n";

if (preg_match($re,"Three at end. ---"))
     echo "matched --- at line 21 \n";

if (preg_match($re,"Four at end. ----"))
     echo "matched ----  at line 24 \n";

if (preg_match($re,"---"))
     echo "matched --- at line 27 \n";

if (preg_match($re,"----"))
     echo "matched ----  at line 30 \n";


In case you care, either re works.

No page name bug, issues, actually, not really bugs

Point your browser to:
And you get an error. I think you should get redirected to HomePage.

There's another thing in tiki-editpage.php where it says:

Copy to clipboard
// Get the page from the request var or default it to HomePage if(!isset($_REQUEST["page"]) || $_REQUEST["page"] == '') { $smarty->assign('msg',tra("No page indicated")); $smarty->display("error.tpl"); die; } else { $page = $_REQUEST["page"]; $smarty->assign_by_ref('page', $_REQUEST["page"]); }

This code doesn't actually do what the comment says.


Glossary has a few helpful definitions.

Tiki Grand Unified Learning Management System

I want to make Tiki into a system where educators can cooperatively develop curricula, see GULMS.

More Recipes


Page last modified on Friday 20 September 2019 16:55:39 GMT-0000

Upcoming Events

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