Author |
Topic |
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 24 June 2008 : 10:18:17
|
This is a new version of this mod. Warning! : this mod is written in half an hour, and has NOT been tested! Permalink.asp is made from scratch by heart, and not executed at all...(I don't have FTP access to my site to test it). So, it may work right away if I paid attention, but it may just as well fail....
What this mod will do is this:
- it will add a small box with a number in it to the header of each reply. This number is the position of this reply in that topic.
- it will add a small box with a link showing a permalink (¤) to the header of each post (topic and replies).
The permalink will take you to the topic, or to the reply regardless of the pagenumber it's on (for replies) and regardless if it's archived or not (for topics and replies). For people who've implemented the split topic mod, moved replies will also be found using the permalink (except for the startpost, which is in fact a deleted reply that's inserted as a topic)
How to implement it ?
When coming from the previous version of this mod:
with this:
Then, replace this:
by this:
Then, finally, download this file, and save it as permalink.asp (remove the .txt extension):
Text File: read permalink.asp.txt 7638 bytes
Again a warning: it has NEVER been tested! At oxle I use a custom 404 to handle the permalinks, so I migrated the code I used there to this code, without the ability to test it.
[edit:first theoretical bugfix ] [edit 28-7-2008 :bugfix in startpost permalink (permalink/asp?t replaced by permalink.asp?t) ]< |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 28 July 2008 03:59:14 |
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
phy1729
Average Member
USA
589 Posts |
Posted - 25 July 2008 : 21:31:08
|
remove the extra parens if left(posttofind,1) = "r" then< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
MaD2ko0l
Senior Member
United Kingdom
1053 Posts |
Posted - 25 July 2008 : 22:14:17
|
that means that there is 2 instances of dim topicnumber = linkRec("TOPIC_ID") you need to find them both and determine which 1 to get rid of and where they are used on the site.< |
© 1999-2010 MaD2ko0l |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 25 July 2008 : 22:34:54
|
quote: Originally posted by leatherlips
quote: Originally posted by phy1729
remove the extra parens if left(posttofind,1) = "r" then
I did that, but now am getting this error:
Microsoft VBScript compilation error '800a0411'
Name redefined
/forumbeta/permalink.asp, line 66
dim topicnumber = linkRec("TOPIC_ID")
Strip the dim from that line, it should say only: < |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 25 July 2008 : 22:46:22
|
Post a link to a .txt version, there must be another error.< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 July 2008 : 12:09:23
|
Try this, Leather:
< |
Edited by - Carefree on 26 July 2008 22:42:26 |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 July 2008 : 22:41:31
|
|
Edited by - Carefree on 27 July 2008 11:21:57 |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 26 July 2008 : 22:54:15
|
For those who want to use their css and/or theme colors, here's how the topic.asp lines need to read:
Find this line (appx 789):
Above it, insert this:
Find these (lines appx 585-586):
Between them, insert these:
This should make your icon symbols blend with the existing backgrounds.< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Topic |
|