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, 79 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Encyclopedia GoogleTap [ ]
 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
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Thu Apr 08, 2004 1:14 pm Reply with quoteBack to top

okay i'm basicly trying to make the encyclopedia Googletap with the NukeCop Version...

now most of the path are converted but i can't get them to show the .html links on the site once i'm in the encyclopedia so in other words when your in the http://www.laprank.com/encyclopedia.html site you can see everything normaly but the path arn't converted 2 .html there still .php

this is the code i have used:
Code:
#Encyclopedia
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^encyclopedia-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&query=$2
RewriteRule ^encyclopedia-([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^encyclopedia-list-([0-9]*).html modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia-terms([0-9]*)-([A-Z]*).html modules.php?name=Encyclopedia&op=terms&eid=$1<r=$2
RewriteRule ^encyclopedia-search-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&file=search&query=$1
RewriteRule ^encyclopedia-search.html modules.php?name=Encyclopedia&file=search
RewriteRule ^encyclopedia.html modules.php?name=Encyclopedia

_________________
http://www.dollarbuddy.com/index.php?id=jdh06@hotmail.com
http://www.allgoodgames.com
http://www.laprank.com
Find all posts by laprankView user's profileSend private messageVisit poster's website
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Sat Apr 10, 2004 12:10 am Reply with quoteBack to top

anybody can help?
Find all posts by laprankView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sat Apr 10, 2004 10:31 pm Reply with quoteBack to top

Edit header.php
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Tue Apr 13, 2004 9:11 pm Reply with quoteBack to top

edit it how???

_________________
http://www.dollarbuddy.com/index.php?id=jdh06@hotmail.com
http://www.allgoodgames.com
http://www.laprank.com
Find all posts by laprankView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Tue Apr 13, 2004 9:56 pm Reply with quoteBack to top

Find the line that ends:
Code:

"'(?<!/)modules.php\?name=Web_Links'"
);

(assuming the base is standard GT from NukeCops)

You want to add your code so you get
Code:

"'(?<!/)modules.php\?name=Web_Links'",     
"'(?<!/)modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)&amp;page=([0-9]*)"
);

and so forth. Every line you add must have a comma at the end, except for the last one.


Second, find the code that ends
Code:

"links.html"
);

(again assuming standard NukeCop GT base)

Edit the following links like:
Code:

"links.html",
"encyclopedia-\\1-\\2.html"
);

(again, the comma after every line but the last)

It is a good idea to check out the code in header.php, so you can get a good example of how to convert these.
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Thu Apr 15, 2004 7:00 pm Reply with quoteBack to top

Code:

"'(?<!/)modules.php\?name=Web_Links'",     
"'(?<!/)modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)&amp;page=([0-9]*)"
);

and so forth. Every line you add must have a comma at the end, except for the last one.


Second, find the code that ends
Code:

"links.html"
);

(again assuming standard NukeCop GT base)

Edit the following links like:
Code:

"links.html",
"encyclopedia-\\1-\\2.html"
);


yea i did what you told me but i couldn't figure out how 2 add the rest... i'm not really a scripter. but i did ad the code you gave in and i didn't see any difference.. :S

_________________
http://www.dollarbuddy.com/index.php?id=jdh06@hotmail.com
http://www.allgoodgames.com
http://www.laprank.com
Find all posts by laprankView user's profileSend private messageVisit poster's website
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Thu Apr 15, 2004 7:21 pm Reply with quoteBack to top

Hello,

You need to give each mod_rewrite code a html format.

Here is an example.

For the .htaccess file:

RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3

Therefore, something like this...

$urlin = array(
"'(?<!/)modules.php\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)&amp;page=([0-9]*)&amp;query=([a-zA-Z0-9_-]*)'",

$urlout = array(
"encyclopedia-\\1-page\\2-\\3.html",

.....should go inside your header.php file

_________________
If you shoot for the moon and miss, you'll still be amongst the stars.
Find all posts by foxyfemfemView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Thu Apr 15, 2004 9:54 pm Reply with quoteBack to top

You wrote the .htaccess file right? Follow that pattern:

([0-9]*) represents an entry that is a number
([a-zA-Z0-9_-]*) represents an entry that can be characters, numbers, and underscore

These are used in the first part of header.php

You want that to sync with the second part of header.php. Thus you if you add a row in the first part, you must add a row in the same position in the seoncd part.

Each entry is numbered, so you replace them inside the .html string that you want.
\\1 first entry
\\2 second entry
and so forth
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Thu Apr 22, 2004 11:12 pm Reply with quoteBack to top

yea... its been a few days and i've been trying over and over 2 get it 2 work but unfortunately i've gotten no-where..... is there a way you could do it for me... (just for once Rolling Eyes )

anyways i'll keep trying at it but my hopes are just going down day by day....

_________________
http://www.dollarbuddy.com/index.php?id=jdh06@hotmail.com
http://www.allgoodgames.com
http://www.laprank.com
Find all posts by laprankView user's profileSend private messageVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun May 16, 2004 10:43 pm Reply with quoteBack to top

Download the Googlifier and just copy the Encyclopedia relevant links. As a bonus, you will have also all terms listed on a single page without the function specified in the source code. Smile

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
laprank
Nuke Soldier
Nuke Soldier


Joined: Jul 03, 2003
Posts: 19


PostPosted: Thu May 20, 2004 4:34 pm Reply with quoteBack to top

where would i find this googlifier??? and has anybody got it too work and if so could you share it with us....

thanks

_________________
http://www.dollarbuddy.com/index.php?id=jdh06@hotmail.com
http://www.allgoodgames.com
http://www.laprank.com
Find all posts by laprankView user's profileSend private messageVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Thu Nov 04, 2004 2:58 am Reply with quoteBack to top

New Encyclopedia hack with page nubmers for letters containing more than X (configurable) entries.

http://www.vdsp.net/dic2.html

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
mikeshields
Sergeant
Sergeant


Joined: Feb 21, 2004
Posts: 101


PostPosted: Sun Nov 14, 2004 5:51 am Reply with quoteBack to top

Nice hack Shocked

Where can I download this from ???

Wink

_________________
Turkish Real Estate | Health & Safety Resources | Health & Safety Consultants | Blog
Find all posts by mikeshieldsView user's profileSend private messageVisit poster's website
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun Nov 14, 2004 8:40 am Reply with quoteBack to top

When ready for download, there will be information on the EN site.

_________________
www.vdsp.net | www.indopedia.org | www.orientalia.org | www.indology.net | www.yogadarsana.org | www.husserl.info | www.medicum.net
Find all posts by ImagoView user's profileSend private messageVisit poster's website
mikeshields
Sergeant
Sergeant


Joined: Feb 21, 2004
Posts: 101


PostPosted: Sun Nov 14, 2004 8:49 am Reply with quoteBack to top

OK, thanks...

I would like to see a view all link as well, if your not including this with the mod - could you let me know how to do it Wink

Similary would also like users to be able to add terms (which admin needs to approve)

_________________
Turkish Real Estate | Health & Safety Resources | Health & Safety Consultants | Blog
Find all posts by mikeshieldsView user's profileSend private messageVisit poster's website
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.347 Seconds - 208 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::