|
From: Steve W. <sw...@wc...> - 2000-06-21 20:31:13
|
On Wed, 21 Jun 2000, Arno Hollosi wrote: > Where would ISBN numbers link to? > Or are they just pagenames as well? Well, that is a configuration issue for the WikiMaster. At c2.com they are configured to link to Amazon because they have some kind of association thing going (I forget what those programs are called... if you buy a book from Amazon by following the link from c2.com, c2.com gets money). We'd just have to add a variable to wiki_config.php3 like $BookSeller and that would be the URL of the company you partner with. (It can be fatbrain.com if you have issues with Amazon :-) > I guess we can postpone this renaming until 1.2 > (ok, I'm a lazy bastard who doesn't want to change his apache config > just yet) No rush, no. But eventually. Someday all PHP installations will be >=4 and we don't want to look out of date :-) > Btw, I've just renamed pageviewer.php3 as wiki_pageinfo.php3. > It now is called from index.php3 and uses template 'MESSAGE'. > See [more info] link at the bottom of each page :o) I just caught that in the cvsweb page. Excellent. I like the idea of the info link. > I'm going to have a look at mySQL now. I was thinking ... there are at least two opportunities in wiki_pgsql.php3 to write little functions that prepare the data. This might be better than copy/paste. For example, before an INSERT or UPDATE statement is composed, some fields need AddSlashes() and some need serialize(), some need to be 'quoted' and some don't (columns that are integers). This could be moved into a function in wiki_stdlib.php3 (for example) and could be shared by the different databases; alternately they could be written into functions and left in wiki_pgsql.php3, and the functions could be copy/pasted by someone porting to mSQL. (I think I might prefer that solution). Let me know what you think. sw ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |