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, 135 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 - Adding Google-Tap to my own modules? [ ]
 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
link
Corporal
Corporal


Joined: Mar 01, 2004
Posts: 65


PostPosted: Sun Jan 29, 2006 6:41 am Reply with quoteBack to top

Hello.

I have googletap installed. Works fine.

But id like to extend it to a module of my own.

Here is the .htaccess file... it rewrites them fine..

Code:
#Free Samples
Rewriterule ^samples.html modules.php?name=Samples
Rewriterule ^samples_kicks.html modules.php?name=Samples&Sampletype=Kicks
Rewriterule ^samples_snares.html modules.php?name=Samples&Sampletype=Snares
Rewriterule ^samples_hats.html modules.php?name=Samples&Sampletype=Hihats
Rewriterule ^samples_bass.html modules.php?name=Samples&Sampletype=Bass
Rewriterule ^samples_fx.html modules.php?name=Samples&Sampletype=FX
Rewriterule ^samples_loops.html modules.php?name=Samples&Sampletype=Loops
Rewriterule ^samples_misc.html modules.php?name=Samples&Sampletype=Misc
Rewriterule ^samples_pads.html modules.php?name=Samples&Sampletype=Pads
Rewriterule ^samples_vocals.html modules.php?name=Samples&Sampletype=Vocals


But how would i put that in my header.php file?

Thanks ahead of time NukeCops

_________________
http://circuitboardfix.com | http://free-loops.com
Find all posts by linkView user's profileSend private messageVisit poster's website
astalavistabd
Captain
Captain


Joined: Dec 19, 2004
Posts: 663

Location: Canada

PostPosted: Sun Jan 29, 2006 10:39 am Reply with quoteBack to top

How did you put your other module's code in header? It should be the same. Im using NextGen Google tap, so it's a bit different for me. I just have to make a GT-file and uplaod it inside my GoogleTap folder and .htaccess modification. Smile Since you dont have any variable it should be simple like this

Code:

$urlin = array(
"'(?<!/)modules.php\?name=Samples'"
);

$urlout = array(
"samples.html"
);


Do the same for all the pages. Smile

_________________
Free PHPNuke Themes, PHPNuke Modules, PHPNuke Blocks (No Registration Required)
Find all posts by astalavistabdView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
link
Corporal
Corporal


Joined: Mar 01, 2004
Posts: 65


PostPosted: Sun Jan 29, 2006 5:42 pm Reply with quoteBack to top

Well.. thanks for your time buddy Smile

Ill try that. Thanks Smile

Very Happy

_________________
http://circuitboardfix.com | http://free-loops.com
Find all posts by linkView user's profileSend private messageVisit poster's website
scott2500uk
Private
Private


Joined: Oct 08, 2005
Posts: 43

Location: York UK

PostPosted: Tue Feb 07, 2006 4:16 pm Reply with quoteBack to top

im also doing the same making one of my modules use google tap. Ive found it very easy to do but stubled across a problem. In one of my urls I have:

Code:
modules.php?name=Video_Stream&page=broken&id=21&vidname=A Title With Spaces


now i have set at the moment in my header:

Code:
"'(?<!/)modules.php\?name=Video_Stream&amp;page=([a-z]*)&amp;id=([0-9]*)&amp;vidname=([/:\-\'{}()\._&a-zA-Z0-9+=\?\%]*)'",
"videostream-\\1-\\2-\\3.html",


and in my htaccess:

Code:
RewriteRule ^videostream-([a-z]*)-([0-9]*)-([[:punct:]?/:\-\'{}()._&a-zA-Z0-9+=\%]*).html modules.php?name=Video_Stream&page=$1&id=$2&vidname=$3


but my resultant url is:

Code:
videostream-broken-29-Jumping.html%20Around%20The%20Neighborhood


Could some one be kind enough to tell me how I get the .html at the end and the %20 to show as - so my url would look like

Code:
videostream-broken-29-Jumping-Around-The-Neighborhood.html


Thank you
Find all posts by scott2500ukView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Tue Feb 07, 2006 4:35 pm Reply with quoteBack to top

Try adding a space here at the end
Code:

[/:\-\'{}()\._&a-zA-Z0-9+=\?\% ]

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
scott2500uk
Private
Private


Joined: Oct 08, 2005
Posts: 43

Location: York UK

PostPosted: Tue Feb 07, 2006 4:52 pm Reply with quoteBack to top

doing that places the .html in correct place:

Code:
videostream-broken-29-Jumping%20Around%20The%20Neighborhood.html


now can i just add a new rewrite that takes %20 and replaces it with -. if so how?
Find all posts by scott2500ukView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN Messenger
scott2500uk
Private
Private


Joined: Oct 08, 2005
Posts: 43

Location: York UK

PostPosted: Wed Feb 08, 2006 5:12 am Reply with quoteBack to top

ok nvm Ive just used str_replace() to make spaces, dashes.
Find all posts by scott2500ukView user's profileSend private messageSend e-mailVisit poster's websiteYahoo MessengerMSN 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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.595 Seconds - 80 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::