Jump to content

however

Members
  • Posts

    7
  • Joined

  • Last visited

however's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, thank you for your reply. Nevertheless, It was not intended to be illegal. I understand the principle and I will mark this post as solved; (moderators pls feel free to delete the post should it cause any more friction within the forum). Sincere apologies for causing bitterness amongst some members. Regards,
  2. Hello everyone, I am trying to modify a wordpress free plugin (Birchpress Scheduler) so that I may receive email notifications when an appoitment is booked. At the moment, this feature is only offered to the Pro edition of the plugin which I would buy if I had 100$ spare to spend; unfortunately, as you may imagine since I'm here asking for help, I don't have that luxury. To say in advance, that I am not a coder nor a software savvy. Just a random, regular guy spending his freetime to build a personale webpage. I have used in the past free html tempates to build a page and added a basic php booking form. Now, i have revamped the blog using wordpress, which is free; however, the free booking form that I chose doesn't suport email notification. I have looked at the plugin files to see if I could add a link or something like // 'Submit Email' Script // $webMaster = "email@address.com"; $emailSubject = "request_app"; in the main index file to make that possible. And, once again, as you can imagine, I didnt succed and, in fact, I had no clues of what I was doing or where to start. Is this possbile? if not, I just be quite and give up. Regards,
  3. hi jcbones, and thank you so much! Your code works. Thanks also to everyone else for their input. Keep up the good work. Regards,
  4. Hi again Denno and thank you very much for your input. Below, I have attached the three files, containing the code for the calendar.php, default.css and index.php. Not sure if you would have preferred the actual code copied&pasted here but I thought it would be less messy. Look forward to hearing from you. Regards, index.php calendar.php default.css
  5. Hi Denno, apologies for the long wait in replying to your help suggestion. Unfortunately, it doesn't seem to work for me; I have tried both (with and without CSS styiling) and the result is the same: the entirre page background changes to dark grey overwriting everything else. I will keep trying other options, but if you have any further suggestions I will be glad to try. Regards
  6. Hi Denno020, thank you very much for your input. I just don't seem to be able to do this. I don't know where to insert the script! The first part says //Outside of the for loop// and I guess it should be here somewhere in between this lines: <?php $timestamp = mktime(0,0,0,$Current_Month,1,$Current_Year); $maxday = date("t",$timestamp); $thismonth = getdate ($timestamp); $startday = $thismonth['wday']; and the second part of your scrip says, //Inside the for loop//, and I guess it should go somewhere here: for ($i=0; $i<($maxday+$startday); $i++) { if(($i % 7) == 0 ) echo "<tr>"; if($i < $startday) echo "<td></td>"; else echo "<td align='center' valign='middle' height='20px'>". ($i - $startday + 1) . "</td>"; if(($i % 7) == 6 ) echo "</tr>"; } ?> I have tried everywhere but no luck. I have also created a .today class in my style sheet under the calendar table wrapper and still no luck. This is the CSS for the table wrapper: /* Calendar */ #calendar_wrap { padding: 0 15px; text-align: center; } #calendar_wrap table { width: 100%; } #calendar_wrap td { color: #3E3E3E; left: 0px; } .today { background: #DCDCDC; } This may make you laugh in despair, but as I said earlier, i'm really not a pro. Would you help me a little more, pls? Regards,
  7. Hello, this is my first post in this new forum. I really hope that someone can help me, as I am really getting headaches from sleepless nights trying to solve this problem. I need to say in advance that I am a total newbie with scripting in php. I have found this php calendar script but i would like it to have today's date of a different color. Any help/suggestion would be gratefully appreciated. calendar.php <html> <body> <?php $month_Names = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); if (!isset($_REQUEST["month"])) $_REQUEST["month"] = date("n"); if (!isset($_REQUEST["year"])) $_REQUEST["year"] = date("Y"); $Current_Month = $_REQUEST["month"]; $Current_Year = $_REQUEST["year"]; $prev_year = $Current_Year; $next_year = $Current_Year; $prev_month = $Current_Month-1; $next_month = $Current_Month+1; if ($prev_month == 0 ) { $prev_month = 12; $prev_year = $Current_Year - 1; } if ($next_month == 13 ) { $next_month = 1; $next_year = $Current_Year + 1; } ?> <table width="200"> <tr align="center"> <td style="color:#FFFFFF"> <table width="100%" border="0" cellspacing="2" cellpadding="0"> <tr> <td align="left"> <a href="<?php echo $_SERVER["PHP_SELF"] . "?month=". $prev_month . "&year=" . $prev_year; ?>" style="color:#808080"> << </a></td> <td align="center" style="color:#000000"><strong><?php echo $month_Names[$Current_Month-1].' '.$Current_Year; ?></strong></td> <td align="right"><a href="<?php echo $_SERVER["PHP_SELF"] . "?month=". $next_month . "&year=" . $next_year; ?>" style="color:#808080"> >> </a></td> </tr> </table> </td> </tr> <tr> <td align="center" clspan="7"> <table width="100%" border="0" cellpadding="2" cellspacing="2"> <tr> <td align="center" style="color:#FF0000"><strong>S</strong></td> <td align="center" style="color:#000000"><strong>M</strong></td> <td align="center" style="color:#000000"><strong>T</strong></td> <td align="center" style="color:#000000"><strong>W</strong></td> <td align="center" style="color:#000000"><strong>T</strong></td> <td align="center" style="color:#000000"><strong>F</strong></td> <td align="center" style="color:#FF0000"><strong>S</strong></td> </tr> <?php $timestamp = mktime(0,0,0,$Current_Month,1,$Current_Year); $maxday = date("t",$timestamp); $thismonth = getdate ($timestamp); $startday = $thismonth['wday']; for ($i=0; $i<($maxday+$startday); $i++) { if(($i % 7) == 0 ) echo "<tr>"; if($i < $startday) echo "<td></td>"; else echo "<td align='center' valign='middle' height='20px'>". ($i - $startday + 1) . "</td>"; if(($i % 7) == 6 ) echo "</tr>"; } ?> </table> </td> </tr> </table> </body> </html> How do I change the color of today's date ? Regards,
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.