You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 65 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Need help with rewrite rule for date in URL [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
RickAllen
Nuke Cadet
Nuke Cadet


Joined: Aug 01, 2003
Posts: 3


PostPosted: Mon Nov 24, 2003 7:24 am Reply with quoteBack to top

I'm having trouble writing a rewrite rule and header.php entry for a calendar module. It uses the date at the end of the url to pull the listing for that date when clicked on. Can someone look at the url below and give me an idea of what I need in htaccess and header.php to get this to work?

Code:
modules.php?name=My_Calendar&file=index&type=day&Date=11/01/2003


Thanks.
Find all posts by RickAllenView user's profileSend private message
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Mon Nov 24, 2003 8:29 am Reply with quoteBack to top

I'm having no luck with this either. I was trying to tap the events calendar. The date thing is really anoying. Anyone have any ideas??

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
RickAllen
Nuke Cadet
Nuke Cadet


Joined: Aug 01, 2003
Posts: 3


PostPosted: Wed Nov 26, 2003 5:25 pm Reply with quoteBack to top

Any help would be really appreciated. All my other modules are working fine. Just can't figure this one out.
Find all posts by RickAllenView user's profileSend private message
xfsunolesphp
Lieutenant
Lieutenant


Joined: Apr 05, 2003
Posts: 208

Location: Melbourne, FL

PostPosted: Thu Nov 27, 2003 3:14 pm Reply with quoteBack to top

Code:

"'(?<!/)modules.php\?name=My_Calendar&amp;file=index&amp;type=day&amp;Date=([1-9/]*)'"
Find all posts by xfsunolesphpView user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Thu Nov 27, 2003 4:24 pm Reply with quoteBack to top

surely not that easy?

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
xfsunolesphp
Lieutenant
Lieutenant


Joined: Apr 05, 2003
Posts: 208

Location: Melbourne, FL

PostPosted: Thu Nov 27, 2003 4:25 pm Reply with quoteBack to top

it little of easy, but i getting more experience of it.
Find all posts by xfsunolesphpView user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Thu Nov 27, 2003 4:28 pm Reply with quoteBack to top

only having the one / will recreate the two of them and the 6 numbers??

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
xfsunolesphp
Lieutenant
Lieutenant


Joined: Apr 05, 2003
Posts: 208

Location: Melbourne, FL

PostPosted: Thu Nov 27, 2003 4:40 pm Reply with quoteBack to top

did you try it on header.php?
Find all posts by xfsunolesphpView user's profileSend private messageVisit poster's websiteAIM AddressYahoo Messenger
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Thu Nov 27, 2003 8:03 pm Reply with quoteBack to top

Badger, that should work with no problems, though it is recommended you escape the character (make it looks like ([1-9\/]*), I am not sure how the date goes, but if it does not contain hyphens or underscores this will work perfectly, you could also make it ([0-9\/]*) which will allow zero's to be used as well. There is no need for additional /'s in this because the star * delimeter is being used, that says it will do any number 0-9 and /'s for zero instances and above. The star * delimeter is for zero and above, + is for one and above { } with a number inside is an exact number of instances, and a { , } with a number on each side of the comma specifies the minimum and maximum range of instances to be used. The only delimeter I normally use for GT is the *, however more advanced regex expressions may require the others be used, such as the preg_replace statement inside of the footer.php on GT-NExtGEn, this regex is a good example of using ranges and stars.

-Bill

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Fri Nov 28, 2003 12:48 am Reply with quoteBack to top

I was trying at one point to tap the Event Calendar
(holbrookau.net one) and the date format was as above ie: &Date=28/11/03, but in that module there is another variable after the date passesd s well. At the moment I'm really in a guddle with my site due to the betaNC bundle being knackered, but I'm patching and modding up a new 6.9 whenever I get time, so I might stay out of this for now!!

Badger

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.216 Seconds - 282 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::