GreyMatter: Logware
home

Greymatter
Weblog/Journal Software · Version 1.7.1 · Configuration Cookbook
Copyright ©2000-2003 The Greymatter Team · All Rights Reserved

About the Cookbook

Note that these are really configuration recipes, code changes are considered 'developer talk' and should be restricted to the forums.

Configuration Recipes

Problem: My comments page does not show a recently added comment/karma/comment total on mainpage.

Solution: Add these lines to your header template (or to whatever template will print them on all pages (or just your comment page). Place these lines somewhere withen your <head></head> tags:

	<meta http-equiv="expires" content="31 Dec 2000">
	<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
	<meta http-equiv="pragma" content="no-cache"> 

Discussion: More than likely, your browser is cacheing your page on you, although sometimes its a server doing the cacheing. Page cacheing is when you don't see the current version of the page because the computer trying to save time. The lines above make it clear that the page should not be cached. You can also force your browser to show the most current page (usually) by reloading the page will holding down the shift key.


Problem: I would like to get a better search engine rank.

Solution: Put the {{entrysubject}} field in the <title> header of the entry pages--that way each blog subject is listed on the page so the search engines can see it. It works well for Google--might be a good idea to include that as the default config in the new version.

Discussion: Although Google's page ranking algorithm is complex and works off of linking between pages, this is definatly a good way to give more information to your users and any search engine.


Problem: I don't want people to comment on my archived entries.

Solution: Two things.
1) Disable in configs and Rebuild site.
2) Alter Entry Archive templates so that {{entryform}} is not displayed. Note that removing the template does not prevent someone from maliciously submitting a comment (its tricky but possible).

Discussion: GreyMatter will check the configuration file to see if comments should be allowed, even if the form isn't present on the html page. That means that a hacker cannot try and post comments if you have them turned off. Note that if you turn off comments but do not rebuild your files you will still see the comment form displayed.


Problem: Why doesn't banning by ip seem to be very effective?

Solution: Try to see if you can find commonanlity in the various i.p.s and you may be able to ban a range of them. For example if you noticed that you have already banned ips 10.0.0.12 and 10.0.0.19 you could enter into the Banlist 10.0.0.1 and you would ban 10.0.0.10 - 19. However, you may be banning legitimate viewers of your site.

Additionally you may feel certain goegraphic regions do not need to see your site, all arguments aside, if you lookup the i.p.s and see the 90% of your spammers are coming from say, Indonesia, you could ban the range of i.p.s that correspond to that group. Try doing a google search for more information about i.p. and global goegraphic location.

Discussion: We are at the mercy of the webserver to tell us the i.p. of the request (through the REMOTE_HOST environment variable. However, the webserver can be 'fooled' and given a bad i.p. (google: ip spoofing) also those users that use dialup or non-premium dsl/cable usually do not have a static i.p. (companies love to charge for this convienence). This means that banning by ip is usually ineffective to prevent spammers, but can usually be usefull against nuisance users (most work places will be using static i.p.s) and if you notice a patter you could ban a range of i.p.s.

Note that banning by IP can block legitimate users from your site. Spammers can 'hijack' i.p. addresses by using i.p.s that they don't own, and if you block that address, you may end up blocking someone who isn't really a spammer.


Problem: I would like use someone else's GreyMatter 'theme'.

Solution: The look and feel of a GreyMatter site is controlled by the template settings, stored in the gm-templates.cgi file. If someone gives you their templates file, rename your own to save it, then upload the gm-templates.cgi file.

Discussion: Though it would be easier to be able to switch between themes, its not impossible to share them. A future enhancemnet for GreyMatter is to support multiple themes that can be more easily shared, installed, and switched between.


Problem: I would like to use other emoticons on my site.

Solution: All the emoticons are stored in the emoticons directory. A Google search for free emoticons will bring up quite a few sites. Once you have found some you like, simply upload the new ones your server and change the 'Emoticons' path in your configurations. NOTE that you will have to rename your new files to match the old ones, you might even have to resave the emoticons to a new file format.

Discussion: Emoticons are somewhat theme related and it might be easier if they were more closely related. However, it is not a simple task and thought is being given to this issue.