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, 72 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 - The Complete Web_Links Tap [ ]
 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
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Sat Sep 27, 2003 11:46 pm Reply with quoteBack to top

OK folks,
I was looking on bugs.nukecops.com and saw that there was a bug in the GT for the Web_Links module, after looking into it on my site I realized it was time to port the mod for everyone's use. I have fixed all major portions that did not work, to include:
Links within MostPopular
Links within TopRated
Links within NewLinks
Links within Details (Additional Details, Link Comments, Editor Review, Modify, Broken Link)
Allow users to rate from outside website
(more fixes, cant remember all)

This is what you need to do, hopefully this may get added to the GT distribution. [fingers crossed Very Happy ]

Open header.php
Find:
Code:

"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&amp;selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=titleA&amp;show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"


Replace With:
Code:

"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkcomments&amp;lid=([0-9]+)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkdetails&amp;lid=([0-9]+)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkeditorial&amp;lid=([0-9]+)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=modifylinkrequest&amp;lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=brokenlink&amp;lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=outsidelinksetup&amp;lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(MostPopular|TopRated)&amp;ratenum=([0-9]+)&amp;ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinks&amp;newlinkshowdays=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&amp;selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)&amp;show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"


Also Find:
Code:

"linksnew-\\1.html",
"linkop-\\1.html",
"ratelink-\\1-\\2.html",
"viewlink-\\1.html",
"links-\\1-\\2-\\3.html",
"link-\\1.html",
"links.html"


Replace With:
Code:

"viewlinkcomments-\\1-\\2.html",
"viewlinkdetails-\\1-\\2.html",
"vieweditorial-\\1-\\2.html",
"modifylink-\\1.html",
"brokenlink-\\1.html",
"outsidelink-\\1.html",
"linkop-\\1-\\2-\\3.html",
"newlinks-\\1.html",
"linksnew-\\1.html",
"linkop-\\1.html",
"ratelink-\\1-\\2.html",
"viewlink-\\1.html",
"links-\\1-\\2.html",
"links-\\1-\\2-\\3-\\4.html",
"link-\\1.html",
"links.html"


Open .htaccess
Find:
Code:

