- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 52 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 - The Complete Web_Links Tap [ ]
Author
Message
Audioslaved
Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Sat Sep 27, 2003 11:46 pm
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 ]
Open header.php
Find:
Code:
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"
Replace With:
Code:
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkcomments&lid=([0-9]+)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkdetails&lid=([0-9]+)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlinkeditorial&lid=([0-9]+)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=modifylinkrequest&lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=brokenlink&lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=outsidelinksetup&lid=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(MostPopular|TopRated)&ratenum=([0-9]+)&ratetype=(num|percent)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&orderby=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9]*)&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&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&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
dirtbag
Lieutenant
Joined: May 08, 2003
Posts: 159
Posted:
Wed Oct 01, 2003 10:37 pm
thanks for the code you posted.. i just added it to my site and hopefully all works i love google tap!!!
_________________ Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
dirtbag
Lieutenant
Joined: May 08, 2003
Posts: 159
Posted:
Wed Oct 01, 2003 10:46 pm
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
Audioslaved
Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Thu Oct 02, 2003 1:06 am
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
Audioslaved
Elite Nuker
Joined: Jun 14, 2003
Posts: 420
Location: Hawaii and The Fan Forum
Posted:
Thu Oct 02, 2003 1:15 am
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
dirtbag
Lieutenant
Joined: May 08, 2003
Posts: 159
Posted:
Sat Oct 04, 2003 5:45 am
yes that seem to fix the problem.. thanks for the help
_________________ Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
drstuey
Nuke Soldier
Joined: Mar 14, 2003
Posts: 31
Location: Auckland, New Zealand
Posted:
Tue Oct 07, 2003 3:50 pm
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 W so lets try it out:
here is the normal code (this should be re-written to links.html by GT:
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
drstuey
Nuke Soldier
Joined: Mar 14, 2003
Posts: 31
Location: Auckland, New Zealand
Posted:
Tue Oct 07, 2003 3:53 pm
jbutler
Corporal
Joined: Sep 20, 2003
Posts: 63
Location: Alabama
Posted:
Fri Oct 24, 2003 12:09 pm
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
TheosEleos
Private
Joined: Jul 28, 2003
Posts: 38
Posted:
Mon Nov 03, 2003 3:11 pm
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
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