From geeklog-users-admin at lists.geeklog.net Thu May 1 22:45:16 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Fri, 2 May 2003 09:45:16 +0700 Subject: [geeklog-users] Template error Message-ID: <007701c31054$deced4e0$2201400a@int.cbn.net.id> Hi All... I got a problem after installing Geeklog into my site. When installing has finished, I cannot access the URL http://mysite/admin/install/success.php And when I try to access my site, I got an error message like this: Template Error: set_root: /home/sloki/user/xxxxxx/sites/mysite/www/yyyyy//home/sloki/user/xxxxxx/sites/mysite/www/home/layout/XSilver/ is not a directory. Halted. Anybody can help me to solve this problem? thanks a lot :) Jonru From geeklog-users-admin at lists.geeklog.net Sun May 11 16:34:35 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Sun, 11 May 2003 13:34:35 -0700 Subject: [geeklog-users] Hello and first question... In-Reply-To: <20030511195700.16860.65477.Mailman@internal.iowaoutdoors.org> Message-ID: <000101c317fc$bc836130$4402a8c0@home> I have GL 1.3.6 installed on my first site. It was very hard installation, basically because I didn't understand the terminology of the documentation. Every time an abbreviation comes up I had to go off somewhere to try to understand what was being said... Even the concept of "root" was tricky... So, when I ask questions, you can probably assume that the words I use may not be the right terms... anyway: I have a second site that I want to install a GL on. I don't want GL to be the automatic page that gets loaded when my url is typed. I would like the normal index.htm to load (not index.php I think), and I would have GL loaded as a choice for interaction. How should I do that? Thanks DanMc From geeklog-users-admin at lists.geeklog.net Sun May 11 17:42:24 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Sun, 11 May 2003 23:42:24 +0200 Subject: [geeklog-users] Hello and first question... In-Reply-To: <000101c317fc$bc836130$4402a8c0@home> References: <000101c317fc$bc836130$4402a8c0@home> Message-ID: <20030511214224.9771@smtp.haun-online.de> Dan, first of all, please subscribe to the geeklog-users mailing list. We had to close the list for non-subscribers because of the increasing amount of spam (I approved your post manually). >I have a second site that I want to install a GL on. I don't want GL to >be the automatic page that gets loaded when my url is typed. I would >like the normal index.htm to load (not index.php I think), and I would >have GL loaded as a choice for interaction. How should I do that? If your webserver is set up such that it searches for index.html first, you could simply put it into the same directory as Geeklog. Since all of Geeklog's files end in .php, there shouldn't be any name conflicts. Another option is to install Geeklog in a subdirectory, e.g. you could have http://example.com/index.html http://example.com/geeklog/index.php For this, you will need to separate Geeklog's public_html directory from the rest and put the contents of public_html into the above "geeklog" directory (or whatever you decide to call it) and the other Geeklog files outside of your document root (so that they can not be accessed via a URL). Then you only need to set up $_CONF['path'] and $_CONF['path_html'] to point to the proper places (the latter should be an absolute path in this case). So, it's not really that different from a normal install - only that some files go into their own subdirectory and that you need to adjust one additional path ($_CONF['path_html']). Hope that helps. bye, Dirk -- http://www.haun-online.de/ http://www.tinyweb.de/ From geeklog-users-admin at lists.geeklog.net Mon May 12 21:37:00 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 12 May 2003 21:37:00 -0400 Subject: [geeklog-users] Email Question Message-ID: <3EC04C3C.2020909@knightswood.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I just set up a geeklog site tonight, and am having a small difficulty. When I try to sign up as a new user, it says that an email was sent, but it never arrives in the mailbox. I check the logs on the system, and I get the following error message: May 12 21:14:31 lancelot sendmail[19308]: NOQUEUE: SYSERR(apache): can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=209): Permission denied Email seems to be working just fine on the system, or you wouldn't be reading this message :-) This is on a Gentoo 1.4 system. I have geeklog set up as it's own user, with it's own public_html directory, and a virtual host for my site set up to point to that directory. Everything with the site seems to be working fine (can log in as Admin, read the pages just fine, etc), except for new user emails. Any ideas? Thanks for any help! - -Steven - -- ~ .+-+-+-+-+-+-+-+-+-+-+-+, G N U / L I N U X ~ + Steven R. Hatfield | "The Key To Software Freedom" ~ | `-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- ~ + Software/Database/Web Developer \ ~ | GNU/Linux User #104403 + ~ + Email: steven at knightswood.net / ~ | GPG Key: http://www.knightswood.net/steven.asc + ~ + ,__. ,-. ,-+-___+-+-+-/ ~ | Question authority. |+-+ \-+-/ \+-+/ ~ '+-+-+-+-+-+-+-+-+-+-+-+- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+wEw5bXgaNGzI8YIRAk4BAJ9RGF1v7x++Rv04eddgP9qQvjji6QCfRaPZ akxpWnzYVC+vGYAG40aHlg0= =pH34 -----END PGP SIGNATURE----- From geeklog-users-admin at lists.geeklog.net Mon May 12 23:27:18 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 12 May 2003 23:27:18 -0400 Subject: [geeklog-users] db backup, how to use it? Message-ID: <001701c318ff$947664e0$6601a8c0@Shucksy> I know this isn't a gl specific question, but I hope some one will take a minute to help me out here. I did a db backup through gl db backup. I have myphpadmin, what do i do with the backup to restore? Thanks for your time... Scroff -------------- next part -------------- An HTML attachment was scrubbed... URL: From geeklog-users-admin at lists.geeklog.net Tue May 13 03:40:07 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Tue, 13 May 2003 09:40:07 +0200 Subject: [geeklog-users] db backup, how to use it? In-Reply-To: <001701c318ff$947664e0$6601a8c0@Shucksy> References: <001701c318ff$947664e0$6601a8c0@Shucksy> Message-ID: <20030513074007.15843@smtp.haun-online.de> Scroff wrote: >I did a db backup through gl db backup. I >have myphpadmin, what do i do with the backup to restore? Create a new database (if you haven't already done so) and select it. On recent versions of phpMyAdmin, you will see a tab labelled "SQL" - select that. There's a browse button there that lets you select your backup file (to upload it to your webserver, so you may have to download it first). Click on "Go" and it should import it. However, you may run into a timeout when you have a huge database. In that case, doing it from the command line (if you have SSH or telnet access) would be better: mysql -u[username] -p -D [database_name] < backup_file.sql replacing [username] and [database_name] with the obvious information ... bye, Dirk -- http://www.haun-online.de/ http://www.macosx-faq.de/ From geeklog-users-admin at lists.geeklog.net Mon May 19 13:20:15 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 19 May 2003 10:20:15 -0700 Subject: [geeklog-users] Parse errors/permissions errors In-Reply-To: <3EC04C3C.2020909@knightswood.net> Message-ID: <002901c31e2a$ea0260f0$4402a8c0@home> On install, then running the check.php; I get several parse errors which I read is usually a problem with how the files are decompressed. I use winXP. I do not have telnet access at my site (linux) . I decompressed the archive with winrar. That's all I have. Any other suggestions for getting this file complete? What does "LB" stand for in the following errors listing from check.php (line break? Should this concern me?) I have changed and checked permissions on the files in question, have changed them to 777 and retried many times. Parse error: parse error in /home/cafelasa/public_html/lib-common.php on line 3794 LBLBLBLBLBLB Testing your Geeklog installation ... LB Testing logs directory ... LBCould not open error.log and access.log for writing. Please check that you have set the logs directory and the files error.log and access.log in that directory to chmod 775.LB Warning: stat failed for (errno=2 - No such file or directory) in /home/cafelasa/public_html/admin/install/check.php on line 74 Warning: stat failed for error.log (errno=2 - No such file or directory) in /home/cafelasa/public_html/admin/install/check.php on line 75 Warning: stat failed for access.log (errno=2 - No such file or directory) in /home/cafelasa/public_html/admin/install/check.php on line 76 LB Current permissions for logs: 0 LB Current permissions for error.log: 0 LB Current permissions for access.log: 0 LB LB Testing backend directory /backend/ ... LB - - - - - - - - - - - - Info from install.php : This is what the install says concerning my home dir (if that helps) - Installation Options Installation Type: New Database Upgrade Database Path to Geeklog: do not include trailing "/" or "\". Hint: The complete path to this file is /home/cafelasa/public_html/admin/install/install.php and it appears your Path to Geeklog is /home/cafelasa From geeklog-users-admin at lists.geeklog.net Tue May 20 13:32:38 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Tue, 20 May 2003 10:32:38 -0700 Subject: [geeklog-users] ANONYMOUS Message-ID: I have been informed that I cannot have anonymous users able to post or read anything on the site. How can I make my geeklog site block anonymous users from acessing the site? John Woods Configuration Management SPAWAR Systems Center 619-524-3555 From geeklog-users-admin at lists.geeklog.net Tue May 20 17:57:19 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Tue, 20 May 2003 23:57:19 +0200 Subject: [geeklog-users] ANONYMOUS In-Reply-To: References: Message-ID: <20030520215719.11173@smtp.haun-online.de> John Woods wrote: >I have been informed that I cannot have anonymous users able to post or >read anything on the site. How can I make my geeklog site block anonymous >users from acessing the site? Set $_CONF['loginrequired'] = 1; in config.php and uncheck the "anonymous" checkbox in the permissions of all your topics (after replacing the index.php with the updated one from the Downloads section on www.geeklog.net). You may also want to do the same for some of the blocks, links, events, etc. bye, Dirk P.S. To post to this list, please subscribe to it (a simple measure to prevent spam on the list). -- http://www.haun-online.de/ http://geeklog.info/ From geeklog-users-admin at lists.geeklog.net Wed May 21 00:47:16 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 00:47:16 -0400 Subject: [geeklog-users] Adding Blocks to article.php In-Reply-To: <20030520215719.11173@smtp.haun-online.de> Message-ID: I wish to add a custom block to article.php. However, I'm not really good at coding and I was looking for a little help as to where I would put the code, and how could I call it from lib-common.php? Thanks for any help. Shane MacDonald Founder/Editor-In-Chief Site Administrator shane at eyecravedvd.com www.eyecravedvd.com From geeklog-users-admin at lists.geeklog.net Wed May 21 05:00:01 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 11:00:01 +0200 Subject: [geeklog-users] I'm new! I confess! In-Reply-To: <3EA3077B.00000F.05820@raylinda> References: <3EA3077B.00000F.05820@raylinda> Message-ID: <20030521090001.10439@smtp.haun-online.de> Ray Randolph wrote: >And I'm getting a really funny behavior with the polls...that seems to be >the only problem thus far. When I enter a poll... I get duplicates of >everything. For example.. when I enter: [...] >Anyone seen this? No. I saw your bug report but I'm unable to reproduce it. Anyone else? bye, Dirk -- http://www.haun-online.de/ http://www.haun.info/ From geeklog-users-admin at lists.geeklog.net Wed May 21 07:54:11 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 07:54:11 -0400 Subject: [geeklog-users] non-blog dynamic content in geeklog Message-ID: <200305211156.h4LBuL825278@crdns.crd.ge.com> Alright, I'm relatively new to geeklog, and I'm struggling to incorporate other dynamic web pages into geeklog. For example, I'm setting up an online photo album using Gallery (http://gallery.sourceforge.net). I'd like that album to be part of geeklog, i.e. I'd like to keep the geeklog header and left+right blocks when displaying the photo album. What's the easiest way to accomplish this feat? So far I've been able to create a link to gallery, but gallery replaces all of geeklog. Thanks, Stefan From geeklog-users-admin at lists.geeklog.net Wed May 21 08:18:57 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 14:18:57 +0200 Subject: [geeklog-users] non-blog dynamic content in geeklog In-Reply-To: <200305211156.h4LBuL825278@crdns.crd.ge.com> References: <200305211156.h4LBuL825278@crdns.crd.ge.com> Message-ID: <20030521121858.26633@smtp.haun-online.de> Stefan wrote: >For example, I'm setting up an online >photo album using Gallery (http://gallery.sourceforge.net). I'd like that >album to be part of geeklog, i.e. I'd like to keep the geeklog header and >left+right blocks when displaying the photo album. What's the easiest way to >accomplish this feat? Are you trying this on your own or are you using one of the available Gallery integration hacks for Geeklog? I've lost track of which version is the current one of the hack, but you should be able to find it on www.langfamily.ca or www.squatty.com when you search for "Gallery". bye, Dirk -- http://www.haun-online.de/ http://www.haun.info/ From geeklog-users-admin at lists.geeklog.net Wed May 21 11:29:16 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 08:29:16 -0700 (PDT) Subject: [geeklog-users] ANONYMOUS In-Reply-To: <20030520215719.11173@smtp.haun-online.de> Message-ID: <20030521152916.96254.qmail@web14405.mail.yahoo.com> Thanks!!! geeklog-users-admin at lists.geeklog.net wrote:John Woods wrote: >I have been informed that I cannot have anonymous users able to post or >read anything on the site. How can I make my geeklog site block anonymous >users from acessing the site? Set $_CONF['loginrequired'] = 1; in config.php and uncheck the "anonymous" checkbox in the permissions of all your topics (after replacing the index.php with the updated one from the Downloads section on www.geeklog.net). You may also want to do the same for some of the blocks, links, events, etc. bye, Dirk P.S. To post to this list, please subscribe to it (a simple measure to prevent spam on the list). -- http://www.haun-online.de/ http://geeklog.info/ _______________________________________________ geeklog-users mailing list geeklog-users at lists.geeklog.net http://lists.geeklog.net/listinfo/geeklog-users --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From geeklog-users-admin at lists.geeklog.net Wed May 21 11:31:43 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 08:31:43 -0700 (PDT) Subject: [geeklog-users] AUTHENTICATION In-Reply-To: <20030520215719.11173@smtp.haun-online.de> Message-ID: <20030521153143.9992.qmail@web14404.mail.yahoo.com> I want to use the GeekLog user authentication code and MySQL users database in another project. Does anyone know what PHP functions are used to do all the user managemnet and user login and authentication? Is it possible to use this code in another project without using the config and lib-common files. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From geeklog-users-admin at lists.geeklog.net Wed May 21 14:44:47 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 14:44:47 -0400 Subject: [geeklog-users] non-blog dynamic content in geeklog Message-ID: <200305211846.h4LIkv819818@crdns.crd.ge.com> Dirk wrote: >Stefan wrote: >> >>For example, I'm setting up an online >>photo album using Gallery (http://gallery.sourceforge.net). I'd like that >>album to be part of geeklog, i.e. I'd like to keep the geeklog header and >>left+right blocks when displaying the photo album. What's the easiest way >>to accomplish this feat? > >Are you trying this on your own or are you using one of the available >Gallery integration hacks for Geeklog? > >I've lost track of which version is the current one of the hack, but you >should be able to find it on www.langfamily.ca or www.squatty.com when >you search for "Gallery". > Thanks for the links to www.langfamily.ca and www.squatty.com. I wasn't aware that somebody had already tackled this. At the moment I'm not trying to do develop something from scratch, so any of the existing hacks will do. I have other stuff that I'd like to integrate with geeklog, i.e. bookmark4u, so I will have to revisit the issue at some point. What's the best starting point? Take one of the existing hacks and modify it? Thanks, Stefan From geeklog-users-admin at lists.geeklog.net Wed May 21 15:08:15 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 21:08:15 +0200 Subject: [geeklog-users] non-blog dynamic content in geeklog In-Reply-To: <200305211846.h4LIkv819818@crdns.crd.ge.com> References: <200305211846.h4LIkv819818@crdns.crd.ge.com> Message-ID: <20030521190815.30960@smtp.haun-online.de> Stefan wrote: >I have other stuff that I'd like to integrate with geeklog, i.e. bookmark4u, >so I will have to revisit the issue at some point. What's the best starting >point? Take one of the existing hacks and modify it? I would start by including Geeklog's lib-common.php into the code you're trying to integrate and see if that causes any problems. Once you got that working, the next step would be to wrap the other script's output into Geeklog. If you have a look at Geeklog's 404.php, that will give you an idea of a typical Geeklog page: require_once('lib-common.php'); $display = COM_siteHeader('menu'); $display .= COM_startBlock("some headline here"); $display .= output_from_other_script(); $display .= COM_endBlock(); $display .= COM_siteFooter(); echo $display Or you could output things directly, i.e. echo COM_siteHeader() etc. That depends on how the other script does it. Other integrations you could look at are the PHPLinks integration that Squatty did and the 4images integration (forgot who did it - do a search on geeklog.net). Hope that helps. bye, Dirk -- http://www.haun-online.de/ http://www.haun.info/ From geeklog-users-admin at lists.geeklog.net Wed May 21 15:06:45 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 12:06:45 -0700 Subject: [geeklog-users] Newbie 1st post (installation problem on Windows) Message-ID: <078FF71625E8D4118DCB00902751365201E62484@tribmail1.aztribune.com> Hey Geekers, I've been using Smarty & Fusebox for PHP, so I'm not a complete ninny, but when installing Geeklog for the 1st time on Windoze I get: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in c:\apache\htdocs\geeklog\public_html\lib-common.php on line 3815 Line 3815 is (this looks entirely wrong): else if( $A['type'] ']']']']']']']']']== ']']']']']']']']']==']']']']']']']']==']']']']']']']==']']']']']']==']']']'] ']==']']']']==']']']==']']==']=='poll' ) What the heck is that?! (I un-tar'ed with WinRAR). Incedently, I am trying to use geeklog1.3.7sr1 (with the index.php fix) installed into: localhost/geeklog/ not localhost/ Even though I tried both C:\\Apache\\htdocs\\geeklog\\ and C:/Apache/htdocs/geeklog/ for $_CONF['path'] - same result. The above error shows onscreen for 1 millisecond before refreshing to localhost/index.php Any insight would be appreciated. -Geoff From geeklog-users-admin at lists.geeklog.net Wed May 21 15:20:51 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 21:20:51 +0200 Subject: [geeklog-users] Newbie 1st post (installation problem on Windows) In-Reply-To: <078FF71625E8D4118DCB00902751365201E62484@tribmail1.aztribune.com> References: <078FF71625E8D4118DCB00902751365201E62484@tribmail1.aztribune.com> Message-ID: <20030521192051.26316@smtp.haun-online.de> Geoff wrote: >Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in >c:\apache\htdocs\geeklog\public_html\lib-common.php on line 3815 [...] >What the heck is that?! (I un-tar'ed with WinRAR). That's a corrupted lib-common.php. If you've untared it with WinRAR, then what did you use to edit it? Dreamweaver, by any chance? Anyway, start with a fresh copy of that file and use a "plain text editor" when you make the one-line change in there. Then try again. bye, Dirk -- http://www.haun-online.de/ http://www.haun.info/ From geeklog-users-admin at lists.geeklog.net Wed May 21 17:52:24 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 14:52:24 -0700 Subject: [geeklog-users] Adding Blocks to article.php In-Reply-To: References: Message-ID: >I wish to add a custom block to article.php. > >However, I'm not really good at coding and I was looking for a little help >as to where I would put the code, and how could I call it from >lib-common.php? In what way do you mean "block"? Normally, you wouldn't add anything to lib-common.php for a block that shows up on the right or left column. If the block contains no dynamic content, you can do it directly from the block editor. If the block contains dynamic content (i.e., PHP code), you add the code to lib-custom.php in the "geeklog/system" directory. For example, the following will create a php_block that displays the current weekday: function phpblock_weekday() { $theDayName = date('%l'); $theText = "Today is $theDayName."; return $theText; } Any phpblock has to begin with "phpblock". You then add the function's name to the phpblock section of the block editor. Jerry -- jerry at sandiego.edu http://www.sandiego.edu/~jerry/ Serra 188B/x8773 -- "The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless) From geeklog-users-admin at lists.geeklog.net Wed May 21 22:51:01 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 22 May 2003 10:51:01 +0800 (SGT) Subject: [geeklog-users] Can someone help me on this ?? In-Reply-To: <20030521152916.96254.qmail@web14405.mail.yahoo.com> References: <20030521152916.96254.qmail@web14405.mail.yahoo.com> Message-ID: <1053571861.3ecc3b15536a4@dory.singnet.com.sg> After I installed Static Pages 1.2, I realised when I use a or tag for BOLD fonts, it no longer works. But strangly, it works @my static frontpage. I posted the question @http://www.geeklog.net/comment.php?mode=display&sid=20030509030519293&title=Static+Pages+1.2+BIG+PROBLEM%21&type=article&order=&pid=9972 Main GL story - http://www.geeklog.net/article.php?story=20030509030519293 Anyone has a clue ?? From geeklog-users-admin at lists.geeklog.net Wed May 21 23:36:00 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Wed, 21 May 2003 23:36:00 -0400 Subject: [geeklog-users] Adding Blocks to article.php In-Reply-To: Message-ID: Jerry, Not to sound rude, but I'm well aware of how to call it using the block function and I did mean lib-custom.php (bad habit of typing lib-common.php) Anyway, I have the blocks working fine on every page, however if you look at any article where you have 'read more' the article.php file only returns to left blocks (what's related & story options). I wish to add on of my custom blocks to show up under those two blocks or add the entire left side blocks underneath them. Does that make more sense? Shane -----Original Message----- From: geeklog-users-admin at lists.geeklog.net [mailto:geeklog-users-admin at lists.geeklog.net] Sent: Wednesday, May 21, 2003 5:52 PM To: geeklog-users at lists.geeklog.net Subject: Re: [geeklog-users] Adding Blocks to article.php >I wish to add a custom block to article.php. > >However, I'm not really good at coding and I was looking for a little help >as to where I would put the code, and how could I call it from >lib-common.php? In what way do you mean "block"? Normally, you wouldn't add anything to lib-common.php for a block that shows up on the right or left column. If the block contains no dynamic content, you can do it directly from the block editor. If the block contains dynamic content (i.e., PHP code), you add the code to lib-custom.php in the "geeklog/system" directory. For example, the following will create a php_block that displays the current weekday: function phpblock_weekday() { $theDayName = date('%l'); $theText = "Today is $theDayName."; return $theText; } Any phpblock has to begin with "phpblock". You then add the function's name to the phpblock section of the block editor. Jerry -- jerry at sandiego.edu http://www.sandiego.edu/~jerry/ Serra 188B/x8773 -- "The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless) _______________________________________________ geeklog-users mailing list geeklog-users at lists.geeklog.net http://lists.geeklog.net/listinfo/geeklog-users From geeklog-users-admin at lists.geeklog.net Thu May 22 11:30:47 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 22 May 2003 08:30:47 -0700 (PDT) Subject: [geeklog-users] How to create a block? Message-ID: <20030522153047.30552.qmail@web21310.mail.yahoo.com> Forgive my noobness, I am trying to create a block with the countdown script below but can't seem to find any instructions on how to go about creating something like this. Where do I enter the code, is this all that is needed etc etc, can anyone offer a suggestion? function phpblock_countdown(){ // Change the Dates and Event Name to meet your needs $day = 6; // Day of the countdown $month = 3; // Month of the countdown $year = 2003; // Year of the countdown $event = 'Your Event'; // Event Name $days_left = (int)(1+(mktime (0,0,0,$month,$day,$year) - time(void))/86400); if ($days_left > 1) { $retval = ('There are ' .$days_left .' days left til ' .$event .'!'); } if ($days_left == 1) { $retval = ($event .' Starts Tomorrow!'); } if ($days_left == 0) { $retval = ($event .' Starts Today!'); } return $retval; } __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com From geeklog-users-admin at lists.geeklog.net Thu May 22 11:40:30 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 22 May 2003 17:40:30 +0200 Subject: [geeklog-users] How to create a block? In-Reply-To: <20030522153047.30552.qmail@web21310.mail.yahoo.com> References: <20030522153047.30552.qmail@web21310.mail.yahoo.com> Message-ID: <20030522154030.9930@smtp.haun-online.de> >Where do I enter the code, is this all that >is needed etc etc, can anyone offer a suggestion? Add your code to the lib-custom.php file. Then create a new block of type "PHP block" (from the Admin's block menu) and enter phpblock_countdown as the name of the function. bye, Dirk -- http://www.haun-online.de/ http://www.macosx-faq.de/ From geeklog-users-admin at lists.geeklog.net Thu May 22 15:44:24 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 22 May 2003 12:44:24 -0700 Subject: [geeklog-users] Adding Blocks to article.php In-Reply-To: References: Message-ID: >Not to sound rude, but I'm well aware of how to call it using the block >function and I did mean lib-custom.php (bad habit of typing lib-common.php) > >Anyway, I have the blocks working fine on every page, however if you look at >any article where you have 'read more' the article.php file only returns to >left blocks (what's related & story options). I wish to add on of my custom >blocks to show up under those two blocks or add the entire left side blocks >underneath them. > >Does that make more sense? Yes, it does (assuming you meant right side blocks, not left side blocks, the second time you said it). It sounds like you want something like changing (in article.php): $display .= COM_siteFooter(); to $display .= COM_siteFooter(1); Now, this probably is not exactly what you want, as it gives you *two* right columns, not one, which can seriously infringe on the space for the article itself. If you edit the article.thtml file in your layouts directory, you can remove the cell that contains {whats_related_story_options}; that will remove those two blocks completely. Which is probably closer to what you want, but not quite. If you want both sets of blocks, the problem you're going to run into is that COM_siteFooter(true) opens up a new cell to place its right blocks into. So getting them to share space is going to require (I suspect) more than simple programming. It might be possible to program COM_siteFooter (in lib-common.php) to "know" when it is in an article, and then not open a new cell. Jerry -- jerry at sandiego.edu http://www.sandiego.edu/~jerry/ Serra 188B/x8773 -- "The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless) From geeklog-users-admin at lists.geeklog.net Mon May 26 12:16:58 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 26 May 2003 09:16:58 -0700 Subject: [geeklog-users] Hello and first question... In-Reply-To: <20030511214224.9771@smtp.haun-online.de> Message-ID: <000401c323a2$4780bfc0$4402a8c0@home> I don't suppose there is a way to have geeklog look for a renamed "index.php" - just checking before I try to install in a subdirectory. My host chooses index.php before choosing index.htm if both are present. -dan -----Original Message----- Sent: Sunday, May 11, 2003 2:42 PM To: geeklog-users at lists.geeklog.net Subject: Re: [geeklog-users] Hello and first question... >I have a second site that I want to install a GL on. I don't want GL to >be the automatic page that gets loaded when my url is typed. I would >like the normal index.htm to load (not index.php I think), and I would >have GL loaded as a choice for interaction. How should I do that? If your webserver is set up such that it searches for index.html first, you could simply put it into the same directory as Geeklog. Since all of Geeklog's files end in .php, there shouldn't be any name conflicts. Another option is to install Geeklog in a subdirectory, e.g. you could have http://example.com/index.html http://example.com/geeklog/index.php For this, you will need to separate Geeklog's public_html directory from the rest and put the contents of public_html into the above "geeklog" directory (or whatever you decide to call it) and the other Geeklog files outside of your document root (so that they can not be accessed via a URL). Then you only need to set up $_CONF['path'] and $_CONF['path_html'] to point to the proper places (the latter should be an absolute path in this case). So, it's not really that different from a normal install - only that some files go into their own subdirectory and that you need to adjust one additional path ($_CONF['path_html']). Hope that helps. bye, Dirk -- http://www.haun-online.de/ http://www.tinyweb.de/ _______________________________________________ geeklog-users mailing list geeklog-users at lists.geeklog.net http://lists.geeklog.net/listinfo/geeklog-users From geeklog-users-admin at lists.geeklog.net Mon May 26 13:10:13 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 26 May 2003 13:10:13 -0400 Subject: [geeklog-users] Hello and first question... In-Reply-To: <000401c323a2$4780bfc0$4402a8c0@home> References: <000401c323a2$4780bfc0$4402a8c0@home> Message-ID: <3ED24A75.8090905@abtech.org> If you want apache to look for an index.htm file first, you can add the following to your .htaccess file: DirectoryIndex index.htm index.html index.php or if you want the file splash.php to come up first: DirectoryIndex splash.php index.php index.htm index.html -Vinny geeklog-users-admin at lists.geeklog.net wrote: >I don't suppose there is a way to have geeklog look for a renamed >"index.php" - just checking before I try to install in a subdirectory. >My host chooses index.php before choosing index.htm if both are present. >-dan > > >-----Original Message----- > Sent: Sunday, May 11, 2003 2:42 PM >To: geeklog-users at lists.geeklog.net >Subject: Re: [geeklog-users] Hello and first question... > > > >>I have a second site that I want to install a GL on. I don't want GL >> >> >to > > >>be the automatic page that gets loaded when my url is typed. I would >>like the normal index.htm to load (not index.php I think), and I would >>have GL loaded as a choice for interaction. How should I do that? >> >> > >If your webserver is set up such that it searches for index.html first, >you could simply put it into the same directory as Geeklog. Since all of >Geeklog's files end in .php, there shouldn't be any name conflicts. > >Another option is to install Geeklog in a subdirectory, e.g. you could >have > > http://example.com/index.html > http://example.com/geeklog/index.php > >For this, you will need to separate Geeklog's public_html directory from >the rest and put the contents of public_html into the above "geeklog" >directory (or whatever you decide to call it) and the other Geeklog >files >outside of your document root (so that they can not be accessed via a >URL). Then you only need to set up $_CONF['path'] and >$_CONF['path_html'] >to point to the proper places (the latter should be an absolute path in >this case). > >So, it's not really that different from a normal install - only that >some >files go into their own subdirectory and that you need to adjust one >additional path ($_CONF['path_html']). > >Hope that helps. > >bye, Dirk > > > > From geeklog-users-admin at lists.geeklog.net Mon May 26 14:10:40 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Mon, 26 May 2003 11:10:40 -0700 Subject: [geeklog-users] Hello and first question... In-Reply-To: <3ED24A75.8090905@abtech.org> Message-ID: <000601c323b2$245bc250$4402a8c0@home> That worked! That's it I'm set! My web host didn't know about that. Thanks Vinny! -----Original Message----- From: geeklog-users-admin at lists.geeklog.net [mailto:geeklog-users-admin at lists.geeklog.net] Sent: Monday, May 26, 2003 10:10 AM To: geeklog-users at lists.geeklog.net Subject: Re: [geeklog-users] Hello and first question... If you want apache to look for an index.htm file first, you can add the following to your .htaccess file: DirectoryIndex index.htm index.html index.php or if you want the file splash.php to come up first: DirectoryIndex splash.php index.php index.htm index.html -Vinny geeklog-users-admin at lists.geeklog.net wrote: >I don't suppose there is a way to have geeklog look for a renamed >"index.php" - just checking before I try to install in a subdirectory. >My host chooses index.php before choosing index.htm if both are present. >-dan > > From geeklog-users-admin at lists.geeklog.net Tue May 27 03:33:30 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Tue, 27 May 2003 00:33:30 -0700 Subject: [geeklog-users] Pictures in stories In-Reply-To: <20030308082837.551@smtp.haun-online.de> Message-ID: <83BACBB7-9015-11D7-82E9-000393A34F1A@mac.com> I've just updated my geeklog site to 1.3.7sr2 and have not been able to get pictures to show in my stories. I get an appropriately sized frame with nothing in it when I save my story. Although I have permissions set on public_html/images/articles to 777, whenever I upload a picture, it doesn't get stored in the directory. I've tried to set the netpbm binaries correctly (which work OK with Gallery) to no avail. My php.ini allows file_uploads (which I was also able to do in Gallery). Any ideas on how to get this to work. My image is less than 300x300, btw. Norm Norman Cohen nacohen at mac.com From geeklog-users-admin at lists.geeklog.net Thu May 29 09:48:26 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 29 May 2003 09:48:26 -0400 Subject: [geeklog-users] help request: 1.3.6 to 1.3.7sr2 upgrade issue Message-ID: <20030529094826.4672125d.jvm@linuxgames.com> I am trying to upgrade from 1.3.6 to 1.3.7sr2. I get the error: 1044: Access denied for user: 'FOO at localhost' to database 'BAR' The above username and db name have been changed to protect the innocent. Here are details, although I can provide more if I've left out something critical: - The site actually seems to be running fine without completing the upgrade script. That is, it's running 1.3.7 code and all 1.3.6 code has been removed, the stories and images are all rendering, and I seem fine without completing the install.php script. - I've read through install.php and the things that I see that are changing aren't features that I use on the site. But I'd like to be "kosher" for an upgrade to 1.4 or 2.0 eventually. Still, this seems to prove that FOO does have access to BAR, since the db is getting used by the core scripts, even if not by the install script! - I had to use the more generous permissions on geeklog/logs/ and other directories mentioned in the install documentation. I got errors when changing a story when these permissions were not this lax, although I do not know if only a few or all are required. - I have the visitor stats plugin installed. I did not uninstall before upgrading to 1.3.7. To do this during the upgrade, I nuked everything in ~/public_html/ (except images/articles and images/userphotos) and then reinstalled the appropriate code as outlined in the visitor stats install guide. I can confirm that visitor stats is working, despite never being uninstalled. - I am running very little custom code. The only thing I've changed is the image size and number of uploads to different numbers. (Both in config.php and in the upload class.) Some stories in the DB do have more than the standard 5 images, because of these changes. - I found a similar error here: http://www.geeklog.net/article.php?story=20020821092914316 Yet, when I showed this to my sysadmin (the guy that controls mysql) he said that the reply comment in that story wasn't helpful and was, in fact, wrong. I'm not in a position to know. I don't want to screw myself by not getting the upgrade right now. Any and all help appreciated. Thanks! Regards, matt -- jvm at linuxgames.com From geeklog-users-admin at lists.geeklog.net Thu May 29 10:27:52 2003 From: geeklog-users-admin at lists.geeklog.net (geeklog-users-admin at lists.geeklog.net) Date: Thu, 29 May 2003 16:27:52 +0200 Subject: [geeklog-users] help request: 1.3.6 to 1.3.7sr2 upgrade issue In-Reply-To: <20030529094826.4672125d.jvm@linuxgames.com> References: <20030529094826.4672125d.jvm@linuxgames.com> Message-ID: <20030529142753.19311@smtp.haun-online.de> matt wrote: >I am trying to upgrade from 1.3.6 to 1.3.7sr2. [...] >- The site actually seems to be running fine without completing >the upgrade script. I have no idea why you get the error, but the changes from 1.3.6 to 1.3.7 wouldn't prevent the site from working (for some definition of "working" ...). You could try and do the changes manually, using phpMyAdmin or MySQL from the command line: UPDATE gl_topics SET perm_anon = 2 WHERE perm_anon = 3; This fixes wrong default permissions on the topics. ALTER TABLE gl_personal_events DROP PRIMARY KEY, ADD PRIMARY KEY (eid,uid); This fixes the primary key on the personal events table that prevented more than one person from adding a site-wide event to their personal events. The other thing the upgrade does is to make sure there's a 'date' field in the gl_links table - but that would only be missing if you came from a really old version of Geeklog (prior to 1.3). bye, Dirk -- http://www.haun-online.de/ http://www.tinyweb.de/