comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 9)
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-08-16 00:29:49
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19361 Modified Files: comoblog_preferences.xml Log Message: Hi Mark, I think the version was wrong - looking at the upgrade script (1.1 - 1.2) it looks like were already at 1.2 but the install thinks its 1.1 ill add this , then do my update as 1.2-1.3 can you confir, that or back this out, cheers man Index: comoblog_preferences.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_preferences.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- comoblog_preferences.xml 15 Aug 2006 16:56:30 -0000 1.16 +++ comoblog_preferences.xml 16 Aug 2006 00:29:45 -0000 1.17 @@ -3,7 +3,7 @@ <param name="CFG_VERSION" - value="1.1" + value="1.2" description="CoMoblog version number" topic_id="0" encrypt="N" |
|
From: iamdecal <iam...@us...> - 2006-08-15 17:06:09
|
Update of /cvsroot/comoblog/modules/mod_comment_notify/install In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24684/mod_comment_notify/install Modified Files: mod_comment_notify.xml Log Message: Extended to approve or bar users from making live comments to comoblog Index: mod_comment_notify.xml =================================================================== RCS file: /cvsroot/comoblog/modules/mod_comment_notify/install/mod_comment_notify.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- mod_comment_notify.xml 16 Dec 2005 00:48:47 -0000 1.5 +++ mod_comment_notify.xml 15 Aug 2006 17:06:04 -0000 1.6 @@ -5,7 +5,7 @@ <description>Sends an email (using smtp) when a comment is added</description> <allowed_pos>not_visible</allowed_pos> <filter_posts>N</filter_posts> - <filter_comments>Y</filter_comments> + <filter_comments>0</filter_comments> <version>1.0</version> <minimum_supported>1.0</minimum_supported> <certified>1.0</certified> |
|
From: iamdecal <iam...@us...> - 2006-08-15 17:06:08
|
Update of /cvsroot/comoblog/modules/mod_comment_notify In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv24684/mod_comment_notify Modified Files: mod_comment_notify_comment_filter.php Added Files: quickcomment.php Log Message: Extended to approve or bar users from making live comments to comoblog --- NEW FILE: quickcomment.php --- <?php require_once(dirname(__FILE__).'/include/mod_comment_notify.inc.php'); require_once(dirname(__FILE__).'../../include/config.inc.php'); /* we have four vars $_GET['setLive'] -> the state to set the comment to $_GET['qp'] -> the quick password so that we know its valid $_GET['preAuth'] -> preauth or prebar this user $_GET['comment_id'] -> which comment id. */ /* first off check the password - if thats wrong or empty or not passed, then get out of dodge - but dont say anything so that naughty people wont know that its failed (of course they're bound to have read this comment any way so its pretty futile ;-( */ if (!$_GET['qp'] || $_GET['qp']=="" || $_GET['qp'] != CFG_COMMENTS_QUICK_PASS ){ exit; } /* * *work out who we are going to be dealing with. we dont use the email address in the link as there will be encoding issues, plus we're using a get request which means the email would be in the log files which may appear else where on the site' */ $commenter_author_email = get_email_address_for_this_comment($_GET['comment_id']); if ($_GET['setLive'] && $_GET['setLive']!="" ){ $retval = set_comment_state($_GET['setLive']); echo "Comment set to " . $_GET['setLive'] ."\n"; } if ($_GET['preAuth'] && $_GET['preAuth']!="" ){ $retval = set_commenter_approval_state($commenter_author_email,$_GET['preAuth']); echo "commenter preauth was set to " . $_GET['preAuth'] ."\n"; } ?> Index: mod_comment_notify_comment_filter.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_comment_notify/mod_comment_notify_comment_filter.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- mod_comment_notify_comment_filter.php 16 Dec 2005 00:57:25 -0000 1.7 +++ mod_comment_notify_comment_filter.php 15 Aug 2006 17:06:04 -0000 1.8 @@ -7,7 +7,36 @@ $body .= "Post ID:" . $comment['post_id'] ."\n"; $body .= "Link: " .CFG_SITE_URL. "post.php?/". $comment['post_id'] ."\n"; $body .= "From: " . $comment['comment_author'] . " - " . $comment['comment_author_email'] ."\n"; +$body .="\n\n"; +$body .="This comment was added with a state of " . $comment['comment_live'] ."\n"; +$body .="This commenters pre approved state is " . get_commenter_approval_state($comment['comment_author_email']) ."\n"; + + + +// if the comment is LIVE - give option to hide it. +if ($comment['comment_live'] =="Y"){ + $body .="Click here to HIDE this comment " . + CFG_SITE_URL. "/modules/mod_comment_notify/quickcomment.php?qp=CFG_COMMENTS_QUICK_PASS&setLive=N&comment_id=".$comment['comment_id']."\n"; + } + + // if the comment is NOT LIVE - give option to hide it. +if ($comment['comment_live'] =="N"){ + $body .="Click here to SHOW this comment " . + CFG_SITE_URL. "/modules/mod_comment_notify/quickcomment.php?qp=CFG_COMMENTS_QUICK_PASS&setLive=Y&comment_id=".$comment['comment_id']."\n"; + } + + $body .="Click here to HIDE this AND ALL FUTURE comments from this commenters " . + CFG_SITE_URL. "/modules/mod_comment_notify/quickcomment.php?qp=CFG_COMMENTS_QUICK_PASS&setLive=N&preAuth=N&comment_id=".$comment['comment_id']."\n"; + + + $body .="Click here to SHOW this AND ALL FUTURE comments from this commenters " . + CFG_SITE_URL. "/modules/mod_comment_notify/quickcomment.php?qp=CFG_COMMENTS_QUICK_PASS&setLive=Y&preAuth=Y&comment_id=".$comment['comment_id']."\n"; + +$body .="\n\nFor Clarity - This will not affect comments posted before these links are clicked,\n\n"; + +$body .="\n\n\n"; $body .= "Comment:\n\n" . filter_html($comment['comment_text']) ."\n"; +$body .="\n\n\n"; $headerstring = "MIME-Version: 1.0\r\n". |
|
From: iamdecal <iam...@us...> - 2006-08-15 16:56:35
|
Update of /cvsroot/comoblog/comoblog/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20529/include Modified Files: config.inc.php libraries.inc.php Log Message: Initial commit of the comment verificatin code - see also mod_comment_notify still needs update script doing - but this works (for me at least) as a new install. will document fully when i get home tonight, but briefly.. - new collumn in comments table for live state (y or n) - new preferences for default live state and a quick password - new table for preauthenticated users / pre bared users - new code in libraries.inc.php to manipulate the above Index: libraries.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/libraries.inc.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- libraries.inc.php 17 Feb 2006 15:16:37 -0000 1.9 +++ libraries.inc.php 15 Aug 2006 16:56:31 -0000 1.10 @@ -411,6 +411,62 @@ return (true); } +function get_commenter_approval_state($commenter_author_email){ + + // gets the default for people who have been recorded before, + // returns "unknown_user" for people who it cant find + // and Y or N if it can. + $query = " + select c.commenter_default + from ".CFG_MYSQL_TABPREFIX."commenters c + where c.commenter_author_email= '".addslashes($commenter_author_email)."'"; + $res = mysql_query($query); + + if (!$res || !mysql_num_rows($res)){ + return ("unknown_user"); + } + + return mysql_query($res,0,0); + +} + +function set_commenter_approval_state($commenter_author_email,$state){ + + // empty place holder + $query =""; + // find out if we know about the user already. + if (get_commenter_approval_state($commenter_author_email) !="unknown_user"){ + // if we do - update the record. + $query ="update ".CFG_MYSQL_TABPREFIX."commenters " . + "set commenter_default=''".addslashes($state)."'" . + "' where commenter_author_email= '".addslashes($commenter_author_email)."'"; + } + + else { + // if not - add a record + $query = " + insert into ".CFG_MYSQL_TABPREFIX."commenters + (comment_author_email,commenter_default) + values ( + '".addslashes($commenter_author_email)."', + '".addslashes($state)."' + ) + "; + } + + + // run the query + $res = mysql_query($query); + + if (!$res) + return (false); + + $insert_id = mysql_insert_id(); + + return ($insert_id); + +} + function comment_add ($comment) { $comment['comment_author'] = clean_up_txt($comment['comment_author']); @@ -422,27 +478,41 @@ $comment['comment_text'] = clean_up_txt($comment['comment_text']); } + + + // first we get the default state for new comments + if (CFG_COMMENTS_DEFAULT_STATE == 'yes'){ + $comment['comment_live'] = "Y"; + } + else { + $comment['comment_live'] = "N"; + } + // then we check if we have seen them before + if (get_commenter_approval_state($comment['comment_author_email']) !="unknown_user"){ + $comment['comment_live'] =get_commenter_approval_state($comment['comment_author_email']); + } // apply comment filters - global $COMMENT_FILTERS; - if (count($COMMENT_FILTERS) > 0) { - for ($comment_cnt = 0; $comment_cnt < count($COMMENT_FILTERS); $comment_cnt++) { - include_once (CFG_BASE_PATH.'/modules/'.$COMMENT_FILTERS[$comment_cnt].'/'.$COMMENT_FILTERS[$comment_cnt].'_comment_filter.php'); + global $COMMENT_PRE_FILTERS; + if (count($COMMENT_PRE_FILTERS) > 0) { + for ($comment_cnt = 0; $comment_cnt < count($COMMENT_PRE_FILTERS); $comment_cnt++) { + include_once (CFG_BASE_PATH.'/modules/'.$COMMENT_PRE_FILTERS[$comment_cnt].'/'.$COMMENT_PRE_FILTERS[$comment_cnt].'_comment_filter.php'); } } $query = " insert into ".CFG_MYSQL_TABPREFIX."comments - (comment_author,comment_author_email,comment_author_url,comment_text,comment_added,post_id) + (comment_author,comment_author_email,comment_author_url,comment_text,comment_added,post_id,comment_live) values ( '".addslashes($comment['comment_author'])."', '".addslashes($comment['comment_author_email'])."', - '".addslashes($comment['comment_author_url'])."', + '".addslashes($comment['comment_author_url'])."', '".addslashes($comment['comment_text'])."', '".time()."', - '".$comment['post_id']."' + '".$comment['post_id']."', + '".$comment['comment_live']."' ) "; $res = mysql_query($query); @@ -452,6 +522,15 @@ $comment['comment_id'] = mysql_insert_id(); + // apply comment filters + global $COMMENT_POST_FILTERS; + if (count($COMMENT_POST_FILTERS) > 0) { + for ($comment_cnt = 0; $comment_cnt < count($COMMENT_POST_FILTERS); $comment_cnt++) { + include_once (CFG_BASE_PATH.'/modules/'.$COMMENT_POST_FILTERS[$comment_cnt].'/'.$COMMENT_POST_FILTERS[$comment_cnt].'_comment_filter.php'); + } + } + + return ($comment); } Index: config.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/include/config.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- config.inc.php 5 Oct 2005 00:45:34 -0000 1.2 +++ config.inc.php 15 Aug 2006 16:56:31 -0000 1.3 @@ -50,6 +50,8 @@ $POST_PRE_FILTERS = array(); $POST_POST_FILTERS = array(); $COMMENT_FILTERS = array(); +$COMMENT_PRE_FILTERS = array(); +$COMMENT_POST_FILTERS = array(); $query = " select mod_name, mod_pos, mod_display_order, mod_filter_posts, mod_filter_comments from ".CFG_MYSQL_TABPREFIX."modules @@ -67,12 +69,20 @@ $TOP_MODULES[] = $row['mod_name']; } - if ($row['mod_filter_posts'] == 'Y') + if ($row['mod_filter_posts'] == 'Y'){ $POST_PRE_FILTERS[] = $row['mod_name']; - else if ($row['mod_filter_posts'] == 'O') + } + else if ($row['mod_filter_posts'] == 'O'){ $POST_POST_FILTERS[] = $row['mod_name']; - if ($row['mod_filter_comments'] == 'Y') - $COMMENT_FILTERS[] = $row['mod_name']; + } + if ($row['mod_filter_comments'] == 'Y'){ + $COMMENT_PRE_FILTERS[] = $row['mod_name']; + } + else if ($row['mod_filter_comments'] == 'O'){ + $COMMENT_POST_FILTERS[] = $row['mod_name']; + } + + } } ?> |
|
From: iamdecal <iam...@us...> - 2006-08-15 16:56:35
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20529/_install Modified Files: comoblog_db.xml comoblog_preferences.xml Log Message: Initial commit of the comment verificatin code - see also mod_comment_notify still needs update script doing - but this works (for me at least) as a new install. will document fully when i get home tonight, but briefly.. - new collumn in comments table for live state (y or n) - new preferences for default live state and a quick password - new table for preauthenticated users / pre bared users - new code in libraries.inc.php to manipulate the above Index: comoblog_preferences.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_preferences.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- comoblog_preferences.xml 9 Jan 2006 13:22:43 -0000 1.15 +++ comoblog_preferences.xml 15 Aug 2006 16:56:30 -0000 1.16 @@ -326,6 +326,32 @@ editable="Y" display_order="0" /> + + <param + name="CFG_COMMENTS_DEFAULT_STATE" + value="yes" + description="Comments Are Live By Default" + topic_id="5" + encrypt="N" + type="select" + restrict_values="yes|no" + accept_null="N" + editable="Y" + display_order="0" + /> + + <param + name="CFG_COMMENTS_QUICK_PASS" + value="yes" + description="Add a password for quick changes to commenting users (with Mod Comment Notify) DO NOT USE YOUR MAIN SITE PASSWORD" + topic_id="5" + encrypt="Y" + type="password" + restrict_values="16" + accept_null="Y" + editable="Y" + display_order="0" + /> <param name="CFG_INTERACTION_TRACKBACK" Index: comoblog_db.xml =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/comoblog_db.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- comoblog_db.xml 21 Feb 2006 06:39:39 -0000 1.7 +++ comoblog_db.xml 15 Aug 2006 16:56:30 -0000 1.8 @@ -9,10 +9,22 @@ <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'" /> + <field name="post_id" specs="int(10) unsigned NOT NULL default '0'" /> + <field name="comment_live" specs="varchar(1) default 'N'" /> <pk name="comment_id" /> </table> + + + + <table name="comoblog_commenters"> + <field name="commenter_id" specs="int(10) unsigned NOT NULL auto_increment" /> + <field name="commenter_author_email" specs="varchar(128) default NULL" /> + <field name="commenter_default" specs="varchar(1) default 'N'" /> + + + <pk name="commenter_id" /> + </table> <table name="comoblog_images"> <field name="img_id" specs="int(10) unsigned NOT NULL auto_increment" /> |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-07-05 00:20:50
|
Update of /cvsroot/comoblog/comoblog/admin In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29942/admin Modified Files: post_edit.php Log Message: Fix for HTML entities being lost during post edit Index: post_edit.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/post_edit.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- post_edit.php 15 Dec 2005 22:10:15 -0000 1.10 +++ post_edit.php 5 Jul 2006 00:20:46 -0000 1.11 @@ -184,6 +184,7 @@ $post['post_mail_date'] = $strdate; $post['post_mail_from'] = htmlentities(antispam($post['post_mail_from'])); + $post['post_mail_body'] = htmlentities($post['post_mail_body']); $tpl->assign('POST', $post); |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-07-05 00:20:50
|
Update of /cvsroot/comoblog/comoblog/docs In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv29942/docs Modified Files: CHANGELOG Log Message: Fix for HTML entities being lost during post edit Index: CHANGELOG =================================================================== RCS file: /cvsroot/comoblog/comoblog/docs/CHANGELOG,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- CHANGELOG 19 Apr 2006 12:38:33 -0000 1.37 +++ CHANGELOG 5 Jul 2006 00:20:46 -0000 1.38 @@ -7,6 +7,7 @@ * FEATURE: Initial post tagging support (1315711) * MODULE: Updated mod_calendar to 1.3 * BUG: Fix for '1970' calendar problem +* BUG: HTML entities were lost during post edit CoMoblog 1.1, 2006-01-09 ---------------------------- |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-04-19 12:38:49
|
Update of /cvsroot/comoblog/comoblog/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30013/docs Modified Files: CHANGELOG Log Message: Fix for the 1970 calendar problem Index: CHANGELOG =================================================================== RCS file: /cvsroot/comoblog/comoblog/docs/CHANGELOG,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- CHANGELOG 23 Feb 2006 13:11:13 -0000 1.36 +++ CHANGELOG 19 Apr 2006 12:38:33 -0000 1.37 @@ -6,6 +6,7 @@ * FEATURE: URL added for comment posted * FEATURE: Initial post tagging support (1315711) * MODULE: Updated mod_calendar to 1.3 +* BUG: Fix for '1970' calendar problem CoMoblog 1.1, 2006-01-09 ---------------------------- |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-04-19 12:38:49
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30013 Modified Files: index.php Log Message: Fix for the 1970 calendar problem Index: index.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- index.php 24 Feb 2006 00:01:13 -0000 1.4 +++ index.php 19 Apr 2006 12:38:33 -0000 1.5 @@ -27,12 +27,17 @@ if(isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/') { $current_date = substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])-1); - $y = substr($current_date,0,4); - $m = substr($current_date,4,2); - $d = substr($current_date,6,2); + if (strlen($current_date) >= 8) + { + $y = substr($current_date,0,4); + $m = substr($current_date,4,2); + $d = substr($current_date,6,2); - $current_timestamp = mktime(0,0,0,$m,$d,$y); - if ($current_timestamp > time() || $current_timestamp <= 0) + $current_timestamp = mktime(0,0,0,$m,$d,$y); + if ($current_timestamp > time() || $current_timestamp <= 0) + $current_timestamp = time(); + } + else $current_timestamp = time(); } else { |
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2006-03-29 04:36:12
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4264 Modified Files: img.php Log Message: Fix a XSS Index: img.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/img.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- img.php 16 Aug 2005 05:49:43 -0000 1.1.1.1 +++ img.php 29 Mar 2006 04:36:04 -0000 1.2 @@ -1,5 +1,7 @@ <?php -$img_name = $_GET['i']; +require_once ("include/config.inc.php"); + +$img_name = clean_up_html($_GET['i']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:41:38
|
Update of /cvsroot/comoblog/modules/mod_skinselect/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7866/mod_skinselect/install Modified Files: mod_skinselect.xml Log Message: added a proof of concept skin to aid testing, and a few more user options to control if the modules css should be loaded, and if the base comoblog css should be loaded. Index: mod_skinselect.xml =================================================================== RCS file: /cvsroot/comoblog/modules/mod_skinselect/install/mod_skinselect.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_skinselect.xml 24 Feb 2006 00:01:33 -0000 1.1 +++ mod_skinselect.xml 24 Feb 2006 00:41:34 -0000 1.2 @@ -100,6 +100,28 @@ restrict_values="Y|N" /> + + <param + name="CFG_MOD_SKINSELECT_INCLUDE_MODULES" + description="Include the css for each module" + type="select" + editable="Y" + accept_null="N" + value="Y" + restrict_values="Y|N" + /> + + <param + name="CFG_MOD_SKINSELECT_INCLUDE_BASE" + description="Include the base css for comoblog" + type="select" + editable="Y" + accept_null="N" + value="Y" + restrict_values="Y|N" + /> + + <param name="CFG_MOD_SKINSELECT_DEFAULT" |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:41:26
|
Update of /cvsroot/comoblog/comoblog/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7776/templates Modified Files: index.tpl.htm Log Message: added a proof of concept skin to aid testing, and a few more user options to control if the modules css should be loaded, and if the base comoblog css should be loaded. Index: index.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/index.tpl.htm,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- index.tpl.htm 17 Feb 2006 15:16:37 -0000 1.5 +++ index.tpl.htm 24 Feb 2006 00:41:20 -0000 1.6 @@ -1,130 +1,143 @@ -<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} - -<div id="header"> - <h1><!-- BEGIN: logo --><a href="{SITE_URL}index.php" title="{TITLE}"><img src="{SITE_URL}img/comoblog/{LOGO_IMG}" border="0" alt="{TITLE}" /></a><!-- END: logo --><!-- BEGIN: title --><a href="{SITE_URL}index.php"> {TITLE} </a><!-- END: title --></h1> -</div> - - -<!-- BEGIN: top_bar --> -<div id="topbar"> - <!-- BEGIN: top_module --><div class="topbar_module">{TOP_MODULE}</div><!-- END: top_module --> -</div> -<!-- END: top_bar --> - - -<div id="contents"> - - <div id="sidebar"> - <!-- BEGIN: sidebar_image --> - <img src="{SITE_URL}img/comoblog/{SIDEBAR_IMG}" border="0" alt="" /> - <!-- END: sidebar_image --> - <!-- BEGIN: sidebar_module --> - <div class="sidebar_module">{SIDEBAR_MODULE}</div> - <!-- END: sidebar_module --> - </div> - - <!-- BEGIN: intro --> - <div id="intro"><p>{INTRO_TEXT}</p></div> - <!-- END: intro --> - - <div id="page_title"> - <h2>{PAGE_TITLE}</h2> - <!-- BEGIN: noposts --> - <p>{TXT.no_posts_today}</p> - <!-- END: noposts --> - </div> - - <div id="posts"> - <!-- BEGIN: post --> - <div class="post"> - <!-- BEGIN: auto_discovery_trackback --> - <!-- - <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> - <rdf:Description - rdf:about="{POST.post_permalink}" - dc:identifer="{POST.post_permalink}" - dc:title="{POST.post_mail_subject}" - trackback:ping="{POST.post_trackback_ping_url}" /> - </rdf:RDF> - --> - <!-- END: auto_discovery_trackback --> - <p class="post_header"><!-- BEGIN: topic --><a title="[{POST.topic_name}]" href="{SITE_URL}topic.php/{POST.topic_id}"><img src="{SITE_URL}img/topics/{POST.topic_img}" border="0" alt="[{POST.topic_name}]" /></a><!-- END: topic -->{TXT.post_received} {POST.post_mail_date} <!-- BEGIN: author -->{TXT.post_from} {POST.post_mail_from} <!-- END: author --></p> - <h3>{POST.post_mail_subject}</h3> - <p class="post_body">{POST.post_mail_body}</p> - - <!-- BEGIN: thumb_img --> - <a href="{SITE_URL}img.php?i={IMAGE.img_name}" onclick="open_popup(this.href,{IMAGE.img_width},{IMAGE.img_height});return false;" title="{TXT.enlarge}"><img class="post_img" src="{SITE_URL}img/posts/{IMAGE.img_thumb_name}" border="0" alt="" /></a> - <!-- END: thumb_img --> - <!-- BEGIN: img --> - <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: comments --> - <h4>{TXT.comments_for_post}</h4> -<!-- 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"> - <!-- BEGIN: comment_button --> - <img src="{SITE_URL}img/comoblog/{COMMENTS_IMG}" border="0" alt="{TXT.comments}" /> {TXT.comments}: {POST.post_comments} | <a href="{SITE_URL}list_comments.php?i={POST.post_id}" onclick="open_popup(this.href,430,430); return false;">{TXT.view}</a> | <a href="{SITE_URL}add_comment.php?i={POST.post_id}" onclick="open_popup(this.href,430,430); return false;">{TXT.add}</a> - <!-- END: comment_button --> - <img src="{SITE_URL}img/comoblog/{PERMALINK_IMG}" border="0" alt="{TXT.permalink}" /> <a href="{POST.post_permalink}">{TXT.permalink}</a> - <!-- BEGIN: trackback_button --> - <img src="{SITE_URL}img/comoblog/{TRACKBACK_IMG}" border="0" alt="{TXT.trackback}" /> <a href="{POST.post_trackback_list}" onclick="void open_popup(this.href,430,430); return false;">{TXT.trackback}</a> - <!-- END: trackback_button --> - </div> - </div> - <!-- END: post --> - - <!-- BEGIN: posts_list --> - <div class="post"> - <!-- BEGIN: post --> - <p class="post_header"><!-- BEGIN: topic --><img src="{SITE_URL}img/topics/{POST.topic_img}" border="0" alt="[{POST.topic_name}]" /><!-- END: topic -->{TXT.post_received} {POST.post_mail_date} <!-- BEGIN: author -->{TXT.post_from} {POST.post_mail_from} <!-- END: author --></p> - <h3><a href="{POST.post_permalink}">{POST.post_mail_subject}</a></h3> - <!-- END: post --> - </div> - <!-- END: posts_list --> - - </div> - -</div> - -<div id="footer"> - <!-- BEGIN: comoblogo --> - <div id="comoblogo"><a href="http://comoblog.serialmonkey.com/" title="powered by CoMoblog {VERSION}"><img src="{SITE_URL}img/comoblogo.gif" border="0" alt="powered by CoMoblog {VERSION}" title="powered by CoMoblog {VERSION}" /></a></div> - <!-- END: comoblogo --> - <p>{FOOTER_TEXT}</p> -</div> - -{FILE "templates/footer.tpl.htm"} -<!-- END: main --> +<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} + +<div id="header"> + <h1> + <!-- BEGIN: logo --> + <a href="{SITE_URL}index.php" title="{TITLE}"> + <img src="{SITE_URL}img/comoblog/{LOGO_IMG}" border="0" alt="{TITLE}" /> + </a> + <!-- END: logo --> + <!-- BEGIN: title --> + <a href="{SITE_URL}index.php"> {TITLE} </a> + <!-- END: title --> + </h1> +</div> + + +<!-- BEGIN: top_bar --> +<div id="topbar"> + <!-- BEGIN: top_module --> + <div class="topbar_module"> + {TOP_MODULE} + </div> + <!-- END: top_module --> +</div> +<!-- END: top_bar --> + + +<div id="contents"> + + <div id="sidebar"> + <!-- BEGIN: sidebar_image --> + <img src="{SITE_URL}img/comoblog/{SIDEBAR_IMG}" border="0" alt="" /> + <!-- END: sidebar_image --> + <!-- BEGIN: sidebar_module --> + <div class="sidebar_module">{SIDEBAR_MODULE}</div> + <!-- END: sidebar_module --> + </div> + + <!-- BEGIN: intro --> + <div id="intro"><p>{INTRO_TEXT}</p></div> + <!-- END: intro --> + + <div id="page_title"> + <h2>{PAGE_TITLE}</h2> + <!-- BEGIN: noposts --> + <p>{TXT.no_posts_today}</p> + <!-- END: noposts --> + </div> + + <div id="posts"> + <!-- BEGIN: post --> + <div class="post"> + <!-- BEGIN: auto_discovery_trackback --> + <!-- + <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"> + <rdf:Description + rdf:about="{POST.post_permalink}" + dc:identifer="{POST.post_permalink}" + dc:title="{POST.post_mail_subject}" + trackback:ping="{POST.post_trackback_ping_url}" /> + </rdf:RDF> + --> + <!-- END: auto_discovery_trackback --> + <p class="post_header"><!-- BEGIN: topic --><a title="[{POST.topic_name}]" href="{SITE_URL}topic.php/{POST.topic_id}"><img src="{SITE_URL}img/topics/{POST.topic_img}" border="0" alt="[{POST.topic_name}]" /></a><!-- END: topic -->{TXT.post_received} {POST.post_mail_date} <!-- BEGIN: author -->{TXT.post_from} {POST.post_mail_from} <!-- END: author --></p> + <h3>{POST.post_mail_subject}</h3> + <p class="post_body">{POST.post_mail_body}</p> + + <!-- BEGIN: thumb_img --> + <a href="{SITE_URL}img.php?i={IMAGE.img_name}" onclick="open_popup(this.href,{IMAGE.img_width},{IMAGE.img_height});return false;" title="{TXT.enlarge}"><img class="post_img" src="{SITE_URL}img/posts/{IMAGE.img_thumb_name}" border="0" alt="" /></a> + <!-- END: thumb_img --> + <!-- BEGIN: img --> + <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: comments --> + <h4>{TXT.comments_for_post}</h4> +<!-- 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"> + <!-- BEGIN: comment_button --> + <img src="{SITE_URL}img/comoblog/{COMMENTS_IMG}" border="0" alt="{TXT.comments}" /> {TXT.comments}: {POST.post_comments} | <a href="{SITE_URL}list_comments.php?i={POST.post_id}" onclick="open_popup(this.href,430,430); return false;">{TXT.view}</a> | <a href="{SITE_URL}add_comment.php?i={POST.post_id}" onclick="open_popup(this.href,430,430); return false;">{TXT.add}</a> + <!-- END: comment_button --> + <img src="{SITE_URL}img/comoblog/{PERMALINK_IMG}" border="0" alt="{TXT.permalink}" /> <a href="{POST.post_permalink}">{TXT.permalink}</a> + <!-- BEGIN: trackback_button --> + <img src="{SITE_URL}img/comoblog/{TRACKBACK_IMG}" border="0" alt="{TXT.trackback}" /> <a href="{POST.post_trackback_list}" onclick="void open_popup(this.href,430,430); return false;">{TXT.trackback}</a> + <!-- END: trackback_button --> + </div> + </div> + <!-- END: post --> + + <!-- BEGIN: posts_list --> + <div class="post"> + <!-- BEGIN: post --> + <p class="post_header"><!-- BEGIN: topic --><img src="{SITE_URL}img/topics/{POST.topic_img}" border="0" alt="[{POST.topic_name}]" /><!-- END: topic -->{TXT.post_received} {POST.post_mail_date} <!-- BEGIN: author -->{TXT.post_from} {POST.post_mail_from} <!-- END: author --></p> + <h3><a href="{POST.post_permalink}">{POST.post_mail_subject}</a></h3> + <!-- END: post --> + </div> + <!-- END: posts_list --> + + </div> + +</div> + +<div id="footer"> + <!-- BEGIN: comoblogo --> + <div id="comoblogo"><a href="http://comoblog.serialmonkey.com/" title="powered by CoMoblog {VERSION}"><img src="{SITE_URL}img/comoblogo.gif" border="0" alt="powered by CoMoblog {VERSION}" title="powered by CoMoblog {VERSION}" /></a></div> + <!-- END: comoblogo --> + <p>{FOOTER_TEXT}</p> +</div> + +{FILE "templates/footer.tpl.htm"} +<!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:41:23
|
Update of /cvsroot/comoblog/comoblog/css/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7776/css/default Added Files: default.css Log Message: added a proof of concept skin to aid testing, and a few more user options to control if the modules css should be loaded, and if the base comoblog css should be loaded. --- NEW FILE: default.css --- #header { margin-left: auto; margin-right: auto; width: 760px; background: #ffffff; } #header h1, #header a { padding: 0; margin: 0; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 30px; font-style: normal; color: #000000; text-decoration: none; vertical-align: middle; } #header h1 a { padding-left: 5px; } #topbar { margin-left: auto; margin-right: auto; width: 760px; background: #eeeeee; } .topbar_module { display: inline; padding-left: 5px; } #contents { margin-left: auto; margin-right: auto; width: 760px; overflow: auto; background: #000000; } #sidebar { float: right; width: 160px; background: #2e2e2e; } |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:41:23
|
Update of /cvsroot/comoblog/comoblog/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7776/css Modified Files: comoblog.css.php Log Message: added a proof of concept skin to aid testing, and a few more user options to control if the modules css should be loaded, and if the base comoblog css should be loaded. Index: comoblog.css.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/css/comoblog.css.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- comoblog.css.php 24 Feb 2006 00:01:13 -0000 1.5 +++ comoblog.css.php 24 Feb 2006 00:41:20 -0000 1.6 @@ -4,6 +4,8 @@ Header ('Content-type: text/css'); +if (CFG_MOD_SKINSELECT_INCLUDE_MODULES !="N"){ + // import CSS from activated modules if (count($SIDEBAR_MODULES) > 0) { for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { @@ -19,6 +21,10 @@ } } } +} + + +if (CFG_MOD_SKINSELECT_INCLUDE_BASE !="N"){ echo ' body { @@ -266,21 +272,21 @@ textarea.comment_form { height: 150px; }'; - + } // if we have this param then we have a skinning option,. // if its not the default, then add it here so we can overide the styles // of course if we have it and its default, then we dont need to do anything anyway - if (CFG_MOD_SKINSELECT_DEFAULT !="default"){ + if (CFG_MOD_SKINSELECT_DEFAULT !=""){ $whichSkin=CFG_MOD_SKINSELECT_DEFAULT; - if ($_COOKIE['comoskin'] !="default"){ + if ($_COOKIE['comoskin'] !=""){ $whichSkin= $_COOKIE['comoskin']; } - if (file_exists(CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php')) { + if (file_exists(CFG_BASE_PATH.'/skins/'.$whichSkin.'/'.$whichSkin.'.css')) { echo - '@import url('.CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php);'."\n"; + '@import url('.CFG_BASE_PATH.'/skins/'.$whichSkin.'/'.$whichSkin.'.css);'."\n"; } } |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:38:52
|
Update of /cvsroot/comoblog/comoblog/css/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5854/default Log Message: Directory /cvsroot/comoblog/comoblog/css/default added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:27:50
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32079 Modified Files: add_comment.php Log Message: added extra cookie handler for the comment-url Index: add_comment.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/add_comment.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- add_comment.php 1 Dec 2005 14:56:16 -0000 1.3 +++ add_comment.php 24 Feb 2006 00:27:40 -0000 1.4 @@ -1,96 +1,99 @@ -<?php -require_once ("include/config.inc.php"); - -if (CFG_INTERACTION_COMMENTS != 'yes') { - error_404(); -} - -$tpl = new XTemplate ("templates/add_comment.tpl.htm"); -$tpl->assign('TXT', $TXT); - -$tpl->assign('CFG_BODY_BGCOLOR', CFG_BODY_BGCOLOR); -$tpl->assign('CFG_BACKGROUND_COLOR', CFG_BACKGROUND_COLOR); - -$form['post_id'] = ''; -if(isset($_POST['post_id'])) $form['post_id'] = $_POST['post_id']; -elseif(isset($_GET['i'])) $form['post_id'] = $_GET['i']; -else exit(); - -$form['comment_author'] = ''; -if (isset($_POST['comment_author'])) $form['comment_author'] = $_POST['comment_author']; - -$form['comment_author_email'] == ''; -if (isset($_POST['comment_author_email'])) $form['comment_author_email'] = $_POST['comment_author_email']; - -$form['comment_text'] == ''; -if (isset($_POST['comment_text'])) $form['comment_text'] = $_POST['comment_text']; - -// addition to allow HTML in comments if flagged - needs an admin option to turn on or off -$form['comment_convert'] == ''; -if (isset($_POST['comment_convert'])) $form['comment_convert'] = $_POST['comment_convert']; - - - -if ($_SERVER['REQUEST_METHOD'] == 'POST') { - $errors = array(); - - if ($form['comment_author'] == '') - array_push ($errors, 'Please type your name'); - - if ($form['comment_author_email'] != '' && !is_valid_email($form['comment_author_email'])) - array_push ($errors, 'Invalid email address'); - - if ($form['comment_text'] == '') - array_push ($errors, 'Please write your comment'); - - if (count($errors) == 0) { - $comment = $form; - - $comment = comment_add ($comment); - - $cookie_period = 60*60*24*365; - $domain = parse_url(CFG_SITE_URL); - $domain = $domain['host']; - setcookie("comment-name", $form['comment_author'], time() + $cookie_period, "/", $domain, 0); - setcookie("comment-email", $form['comment_author_email'], time() + $cookie_period, "/", $domain, 0); - - Header ("Location: list_comments.php?i=".$comment['post_id']); - exit(); - } - else { - foreach ($errors as $key=>$value) { - $tpl->assign("ERROR", $value); - $tpl->parse("main.form_errors.error"); - } - $tpl->parse("main.form_errors"); - } -} - - - - - -$tpl->assign("ACTION", basename($_SERVER['PHP_SELF'])); - -if (isset($_COOKIE['comment-name'])) - $form['comment_author'] = $_COOKIE['comment-name']; -if (isset($_COOKIE['comment-email'])) - $form['comment_author_email'] = $_COOKIE['comment-email']; - -$tpl->assign("FORM", $form); - - -// html comments are allowed -if (CFG_INTERACTION_HTML_COMMENTS == 'yes'){ - $tpl->parse('main.html_comments'); -} - - - -$tpl->parse("main"); -$tpl->out("main"); - - -// close db connection -mysql_close (); -?> +<?php +require_once ("include/config.inc.php"); + +if (CFG_INTERACTION_COMMENTS != 'yes') { + error_404(); +} + +$tpl = new XTemplate ("templates/add_comment.tpl.htm"); +$tpl->assign('TXT', $TXT); + +$tpl->assign('CFG_BODY_BGCOLOR', CFG_BODY_BGCOLOR); +$tpl->assign('CFG_BACKGROUND_COLOR', CFG_BACKGROUND_COLOR); + +$form['post_id'] = ''; +if(isset($_POST['post_id'])) $form['post_id'] = $_POST['post_id']; +elseif(isset($_GET['i'])) $form['post_id'] = $_GET['i']; +else exit(); + +$form['comment_author'] = ''; +if (isset($_POST['comment_author'])) $form['comment_author'] = $_POST['comment_author']; + +$form['comment_author_email'] == ''; +if (isset($_POST['comment_author_email'])) $form['comment_author_email'] = $_POST['comment_author_email']; + +$form['comment_text'] == ''; +if (isset($_POST['comment_text'])) $form['comment_text'] = $_POST['comment_text']; + +// addition to allow HTML in comments if flagged - needs an admin option to turn on or off +$form['comment_convert'] == ''; +if (isset($_POST['comment_convert'])) $form['comment_convert'] = $_POST['comment_convert']; + + + +if ($_SERVER['REQUEST_METHOD'] == 'POST') { + $errors = array(); + + if ($form['comment_author'] == '') + array_push ($errors, 'Please type your name'); + + if ($form['comment_author_email'] != '' && !is_valid_email($form['comment_author_email'])) + array_push ($errors, 'Invalid email address'); + + if ($form['comment_text'] == '') + array_push ($errors, 'Please write your comment'); + + if (count($errors) == 0) { + $comment = $form; + + $comment = comment_add ($comment); + + $cookie_period = 60*60*24*365; + $domain = parse_url(CFG_SITE_URL); + $domain = $domain['host']; + setcookie("comment-name", $form['comment_author'], time() + $cookie_period, "/", $domain, 0); + setcookie("comment-email", $form['comment_author_email'], time() + $cookie_period, "/", $domain, 0); + + setcookie("comment-url", $form['comment_author_url'], time() + $cookie_period, "/", $domain, 0); + + Header ("Location: list_comments.php?i=".$comment['post_id']); + exit(); + } + else { + foreach ($errors as $key=>$value) { + $tpl->assign("ERROR", $value); + $tpl->parse("main.form_errors.error"); + } + $tpl->parse("main.form_errors"); + } +} + + + + + +$tpl->assign("ACTION", basename($_SERVER['PHP_SELF'])); + +if (isset($_COOKIE['comment-name'])) + $form['comment_author'] = $_COOKIE['comment-name']; +if (isset($_COOKIE['comment-email'])) + $form['comment_author_email'] = $_COOKIE['comment-email']; +if (isset($_COOKIE['comment-url'])) + $form['comment_author_url'] = $_COOKIE['comment-url']; +$tpl->assign("FORM", $form); + + +// html comments are allowed +if (CFG_INTERACTION_HTML_COMMENTS == 'yes'){ + $tpl->parse('main.html_comments'); +} + + + +$tpl->parse("main"); +$tpl->out("main"); + + +// close db connection +mysql_close (); +?> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:18:39
|
Update of /cvsroot/comoblog/comoblog/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26078/templates Modified Files: add_comment.tpl.htm Log Message: fixed missing end bracket Index: add_comment.tpl.htm =================================================================== RCS file: /cvsroot/comoblog/comoblog/templates/add_comment.tpl.htm,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- add_comment.tpl.htm 17 Feb 2006 15:16:37 -0000 1.3 +++ add_comment.tpl.htm 24 Feb 2006 00:18:32 -0000 1.4 @@ -1,45 +1,45 @@ -<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} -<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 --> -<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'; - <!-- BEGIN: error --> - errors += '{ERROR}\n'; - <!-- END: error --> - alert (errors); -</script> -<!-- END: form_errors --> -</div> -{FILE "templates/footer.tpl.htm"} -<!-- END: main --> +<!-- BEGIN: main -->{FILE "templates/header.tpl.htm"} +<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 --> +<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'; + <!-- BEGIN: error --> + errors += '{ERROR}\n'; + <!-- END: error --> + alert (errors); +</script> +<!-- END: form_errors --> +</div> +{FILE "templates/footer.tpl.htm"} +<!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:37
|
Update of /cvsroot/comoblog/modules/mod_skinselect/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/install Added Files: mod_skinselect.xml Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.xml --- <?xml version="1.0" standalone="no"?> <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <version>1.1</version> <minimum_supported>1.0</minimum_supported> <certified>1.5</certified> <name>mod_skinselect</name> <description>Allows the changing of the site look and feel by the user </description> <allowed_pos>sidebar</allowed_pos> <allowed_pos>top</allowed_pos> <dbquery>CREATE TABLE `comoblog_mod_skinselect` (`skinselect_id` int(10) unsigned NOT NULL auto_increment, `skinselect_title` varchar(255) default NULL, `skinselect_description` text, `skinselect_nav_text` varchar(99) default NULL, `skinselect_nav_link` varchar(255) default NULL, `skinselect_visible` char(1) NOT NULL default 'Y', `skinselect_added` int(10) unsigned default NULL, `skinselect_display_order` int(10) unsigned default NULL,`skinselect_author` varchar(255) default NULL, PRIMARY KEY (`skinselect_id`)) TYPE=MyISAM </dbquery> <filter_posts>N</filter_posts> <filter_comments>N</filter_comments> <version>0.5</version> <author>iamdecal - iam...@gm... http://www.iamdecal.co.uk</author> <date>2004-05-09</date> <param name="CFG_MOD_SKINSELECT_COLOR" description="colour of the text" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_SKINSELECT_A_COLOR" description="colour of the link text" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_SKINSELECT_A_HOVER_COLOR" description="colour of the link text when hovering" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_SKINSELECT_A_TEXT_DECORATION" description="" type="select" editable="Y" accept_null="N" value="none" restrict_values="none|underline|overline|line-through" /> <param name="CFG_MOD_SKINSELECT_A_HOVER_TEXT_DECORATION" description="" type="select" editable="Y" accept_null="N" value="underline" restrict_values="none|underline|overline|line-through" /> <param name="CFG_MOD_SKINSELECT_FONT_FAMILY" description="Font Family" type="font_picker" editable="Y" accept_null="N" value="Verdana,Arial,Helvetica,sans-serif" restrict_values="Verdana,Arial,Helvetica,sans-serif" /> <param name="CFG_MOD_SKINSELECT_FONT_SIZE" description="Font Size" type="select" editable="Y" accept_null="N" value="10" restrict_values="8|9|10|11|12|13|14|15|16|17|18|19|20" /> <param name="CFG_MOD_SKINSELECT_SHOW_SELECTOR" description="Allow users to change the skin" type="select" editable="Y" accept_null="N" value="10" restrict_values="Y|N" /> <param name="CFG_MOD_SKINSELECT_DEFAULT" description="The Skin to be used by default item" type="text" accept_null="N" encrypt="N" restricted_values="" editable="Y" value="default" /> </module> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:37
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates/top In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/templates/top Added Files: mod_skinselect.tpl.htm Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.tpl.htm --- <!-- BEGIN: main --> <select name="mod_skinselect" class="topbar_selector" onchange="if(this.value!='nolink') location=this.value;"> <option value="nolink">Change Layout</option> <!-- BEGIN: item --> <option value="index.php?useskin={ITEM.skinselect_nav_link}">{ITEM.skinselect_nav_text}</option> <!-- END: item --> <option value="/">PHP Default</option> </select> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:36
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates/sidebar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/templates/sidebar Added Files: mod_skinselect.tpl.htm Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.tpl.htm --- <!-- BEGIN: main --> <div id="mod_skinselect"> <script > function changeSkinPreview(skin) { //alert(skin); if (skin == 'phpdefault'){location='/';} else if (skin !="") { document.getElementById('previewSwapImage').src= '/skins/'+ skin +'/preview.jpg'; document.getElementById('previewSwapLink').href= 'index.php?useskin='+ skin ; } } </script> <span class="mod_header_text">Change Layout:</span> <sub>select to change preview<br> click preview to apply skin</sub><br> <a href="index.php?useskin=sift" id="previewswaplink"> <img src="/skins/default/preview.jpg" alt="preview of skin" name="previewSwapImage" id="previewSwapImage" width="120" hspace="2" vspace="2" border="0" style="border: 1px dotted;"></a> <br> <select name="my_site" onchange="changeSkinPreview(this.value);" class="sidebar_selector"> <option value="">select skin</option> <!-- BEGIN: item --> <option value="{ITEM.skinselect_nav_link}">{ITEM.skinselect_title}</option> <!-- END: item --> <option value="default">Default</option> </select> </div> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:36
|
Update of /cvsroot/comoblog/modules/mod_skinselect/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/include Added Files: mod_skinselect.inc.php Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.inc.php --- <?php function mod_skinselect_details ($item_id) { $query = "select * from ".CFG_MYSQL_TABPREFIX."mod_skinselect where skinselect_id = '".$item_id."'"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $item = mysql_fetch_assoc($res); return ($item); } function mod_skinselect_adminlist () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_skinselect b order by b.skinselect_display_order "; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $items[] = $row; } return ($items); } function mod_skinselect_list () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_skinselect b where skinselect_visible ='Y' order by b.skinselect_added desc"; #echo $query; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); #$items = array(); $c = 0; while ($row = mysql_fetch_assoc($res)) { $items[$c] = $row; $items[$c]['skinselect_added'] = getdate($row['skinselect_added']); $c++; } return ($items); } function mod_skinselect_add ($item) { $query = "select max(skinselect_display_order)+1 from ".CFG_MYSQL_TABPREFIX."mod_skinselect"; $res = mysql_query($query); $item['skinselect_display_order'] = mysql_result($res,0,0); $item['skinselect_added'] = time(); $query = " insert into ".CFG_MYSQL_TABPREFIX."mod_skinselect (skinselect_title,skinselect_description,skinselect_nav_text,skinselect_nav_link,skinselect_visible,skinselect_added,skinselect_display_order,skinselect_author) values ('". $item['skinselect_title'] ."', '". $item['skinselect_description'] ."', '". $item['skinselect_nav_text']."', '". $item['skinselect_nav_link']."', '". $item['skinselect_visible']."', '". $item['skinselect_added']."', '". $item['skinselect_display_order']."', '". $item['skinselect_author'] ."') "; $res = mysql_query($query); if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } function mod_skinselect_del ($item_id) { $query = "delete from ".CFG_MYSQL_TABPREFIX."mod_skinselect where skinselect_id = '".$item_id."'"; $res = mysql_query($query); if (!$res) return (false); return (true); } function mod_skinselect_edit ($item) { $query = "update ".CFG_MYSQL_TABPREFIX."mod_skinselect set skinselect_title='". $item['skinselect_title'] ."', skinselect_description='". $item['skinselect_description'] ."', skinselect_nav_text='". $item['skinselect_nav_text']."', skinselect_nav_link='". $item['skinselect_nav_link']."', skinselect_visible='". $item['skinselect_visible']."', skinselect_added= '". $item['skinselect_added']."', skinselect_display_order= '". $item['skinselect_display_order']."', skinselect_author= '". $item['skinselect_author']."', where skinselect_id = '". $item['skinselect_id'] ."'"; define_syslog_variables(); openlog("TextLog", LOG_PID, LOG_LOCAL0); $data = date("Y/m/d H:i:s"); syslog(LOG_DEBUG,"Messagge: $query"); closelog(); $res = mysql_query($query); if (!$res) return (false); return ($item); } function mod_skinselect_up ($item_id) { } function mod_skinselect_down ($item_id) { } ?> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:36
|
Update of /cvsroot/comoblog/modules/mod_skinselect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect Added Files: index.php mod_skinselect.php Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.php --- <?php if (in_array('mod_skinselect', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; require_once (CFG_BASE_PATH.'/modules/mod_skinselect/include/mod_skinselect.inc.php'); if (CFG_MOD_SKINSELECT_SHOW_SELECTOR =="Y"){ $skinselect_items = mod_skinselect_list(); } if ($skinselect_items) { $mod_skinselect_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_skinselect/templates/'.$mod_pos.'/mod_skinselect.tpl.htm'); for ($c = 0; $c < count($skinselect_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $mod_skinselect_tpl->assign('ITEM', $skinselect_items[$c]); $mod_skinselect_tpl->parse('main.item'); } $mod_skinselect_tpl->parse('main'); $mod_contents = $mod_skinselect_tpl->text("main"); } else { $mod_contents = ''; } ?> --- NEW FILE: index.php --- |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:35
|
Update of /cvsroot/comoblog/modules/mod_skinselect/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/img Added Files: mod_skinselect.gif mod_skinselect_big.gif Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect_big.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_skinselect.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:35
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_blogrolling/install Modified Files: mod_blogrolling.xml Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how Index: mod_blogrolling.xml =================================================================== RCS file: /cvsroot/comoblog/modules/mod_blogrolling/install/mod_blogrolling.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- mod_blogrolling.xml 23 Feb 2006 23:05:24 -0000 1.1 +++ mod_blogrolling.xml 24 Feb 2006 00:01:31 -0000 1.2 @@ -9,7 +9,7 @@ <version>1.1</version> <minimum_supported>1.0</minimum_supported> <certified>1.0</certified> - <dbquery>CREATE TABLE `easymoblog_mod_blogrolling` (`blogrolling_id` int(10) unsigned NOT NULL auto_increment, `blogrolling_url` varchar(255) default NULL, `blogrolling_title` varchar(255) default NULL, `blogrolling_description` varchar(255) default NULL, `blogrolling_added` int(10) unsigned default NULL, `blogrolling_display_order` int(10) unsigned default NULL, PRIMARY KEY (`blogrolling_id`)) TYPE=MyISAM;</dbquery> + <dbquery>CREATE TABLE `comoblog_mod_blogrolling` (`blogrolling_id` int(10) unsigned NOT NULL auto_increment, `blogrolling_url` varchar(255) default NULL, `blogrolling_title` varchar(255) default NULL, `blogrolling_description` varchar(255) default NULL, `blogrolling_added` int(10) unsigned default NULL, `blogrolling_display_order` int(10) unsigned default NULL, PRIMARY KEY (`blogrolling_id`)) TYPE=MyISAM;</dbquery> <filter_posts>N</filter_posts> <filter_comments>N</filter_comments> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:35
|
Update of /cvsroot/comoblog/modules/mod_skinselect/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/css Added Files: mod_skinselect.css.php Log Message: initial commit to make sure i've not missed anything transfering the code from my live site down to my cvs version basic premis is that new skins sit in css/SKINNAME/css.php of mod skin select is set to be shown then the users can change the skin via a drop down, if not then a default can be set in the admin area. these skins are imported after the rest of the css so that the content overrides and extends the existing comoblog css - i think we need to decide if skins will provide a full set of styleing or just override and extend the exising code should skin css be entered via the admin area, or uploaded (like a module) ? id prefere to upload as a module as that allows for custom images etc note need to change things like the topic icons some how --- NEW FILE: mod_skinselect.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_skinselect', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' #mod_skinselect { font-size: '.CFG_MOD_SKINSELECT_FONT_SIZE.'px; font-family: '.CFG_MOD_SKINSELECT_FONT_FAMILY.'; color: #'.CFG_MOD_SKINSELECT_COLOR.'; } #mod_skinselect ul { margin: 0; padding: 0; } #mod_skinselect li { list-style-type: none; } a.toplink { color: #'.CFG_MOD_SKINSELECT_A_COLOR.'; text-decoration: '.CFG_MOD_SKINSELECT_A_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SKINSELECT_FONT_SIZE.'px; } #mod_skinselect a:hover { color: #'.CFG_MOD_SKINSELECT_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_SKINSELECT_A_HOVER_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SKINSELECT_FONT_SIZE.'px; } #mod_skinselect li a { color: #'.CFG_MOD_SKINSELECT_A_COLOR.'; text-decoration: '.CFG_MOD_SKINSELECT_A_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SKINSELECT_FONT_SIZE.'px; } #mod_skinselect li a:hover { color: #'.CFG_MOD_SKINSELECT_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_SKINSELECT_A_HOVER_TEXT_DECORATION.'; font :Verdana, Arial, Helvetica, sans-serif; font-size: '.CFG_MOD_SKINSELECT_FONT_SIZE.'px; } '; } mysql_close(); ?> |