ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

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:
  #1  
Old June 19th, 2003, 12:20 AM
crash3909 crash3909 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 34 crash3909 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to crash3909
Slashes

Hi,

I was wondering if in your next release, you can eliminate the slashes from the calendar page. An example of it can be seen at:

http://www.insightentertainment.net/calendar/calendar.php

Thanks

Reply With Quote
  #2  
Old June 19th, 2003, 12:34 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Slashes

hmm..I thought that was handled...I'll look at it...


Reply With Quote
  #3  
Old June 19th, 2003, 12:55 AM
crash3909 crash3909 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 34 crash3909 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to crash3909
RE: Slashes

OK... Thanks about the slashes.

Also, since you seem to be "The Man" here, I have tried 2 threads already and have not gotten the following problem solved. I am trying to use an email validation to not allow users to enter in email addresses. The code is at the bottom and it works in a simple demo (non-calendar) page. If you can, please tell me how I can get this to work in the calendar.

Right now it is in ltw_classes.php in the Add Event section below this line:

php Code:
Original - php Code
  1.  
  2.             echo "<INPUT type="text" size=20 name="eName"><BR>n";


The error I get is:

Warning: Undefined index: eName in /path/path/ltw_classes.php on line 822

php Code:
Original - php Code
  1.  
  2. function is_valid_email($email_address) {
  3.    if(ereg("([[:alnum:].-]+)(@[[:alnum:].-]+.+)", $email_address)) {
  4.         return 1;
  5.     } else {
  6.         return 0;
  7.     }
  8. }
  9. if (is_valid_email($_POST['eName'])) {
  10. echo "Sorry! Email addresses are not permitted";
  11. }

Reply With Quote
  #4  
Old June 19th, 2003, 01:07 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Slashes

where are you adding this? Please give line numbers and before and after code...

Reply With Quote
  #5  
Old June 19th, 2003, 01:13 AM
crash3909 crash3909 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 34 crash3909 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to crash3909
RE: Slashes

OK... Thanks

What you see directly below are lines 803 to 811

php Code:
Original - php Code
  1.  
  2.         if($name == "0") {
  3.             echo "<HTML>n";
  4.             echo "<HEAD>n";
  5.             echo "<TITLE>Add Event</TITLE>n";
  6.             echo "</HEAD>n";
  7.             echo "<BODY>n";
  8.             echo "<FORM ACTION="calendar.php?display=admin&task=adddone" METHOD="POST" name="">n";
  9.             echo "Event Title:&nbsp;n";
  10.             echo "<INPUT type="text" size=20 name="eName"><BR>n";


Then I add:

php Code:
Original - php Code
  1.  
  2. function is_valid_email($email_address) {
  3.    if(ereg("([[:alnum:].-]+)(@[[:alnum:].-]+.+)", $email_address)) {
  4.         return 1;
  5.     } else {
  6.         return 0;
  7.     }
  8. } {
  9. if (is_valid_email($_POST['eName'])) {
  10. echo "Sorry! Email addresses are not permitted";
  11. }


After this the code is:

php Code:
Original - php Code
  1.  
  2.     if(!($date == "0")) {
  3.                 $datearray = explode("-", $date);


Hopefully I have explained myself a bit better. Thanks again.

Reply With Quote
  #6  
Old June 19th, 2003, 01:15 AM
crash3909 crash3909 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 34 crash3909 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to crash3909
RE: Slashes

RATS !! There is an extra { above the if statement here that is not in the file. Don't know how it got there.

Reply With Quote
  #7  
Old June 19th, 2003, 01:29 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Slashes

OK...I would add your entire function:
php Code:
Original - php Code
  1. function is_valid_email($email_address) {
  2.    if(ereg("([[:alnum:].-]+)(@[[:alnum:].-]+.+)", $email_address)) {
  3.         return 1;
  4.     } else {
  5.         return 0;
  6.     }
  7. }


to the very top of the ltw_classes.php file.

Then...in the calendar.php file insert your if statement with a break statement after line 84. Including line 84 (and the old 85), it should read:
php Code:
Original - php Code
  1. case 'adddone':
  2. if (is_valid_email($_POST['eName'])) {
  3. echo "Sorry! Email addresses are not permitted";
  4. break;
  5. }
  6. if(checkdate($_POST['eMonth'],$_POST['eDay'],$_POST['eYear'])) {


Hope that helps....


Reply With Quote
  #8  
Old June 19th, 2003, 01:35 AM
crash3909 crash3909 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 34 crash3909 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to crash3909
RE: Slashes

BINGO !!! Thanks

Reply With Quote
  #9  
Old June 19th, 2003, 01:42 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Slashes

That's why I'm 'The Man'

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > Slashes


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek