Installing and running geeklog

I needed to change the wasstraat-site because I was the only one who could change the contents so I decided to use geeklog geeklog to do the job. First I had to do some changes on the php configuration:
php changes for wasstraat3

open_basedir /var/www/wim/:/usr/share
safe_mode_include_dir /usr/local

and created a configuration file in /var/www/wim/php/config.php. The sources are in /var/www/wim.
creating my own layout
I based the original version of the site on the prosimii design I found on the open webdesign page and wanted to use it again. The design can also be found here.
I started by copying the professional design and changing the header.thml and footer.thtml. To get the correct font in the tables I added this to my css:

table {
font: inherit;

I wanted the menuitems autogenerated but I didn’t found how I had to do it. I asked it on the forum but I got a helping answer on the #geeklog by tokyoahead. I added this code to CUSTOM_menuEntries in lib-custom.php:

$sql = "SELECT * FROM ".$_TABLES['topics'].COM_getPermSQL(); # get all allowed topics

if ($_CONF['sortmethod']=='alpha') { # sort topics according to config.php setting
$sql.=' ORDER BY topic ASC;';
} else {
$sql.=' ORDER BY sortnum;';

$result = DB_query($sql);

for($i=0; $i $_CONF['site_url'].'/?topic='.$B[0], # link
'label' => $B[1]);

And don’t forget to add $_TABLES to the globals. After modifying config.php I could use my own menuoptions by using {menu_elements} in my header.thtml. I modified all the menu* files to use a pipe as separator.
More on my local wiki
the geeklog site

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s