comoblog-commit Mailing List for CoMoblog Mobile Blog Application (Page 10)
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-24 00:01:35
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/admin/templates Added Files: mod_skinselect.tpl.htm mod_skinselect_add.tpl.htm mod_skinselect_edit.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_add.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_popup_header.tpl.htm"} <br /> <p align="center"><b>NEW Skin</b></p> <br /> <form action="{ACTION}" method="POST"> <p>Title:<br /> <input type="text" name="skinselect_title" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Description:<br /> <textarea name="skinselect_description" rows="10" style="width:300px;"></textarea> </p> <p>Link Text:<br /> <input type="text" name="skinselect_nav_text" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Link Code<br /> <input type="text" name="skinselect_nav_link" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Author:<br /> <input type="text" name="skinselect_author" value="" maxlength="255" size="40" style="width:300px;"> </p> <p>Visible: <br /> <input type="radio" name="skinselect_visible" value="Y">Yes / <input type="radio" name="skinselect_visible" value="N">No </p> <input type="image" src="../../../admin/img/save.gif" border="0"> </form> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> --- NEW FILE: mod_skinselect_edit.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_popup_header.tpl.htm"} <br /> <p align="center"><b>EDIT skinselect ITEM</b></p> <br /> <form action="{ACTION}" method="post"> <input type="text" name="skinselect_id" value="{ITEM.skinselect_id}" > <p>Title:<br /> <input type="text" name="skinselect_title" value="{ITEM.skinselect_title}" maxlength="255" size="40" style="width:300px;"> </p> <p>Description:<br /> <textarea name="skinselect_description" rows="10" style="width:300px;">{ITEM.skinselect_description}</textarea> </p> <p>Link Text:<br /> <input type="text" name="skinselect_nav_text" value="{ITEM.skinselect_nav_text}" maxlength="255" size="40" style="width:300px;"> </p> <p>Link Code<br /> <input type="text" name="skinselect_nav_link" value="{ITEM.skinselect_nav_link}" maxlength="255" size="40" style="width:300px;"> </p> <p>Author:<br /> <input type="text" name="skinselect_author" value="{ITEM.skinselect_author}" maxlength="255" size="40" style="width:300px;"> </p> <p>Visible: <br /> <input type="radio" name="skinselect_visible" value="Y">Yes / <input type="radio" name="skinselect_visible" value="N">No </p> <input type="image" src="../../../admin/img/save.gif" border="0"> </form> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> --- NEW FILE: mod_skinselect.tpl.htm --- <!-- BEGIN: main --> {FILE "../../../admin/templates/mod_header.tpl.htm"} <table border="0" width="760" align="center" cellspacing="0" cellpadding="4" style="border: 1px solid black;"> <tr> <td width="20"><a href="mod_skinselect_add.php" onclick="void open_popup(this.href,520,450); return false;"><img src="../../../admin/img/add.gif" border="0"></a></td> <td width="720"><a href="mod_skinselect_add.php" onclick="void open_popup(this.href,520,450); return false;">Add new Skin</a></td> </tr> </table> <br /> <br /> <!-- BEGIN: items --> <table border="0" width="760" align="center" cellspacing="0" cellpadding="4" style="border: 1px solid black;"> <tr bgcolor="{BGCOLOR}"> <td valign="top"><b>Link Code</b></td> <td valign="top"><b>Skin Title</b></td> <td valign="top"><b>Skin Description</b></td> <td valign="top"><b>Visible</b></td> <td valign="top"><b>Preview</b></td> <td><b>Edit</b></td> <td><b>Delete</b></td> </tr> <!-- BEGIN: item --> <tr bgcolor="{BGCOLOR}"> <td valign="top"><b>{ITEM.skinselect_nav_link}</b></td> <td valign="top"><b>{ITEM.skinselect_title}</b></td> <td valign="top">{ITEM.skinselect_description}</td> <td valign="top">{ITEM.skinselect_visible}</td> <td valign="top"><img src="/moblog/skins/ITEM.skinselect_nav_link}/images/preview.jpeg" alt="" border="0"></td> <td><a href="mod_skinselect_edit.php?i={ITEM.skinselect_id}" onclick="void open_popup(this.href,400,300); return false;"><img src="../../../admin/img/edit.gif" border="0"></a></td> <td><a href="mod_skinselect_del.php?i={ITEM.skinselect_id}" onclick="if (confirm('Are you sure you want to delete this item? ({ITEM.skinselect_title})')) document.location.href=this.href; else return false;"><img src="../../../admin/img/delete.gif" border="0"></a></td> </tr> <!-- END: item --> </table> <!-- END: items --> {FILE "../../../admin/templates/mod_footer.tpl.htm"} <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:35
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/admin Added Files: mod_skinselect.php mod_skinselect_add.php mod_skinselect_del.php mod_skinselect_edit.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 require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_skinselect.inc.php'); $skinselect_items = mod_skinselect_adminlist (); // template file $tpl = new XTemplate ('templates/mod_skinselect.tpl.htm'); $tpl->assign('MOD_NAME', 'mod_skinselect'); if ($skinselect_items) { for ($c = 0; $c < count($skinselect_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $tpl->assign('ITEM', $skinselect_items[$c]); $tpl->parse('main.items.item'); } $tpl->parse('main.items'); } $tpl->parse('main'); $tpl->out('main'); ?> --- NEW FILE: mod_skinselect_add.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_skinselect.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); foreach($_POST as $k => $v) $_POST[$k] = trim($v); if ($_POST['skinselect_title'] == '') $errors[] = 'You must provide a title for the skin'; if ($_POST['skinselect_nav_text'] == '') $errors[] = 'You must provide Navigation Text for the skin'; if ($_POST['skinselect_nav_link'] == '') $errors[] = 'You must provide Navigation Link Code for the skin'; if (count($errors)) { foreach ($errors as $k => $v) $err_msg .= '- ' . $v . '<br />'; error_page ('Errors:<br />'.$err_msg, 'javascript:history.go(-1);'); } else { $item = mod_skinselect_add($_POST); echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } } $tpl = new XTemplate('templates/mod_skinselect_add.tpl.htm'); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); ?> --- NEW FILE: mod_skinselect_del.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_skinselect.inc.php'); $item_id = ''; if (isset($_GET['i'])) $item_id = $_GET['i']; mod_skinselect_del ($item_id); Header ('Location: mod_skinselect.php'); exit(); ?> --- NEW FILE: mod_skinselect_edit.php --- <?php require_once ('../../../admin/include/admin.inc.php'); require_once ('../include/mod_skinselect.inc.php'); if (strtoupper($_SERVER['REQUEST_METHOD'] == 'POST')) { $errors = array(); if ($_POST['skinselect_title'] == '') $errors[] = 'You must provide a title for the skin'; if ($_POST['skinselect_nav_text'] == '') $errors[] = 'You must provide Navigation Text for the skin'; if ($_POST['skinselect_nav_link'] == '') $errors[] = 'You must provide Navigation Link Code for the skin'; if (count($errors)) { foreach ($errors as $k => $v) $err_msg .= '- ' . $v . '<br />'; error_page ('Errors:<br />'.$err_msg, 'javascript:history.go(-1);'); } else { $item = mod_skinselect_edit($_POST); echo '<html><head></head><body><script language="javascript">opener.location.reload();this.close();</script></body></html>'; exit(); } } else { $item_id = ''; if (isset($_GET['i'])) $item_id = $_GET['i']; $item = mod_skinselect_details($item_id); $tpl = new XTemplate('templates/mod_skinselect_edit.tpl.htm'); $tpl->assign('ITEM', $item); $tpl->assign('ACTION', basename($_SERVER['PHP_SELF'])); $tpl->parse('main'); $tpl->out('main'); } ?> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:34
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13177/mod_skinselect/admin/img Added Files: mod_skinselect.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.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:18
|
Update of /cvsroot/comoblog/comoblog In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12776 Modified Files: index.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 Index: index.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- index.php 22 Dec 2005 05:30:18 -0000 1.3 +++ index.php 24 Feb 2006 00:01:13 -0000 1.4 @@ -1,144 +1,151 @@ -<?php -if (!file_exists('include/param.inc.php')) { - Header ('Location: _install/install.php'); - exit; -} -require_once ("include/config.inc.php"); - +<?php +if (!file_exists('include/param.inc.php')) { + Header ('Location: _install/install.php'); + exit; +} +require_once ("include/config.inc.php"); + // CHECK VERSION UPGRADE ///////////////////////////////////////////////////// if (!check_version_match()) { Header ('Location: _install/patch_0.php'); exit; } +// is it a change skin request? + +if ($_GET['useskin']){ // 30 days + setcookie('comoskin', $_GET['useskin'], time()+60*60*24*30); +} + + ////////////////////////////////////////////////////////////////////////////// -// CURRENT_TIMESTAMP ////////////////////////////////////////////////////////// -// - $current_timestamp = ''; - - 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); - - $current_timestamp = mktime(0,0,0,$m,$d,$y); - if ($current_timestamp > time() || $current_timestamp <= 0) - $current_timestamp = time(); - } - else { - $current_timestamp = time(); - } -// -/////////////////////////////////////////////////////////////////////////////// - - -$tpl = new XTemplate ("templates/index.tpl.htm", "main"); - -if(isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/' && $_SERVER['PATH_INFO'] != '') { - $posts = posts_in_date ($current_timestamp); - $date = ucfirst(strftime($POST_DATE_FORMAT, $current_timestamp)); - $page_title = $TXT['posts_received'] . ' : ' . $date; -} -else { - $posts = posts_last (CFG_HOWMANY_ITEMS); - $page_title = $TXT['recent_posts']; -} - -$tpl->assign ('PAGE_TITLE', $page_title); - - - - - -if ($posts) { - for ($c = 0; $c < count($posts); $c++) { - // clean up post - $posts[$c]['post_mail_from'] = antispam(htmlentities($posts[$c]['post_mail_from']), true); - $posts[$c]['post_mail_subject'] = antispam(htmlentities($posts[$c]['post_mail_subject']), true); - $date = getdate($posts[$c]['post_mail_date']); - $posts[$c]['post_mail_date'] = strftime($CAL_DATE_FORMAT." %H:%M", $posts[$c]['post_mail_date']); - - $tpl->assign('POST', $posts[$c]); - - // topic icon - if ($posts[$c]['topic_id'] != 0) - $tpl->parse('main.post.topic'); - - // images - if ($posts[$c]['post_images'] > 0) { - $query = " - select img_thumb, concat(img_id,'.',img_extension) as img_name, concat(img_id,'_thumb.',img_extension) as img_thumb_name, img_width, img_height - from ".CFG_MYSQL_TABPREFIX."images - where post_id = '".$posts[$c]['post_id']."' - and img_display = 'attach' - "; - $res = mysql_query($query); - - while ($row = mysql_fetch_assoc($res)) { +// CURRENT_TIMESTAMP ////////////////////////////////////////////////////////// +// + $current_timestamp = ''; + + 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); + + $current_timestamp = mktime(0,0,0,$m,$d,$y); + if ($current_timestamp > time() || $current_timestamp <= 0) + $current_timestamp = time(); + } + else { + $current_timestamp = time(); + } +// +/////////////////////////////////////////////////////////////////////////////// + + +$tpl = new XTemplate ("templates/index.tpl.htm", "main"); + +if(isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != '/' && $_SERVER['PATH_INFO'] != '') { + $posts = posts_in_date ($current_timestamp); + $date = ucfirst(strftime($POST_DATE_FORMAT, $current_timestamp)); + $page_title = $TXT['posts_received'] . ' : ' . $date; +} +else { + $posts = posts_last (CFG_HOWMANY_ITEMS); + $page_title = $TXT['recent_posts']; +} + +$tpl->assign ('PAGE_TITLE', $page_title); + + + + + +if ($posts) { + for ($c = 0; $c < count($posts); $c++) { + // clean up post + $posts[$c]['post_mail_from'] = antispam(htmlentities($posts[$c]['post_mail_from']), true); + $posts[$c]['post_mail_subject'] = antispam(htmlentities($posts[$c]['post_mail_subject']), true); + $date = getdate($posts[$c]['post_mail_date']); + $posts[$c]['post_mail_date'] = strftime($CAL_DATE_FORMAT." %H:%M", $posts[$c]['post_mail_date']); + + $tpl->assign('POST', $posts[$c]); + + // topic icon + if ($posts[$c]['topic_id'] != 0) + $tpl->parse('main.post.topic'); + + // images + if ($posts[$c]['post_images'] > 0) { + $query = " + select img_thumb, concat(img_id,'.',img_extension) as img_name, concat(img_id,'_thumb.',img_extension) as img_thumb_name, img_width, img_height + from ".CFG_MYSQL_TABPREFIX."images + where post_id = '".$posts[$c]['post_id']."' + and img_display = 'attach' + "; + $res = mysql_query($query); + + while ($row = mysql_fetch_assoc($res)) { if (eregi('\.3g2',$row['img_name'])) { $tpl->assign('IMAGE', $row); $tpl->parse('main.post.video_3g2'); } - else if ($row['img_thumb'] == 'Y') { - $tpl->assign('IMAGE', $row); - $tpl->parse('main.post.thumb_img'); - } - else { - $tpl->assign('IMAGE', $row); - $tpl->parse('main.post.img'); - } - } - } - - // author email - if (CFG_INTERACTION_AUTHOR == 'yes') - $tpl->parse('main.post.author'); - - // interaction bar - if (CFG_INTERACTION_COMMENTS == 'yes') - $tpl->parse('main.post.comment_button'); - if (CFG_INTERACTION_TRACKBACK == 'yes') { - $tpl->parse('main.post.auto_discovery_trackback'); - $tpl->parse('main.post.trackback_button'); - } - - - $tpl->parse('main.post'); - } -} -else { - $tpl->parse('main.noposts'); -} - - -// modules //////////////////////////////////////////////////////////////////// -// - if (count($SIDEBAR_MODULES) > 0) { - for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { - include_once (CFG_BASE_PATH.'/modules/'.$SIDEBAR_MODULES[$mod_cnt].'/'.$SIDEBAR_MODULES[$mod_cnt].'.php'); - $tpl->assign('SIDEBAR_MODULE',$mod_contents); - $tpl->parse('main.sidebar_module'); - } - } - if (count($TOP_MODULES) > 0) { - for ($mod_cnt = 0; $mod_cnt < count($TOP_MODULES); $mod_cnt++) { - include_once (CFG_BASE_PATH.'/modules/'.$TOP_MODULES[$mod_cnt].'/'.$TOP_MODULES[$mod_cnt].'.php'); - $tpl->assign('TOP_MODULE',$mod_contents); - $tpl->parse('main.top_bar.top_module'); - } - $tpl->parse('main.top_bar'); - } -// -/////////////////////////////////////////////////////////////////////////////// - - -$tpl->parse('main'); -$tpl->out('main'); - - -// close db connection -mysql_close (); -?> + else if ($row['img_thumb'] == 'Y') { + $tpl->assign('IMAGE', $row); + $tpl->parse('main.post.thumb_img'); + } + else { + $tpl->assign('IMAGE', $row); + $tpl->parse('main.post.img'); + } + } + } + + // author email + if (CFG_INTERACTION_AUTHOR == 'yes') + $tpl->parse('main.post.author'); + + // interaction bar + if (CFG_INTERACTION_COMMENTS == 'yes') + $tpl->parse('main.post.comment_button'); + if (CFG_INTERACTION_TRACKBACK == 'yes') { + $tpl->parse('main.post.auto_discovery_trackback'); + $tpl->parse('main.post.trackback_button'); + } + + + $tpl->parse('main.post'); + } +} +else { + $tpl->parse('main.noposts'); +} + + +// modules //////////////////////////////////////////////////////////////////// +// + if (count($SIDEBAR_MODULES) > 0) { + for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { + include_once (CFG_BASE_PATH.'/modules/'.$SIDEBAR_MODULES[$mod_cnt].'/'.$SIDEBAR_MODULES[$mod_cnt].'.php'); + $tpl->assign('SIDEBAR_MODULE',$mod_contents); + $tpl->parse('main.sidebar_module'); + } + } + if (count($TOP_MODULES) > 0) { + for ($mod_cnt = 0; $mod_cnt < count($TOP_MODULES); $mod_cnt++) { + include_once (CFG_BASE_PATH.'/modules/'.$TOP_MODULES[$mod_cnt].'/'.$TOP_MODULES[$mod_cnt].'.php'); + $tpl->assign('TOP_MODULE',$mod_contents); + $tpl->parse('main.top_bar.top_module'); + } + $tpl->parse('main.top_bar'); + } +// +/////////////////////////////////////////////////////////////////////////////// + + +$tpl->parse('main'); +$tpl->out('main'); + + +// close db connection +mysql_close (); +?> |
|
From: iamdecal <iam...@us...> - 2006-02-24 00:01:17
|
Update of /cvsroot/comoblog/comoblog/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12776/css Modified Files: comoblog.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 Index: comoblog.css.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/css/comoblog.css.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- comoblog.css.php 25 Nov 2005 02:36:40 -0000 1.4 +++ comoblog.css.php 24 Feb 2006 00:01:13 -0000 1.5 @@ -1,273 +1,291 @@ -<?php -require_once ('../include/config.inc.php'); - -Header ('Content-type: text/css'); - - -// import CSS from activated modules -if (count($SIDEBAR_MODULES) > 0) { - for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { - if (file_exists(CFG_BASE_PATH.'/modules/'.$SIDEBAR_MODULES[$mod_cnt].'/css/'.$SIDEBAR_MODULES[$mod_cnt].'.css.php')) { - echo '@import url('.CFG_SITE_URL.'modules/'.$SIDEBAR_MODULES[$mod_cnt].'/css/'.$SIDEBAR_MODULES[$mod_cnt].'.css.php);'."\n"; - } - } -} -if (count($TOP_MODULES) > 0) { - for ($mod_cnt = 0; $mod_cnt < count($TOP_MODULES); $mod_cnt++) { - if (file_exists(CFG_BASE_PATH.'/modules/'.$TOP_MODULES[$mod_cnt].'/css/'.$TOP_MODULES[$mod_cnt].'.css.php')) { - echo '@import url('.CFG_SITE_URL.'modules/'.$TOP_MODULES[$mod_cnt].'/css/'.$TOP_MODULES[$mod_cnt].'.css.php);'."\n"; - } - } -} - -echo ' - body { - background: #'.CFG_BODY_BGCOLOR.'; - background-image:url("../img/comoblog/'.CFG_BG_IMG.'"); - background-repeat:'.CFG_BG_IMG_REPEAT.'; - } - - #header { - margin-left: auto; margin-right: auto; - width: '.CFG_PAGE_WIDTH.'px; - background: #'.CFG_TITLE_BGCOLOR.'; - } - - #header h1, #header a { - padding: 0; margin: 0; - font-family: '.CFG_TITLE_FONT_FAMILY.'; - font-size: '.CFG_TITLE_FONT_SIZE.'px; - font-style: '.CFG_TITLE_FONT_STYLE.'; - color: #'.CFG_TITLE_COLOR.'; - text-decoration: none; - vertical-align: middle; - } - - #header h1 a { - padding-left: 5px; - } - - #topbar { - margin-left: auto; margin-right: auto; - width: '.CFG_PAGE_WIDTH.'px; - background: #'.CFG_TOPBAR_BGCOLOR.'; - } - - .topbar_module { - display: inline; - padding-left: 5px; - } - - #contents { - margin-left: auto; margin-right: auto; - width: '.CFG_PAGE_WIDTH.'px; - overflow: auto; - background: #'.CFG_POST_BGCOLOR.'; - } - - #sidebar { - float: right; - width: '.CFG_SIDEBAR_WIDTH.'px; - background: #'.CFG_SIDEBAR_BGCOLOR.'; - } - - .sidebar_module { - margin: 5px; - width: '.(CFG_SIDEBAR_WIDTH-10).'px; - padding-bottom: 5px; padding-top: 5px; - } - - #intro { - width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH).'px; - float: left; - background: #'.CFG_INTRO_BGCOLOR.'; - } - - #intro p { - font-family: '.CFG_INTRO_FONT_FAMILY.'; - font-size: '.CFG_INTRO_FONT_SIZE.'px; - font-style: '.CFG_INTRO_FONT_STYLE.'; - color: #'.CFG_INTRO_COLOR.'; - padding: 5px; - } - - #page_title { - float: left; - padding: 5px; - } - - #page_title h2 { - font-family: '.CFG_PAGE_TITLE_FONT_FAMILY.'; - font-size: '.CFG_PAGE_TITLE_FONT_SIZE.'px; - font-style: '.CFG_PAGE_TITLE_FONT_STYLE.'; - color: #'.CFG_PAGE_TITLE_COLOR.'; - } - - #page_title p { - font-family: '.CFG_POST_FONT_FAMILY.'; - font-size: '.CFG_POST_FONT_SIZE.'px; - font-style: '.CFG_POST_FONT_STYLE.'; - color: #'.CFG_POST_COLOR.'; - } - - #posts { - float: left; - width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH-5).'px; - - } - - .post { - margin: 5px; - padding: 5px; - border: '.CFG_POST_BORDER_WIDTH.'px '.CFG_POST_BORDER_STYLE.' #'.CFG_POST_BORDER_COLOR.'; - } - - .post p, .post p a, #page_title p { - font-family: '.CFG_POST_FONT_FAMILY.'; - font-size: '.CFG_POST_FONT_SIZE.'px; - font-style: '.CFG_POST_FONT_STYLE.'; - color: #'.CFG_POST_COLOR.'; - margin: 0; padding: 0; - } - - .post p a { - color: #'.CFG_POST_A_COLOR.'; - text-decoration: '.CFG_POST_A_TEXT_DECORATION.'; - } - - .post p a:hover { - color: #'.CFG_POST_A_HOVER_COLOR.'; - text-decoration: '.CFG_POST_A_HOVER_TEXT_DECORATION.'; - } - - .post img .post_img { - margin: 5px; - } - - p.post_header img { - float: right; - } - - p.post_header, p.post_header a { - font-family: '.CFG_POST_HEADER_FONT_FAMILY.'; - font-size: '.CFG_POST_HEADER_FONT_SIZE.'px; - font-style: '.CFG_POST_HEADER_FONT_STYLE.'; - color: #'.CFG_POST_HEADER_COLOR.'; - text-decoration: '.CFG_POST_A_TEXT_DECORATION.'; - margin: 0; padding: 0; - } - - p.post_header a:hover { - color: #'.CFG_POST_A_HOVER_COLOR.'; - text-decoration: '.CFG_POST_A_HOVER_TEXT_DECORATION.'; - } - - .post h3, .post h3 a { - margin: 0; padding: 0; padding-bottom: 5px; - font-family: '.CFG_POST_TITLE_FONT_FAMILY.'; - font-size: '.CFG_POST_TITLE_FONT_SIZE.'px; - font-style: '.CFG_POST_TITLE_FONT_STYLE.'; - color: #'.CFG_POST_TITLE_COLOR.'; - text-decoration: none; - } - - .post h4, #comments h1, .comment h1 { - margin: 15px 5px 5px 5px; - border-top: '.CFG_COMMENTS_SEPARATOR_WIDTH.'px '.CFG_COMMENTS_SEPARATOR_STYLE.' #'.CFG_COMMENTS_SEPARATOR_COLOR.'; - font-family: '.CFG_COMMENTS_TITLE_FONT_FAMILY.'; - font-size: '.CFG_COMMENTS_TITLE_FONT_SIZE.'px; - font-style: '.CFG_COMMENTS_TITLE_FONT_STYLE.'; - color: #'.CFG_COMMENTS_TITLE_COLOR.'; - } - - .post_footer { - margin-top: 15px; - } - - .post_footer, .post_footer a { - font-family: '.CFG_POST_FOOTER_FONT_FAMILY.'; - font-size: '.CFG_POST_FOOTER_FONT_SIZE.'px; - font-style: '.CFG_POST_FOOTER_FONT_STYLE.'; - color: #'.CFG_POST_FOOTER_COLOR.'; - } - - .post_footer a { - color: #'.CFG_POST_FOOTER_A_COLOR.'; - text-decoration: '.CFG_POST_FOOTER_A_TEXT_DECORATION.'; - } - - .post_footer a:hover { - color: #'.CFG_POST_FOOTER_A_HOVER_COLOR.'; - text-decoration: '.CFG_POST_FOOTER_A_HOVER_TEXT_DECORATION.'; - } - - #comments { - background: #'.CFG_POST_BGCOLOR.'; - } - - .comment { - background: #'.CFG_POST_BGCOLOR.'; - margin: 5px; - padding: 5px; - border-bottom: '.CFG_COMMENTS_SEPARATOR_WIDTH.'px '.CFG_COMMENTS_SEPARATOR_STYLE.' #'.CFG_COMMENTS_SEPARATOR_COLOR.'; - } - - .comment p.comment_header { - font-family: '.CFG_COMMENTS_HEADER_FONT_FAMILY.'; - font-size: '.CFG_COMMENTS_HEADER_FONT_SIZE.'px; - font-style: '.CFG_COMMENTS_HEADER_FONT_STYLE.'; - color: #'.CFG_COMMENTS_HEADER_COLOR.'; - } - - .comment p { - font-family: '.CFG_COMMENTS_FONT_FAMILY.'; - font-size: '.CFG_COMMENTS_FONT_SIZE.'px; - font-style: '.CFG_COMMENTS_FONT_STYLE.'; - color: #'.CFG_COMMENTS_COLOR.'; - } - - .comment p a { - color: #'.CFG_COMMENTS_A_COLOR.'; - text-decoration: '.CFG_COMMENTS_A_TEXT_DECORATION.'; - } - - .comment p a:hover { - color: #'.CFG_COMMENTS_A_HOVER_COLOR.'; - text-decoration: '.CFG_COMMENTS_A_HOVER_TEXT_DECORATION.'; - } - - #footer { - margin-left: auto; margin-right: auto; - width: '.CFG_PAGE_WIDTH.'px; - height: 30px; - background: #'.CFG_FOOTER_BGCOLOR.'; - } - - #footer p { - margin: 0; - padding: 5px; - font-family: '.CFG_FOOTER_FONT_FAMILY.'; - font-size: '.CFG_FOOTER_FONT_SIZE.'px; - font-style: '.CFG_FOOTER_FONT_STYLE.'; - color: #'.CFG_FOOTER_COLOR.'; - } - - #footer #comoblogo { - float: right; - margin: 0; padding: 0; - display: inline; - } - - input.comment_form, textarea.comment_form { - width: 99%; - margin-bottom: 10px; - } - - textarea.comment_form { - height: 150px; - } - -'; - -mysql_close(); -?> +<?php +require_once ('../include/config.inc.php'); + +Header ('Content-type: text/css'); + + +// import CSS from activated modules +if (count($SIDEBAR_MODULES) > 0) { + for ($mod_cnt = 0; $mod_cnt < count($SIDEBAR_MODULES); $mod_cnt++) { + if (file_exists(CFG_BASE_PATH.'/modules/'.$SIDEBAR_MODULES[$mod_cnt].'/css/'.$SIDEBAR_MODULES[$mod_cnt].'.css.php')) { + echo '@import url('.CFG_SITE_URL.'modules/'.$SIDEBAR_MODULES[$mod_cnt].'/css/'.$SIDEBAR_MODULES[$mod_cnt].'.css.php);'."\n"; + } + } +} +if (count($TOP_MODULES) > 0) { + for ($mod_cnt = 0; $mod_cnt < count($TOP_MODULES); $mod_cnt++) { + if (file_exists(CFG_BASE_PATH.'/modules/'.$TOP_MODULES[$mod_cnt].'/css/'.$TOP_MODULES[$mod_cnt].'.css.php')) { + echo '@import url('.CFG_SITE_URL.'modules/'.$TOP_MODULES[$mod_cnt].'/css/'.$TOP_MODULES[$mod_cnt].'.css.php);'."\n"; + } + } +} + +echo ' + body { + background: #'.CFG_BODY_BGCOLOR.'; + background-image:url("../img/comoblog/'.CFG_BG_IMG.'"); + background-repeat:'.CFG_BG_IMG_REPEAT.'; + } + + #header { + margin-left: auto; margin-right: auto; + width: '.CFG_PAGE_WIDTH.'px; + background: #'.CFG_TITLE_BGCOLOR.'; + } + + #header h1, #header a { + padding: 0; margin: 0; + font-family: '.CFG_TITLE_FONT_FAMILY.'; + font-size: '.CFG_TITLE_FONT_SIZE.'px; + font-style: '.CFG_TITLE_FONT_STYLE.'; + color: #'.CFG_TITLE_COLOR.'; + text-decoration: none; + vertical-align: middle; + } + + #header h1 a { + padding-left: 5px; + } + + #topbar { + margin-left: auto; margin-right: auto; + width: '.CFG_PAGE_WIDTH.'px; + background: #'.CFG_TOPBAR_BGCOLOR.'; + } + + .topbar_module { + display: inline; + padding-left: 5px; + } + + #contents { + margin-left: auto; margin-right: auto; + width: '.CFG_PAGE_WIDTH.'px; + overflow: auto; + background: #'.CFG_POST_BGCOLOR.'; + } + + #sidebar { + float: right; + width: '.CFG_SIDEBAR_WIDTH.'px; + background: #'.CFG_SIDEBAR_BGCOLOR.'; + } + + .sidebar_module { + margin: 5px; + width: '.(CFG_SIDEBAR_WIDTH-10).'px; + padding-bottom: 5px; padding-top: 5px; + } + + #intro { + width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH).'px; + float: left; + background: #'.CFG_INTRO_BGCOLOR.'; + } + + #intro p { + font-family: '.CFG_INTRO_FONT_FAMILY.'; + font-size: '.CFG_INTRO_FONT_SIZE.'px; + font-style: '.CFG_INTRO_FONT_STYLE.'; + color: #'.CFG_INTRO_COLOR.'; + padding: 5px; + } + + #page_title { + float: left; + padding: 5px; + } + + #page_title h2 { + font-family: '.CFG_PAGE_TITLE_FONT_FAMILY.'; + font-size: '.CFG_PAGE_TITLE_FONT_SIZE.'px; + font-style: '.CFG_PAGE_TITLE_FONT_STYLE.'; + color: #'.CFG_PAGE_TITLE_COLOR.'; + } + + #page_title p { + font-family: '.CFG_POST_FONT_FAMILY.'; + font-size: '.CFG_POST_FONT_SIZE.'px; + font-style: '.CFG_POST_FONT_STYLE.'; + color: #'.CFG_POST_COLOR.'; + } + + #posts { + float: left; + width: '.(CFG_PAGE_WIDTH-CFG_SIDEBAR_WIDTH-5).'px; + + } + + .post { + margin: 5px; + padding: 5px; + border: '.CFG_POST_BORDER_WIDTH.'px '.CFG_POST_BORDER_STYLE.' #'.CFG_POST_BORDER_COLOR.'; + } + + .post p, .post p a, #page_title p { + font-family: '.CFG_POST_FONT_FAMILY.'; + font-size: '.CFG_POST_FONT_SIZE.'px; + font-style: '.CFG_POST_FONT_STYLE.'; + color: #'.CFG_POST_COLOR.'; + margin: 0; padding: 0; + } + + .post p a { + color: #'.CFG_POST_A_COLOR.'; + text-decoration: '.CFG_POST_A_TEXT_DECORATION.'; + } + + .post p a:hover { + color: #'.CFG_POST_A_HOVER_COLOR.'; + text-decoration: '.CFG_POST_A_HOVER_TEXT_DECORATION.'; + } + + .post img .post_img { + margin: 5px; + } + + p.post_header img { + float: right; + } + + p.post_header, p.post_header a { + font-family: '.CFG_POST_HEADER_FONT_FAMILY.'; + font-size: '.CFG_POST_HEADER_FONT_SIZE.'px; + font-style: '.CFG_POST_HEADER_FONT_STYLE.'; + color: #'.CFG_POST_HEADER_COLOR.'; + text-decoration: '.CFG_POST_A_TEXT_DECORATION.'; + margin: 0; padding: 0; + } + + p.post_header a:hover { + color: #'.CFG_POST_A_HOVER_COLOR.'; + text-decoration: '.CFG_POST_A_HOVER_TEXT_DECORATION.'; + } + + .post h3, .post h3 a { + margin: 0; padding: 0; padding-bottom: 5px; + font-family: '.CFG_POST_TITLE_FONT_FAMILY.'; + font-size: '.CFG_POST_TITLE_FONT_SIZE.'px; + font-style: '.CFG_POST_TITLE_FONT_STYLE.'; + color: #'.CFG_POST_TITLE_COLOR.'; + text-decoration: none; + } + + .post h4, #comments h1, .comment h1 { + margin: 15px 5px 5px 5px; + border-top: '.CFG_COMMENTS_SEPARATOR_WIDTH.'px '.CFG_COMMENTS_SEPARATOR_STYLE.' #'.CFG_COMMENTS_SEPARATOR_COLOR.'; + font-family: '.CFG_COMMENTS_TITLE_FONT_FAMILY.'; + font-size: '.CFG_COMMENTS_TITLE_FONT_SIZE.'px; + font-style: '.CFG_COMMENTS_TITLE_FONT_STYLE.'; + color: #'.CFG_COMMENTS_TITLE_COLOR.'; + } + + .post_footer { + margin-top: 15px; + } + + .post_footer, .post_footer a { + font-family: '.CFG_POST_FOOTER_FONT_FAMILY.'; + font-size: '.CFG_POST_FOOTER_FONT_SIZE.'px; + font-style: '.CFG_POST_FOOTER_FONT_STYLE.'; + color: #'.CFG_POST_FOOTER_COLOR.'; + } + + .post_footer a { + color: #'.CFG_POST_FOOTER_A_COLOR.'; + text-decoration: '.CFG_POST_FOOTER_A_TEXT_DECORATION.'; + } + + .post_footer a:hover { + color: #'.CFG_POST_FOOTER_A_HOVER_COLOR.'; + text-decoration: '.CFG_POST_FOOTER_A_HOVER_TEXT_DECORATION.'; + } + + #comments { + background: #'.CFG_POST_BGCOLOR.'; + } + + .comment { + background: #'.CFG_POST_BGCOLOR.'; + margin: 5px; + padding: 5px; + border-bottom: '.CFG_COMMENTS_SEPARATOR_WIDTH.'px '.CFG_COMMENTS_SEPARATOR_STYLE.' #'.CFG_COMMENTS_SEPARATOR_COLOR.'; + } + + .comment p.comment_header { + font-family: '.CFG_COMMENTS_HEADER_FONT_FAMILY.'; + font-size: '.CFG_COMMENTS_HEADER_FONT_SIZE.'px; + font-style: '.CFG_COMMENTS_HEADER_FONT_STYLE.'; + color: #'.CFG_COMMENTS_HEADER_COLOR.'; + } + + .comment p { + font-family: '.CFG_COMMENTS_FONT_FAMILY.'; + font-size: '.CFG_COMMENTS_FONT_SIZE.'px; + font-style: '.CFG_COMMENTS_FONT_STYLE.'; + color: #'.CFG_COMMENTS_COLOR.'; + } + + .comment p a { + color: #'.CFG_COMMENTS_A_COLOR.'; + text-decoration: '.CFG_COMMENTS_A_TEXT_DECORATION.'; + } + + .comment p a:hover { + color: #'.CFG_COMMENTS_A_HOVER_COLOR.'; + text-decoration: '.CFG_COMMENTS_A_HOVER_TEXT_DECORATION.'; + } + + #footer { + margin-left: auto; margin-right: auto; + width: '.CFG_PAGE_WIDTH.'px; + height: 30px; + background: #'.CFG_FOOTER_BGCOLOR.'; + } + + #footer p { + margin: 0; + padding: 5px; + font-family: '.CFG_FOOTER_FONT_FAMILY.'; + font-size: '.CFG_FOOTER_FONT_SIZE.'px; + font-style: '.CFG_FOOTER_FONT_STYLE.'; + color: #'.CFG_FOOTER_COLOR.'; + } + + #footer #comoblogo { + float: right; + margin: 0; padding: 0; + display: inline; + } + + input.comment_form, textarea.comment_form { + width: 99%; + margin-bottom: 10px; + } + + 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"){ + $whichSkin=CFG_MOD_SKINSELECT_DEFAULT; + + if ($_COOKIE['comoskin'] !="default"){ + $whichSkin= $_COOKIE['comoskin']; + } + if (file_exists(CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php')) { + echo + '@import url('.CFG_BASE_PATH.'/skins/'.$whichSkin.'/css.php);'."\n"; + } + + } + + + +mysql_close(); +?> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:54:28
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates/top In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9414/top Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/templates/top added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:54:27
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates/sidebar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9414/sidebar Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/templates/sidebar added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:30
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8891/templates Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/admin/templates added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:28
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8891/img Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/admin/img added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:15
|
Update of /cvsroot/comoblog/modules/mod_skinselect/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/templates Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/templates added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:14
|
Update of /cvsroot/comoblog/modules/mod_skinselect/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/install Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/install added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:14
|
Update of /cvsroot/comoblog/modules/mod_skinselect/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/css Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/css added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:14
|
Update of /cvsroot/comoblog/modules/mod_skinselect/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/img Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/img added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:14
|
Update of /cvsroot/comoblog/modules/mod_skinselect/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/admin Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/admin added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:53:14
|
Update of /cvsroot/comoblog/modules/mod_skinselect/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8548/include Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect/include added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:52:47
|
Update of /cvsroot/comoblog/modules/mod_skinselect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8443/mod_skinselect Log Message: Directory /cvsroot/comoblog/modules/mod_skinselect added to the repository |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:31
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/install Added Files: mod_blogrolling.xml Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.xml --- <?xml version="1.0" standalone="no"?> <!DOCTYPE module SYSTEM "http://comoblog.sourceforge.net/DTD/comoblog_mod_install.dtd"> <module> <name>mod_blogrolling</name> <description>List of your favourite links</description> <allowed_pos>sidebar</allowed_pos> <allowed_pos>top</allowed_pos> <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> <filter_posts>N</filter_posts> <filter_comments>N</filter_comments> <author>iamdecal iam...@gm... http://www.iamdecal.co.uk - from the originala by Umberto Caldera - ubik [at] ubiks [dot] it</author> <date>2006-02-23</date> <param name="CFG_MOD_BLOGROLLING_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_BLOGROLLING_A_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_BLOGROLLING_A_HOVER_COLOR" description="" type="color_picker" editable="Y" accept_null="N" value="000000" /> <param name="CFG_MOD_BLOGROLLING_A_TEXT_DECORATION" description="" type="select" editable="Y" accept_null="N" value="none" restrict_values="none|underline|overline|line-through" /> <param name="CFG_MOD_BLOGROLLING_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_BLOGROLLING_FONT_FAMILY" description="" 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_BLOGROLLING_FONT_SIZE" description="" 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_BLOGROLLING_TOPLINE" description="The Top line of text in the drop down or header of the list item" type="text" accept_null="N" encrypt="N" restricted_values="" editable="Y" value="Posts By Title" /> <param name="CFG_MOD_BLOGROLLING_STYLE" description="" type="select" editable="Y" accept_null="N" value="topbardropdown" restrict_values="topbardropdown|sidebarlist|sidebardropdown" /> </module> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:31
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/templates/topbardropdown In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/templates/topbardropdown Added Files: mod_blogrolling.tpl.htm Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.tpl.htm --- <!-- BEGIN: main --> <select name="mod_blogrolling" class="topbar_selector" onchange="if(this.value!='nolink') window.open(this.value,'','');"> <option value="nolink">{CFG_MOD_BLOGROLLING_TOPLINE}</option> <!-- BEGIN: item --> <option value="{ITEM.blogrolling_url}">{ITEM.blogrolling_title}</option> <!-- END: item --> </select> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:29
|
Update of /cvsroot/comoblog/modules/mod_blogrolling In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling Added Files: index.php mod_blogrolling.php Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: index.php --- --- NEW FILE: mod_blogrolling.php --- <?php if (in_array('mod_blogrolling', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; require_once (CFG_BASE_PATH.'/modules/mod_blogrolling/include/mod_blogrolling.inc.php'); $blogrolling_items = mod_blogrolling_list(); if ($blogrolling_items) { $mod_blogrolling_tpl = new XTemplate (CFG_BASE_PATH.'/modules/mod_blogrolling/templates/'.CFG_MOD_BLOGROLLING_STYLE.'/mod_blogrolling.tpl.htm'); for ($c = 0; $c < count($blogrolling_items); $c++) { if ($c % 2) $tpl->assign('BGCOLOR', '#ffffff'); else $tpl->assign('BGCOLOR', '#efefef'); $mod_blogrolling_tpl->assign('ITEM', $blogrolling_items[$c]); $mod_blogrolling_tpl->parse('main.item'); } $tpl->assign('CFG_MOD_BLOGROLLING_TOPLINE', CFG_MOD_BLOGROLLING_TOPLINE); $mod_blogrolling_tpl->parse('main'); $mod_contents = $mod_blogrolling_tpl->text("main"); } else $mod_contents = ''; ?> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:29
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/templates/sidebarlist In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/templates/sidebarlist Added Files: mod_blogrolling.tpl.htm Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.tpl.htm --- <!-- BEGIN: main --> <div id="mod_blogrolling">{CFG_MOD_BLOGROLLING_TOPLINE} <ul class="sidebar_ul"> <!-- BEGIN: item --> <li class="sidebar_list"> <a href="{ITEM.blogrolling_url}" title="{ITEM.blogrolling_title} - {ITEM.blogrolling_description} "><strong>{ITEM.blogrolling_title}</strong></a><br /> {ITEM.blogrolling_description} </li> <!-- END: item --> </ul> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:29
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/admin/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/admin/img Added Files: mod_blogrolling.gif Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.gif --- (This appears to be a binary file; contents omitted.) |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:28
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/css In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/css Added Files: mod_blogrolling.css.php Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.css.php --- <?php require_once (dirname(__FILE__).'/../../../include/config.inc.php'); Header ('Content-type: text/css'); if (in_array('mod_blogrolling', $SIDEBAR_MODULES)) $mod_pos = 'sidebar'; else $mod_pos = 'top'; if ($mod_pos == 'sidebar') { echo ' #mod_blogrolling { font-size: '.CFG_MOD_BLOGROLLING_FONT_SIZE.'px; font-family: '.CFG_MOD_BLOGROLLING_FONT_FAMILY.'; color: #'.CFG_MOD_BLOGROLLING_COLOR.'; } #mod_blogrolling ul { margin: 0; padding: 0; } #mod_blogrolling li { list-style-type: none; padding-bottom : 5px; } #mod_blogrolling li a , #mod_blogrolling ul li a{ color: #'.CFG_MOD_BLOGROLLING_A_COLOR.'; text-decoration: '.CFG_MOD_BLOGROLLING_A_TEXT_DECORATION.'; font-size: '.CFG_MOD_BLOGROLLING_FONT_SIZE.'px; font-family: '.CFG_MOD_BLOGROLLING_FONT_FAMILY.'; } #mod_blogrolling li a:hover , #mod_blogrolling ul li a:hover { color: #'.CFG_MOD_BLOGROLLING_A_HOVER_COLOR.'; text-decoration: '.CFG_MOD_BLOGROLLING_A_HOVER_TEXT_DECORATION.'; font-size: '.CFG_MOD_BLOGROLLING_FONT_SIZE.'px; font-family: '.CFG_MOD_BLOGROLLING_FONT_FAMILY.'; } '; } mysql_close(); ?> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:28
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/templates/sidebardropdown In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/templates/sidebardropdown Added Files: mod_blogrolling.tpl.htm Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.tpl.htm --- <!-- BEGIN: main --> <select name="mod_blogrolling" class="topbar_selector" onchange="if(this.value!='nolink') window.open(this.value,'','');"> <option value="nolink">{CFG_MOD_BLOGROLLING_TOPLINE}</option> <!-- BEGIN: item --> <option value="{ITEM.blogrolling_url}">{ITEM.blogrolling_title}</option> <!-- END: item --> </select> <!-- END: main --> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:27
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/include Added Files: mod_blogrolling.inc.php Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.inc.php --- <?php function mod_blogrolling_details ($item_id) { $query = "select * from ".CFG_MYSQL_TABPREFIX."mod_blogrolling where blogrolling_id = '".$item_id."'"; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $item = mysql_fetch_assoc($res); return ($item); } function mod_blogrolling_list () { $query = " select b.* from ".CFG_MYSQL_TABPREFIX."mod_blogrolling b where blogrolling_url <> '' order by b.blogrolling_display_order "; $res = mysql_query($query); if (!$res || !mysql_num_rows($res)) return (false); $items = array(); while ($row = mysql_fetch_assoc($res)) { $row['blogrolling_title'] = str_replace("."," ",$row['blogrolling_title']) ; $items[] = $row; } return ($items); } function mod_blogrolling_add ($item) { $query = "select max(blogrolling_display_order)+1 from ".CFG_MYSQL_TABPREFIX."mod_blogrolling"; $res = mysql_query($query); $item['blogrolling_display_order'] = mysql_result($res,0,0); $item['blogrolling_added'] = time(); $query = " insert into ".CFG_MYSQL_TABPREFIX."mod_blogrolling (blogrolling_url, blogrolling_title, blogrolling_description, blogrolling_display_order, blogrolling_added) values ('". $item['blogrolling_url'] ."', '". $item['blogrolling_title'] ."', '". $item['blogrolling_description'] ."', '". $item['blogrolling_display_order']."', '". $item['blogrolling_added'] ."') "; $res = mysql_query($query); if (!$res) return (false); $item['id'] = mysql_insert_id(); return ($item); } function mod_blogrolling_del ($item_id) { $query = "delete from ".CFG_MYSQL_TABPREFIX."mod_blogrolling where blogrolling_id = '".$item_id."'"; $res = mysql_query($query); if (!$res) return (false); return (true); } function mod_blogrolling_edit ($item) { $query = " update ".CFG_MYSQL_TABPREFIX."mod_blogrolling set blogrolling_url = '". $item['blogrolling_url'] ."', blogrolling_title = '". $item['blogrolling_title'] ."', blogrolling_description = '". $item['blogrolling_description'] ."', blogrolling_display_order = '". $item['blogrolling_display_order']."' where blogrolling_id = '". $item['blogrolling_id'] ."' "; $res = mysql_query($query); if (!$res) return (false); return ($item); } function mod_blogrolling_up ($item_id) { } function mod_blogrolling_down ($item_id) { } ?> |
|
From: iamdecal <iam...@us...> - 2006-02-23 23:05:26
|
Update of /cvsroot/comoblog/modules/mod_blogrolling/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11362/mod_blogrolling/img Added Files: mod_blogrolling.gif mod_blogrolling_big.gif Log Message: wasnt in cvs so ive added it to fix a bug raised on the forums, - also added some of the stuff thats in use on my site --- NEW FILE: mod_blogrolling.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: mod_blogrolling_big.gif --- (This appears to be a binary file; contents omitted.) |