comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 12)
Status: Inactive
Brought to you by:
markwallis
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(49) |
Oct
(127) |
Nov
(211) |
Dec
(56) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(51) |
Feb
(128) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(2) |
Aug
(24) |
Sep
|
Oct
(151) |
Nov
(9) |
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: iamdecal <iam...@us...> - 2006-02-17 15:18:53
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4190/mod_latest_comments/include Modified Files: mod_latest_comments.inc.php Log Message: more work to wards SEO and comments for 1.2 release Committing in . Modified Files: mod_latest_comments/include/mod_latest_comments.inc.php mod_prevnext/include/mod_prevnext.inc.php mod_randomthumb/include/mod_randomthumb.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_latest_comments.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_latest_comments/include/mod_latest_comments.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_latest_comments.inc.php 16 Feb 2006 23:24:13 -0000 1.1 +++ mod_latest_comments.inc.php 17 Feb 2006 15:18:49 -0000 1.2 @@ -14,6 +14,9 @@ $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['post_permalink'] = CFG_SITE_URL.$row['post_id'] ."/". $row['post_mail_subject']; + } error_log($row['comment_added']); $row['comment_added'] = gmstrftime("%a, %d %b %Y at %T %Z",$row['comment_added']); error_log($row['comment_added']); |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:18:53
|
Update of /cvsroot/comoblog/modules/mod_randomthumb/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4190/mod_randomthumb/include Modified Files: mod_randomthumb.inc.php Log Message: more work to wards SEO and comments for 1.2 release Committing in . Modified Files: mod_latest_comments/include/mod_latest_comments.inc.php mod_prevnext/include/mod_prevnext.inc.php mod_randomthumb/include/mod_randomthumb.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_randomthumb.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_randomthumb/include/mod_randomthumb.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_randomthumb.inc.php 27 Nov 2005 19:31:21 -0000 1.1 +++ mod_randomthumb.inc.php 17 Feb 2006 15:18:49 -0000 1.2 @@ -45,6 +45,9 @@ $row['imageurl'] = "img/posts/" . $row['img_id'] . $isthumb . "." . $row['img_extension']; $row['postlink'] = CFG_SITE_URL ."post.php".$iisbug."/".$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['postlink'] = CFG_SITE_URL.$row['post_id'] ."/". $row['post_mail_subject']; + } $row['postalt'] = $row['post_mail_subject']; $row['imagewidth'] = CFG_MOD_RANDOMTHUMB_IMG_WIDTH; $row['mod_randomthumb_title'] = CFG_MOD_RANDOMTHUMB_TITLE; |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:18:53
|
Update of /cvsroot/comoblog/modules/mod_prevnext/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4190/mod_prevnext/include Modified Files: mod_prevnext.inc.php Log Message: more work to wards SEO and comments for 1.2 release Committing in . Modified Files: mod_latest_comments/include/mod_latest_comments.inc.php mod_prevnext/include/mod_prevnext.inc.php mod_randomthumb/include/mod_randomthumb.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_prevnext.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_prevnext/include/mod_prevnext.inc.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- mod_prevnext.inc.php 17 Feb 2006 13:59:29 -0000 1.3 +++ mod_prevnext.inc.php 17 Feb 2006 15:18:49 -0000 1.4 @@ -5,7 +5,7 @@ }else{ $iisbug = ''; } - $query = "select p.post_id as next_post_id from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id > '".$post_id."' order by p.post_id limit 1"; + $query = "select p.post_id as next_post_id ,p.* from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id > '".$post_id."' order by p.post_id limit 1"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)){ return (false); @@ -13,6 +13,9 @@ $post = mysql_fetch_array($res); $returnval = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post['next_post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $returnval = CFG_SITE_URL.$post['next_post_id'] ."/". $post['post_mail_subject']; + } return ($returnval); } @@ -24,7 +27,7 @@ $iisbug = ''; } - $query = "select p.post_id as prev_post_id from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id < '".$post_id."' order by p.post_id desc limit 1"; + $query = "select p.post_id as prev_post_id ,p.* from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id < '".$post_id."' order by p.post_id desc limit 1"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)){ return (false); @@ -32,6 +35,9 @@ $post = mysql_fetch_array($res); $returnval = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post['prev_post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $returnval = CFG_SITE_URL.$post['prev_post_id'] ."/". $post['post_mail_subject']; + } return ($returnval); } |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:46
|
Update of /cvsroot/comoblog/comoblog/_install/upgrades In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179/_install/upgrades Added Files: 1.1_to_1.2.xml Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- --- NEW FILE: 1.1_to_1.2.xml --- <?xml version="1.0" standalone="yes"?> <comoblog_upgrade> <dbquery> update comoblog_preferences set pref_value='1.2' where pref_name='CFG_VERSION'; </dbquery> <dbquery> insert into comoblog_preferences (pref_name, pref_value, pref_description, pref_topic_id, pref_encrypt, pref_type, pref_restrict_values, pref_accept_null, pref_editable, pref_display_order, mod_name) VALUES ('CFG_USE_FRIENDLY_URLS', 'no', 'use SEO friendly URLS (requires apache)', 4, 'N', 'select', 'no|yes', 'N', 'Y', 5, ''); </dbquery> <dbquery> ALTER TABLE `comoblog_comments` ADD `comment_author_url` VARCHAR( 128 ) NOT NULL AFTER `comment_author_email` ;</dbquery> </comoblog_upgrade> |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:43
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179 Added Files: htaccess Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- --- NEW FILE: htaccess --- # # Apache/Comoblog settings: # # Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on # Modify the RewriteBase # If you are using comoblog in a subdirectory and # the rewrite rules are not working properly, # you may need to change this to the direcotory #RewriteBase /comoblog # make sure what we're looking for donsnt exist RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # we map urls in to form of # /123/abcdefghijklmon # or # /post_id/post_title_can_be_any_text_really_for_seo # to # /post.php?/123 RewriteRule ^(.*)$ /post.php?/$1 [L,QSA] </IfModule> |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:40
|
Update of /cvsroot/comoblog/comoblog/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179/templates Modified Files: add_comment.tpl.htm index.tpl.htm list_comments.tpl.htm Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- Index: index.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/index.tpl.htm,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- index.tpl.htm 11 Dec 2005 12:14:02 -0000 1.4 +++ index.tpl.htm 17 Feb 2006 15:16:37 -0000 1.5 @@ -61,32 +61,37 @@ <img class="post_img" src="{SITE_URL}img/posts/{IMAGE.img_name}" border="0" alt="" /> <!-- END: img --> - <!-- BEGIN: video_3g2 --> - <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" - CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" height="240"><br/> - <param name="SRC" value="{SITE_URL}img/posts/{IMAGE.img_name}"/> - <param name="CONTROLLER" value="true"/> - <param name="scale" value="Aspect"/> - <param name="AUTOPLAY" value="false"/> - <param name="border" value="0"/> - <param name="target" value="_self"/> - <param name="href" value="{SITE_URL}img/posts/{IMAGE.img_name}"> - <embed src="{SITE_URL}img/posts/{IMAGE.img_name}" border="0" width="320" - autoplay="false" scale="Aspect" href="{SITE_URL}img/posts/{IMAGE.img_name}" - pluginspage="http://www.apple.com/quicktime/download/" height="240" target="_self" controller="true"> - </embed> - </object> - <!-- END: video_3g2 --> - + <!-- BEGIN: video_3g2 --> + <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" + CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" height="240"><br/> + <param name="SRC" value="{SITE_URL}img/posts/{IMAGE.img_name}"/> + <param name="CONTROLLER" value="true"/> + <param name="scale" value="Aspect"/> + <param name="AUTOPLAY" value="false"/> + <param name="border" value="0"/> + <param name="target" value="_self"/> + <param name="href" value="{SITE_URL}img/posts/{IMAGE.img_name}"> + <embed src="{SITE_URL}img/posts/{IMAGE.img_name}" border="0" width="320" + autoplay="false" scale="Aspect" href="{SITE_URL}img/posts/{IMAGE.img_name}" + pluginspage="http://www.apple.com/quicktime/download/" height="240" target="_self" controller="true"> + </embed> + </object> + <!-- END: video_3g2 --> + <!-- BEGIN: comments --> <h4>{TXT.comments_for_post}</h4> - <!-- BEGIN: comment --> - <div class="comment"> - <p class="comment_header">{COMMENT.comment_author} <!-- BEGIN: email -->{COMMENT.comment_author_email}<!-- END: email --><br /> - {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes}</p> - <p>{COMMENT.comment_text}</p> - </div> - <!-- END: comment --> +<!-- BEGIN: comment --> +<div class="comment"> +<p class="comment_header"> +<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> + <!-- BEGIN: email --> + {COMMENT.comment_author_email} + <!-- END: email --><br /> + + {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes}</p> +<p>{COMMENT.comment_text}</p> +</div> +<!-- END: comment --> <!-- END: comments --> <div class="post_footer"> Index: list_comments.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/list_comments.tpl.htm,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- list_comments.tpl.htm 16 Aug 2005 05:49:47 -0000 1.1.1.1 +++ list_comments.tpl.htm 17 Feb 2006 15:16:37 -0000 1.2 @@ -1,22 +1,22 @@ <!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} <div id="comments"> - <!-- BEGIN: nocomments --> <div class="comment"> <h1>{TXT.no_comments}</h1> <p> </p> </div> <!-- END: nocomments --> - <!-- BEGIN: comments --> <h1>{TXT.comments_for_post}:<br />{POST.post_mail_subject}</h1> - - <!-- BEGIN: comment --> <div class="comment"> -<p class="comment_header">{COMMENT.comment_author} -<!-- BEGIN: email -->{COMMENT.comment_author_email}<!-- END: email --><br /> -{COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes}</p> +<p class="comment_header"> +<a href="{COMMENT.comment_author_url} rel="nofollow"">{COMMENT.comment_author}</a> +<!-- BEGIN: email --> + {COMMENT.comment_author_email} + <!-- END: email --><br /> + + {COMMENT.comment_date.year}/{COMMENT.comment_date.mon}/{COMMENT.comment_date.mday} {COMMENT.comment_date.hours}:{COMMENT.comment_date.minutes}</p> <p>{COMMENT.comment_text}</p> </div> <!-- END: comment --> Index: add_comment.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/add_comment.tpl.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- add_comment.tpl.htm 1 Dec 2005 14:57:55 -0000 1.2 +++ add_comment.tpl.htm 17 Feb 2006 15:16:37 -0000 1.3 @@ -2,43 +2,35 @@ <div class="comment"> <form action="{ACTION}" method="POST"> <input type="hidden" name="post_id" value="{FORM.post_id}" /> - <h1>{TXT.add_comment}</h1> - <p> {TXT.your_name}<br /> <input type="text" name="comment_author" id="comment_author" value="{FORM.comment_author}" class="comment_form" /> </p> - <p> {TXT.your_email}<br /> <input type="text" name="comment_author_email" id="comment_author_email" value="{FORM.comment_author_email}" class="comment_form" /> </p> - +<p> +{TXT.your_url} +<br /> +<input type="text" name="comment_author_url" id="comment_author_url" value="{FORM.comment_author_url class="comment_form" /> +</p> <p> {TXT.comment}<br /> <textarea name="comment_text" id="comment_text" class="comment_form">{FORM.comment_text}</textarea> </p> - - <!-- BEGIN: html_comments --> -{TXT.comment_convert}<br /> -<input type="checkbox" name="comment_convert" id="comment_convert" class="comment_form" value="noconvert"> -<!-- END: html_comments --> -</p> - - - <p> - - - - +{TXT.comment_convert} +<input type="checkbox" style="width:50px" name="comment_convert" id="comment_convert" +class="comment_form" value="noconvert"> +</p> +<!-- END: html_comments --> <p> <input type="submit" name="submit" value="{TXT.submit}" /> </p> </form> - <!-- BEGIN: form_errors --> <script language="javascript"> var errors = '++Warning++\n\n'; |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:40
|
Update of /cvsroot/comoblog/comoblog/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179/lang Modified Files: english.inc.php Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- Index: english.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/lang/english.inc.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- english.inc.php 1 Dec 2005 14:57:55 -0000 1.3 +++ english.inc.php 17 Feb 2006 15:16:37 -0000 1.4 @@ -60,8 +60,9 @@ $TXT['view'] = 'view'; $TXT['submit'] = 'send'; $TXT['your_name'] = 'Your name'; - $TXT['your_email'] = 'Your e-mail (it will be obfuscated)'; - $TXT['comment_convert'] = 'If you tick this box,you can enter raw HTML. note that you\'ll then have to enter your own HTML for links and line breaks etc, if your leave it unticked, links & breaks will be generated automatically'; + $TXT['your_url'] = 'Your URL (please include http://)'; + $TXT['your_email'] = 'Your e-mail (optional, but it will be obfuscated)'; + $TXT['comment_convert'] = 'If you tick this box,you can enter raw HTML. note that you\'ll then have to enter your own HTML for links and line breaks etc. If your leave it unticked, links & breaks will be generated automatically'; // misc |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:40
|
Update of /cvsroot/comoblog/comoblog/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179/include Modified Files: libraries.inc.php Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- Index: libraries.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/libraries.inc.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- libraries.inc.php 10 Jan 2006 00:45:57 -0000 1.8 +++ libraries.inc.php 17 Feb 2006 15:16:37 -0000 1.9 @@ -125,6 +125,9 @@ $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['post_permalink'] = CFG_SITE_URL.'/' .$row['post_id'] ."/". $row['post_mail_subject']; + } $row['post_trackback_ping_url'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id']; $row['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=list'; $row['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=rss'; @@ -155,6 +158,9 @@ $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['post_permalink'] = CFG_SITE_URL.'/' .$row['post_id'] ."/". $row['post_mail_subject']; + } $row['post_trackback_ping_url'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id']; $row['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=list'; $row['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=rss'; @@ -164,8 +170,6 @@ return ($posts); } - - function posts_howmany () { $query = "select count(post_id) from ".CFG_MYSQL_TABPREFIX."posts"; $res = mysql_query($query); @@ -177,6 +181,40 @@ } +function hits_howmany () { + $query = "select count(contentextra2_id) from easymoblog_mod_contentextra2"; + $res = mysql_query($query); + if ($res) { + $howmany = mysql_result($res,0,0); + return ($howmany); + } + return (false); +} + + + +function post_first() { + $query = "select FROM_UNIXTIME(min(post_mail_date)) from easymoblog_posts"; + $res = mysql_query($query); + if ($res) { + $howmany = mysql_result($res,0,0); + return ($howmany); + } + return (false); +} + + +function comments_howmany () { + $query = "select count(comment_id) from easymoblog_comments"; + $res = mysql_query($query); + if ($res) { + $howmany = mysql_result($res,0,0); + return ($howmany); + } + return (false); +} + + function posts_last ($howmany) { if (CFG_USE_PATH_INFO == 'no') $iisbug = '?'; @@ -207,9 +245,13 @@ $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['post_permalink'] = CFG_SITE_URL.'/' .$row['post_id'] ."/". $row['post_mail_subject']; + } $row['post_trackback_ping_url'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id']; $row['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=list'; $row['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=rss'; + $row['post_mail_date_rss'] = gmstrftime("%a, %d %b %Y %T %Z",$row['post_mail_date']); $posts[] = $row; } @@ -248,7 +290,7 @@ where p.post_mail_date >= ".$start." and p.post_mail_date < ".$end." group by p.post_id - order by p.post_mail_date desc + order by p.post_mail_date ".CFG_POST_SORT_ORDER." "; $res = mysql_query($query); @@ -258,6 +300,9 @@ $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $row['post_permalink'] = CFG_SITE_URL.'/' .$row['post_id'] ."/". $row['post_mail_subject']; + } $row['post_trackback_ping_url'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id']; $row['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=list'; $row['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=rss'; @@ -267,6 +312,46 @@ return ($posts); } +##### PLACE HOLDER FOR TUNES ##### +# to line 356 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + function post_details ($post_id) { if (CFG_USE_PATH_INFO == 'no') @@ -275,16 +360,22 @@ $iisbug = ''; $query = " - select p.*, count(c.post_id) as post_comments, count(tr.post_id) as post_trackback_pings, t.topic_name, concat(t.img_id,'.',i.img_extension) as topic_img - from ".CFG_MYSQL_TABPREFIX."posts p - left join ".CFG_MYSQL_TABPREFIX."comments c - on p.post_id = c.post_id - left join ".CFG_MYSQL_TABPREFIX."trackback_pings tr - on p.post_id = tr.post_id - left join ".CFG_MYSQL_TABPREFIX."topics t - on p.topic_id = t.topic_id - left join ".CFG_MYSQL_TABPREFIX."images i - on t.img_id = i.img_id + select + p.*, + FROM_UNIXTIME(p.post_mail_date) as post_mail_date_nice , + count(c.post_id) as post_comments, + count(tr.post_id) as post_trackback_pings, + t.topic_name, concat(t.img_id,'.',i.img_extension) as topic_img + from + ".CFG_MYSQL_TABPREFIX."posts p + left join ".CFG_MYSQL_TABPREFIX."comments c + on p.post_id = c.post_id + left join ".CFG_MYSQL_TABPREFIX."trackback_pings tr + on p.post_id = tr.post_id + left join ".CFG_MYSQL_TABPREFIX."topics t + on p.topic_id = t.topic_id + left join ".CFG_MYSQL_TABPREFIX."images i + on t.img_id = i.img_id where p.post_id = '".$post_id."' group by p.post_id "; @@ -295,6 +386,9 @@ $post = mysql_fetch_array($res); $post['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post['post_id']; + if (CFG_USE_FRIENDLY_URLS =="yes"){ + $post['post_permalink'] = CFG_SITE_URL.'/' .$post['post_id'] ."/". $post['post_mail_subject']; + } $post['post_trackback_ping_url'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$post['post_id']; $post['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$post['post_id'].'?__mode=list'; $post['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$post['post_id'].'?__mode=rss'; @@ -339,17 +433,18 @@ } } - $query = " - insert into ".CFG_MYSQL_TABPREFIX."comments - (comment_author,comment_author_email,comment_text,comment_added,post_id) - values ( - '".$comment['comment_author']."', - '".$comment['comment_author_email']."', - '".$comment['comment_text']."', - '".time()."', - '".$comment['post_id']."' - ) - "; + $query = " + insert into ".CFG_MYSQL_TABPREFIX."comments + (comment_author,comment_author_email,comment_author_url,comment_text,comment_added,post_id) + values ( + '".addslashes($comment['comment_author'])."', + '".addslashes($comment['comment_author_email'])."', + '".addslashes($comment['comment_author_url'])."', + '".addslashes($comment['comment_text'])."', + '".time()."', + '".$comment['post_id']."' + ) + "; $res = mysql_query($query); if (!$res) @@ -365,7 +460,7 @@ select c.* from ".CFG_MYSQL_TABPREFIX."comments c where c.post_id = '".$post_id."' - order by c.comment_added desc + order by c.comment_added ". CFG_COMMENT_SORT_ORDER . " "; $res = mysql_query($query); |
|
From: iamdecal <iam...@us...> - 2006-02-17 15:16:39
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2179/_install Modified Files: comoblog_db.xml patch_1.php Log Message: work towards the 1.2 release - this adds url for commentors as well as an email address -- NB may need to move exisinting data to the new row (will on my site,but not sure if thats public code or not) SEO friendly URLS on apache to the main site and most of the modules (optionally turned on by new config setting) ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: _install/comoblog_db.xml _install/patch_1.php include/libraries.inc.php lang/english.inc.php templates/add_comment.tpl.htm templates/index.tpl.htm templates/list_comments.tpl.htm Added Files: htaccess _install/upgrades/1.1_to_1.2.xml ---------------------------------------------------------------------- Index: comoblog_db.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_db.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- comoblog_db.xml 13 Nov 2005 12:35:27 -0000 1.5 +++ comoblog_db.xml 17 Feb 2006 15:16:36 -0000 1.6 @@ -7,6 +7,7 @@ <field name="comment_text" specs="mediumtext" /> <field name="comment_author" specs="varchar(128) default NULL" /> <field name="comment_author_email" specs="varchar(128) default NULL" /> + <field name="comment_author_url" specs="varchar(128) default NULL" /> <field name="comment_added" specs="int(10) unsigned default NULL" /> <field name="post_id" specs="int(10) unsigned NOT NULL default '0'" /> @@ -80,6 +81,10 @@ <field name="post_mail_user_agent" specs="varchar(255) default NULL" /> <field name="topic_id" specs="int(10) unsigned NOT NULL default '0'" /> + <field name="post_tags" specs="varchar(255) default NULL" /> + + + <pk name="post_id" /> </table> @@ -250,6 +255,19 @@ <uk name="topic_keyword" /> </table> + <table name="comoblog_tags"> + <field name="tag_id" specs="int(10) unsigned NOT NULL auto_increment" /> + <field name="tag_keyword" specs="varchar(64) default NULL" /> + <field name="tag_name" specs="varchar(63) default NULL" /> + <field name="tag_description" specs="varchar(255) default NULL" /> + <field name="img_id" specs="int(10) unsigned default NULL" /> + + <pk name="tag_id" /> + <uk name="tag_keyword" /> + </table> + + + <table name="comoblog_trackback_pings"> <field name="trackback_id" specs="int(10) unsigned NOT NULL auto_increment" /> <field name="trackback_title" specs="varchar(255) default NULL" /> Index: patch_1.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/patch_1.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- patch_1.php 22 Dec 2005 05:30:18 -0000 1.1 +++ patch_1.php 17 Feb 2006 15:16:36 -0000 1.2 @@ -13,6 +13,10 @@ if ($ver = "1.0") $errors = run_script(dirname(__FILE__)."/upgrades/1.0_to_1.1.xml"); +if ($ver = "1.1") + $errors = run_script(dirname(__FILE__)."/upgrades/1.1_to_1.2.xml"); + + if (count($errors) == 0) { Header ('Location: patch_2.php'); |
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_rss2/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_rss2/include Modified Files: mod_rss2.inc.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_rss2.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_rss2/include/mod_rss2.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_rss2.inc.php 16 Feb 2006 23:09:35 -0000 1.2 +++ mod_rss2.inc.php 17 Feb 2006 13:59:29 -0000 1.3 @@ -19,9 +19,7 @@ $row['post_trackback_list'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=list'; $row['post_trackback_list_rss'] = CFG_SITE_URL.'trackback.php'.$iisbug.'/'.$row['post_id'].'?__mode=rss'; $row['post_mail_from'] = "hidden"; - //echo $row['post_mail_date']; $row['post_mail_date_rss'] = gmstrftime("%a, %d %b %Y %T %Z",$row['post_mail_date']); - //echo $row['post_mail_date']; $posts[] = $row; } |
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_postbytitle/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_postbytitle/include Modified Files: mod_postbytitle.inc.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_postbytitle.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_postbytitle/include/mod_postbytitle.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_postbytitle.inc.php 27 Nov 2005 21:10:07 -0000 1.1 +++ mod_postbytitle.inc.php 17 Feb 2006 13:59:28 -0000 1.2 @@ -4,20 +4,16 @@ $post_id = ''; if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/') $post_id = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); - - # echo $post_id; - $query = "select * from ".CFG_MYSQL_TABPREFIX."posts order by post_mail_date desc "; + $query = "select * from ".CFG_MYSQL_TABPREFIX."posts order by post_mail_date desc "; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); - $items = array(); while ($row = mysql_fetch_assoc($res)) { $row['is_selected'] =""; if ($row['post_id'] == $post_id){ $row['is_selected'] ="SELECTED";} - #echo $row['post_id'] ." - " . $row['is_selected'] . "<br>"; $items[] = $row; } return ($items); |
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_prevnext/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_prevnext/include Modified Files: mod_prevnext.inc.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_prevnext.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_prevnext/include/mod_prevnext.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_prevnext.inc.php 11 Dec 2005 21:53:04 -0000 1.2 +++ mod_prevnext.inc.php 17 Feb 2006 13:59:29 -0000 1.3 @@ -5,17 +5,14 @@ }else{ $iisbug = ''; } - $query = "select p.post_id as next_post_id from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id > '".$post_id."' order by p.post_id limit 1"; $res = mysql_query($query); - echo mysql_errno() . ": " . mysql_error(). ":" .$query . "<hr>\n"; if (!$res || !mysql_num_rows($res)){ return (false); } $post = mysql_fetch_array($res); $returnval = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post['next_post_id']; - echo $returnval; return ($returnval); } @@ -29,14 +26,12 @@ $query = "select p.post_id as prev_post_id from ".CFG_MYSQL_TABPREFIX."posts p where p.post_id < '".$post_id."' order by p.post_id desc limit 1"; $res = mysql_query($query); - echo mysql_errno() . ": " . mysql_error(). ":" .$query . "<hr>\n"; - if (!$res || !mysql_num_rows($res)){ + if (!$res || !mysql_num_rows($res)){ return (false); } $post = mysql_fetch_array($res); $returnval = CFG_SITE_URL.'post.php'.$iisbug.'/'.$post['prev_post_id']; - echo $returnval; return ($returnval); } |
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_recentpostbytitle/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_recentpostbytitle/include Modified Files: mod_recentpostbytitle.inc.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_recentpostbytitle.inc.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_recentpostbytitle.inc.php 29 Jan 2006 08:33:19 -0000 1.2 +++ mod_recentpostbytitle.inc.php 17 Feb 2006 13:59:29 -0000 1.3 @@ -4,9 +4,6 @@ $post_id = ''; if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/') $post_id = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); - - # echo $post_id; - $query = "select * from ".CFG_MYSQL_TABPREFIX."posts order by post_mail_date desc limit " .CFG_RECENTPOSTBYTITLE_LIMIT ; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) @@ -16,7 +13,6 @@ while ($row = mysql_fetch_assoc($res)) { $row['is_selected'] =""; if ($row['post_id'] == $post_id){ $row['is_selected'] ="SELECTED";} - #echo $row['post_id'] ." - " . $row['is_selected'] . "<br>"; $items[] = $row; } return ($items); |
|
From: iamdecal <iam...@us...> - 2006-02-17 13:59:38
|
Update of /cvsroot/comoblog/modules/mod_prevnext In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29786/mod_prevnext Modified Files: mod_prevnext.php Log Message: removed some spurious warnings that were causing problems at test.iamdecal.co.uk - (cvs build of site and modules) getting this site ready for a proper test of skining modules that inherit a global style search enginge friendly urls ---------------------------------------------------------------------- Enter Log. Lines beginning with `CVS:' are removed automatically Committing in . Modified Files: mod_postbytitle/include/mod_postbytitle.inc.php mod_prevnext/mod_prevnext.php mod_prevnext/include/mod_prevnext.inc.php mod_recentpostbytitle/include/mod_recentpostbytitle.inc.php mod_rss2/include/mod_rss2.inc.php ---------------------------------------------------------------------- Index: mod_prevnext.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_prevnext/mod_prevnext.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- mod_prevnext.php 11 Dec 2005 21:53:04 -0000 1.2 +++ mod_prevnext.php 17 Feb 2006 13:59:28 -0000 1.3 @@ -14,39 +14,23 @@ ){ $post_id = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); } - -echo "post_id=(" . $post_id .")"; -echo "<br/>(SERVER-PATH_INFO " . $_SERVER['PATH_INFO'] .")"; -echo "<br/>(SERVER-SCRIPT_FILENAME " . $_SERVER['SCRIPT_FILENAME'] .")"; -ECHO "<hr>"; if($post_id) { - - $prevnext_prevlink = mod_prevnext_post_prev($post_id); $prevnext_nextlink = mod_prevnext_post_next($post_id); - echo $prevnext_prevlink; - echo $prevnext_nextlink; - $mod_prevnext_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_prevnext/templates/'.$mod_pos.'/mod_prevnext.tpl.htm'); - - if ($prevnext_nextlink) { - echo "next link "; - $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NEXTTEXT ); + $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NEXTTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTLINK', $prevnext_nextlink ); } else { - echo "no next link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTTEXT', CFG_MOD_PREVNEXT_NONEXTTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_NEXTLINK', '#' ); } if ($prevnext_prevlink) { - echo " prev link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVTEXT', CFG_MOD_PREVNEXT_PREVTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVLINK', $prevnext_prevlink ); } else { - echo " no prev link "; $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVTEXT', CFG_MOD_PREVNEXT_NOPREVTEXT ); $mod_prevnext_tpl->assign('CFG_MOD_PREVNEXT_PREVLINK', '#' ); } |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:25
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments/install Added Files: mod_latest_comments.xml Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.xml --- <?xml version="1.0" standalone="no"?> <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <name>mod_latest_comments</name> <description>Shows the latest comments in the side bar</description> <allowed_pos>sidebar</allowed_pos> <allowed_pos>top</allowed_pos> <version>1.0</version> <minimum_supported>1.0</minimum_supported> <certified>1.0</certified> <author>iamdecal iam...@gm... http://www.iamdecal.co.uk</author> <param name="CFG_MOD_LATEST_COMMENTS_FONT_FAMILY" description="" type="font_picker" editable="Y" accept_null="N" value="Verdana,Arial,Helvetica,sans-serif" /> <param name="CFG_MOD_LATEST_COMMENTS_FONT_SIZE" description="" type="text" editable="Y" accept_null="N" value="11" /> <param name="CFG_MOD_LATEST_COMMENTS_FONT_SIZE" description="" type="text" editable="Y" accept_null="N" value="11" /> <param name="CFG_MOD_LATEST_COMMENTS_COLOR" value="990033" description="Text colour for the LATEST_COMMENTS header text" encrypt="N" type="color_picker" restrict_values="" accept_null="N" editable="Y" display_order="" /> <param name="CFG_MOD_LATEST_COMMENTS_A_COLOR" value="990033" description="Text colour for links in the latest comments section" encrypt="N" type="color_picker" restrict_values="" accept_null="N" editable="Y" display_order="" /> <param name="CFG_MOD_LATEST_COMMENTS_A_TEXT_DECORATION" value="none" description="Text decoration for links in the latest comments section" encrypt="N" type="select" restrict_values="none|underline|overline|line-through" accept_null="N" editable="Y" display_order="" /> <param name="CFG_MOD_LATEST_COMMENTS_A_HOVER_COLOR" value="990033" description="Text colour for links in the latest comments section (when mouse is over)" encrypt="N" type="color_picker" restrict_values="" accept_null="N" editable="Y" display_order="" /> <param name="CFG_MOD_LATEST_COMMENTS_A_HOVER_TEXT_DECORATION" value="underline" description="Text decoration for links in the latest comments section (when mouse is over)" encrypt="N" type="select" restrict_values="none|underline|overline|line-through" accept_null="N" editable="Y" display_order="" /> </module> |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:25
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments/include Added Files: mod_latest_comments.inc.php Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.inc.php --- <?php function latest_comments ($howmany) { if (CFG_USE_PATH_INFO == 'no') $iisbug = '?'; else $iisbug = ''; $query = " select c.*, p.* from easymoblog_posts p , easymoblog_comments c where p.post_id =c.post_id order by comment_id desc limit 0,".$howmany.";"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $posts = array(); while ($row = mysql_fetch_array($res)) { $row['post_permalink'] = CFG_SITE_URL.'post.php'.$iisbug.'/'.$row['post_id']; error_log($row['comment_added']); $row['comment_added'] = gmstrftime("%a, %d %b %Y at %T %Z",$row['comment_added']); error_log($row['comment_added']); $posts[] = $row; } return ($posts); } ?> |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:25
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments/css Added Files: mod_latest_comments.css.php Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_latest_comments', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' #mod_latest_comments { font-size: '.CFG_MOD_LATEST_COMMENTS_FONT_SIZE.'px; font-family: '.CFG_MOD_LATEST_COMMENTS_FONT_FAMILY.'; color: #'.CFG_MOD_LATEST_COMMENTS_COLOR.'; } #mod_latest_comments a { color: #'.CFG_MOD_LATEST_COMMENTS_A_COLOR.'; text-decoration: '.CFG_MOD_LATEST_COMMENTS_A_TEXT_DECORATION.'; } #mod_latest_comments a:hover { color: #'.CFG_MOD_LATEST_COMMENTS_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_LATEST_COMMENTS_A_HOVER_TEXT_DECORATION.'; } '; } mysql_close(); ?> |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:25
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments/templates Added Files: mod_latest_comments.tpl.html Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.tpl.html --- <!-- BEGIN: main --> <div id="mod_latest_comments"> Latest Comments <!-- BEGIN: latest_comments --> on {LATEST_COMMENTS.comment_added}, {LATEST_COMMENTS.comment_author} said <br/> <b><i> {LATEST_COMMENTS.comment_text} </i></b> <br/> about : <a href="{LATEST_COMMENTS.post_permalink}">{LATEST_COMMENTS.post_mail_subject}</a> <br/><br/><br/> <!-- END: latest_comments --> <hr/> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:24
|
Update of /cvsroot/comoblog/modules/mod_latest_comments In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments Added Files: index.php mod_latest_comments.php Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments.php --- <?php require_once (CFG_BASE_PATH.'/modules/mod_latest_comments/include/mod_latest_comments.inc.php'); $mod_contents = ''; $latest_comments = latest_comments(10); $latest_comments_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_latest_comments/templates/mod_latest_comments.tpl.html'); if ($latest_comments) { for ($c = 0; $c < count($latest_comments); $c++) { $latest_comments[$c]['post_mail_subject'] = htmlspecialchars(strip_tags($latest_comments[$c]['post_mail_subject'])); $latest_comments[$c]['post_mail_from'] = htmlspecialchars(strip_tags($latest_comments[$c]['post_mail_from'])); $latest_comments_tpl->assign('LATEST_COMMENTS', $latest_comments[$c]); $latest_comments_tpl->parse('main.latest_comments'); } $mod_contents .= $latest_comments_tpl->parse('main'); $mod_contents .= $latest_comments_tpl->text("main"); } else { $mod_contents =""; } ?> --- NEW FILE: index.php --- |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:24:24
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32685/mod_latest_comments/img Added Files: mod_latest_comments.gif mod_latest_comments_big.gif Log Message: MOD LATEST COMMENTS as request https://sourceforge.net/forum/message.php?msg_id=3580702 lists the text of the latest comments in the side bar --- NEW FILE: mod_latest_comments_big.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_latest_comments.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:14:41
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27303/img Log Message: Directory /cvsroot/comoblog/modules/mod_latest_comments/img added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:14:41
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27303/include Log Message: Directory /cvsroot/comoblog/modules/mod_latest_comments/include added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:14:41
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27303/css Log Message: Directory /cvsroot/comoblog/modules/mod_latest_comments/css added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:14:41
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27303/templates Log Message: Directory /cvsroot/comoblog/modules/mod_latest_comments/templates added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-16 23:14:40
|
Update of /cvsroot/comoblog/modules/mod_latest_comments/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27303/install Log Message: Directory /cvsroot/comoblog/modules/mod_latest_comments/install added to the repository |