|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
ltwCalendar Script
I first would like to say that I absolutely love the calendar script you guys made.. however I was quite torn with having to constantly update the code with a new version of my webpage template so I made a couple changes to the code you will more than likely love.
ltw_header.php: $array = file($file_template); while (list($line_num, $line) = each($array)) { if (strstr($line, "Editable name="".$region_name."")) { break; } else { echo $line; } } This will let the Dreamweaver users out there give the name of a templated file to use and it will read all the way thru the file creating the area surrounding the webpage. ltw_footer.php: $array = file($file_template); $found = false; while (list($line_num, $line) = each($array)) { if ($found) { echo $line; } else { if (strstr($line, "Editable name="".$region_name.""")) { $found = true; } } } This creates the bottom half of the page beyond the start of the predefined region name. The only things you need to define is $file_template and $region_name. calendar.php: global $region_name; global $file_template; $file_template = 'URL'; $region_name = 'whatever'; Have fun with it |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > ltwCalendar Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|