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, 62 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 - Problems writing my own Tap Entry [ ]
 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
georgiaguy
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 98


PostPosted: Wed Oct 29, 2003 5:59 am Reply with quoteBack to top

OK, here's the code:

.htaccess
Code:
RewriteRule ^gallery.html modules.php?name=gallery
RewriteRule ^gallery-album_([a-zA-Z0-9_-]*).html modules.php?set_albumName=$1&op=modload&name=gallery&file=index&include=view_album.php
RewriteRule ^gallery-photo_([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html modules.php?set_albumName=$1&id=$2&op=modload&name=gallery&file=index&include=view_photo.php


header.php:
Code:
"'(?<!/)modules.php\?name=gallery'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&id=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_photo.php'",
"'(?<!/)modules.php\?set_albumName=([a-zA-Z0-9_-]*)&op=modload&name=gallery&file=index&include=view_album.php'"
);


and:
Code:
"gallery.html",
"gallery_photo-\\1-\\2.html",
"gallery_album-\\1.html"


it rewrites the gallery.html just fine, and I can access the page (http://www.nukedgallery.net/gallery.html .. i've taken this tap out now, so the page won't work), but it 404's on the albums and pictures. any suggestions? thanks in advance.

EDIT: I've moved this tap to http://phpnuke.nukedgallery.net
Find all posts by georgiaguyView user's profileSend private message
irving.hutagalung
Corporal
Corporal


Joined: Oct 07, 2003
Posts: 54

Location: Jakarta (Indonesia)

PostPosted: Wed Oct 29, 2003 11:09 pm Reply with quoteBack to top

Well, not everyone is familiar with Monsato Gallery, so, perhaps you'd better post also the actual URL that you want to replace. I mean, it's difficult to see the error if you only give us the rule, without knowing the actual URL that that rule must achieve.

- irving
http://www.IrvingEvaJoan.com
Find all posts by irving.hutagalungView user's profileSend private messageVisit poster's website
georgiaguy
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 98


PostPosted: Thu Oct 30, 2003 7:00 am Reply with quoteBack to top

not monsato gallery, menalto gallery.

the urls that need to be replaced are:
http://phpnuke.nukedgallery.net/modules.php?name=gallery (this one works just fine as gallery.html)
http://phpnuke.nukedgallery.net/modules.php?set_albumName=<ALPHANUMERIC_1>&id=<ALPHANUMERIC_2>&op=modload&name=gallery&file=index&include=view_photo.php (i want this to be http://phpnuke.nukedgallery.net/gallery_photo-<ALPHANUMERIC_1>-<ALPHANUMERIC_2>.html )
http://phpnuke.nukedgallery.net/modules.php?set_albumName=<ALPHANUMERIC>&op=modload&name=gallery&file=index&include=view_album.php (i want this to be http://phpnuke.nukedgallery.net/gallery_photo-<ALPHANUMERIC>.html )
Find all posts by georgiaguyView user's profileSend private message
irving.hutagalung
Corporal
Corporal


Joined: Oct 07, 2003
Posts: 54

Location: Jakarta (Indonesia)

PostPosted: Thu Oct 30, 2003 6:43 pm Reply with quoteBack to top

Sorry for the wrong name Embarassed

Your code does not sync.

In header.php you use gallery_album while in .htaccess you use gallery-album.

That's all that I can see. Can you try first and post the result?

- irving
http://www.IrvingEvaJoan.com
Find all posts by irving.hutagalungView user's profileSend private messageVisit poster's website
georgiaguy
Sergeant
Sergeant


Joined: Jun 13, 2003
Posts: 98


PostPosted: Fri Oct 31, 2003 5:28 am Reply with quoteBack to top

you kick Rainbow Brite Smile it worked, thanks Smile
Find all posts by georgiaguyView user's profileSend private message
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.186 Seconds - 462 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::