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

Adjusting spacing on filter plugin
Old 10-26-2005, 05:20 PM   #1
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default Adjusting spacing on filter plugin

Hey calendar peeps:

For some reason, the filter plugin seems to take up an enourmous amount of space. Take a look at my calendar:
http://symphonyblog.com/calendar/

Is there an easy way to make the filter smaller so that my legend can tuck right up against it?
 

Old 10-26-2005, 05:57 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Ok, the problem isn't with the filter, but rather with your table.

You have three rows in your table, and on the middle row (where the filter is) you have two columns. So to equalize things, on your first and last rows, in the <td> tag, modify the tag so that it's like this

<td colspan="2">

That way, the row in the middle will be covered by the cells above and below.

Good luck.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 10-26-2005, 06:14 PM   #3
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

Check it again...

I put the colspan tag into each of the <td> tags, but it is still too wide. Did I change it and make the problem worse! LOL.

Thanks!
 

Old 10-26-2005, 06:15 PM   #4
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

Hey never mind! I just got it!!!
 

Old 10-27-2005, 12:00 PM   #5
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

Ok -- so I solved the problem of having absolutely no HTML skills (well partially), but I do have another related question on this topic.

Take a look: http://symphonyblog.com/calendar/

What I would like to do is apply a style sheet to the filter drop-down menu. That way instead of being the oversized default font, I could set it to a smaller Arial size 11 font. How would I go about doing this?
 

Old 10-27-2005, 01:17 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Open the plugins/filter.php file and apply a CSS attribute to the drop-down form element.
__________________
-- Brian

Questions?

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

Old 10-27-2005, 02:04 PM   #7
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

Here is the code for that page...why isn't it taking the class tag?

<?php
//////////////////////////////////////////////////
// DISPLAY MAIN CATEGORIES DROP-DOWN /////////////
//////////////////////////////////////////////////
/*
This plugin will display a single drop-down menu with the Main Category selections.
*/
if (!isset($epcCategories) || $epcCategories=="") exit;
$epcCat = explode("-||-",$epcCategories);
// DISCARD ARRAY KEY INFORMATION
$epcHighKeyX = explode("|",array_pop($epcCat));
// ASSIGN EACH CATEGORY WTTH SELECTIONS TO AN ARRAY
if (count($epcCat)>0) {
// RESET COUNTER
$epcCatCount = 0;
foreach ($epcCat as $epcValue) {
if ($epcValue!="") {
$epcCategoryHolder[$epcCatCount] = $epcValue;
$epcCatCount++;
}
}
}
// SHOW CATEGORY
$epcValue = $epcCategoryHolder[0];
$epcCatFull = explode("|",$epcValue);
// SET CATEGORY NAMES
$epcCatNameSet = $epcCatFull[1];
$epcCatNameSet = explode("[",$epcCatNameSet);
$epcCategoryNames[$epcCatNameSet[1]] = $epcCatNameSet[0];
// DISPLAY CATEGORY NAME
//echo $epcCatNameSet[0].": ";
// SHORTEN SELECTIONS ARRAY
array_shift($epcCatFull);
array_shift($epcCatFull);
// SORT SELECTIONS
asort($epcCatFull);
reset($epcCatFull);
// SHOW DROP DOWN FORM
?>
<link href="filter_style.css" rel="stylesheet" type="text/css">
<body class="form">
<form action="<?php echo htmlentities($_SERVER['PHP_SELF']) ?>" method="get" name="FilterForm" class="form" id="FilterForm" style="font-size:11;">
<select name="showCat" class="form" id="showCat">
<option value="">Show All</option>
<?php
// SET SELECTIONS NAMES
foreach ($epcCatFull as $key) {
$epcSelFull = explode("[",$key);
if ($epcSelFull[0]!="") {
echo "<option value=\"$epcSelFull[1]\"";
if ($_REQUEST['showCat']==$epcSelFull[1]) echo " selected";
echo ">".$epcSelFull[0]."</option>";
}
}
?>
</select>
<input type="image" name="submit" src="images/submit.gif" width="74" height="26" border="0">
</form>
 

Old 10-27-2005, 02:10 PM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

What are the attributes of the form CSS?
__________________
-- Brian

Questions?

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

Old 10-27-2005, 02:20 PM   #9
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

This is what is in filter_style.css:

.form {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-style: normal;
line-height: 11px;
font-weight: normal;
font-variant: normal;
text-transform: none;
text-decoration: none;
 

Old 10-27-2005, 02:29 PM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

I'm not sure where the CSS file is stored on your server, but make sure the path is correct. If you put the CSS file in the plugins directory, you'd need to add that to the path.

You may just want to put the CSS in the filter file?
__________________
-- Brian

Questions?

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

Old 10-27-2005, 02:34 PM   #11
cbaisden
Calendar User
 
cbaisden is offline
Join Date: Oct 2005
Posts: 14
Default

Dude -- you're good. All set. Thanks!
 
Closed Thread

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
Add filter plugin martin Customizations (Themes / Templates) 27 10-31-2005 09:23 AM
Where is the "Advanced Filter screen" dan_cameron General Support 1 09-02-2005 06:33 PM
can't filter singel categories Vandelay General Support 2 07-03-2005 08:52 PM
Is There A Command-Line For Cell Spacing? douglas365 General Support 1 06-15-2005 12:51 PM



All times are GMT -4. The time now is 10:31 PM.


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 |