#WebLinks
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html links.html&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([0-9]*)-([0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^link-([0-9]*).html links.html&l_op=viewlink&cid=$1
RewriteRule ^links.html links.html


Replace With:
Code:

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html links.html&l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html links.html&l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html links.html&l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html links.html&l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html links.html&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html links.html&l_op=viewlink&cid=$1
RewriteRule ^links.html links.html


Last but not least, you will have to edit one piece of the language file,
Open modules/Web_Links/lang-english.php (Change as needed)
Find:
Code:
define("_RATENOTE4","You can view a list of the <a href=\"links.html&amp;l_op=TopRated\">Top Rated Resources</a>.");


Replace With:
Code:

define("_RATENOTE4","You can view a list of the <a href=\"links.html&l_op=TopRated\">Top Rated Resources</a>.");


That should do it, Hopes that helps some of you out. See ya around

-Bill (Audioslaved)

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
dirtbag
Lieutenant
Lieutenant


Joined: May 08, 2003
Posts: 159


PostPosted: Wed Oct 01, 2003 10:37 pm Reply with quoteBack to top

thanks for the code you posted.. i just added it to my site and hopefully all works Smile i love google tap!!!

_________________
Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Find all posts by dirtbagView user's profileSend private message
dirtbag
Lieutenant
Lieutenant


Joined: May 08, 2003
Posts: 159


PostPosted: Wed Oct 01, 2003 10:46 pm Reply with quoteBack to top

when i add the the code to my .htacess my Links section does not work anymore.. any ideas... anyways i put it back to the original for now...

Code:
#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html&l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html links.html&l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html links.html&l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html links.html&l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html links.html&l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html links.html&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html links.html&l_op=viewlink&cid=$1
RewriteRule ^links.html links.html

_________________
Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Find all posts by dirtbagView user's profileSend private message
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Thu Oct 02, 2003 1:06 am Reply with quoteBack to top

I see what happened, GT converted all of my code to links.html instead of it being links.html. Zhen, there are problems with this! It makes it hard to patch fixes, is there a way to exlclude quotes from GT or something?

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Thu Oct 02, 2003 1:15 am Reply with quoteBack to top

it should be modules.php?name=(Web_Links) Take off the parenthesis, GT is converting it to the rewrite rule: I will post the .htaccess again, NOTE: Take out the parenthesis around Web_Links in the code below.
Code:

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=(Web_Links)&l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=(Web_Links)&l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=(Web_Links)&l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html modules.php?name=(Web_Links)&l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html modules.php?name=(Web_Links)&l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html modules.php?name=(Web_Links)&l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html modules.php?name=(Web_Links)&l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=(Web_Links)&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=(Web_Links)&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=(Web_Links)&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=(Web_Links)&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html modules.php?name=(Web_Links)&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=(Web_Links)&file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html modules.php?name=(Web_Links)&file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html modules.php?name=(Web_Links)&l_op=viewlink&cid=$1
RewriteRule ^links.html modules.php?name=(Web_Links)


Hopefully that works for you, is there any known way to resolve this from happening (Converting the code into google tapped URL's). I can only think of one, and that is to make google tap a per module project, it rewrites when the module is called because the rewrites are contained in that specific modules folder. That may also help to cut down on loading time? Anyone know if that is feasible?

-Bill (Audioslaved)

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
dirtbag
Lieutenant
Lieutenant


Joined: May 08, 2003
Posts: 159


PostPosted: Sat Oct 04, 2003 5:45 am Reply with quoteBack to top

yes that seem to fix the problem.. thanks for the help Smile

_________________
Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Find all posts by dirtbagView user's profileSend private message
drstuey
Nuke Soldier
Nuke Soldier


Joined: Mar 14, 2003
Posts: 31

Location: Auckland, New Zealand

PostPosted: Tue Oct 07, 2003 3:50 pm Reply with quoteBack to top

Audioslaved wrote:
it should be modules.php?name=(Web_Links) Take off the parenthesis, GT is converting it to the rewrite rule:

snip

is there any known way to resolve this from happening (Converting the code into google tapped URL's).


Couldn't you use a HTML special character instead of the normal code when posting in the forum?

Then it would be displayed as normal by a web browser, but not be GT'd by this website.

i.e. the special character for W is &#87; so lets try it out:

here is the normal code (this should be re-written to links.html by GT:
Code:
links.html

here is the special character code, which should not be rewritten:
Code:
modules.php?name=Web_Links


here's hoping...

_________________
I teach Internet and Web Development:
http://computing.unitec.ac.nz/
http://hyperdisc.unitec.ac.nz
I am the webmaster for political websites:
http://www.greens.org.nz/
http://www.norml.org.nz/

Last edited by drstuey on Tue Oct 07, 2003 3:56 pm; edited 1 time in total
Find all posts by drstueyView user's profileSend private messageVisit poster's website
drstuey
Nuke Soldier
Nuke Soldier


Joined: Mar 14, 2003
Posts: 31

Location: Auckland, New Zealand

PostPosted: Tue Oct 07, 2003 3:53 pm Reply with quoteBack to top

Yes!!!!!

So just to re-iterate, instead of posting:

Code:
modules.php?name=Web_Links


which will be re-written, post:

Code:
modules.php?name=&#87;eb_Links


which will display as intended and allow people to copy your code and use it.

cheers

_________________
I teach Internet and Web Development:
http://computing.unitec.ac.nz/
http://hyperdisc.unitec.ac.nz
I am the webmaster for political websites:
http://www.greens.org.nz/
http://www.norml.org.nz/
Find all posts by drstueyView user's profileSend private messageVisit poster's website
jbutler
Corporal
Corporal


Joined: Sep 20, 2003
Posts: 63

Location: Alabama

PostPosted: Fri Oct 24, 2003 12:09 pm Reply with quoteBack to top

I installed the GT_Distro_10-22-03 today and found problems with Web links. Does that version still have the old .htaccess file in it?

Thanks for the info.

_________________
Jeremy Butler
http://www.ScreenSite.org
Find all posts by jbutlerView user's profileSend private messageVisit poster's website
TheosEleos
Private
Private


Joined: Jul 28, 2003
Posts: 38


PostPosted: Mon Nov 03, 2003 3:11 pm Reply with quoteBack to top

Same problem here. I used the 10-22 distro and installed it just last week. My web links are now broken. You can go there but no links or categories are listed.

_________________
www.phenylshouse.com
phpNuke 6.9 Site
Find all posts by TheosEleosView 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.721 Seconds - 322 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::