| Author |
Message |
jimmyjimjim
Lieutenant


Joined: Jan 23, 2003
Posts: 258
Location: USA
|
Posted:
Sun Jul 06, 2003 11:08 am |
  |
GT and View previous topic :: View next topic
The "previous" and "next" links in the viewtopics aren't working here nor at my GT'd site...
How do ya fix this? |
|
|
   |
 |
checksum
Sergeant


Joined: Apr 30, 2003
Posts: 122
|
Posted:
Tue Sep 02, 2003 11:17 pm |
  |
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Tue Sep 02, 2003 11:49 pm |
  |
in .htaccess under #Forums add
| Code: |
RewriteRule ^ptopic([0-9]*).* modules.php?name=Forums&file=viewtopic&t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* |
then in header.php after the last line containing "viewforum" add
| Code: |
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=previous'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=next'", |
and in the short URL section after the last
ADD
| Code: |
"ptopic\\1.html",
"ntopic\\1.html", |
|
|
|
    |
 |
checksum
Sergeant


Joined: Apr 30, 2003
Posts: 122
|
Posted:
Wed Sep 03, 2003 12:14 am |
  |
I get an internal server error 500 when I apply your changes. |
|
|
   |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Wed Sep 03, 2003 1:53 am |
  |
|
    |
 |
Imago
Captain


Joined: Jan 17, 2003
Posts: 629
Location: Europe
|
Posted:
Wed Sep 03, 2003 2:00 am |
  |
I cannot post the original code. It is being rewritten. Download my files and see to change gate.html to modules.php
the second rewrite rule in the htaccess has been truncated just before modules.php= Wou can add the remaining part as in the first rule, only instead of "previous" type "next". One rule - one line. |
|
|
    |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Wed Sep 03, 2003 3:36 pm |
  |
Ahh, forgotten... should be added into the bugs site, but that's ok. I'll fix this tonight and release it at http://cvs.nukecops.com for GoogleTap. Thanks for the bump. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
checksum
Sergeant


Joined: Apr 30, 2003
Posts: 122
|
Posted:
Wed Sep 03, 2003 11:20 pm |
  |
Thanks, I looked through your files and was able to make the changes. |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Sep 04, 2003 2:39 am |
  |
I had held up last night working on something else, but send me a PM to remind me for tonight.  |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
|
|