Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
unmgroup
Newbie
Newbie



Joined: Oct 15, 2006
Posts: 2

PostPosted: Sun Oct 15, 2006 8:36 am Reply with quote

Hey,

I'm pretty much new to this, but I was wondering if there was some sort of tutorial on how to create taps for modules that arent tapped. For example, coppermine. Your help would be appreciated. Thanks

- Mellisa
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Oct 15, 2006 9:54 am Reply with quote

No real tutorial. I would, however, search for a tap first. Might want to try NukeCops forums. Unfortunately, I'll be tied up with a business trip this week, so not sure how much time I'll have time to research it.

Tapping really isn't too difficult to pick up. They are almost self teaching in a way. Take a simple one, such as Topics. This one is reasonably small and easy, but also has examples for most common URL rewrites.

This is all based upon REGEX. Some nice web sites on regex are:

http://regexlib.com/Default.aspx
http://www.rexv.org/

These are useful resources.

What I would do is turn off ShortLinks and capture a few of the links from the Topics. Then, turn it back on and compare the two. The $urlin array is the pattern for the untapped links.

When it finds a "hit" on the "pattern" within that array, it uses the $urlout array, the same position in the array, as the pattern to rewrite the link to. The parenthesis -- ( ) -- encapsulate what gets substituted, from left-to-right, using the \\1, \\2 etc. The .htaccess file statements reverse this. It also uses the parenthesis, but uses $1, $2, etc. for the substitution.

Over time I will try to write a tutorial in my wiki.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Mon Oct 16, 2006 4:00 pm Reply with quote

That cheat sheet is nice thanks!

http://regexlib.com/CheatSheet.aspx

Very helpful.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous 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-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©