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

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
  #1  
Old February 2nd, 2004, 04:44 AM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mjar81
Image Gallery question

I'm running an ISS webserver with PHP 4.3.4 using the php_gd2.dll extention enabled.

i have the basic image gallery up and running, but i'm wondering how to get the gallerys to display when the folders have special characters in them.

i want to prefix each folder with a date but i can't use the "-" character.

any ideas on how i might go about solving this problem?

Thanks for any help in advance,
mjar81

Reply With Quote
  #2  
Old February 2nd, 2004, 11:37 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Image Gallery question

the code checks to make sure that folder names are alpha-numeric characters only, so find that portion of the code and strip out "-" symbols before it runs the check. that should take care of it

Reply With Quote
  #3  
Old February 3rd, 2004, 01:08 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mjar81
RE: Image Gallery question

hmm... i did a search of all my code and i can't seem to locate the portion that checks for alpha-numeric characters...

i thought i understood the code, but i guess not... i'm a newbie!

although i did manage to apply a css sheet to the page!

thanks for any help... i'm trying to learn!
mjar81

Reply With Quote
  #4  
Old February 3rd, 2004, 01:50 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Image Gallery question

it's right at the top there. change:
php Code:
Original - php Code
  1.  
  2. if(!ctype_alnum(str_replace(' ', '', $value)))
  3.     $invalid = true;

to something along the lines of:
php Code:
Original - php Code
  1.  
  2. // what characters do u want to allow?
  3. $chars = array(' ', '-');
  4. if(!ctype_alnum(str_replace($chars, '', $value)))
  5.     $invalid = true;

Reply With Quote
  #5  
Old February 3rd, 2004, 03:17 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mjar81
RE: Image Gallery question

AWESOME! that did it! thanks for all the help... if you want to see my gallery in action, only to see the way cool CSS sheet i applied, head on oaver to www.markrickert.net and click on the link underneath the header graphic!

thanks again for your help!
mjar81

Reply With Quote
  #6  
Old February 3rd, 2004, 03:57 PM
mjar81 mjar81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Tampa, FL
Posts: 64 mjar81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to mjar81
RE: Image Gallery question

i also just added a "HOME" navigation button to the page with the code:

php Code:
Original - php Code
  1.  
  2. print('<tr><td align="center" colspan="' . COLS . '">
  3. <a href="'.$SERVER['PHP_SELF'].' ?nav=">HOME</a>
  4. </td></tr><td align="center" colspan="' . COLS . '">');


it works well!
mjar81

Reply With Quote
  #7  
Old February 3rd, 2004, 04:30 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Image Gallery question

looks good!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Image Gallery question


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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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