Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Category color-coding not showing up in list mode when publishing page via Blogger
Old 08-26-2009, 12:08 AM   #1
trdeveloper
Calendar User
 
trdeveloper is offline
Join Date: Aug 2009
Posts: 4
Default Category color-coding not showing up in list mode when publishing page via Blogger

Hi! I have really enjoyed using and integrating the calendar. I am only using it in list mode and have run into one problem with the category color-coding. The web page that includes the Easy PHP calendar list is being published by a Blogger blog, because some of the other content on the page is client-editable via Blogger. I am able to insert whatever code I need to into the custom Blogger template I've created, so integrating the Easy PHP Calendar List code into the Blogger-published page was not a problem.

What is not working is that the category colors are not displaying. I had no problems displaying the category colors when integrating the Easy PHP Calendar code on a page that is not published by Blogger. As soon as that exact same code is integrated into the Blogger template and Blogger publishes the page, the category colors disappear. The Easy PHP Calendar template I am using is a slight variation of the monthly.php template (code for my template is pasted at the very bottom of this post).

Here is the code I inserted into the Blogger template:
<?php
$LIST=1;
$listWeeks = 10;
$noOld = 1;
$DF = "D - M d";
$template="gfdcal.php";
require ("../calendar/calendar.php");
?>

However, when I "view source" in a web browser for the Blogger-published web page after it has been published, the above code is missing and the following code appears in its place:
<script type="text/JavaScript">
<!--
function popupEvent(ev, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
win = window.open("/calendar/functions/popup.php?ev=" + ev + "&readFile=0&readSQL=1&showCat=&oc=1","Calendar"," scrollbars=yes,status=no,location=no,toolbar=no,me nubar=no,directories=no,resizable=yes,width=" + w + ",height=" + h + ",top=" + wint + ",left=" + winl + "");
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->
</script>
Can anyone suggest a fix that will restore my category color codes when publishing the page via Blogger?

Thanks!

Edward

P.S. Here is the code I am using for my Easy PHP Calendar template:

<!--head-->
<style type="text/css">
<!--
.tableListings {
width: 620px;
border: 0px solid #006699;
margin: 0px;
padding: 5px;
}
.tableDate {
font-family: Arial, sans-serif;
font-size: 14px;
color: #000000;
width: 100px;
text-align: left;
vertical-align: top;
font-weight: bold;
padding: 2px;
}
.tableTitle {
font-family: Arial, sans-serif;
font-size: 14px;
color: #004262;
width: 520px;
text-align: left;
vertical-align: top;
font-weight: bold;
padding: 2px;
}
.tableCategory {
width: 8px;
}
.tableDescr {
font-family: Arial, sans-serif;
font-size: 14px;
color: #383838;
text-align: left;
vertical-align: top;
font-weight: normal;
}
.tableTime {
font-family: Arial, sans-serif;
font-size: 14px;
color: #295569;
font-weight: bold;
}
-->
</style>
<table border="0" class="tableListings">
<!--head-->


<!--body-->
<tr>
<td align="left" valign="top" bgcolor="#F7F5F2" class="tableDate">[date]<br><span class="tableTime">[time]</span></td>
<td align="left" valign="top" bgcolor="#FFFDF2" class="tableCategory s2[category]">&nbsp;</td>
<td align="left" valign="top" bgcolor="#F7F5F2" class="tableTitle" [mouseover]>[title]<br>
<span class="tableDescr">[categories][descr]<br /><br /></span></td>
</tr>
<!--body-->


<!--foot-->
</table>
<!--foot-->


<!--empty-->
<tr>
<td bgcolor="#FFFDF2" class="tableTime"><center>There are no events to display for this time period.</center></td>
</tr>
<!--empty-->
 

Old 08-26-2009, 12:12 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

The CSS code for the category colors are dynamically generated when you insert the $CSS=1 calendar command.

If you are copy/pasting the CSS manually, you'll need to look at the source code of a regular calendar page and grab the category CSS to paste in the blog.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-26-2009, 12:20 AM   #3
trdeveloper
Calendar User
 
trdeveloper is offline
Join Date: Aug 2009
Posts: 4
Default

Hi Brian,

Thanks for the quick reply! When you say regular calendar page, do you mean a non-list calendar page, or just a page that is not blogger-generated?

Once I know the answer to that question, do I just make a dummy page on my site and integrate the calendar into it, then look at the source code to find the CSS?

Could you by any chance give me a link to any Easy PHP Calendar page of this type so I can see an example of the CSS I am looking for? (I am guessing I am looking for any CSS that has words like catgegory/categories in it.)

Thanks!

Edward
 

Old 08-26-2009, 12:23 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Just look at any of your calendar demo files or the event manager.

You're looking for a section similar to:

<!--
.s22 {background-color: #A4CAE6;}
.s21 {background-color: #F2BFBF;}
.s23 {background-color: #CCFF00;}
.s24 {background-color: #FBF484;}
.s29999 {background-color: #FFC18A;}
-->
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 08-26-2009, 12:43 AM   #5
trdeveloper
Calendar User
 
trdeveloper is offline
Join Date: Aug 2009
Posts: 4
Default

Thanks Brian! That fixed everything. I really appreciate your immediate assistance!

Have a good night,

Edward
 

Old 08-26-2009, 07:05 AM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Edward, if there's any way that you can add stuff in the head of the template, I strongly suggest that you add the $CSS line instead of having the CSS manually pasted in the code.

By having the line in there, should you make any changes to the categories at a later time, the colors will automatically be updated.

In the code you said you pasted, that is only the 3rd required item for a proper integration. Have a look at the Integration section of the Online Docs and read the Important section. It describes where you are to put the $CSS and $OL lines for a proper integration.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 08-26-2009, 07:37 PM   #7
trdeveloper
Calendar User
 
trdeveloper is offline
Join Date: Aug 2009
Posts: 4
Default

Thanks Brian! I originally added that line before publishing via Blogger and accidentally left it out of the Blogger template. I successfully added it to the Blogger template and then removed the lines of CSS with the colors that I had added previously. Everything is working great now. Thanks again!
 
Closed Thread

Tags
blogger, categories, codes, color, color codes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
link date in list mode to same page as blog post shovi General Support 2 06-05-2009 08:03 AM
Showing specific dates in List mode GregClow General Support 3 09-12-2008 07:20 PM
Filter and List Mode - How can I change the initial category displayed? m2m General Support 2 05-05-2006 03:52 PM
Any way to make list mode function as "headlines" JamesC Customizations (Themes / Templates) 11 10-08-2005 04:03 PM
List mode not showing up jinnyruth General Support 5 07-20-2005 06:08 PM



All times are GMT -4. The time now is 04:28 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |