| Author |
Message |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
Posted:
Fri Dec 07, 2007 11:35 pm |
|
I have PHP-Nuke 7.633 with Shortlinks 1.20 installed. Shortlinks works very well, but when I try to view another page in Memberlist than the first page it is impossible. I have 1200 members. It just shows the first page. If I disable Shortslinks in config.php it works normally again. |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Sat Dec 08, 2007 8:14 am |
|
That is odd as it is working here on this site. Well, in actuality, I don't have member list tapped because you usually do not want your member list accessible to anonymous search engine crawlers (privacy concerns / regulations).
So, where did you get the taps for the pagination as I do not see those in my files?
BTW, if you want to PM me your web site address, I can take a look at the links that are being produced. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
Posted:
Sat Dec 08, 2007 10:54 am |
|
I have not any taps for the pagination maybe that is the problem? I have just used Shortlinks as it is. How can one disable Memberlist for Shortlinks? I have sent a PM with the web site address. |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Sat Dec 08, 2007 11:12 am |
|
I'll have to check later (getting ready to head out). The version that you have should work just the same as what you see here on this site. However, what I wonder is if you added any modules.php?name=Member_List links in GTZ-PageTap.php file? If so, that could be causing this.
To "remove" a tap, simply rename or remove the corresponding tap file. For example, rename GT-Members_List.php to GT-Members_List.php_bak. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
Posted:
Sat Dec 08, 2007 11:33 am |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Sat Dec 08, 2007 9:38 pm |
|
No, what I asked was did you add anything to GTZ-PageTap.php? It is possible that this is causing it if you have any Members_List taps in there. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
Posted:
Sat Dec 08, 2007 10:23 pm |
|
No, I have not changed anything in GTZ-PageTap.php either. If I disable Shortlinks in config.php the Memberlist works, but I get no Shortlinks. I guess this indicates that I have not edited the files wrong in anyway and it must be something with the function of Shortlinks |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Sun Dec 09, 2007 11:54 am |
|
Sorry, not trying to be difficult, but we are running the same version of ShortLinks and your other ShortLinks are working, so the code is just fine. There is a different "tap" somewhere that is causing this and I suspect your GTZ-PageTap.php is different than mine (maybe you forgot to upload that file from 1.2.0). I need to see the file you are using, hence my PM.
However, regardless of the above, I have decided to formalize (complete) the tap for Members List including the pagination (and this should correct your issues). Please try the following:
=== OPEN ===
.htaccess
=== FIND CODE ===
| Code: |
RewriteRule ^members.html modules.php?name=Members_List [L]
|
=== REPLACE WITH (and then upload) ===
| Code: |
RewriteRule ^members-([a-z]*)-sortasc-([0-9]*).html modules.php?name=Members_List&file=index&mode=$1&order=ASC&start=$2 [L]
RewriteRule ^members-([a-z]*)-sortdesc-([0-9]*).html modules.php?name=Members_List&file=index&mode=$1&order=DESC&start=$2 [L]
RewriteRule ^members.html modules.php?name=Members_List [L]
|
=== OPEN FILE ===
ShortLinks/GT-Members_List.php
=== REPLACE THE $urlin / $urlout WITH ===
| Code: |
$urlin = array(
'"(?<!/)modules.php\?name=Forums&file=profile&mode=editprofile"',
'"(?<!/)modules.php\?name=Forums&file=profile&mode=viewprofile&u=([0-9]*)"',
'"(?<!/)modules.php\?name=Forums&file=([^index][a-zA-Z0-9_-]*)((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Forums&file=index((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Forums(?!&)"',
'"(?<!/)modules.php\?name=Members_List&file=index&mode=([a-z]*)&order=ASC&start=([0-9]*)((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Members_List&file=index&mode=([a-z]*)&order=DESC&start=([0-9]*)((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Members_List&file=index((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Private_Messages&file=index&folder=(savebox|inbox|outbox|sentbox)((\")|(&sid=[a-zA-Z0-9]*))"',
'"(?<!/)modules.php\?name=Private_Messages&file=index&mode=newpm&popup=1"',
'"(?<!/)modules.php\?name=Private_Messages&file=index&mode=post&u=([0-9]*)"',
);
$urlout = array(
'forum-editprofile.html',
'forum-userprofile-\\1.html',
'forums-\\1.html\\2',
'forums.html\\1',
'forums.html',
'members-\\1-sortasc-\\2.html\\3',
'members-\\1-sortdesc-\\2.html\\3',
'members.html\\1',
'messages-\\1.html\\2',
'messages-popup.html',
'messages-post-\\1.html',
);
|
=== UPLOAD FILES ===
This should solve the problem. |
|
|
|
 |
Slackervaara
Newbie


Joined: Nov 03, 2007
Posts: 58
|
Posted:
Sun Dec 09, 2007 1:24 pm |
|
It worked perfectly! Fantastic job you made on this issue! Many thanks! |
|
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 896
|
Posted:
Sun Dec 09, 2007 2:02 pm |
|
Great. Thanks for the verification. I have posted the fix in another thread (as a Sticky) and it is now committed to my repository for when I get around to creating a 1.2.1 version. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|