PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old July 9th, 2002, 07:47 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > ltwCalendar Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway