unmgroup
Newbie


Joined: Oct 15, 2006
Posts: 2
|
Posted:
Sun Oct 15, 2006 8:36 am |
|
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 |
| |
|
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sun Oct 15, 2006 9:54 am |
|
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 |
|