Results 1 to 30 of 30

Thread: Links to individual posts don't work

  1. #1
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Links to individual posts don't work

    https://forums.totalwar.org/vb/showt...t=84190&page=5

    Go to post 143, where there is a list of 3 different posts. ATM, they all link to the same post, 71 in the thread, instead of 71, 73, 77, 88.

  2. #2

    Default Re: Links to individual posts don't work

    He's doing it wrong. You have to update the first number--that's the post id.

    Like this:
    https://forums.totalwar.org/vb/showp...9&postcount=73

    Not:
    https://forums.totalwar.org/vb/showp...8&postcount=73
    Last edited by Sasaki Kojiro; 05-17-2007 at 21:47.

  3. #3
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by Sasaki Kojiro
    He's doing it wrong. You have to update the first number--that's the post id.

    Like this:
    https://forums.totalwar.org/vb/showp...9&postcount=73

    Not:
    https://forums.totalwar.org/vb/showp...8&postcount=73
    Meaning there's no easy way to generate a link to a post based on thread ID and post number. Gah.

  4. #4
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Links to individual posts don't work

    Strange the post you referred to works for me.

    to get link to individual post easily click the number of the post in its' top right hand corner - that will open in a separate window or tab, then just copy and paste in the URL from the address bar:

    https://forums.totalwar.org/vb/showp...&postcount=143
    Not used mods before? Looking for something small and fun?!
    Download the:

  5. #5

    Default Re: Links to individual posts don't work

    The link is in the upper right hand corner of the post.

    You can also link to a post in context, meaning when you follow the link you will be at the post in question but the rest of the posts are there as well.

    https://forums.totalwar.org/vb/showt...99#post1545799

    You just have to read the post id from the tooltip when you mouse over the number in the upper right, and then put it in twice like that.

  6. #6
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Sigh. I was compiling a list of posts in your damn Mafia game, Sasaki, and I was hoping to easily produce clickable links just by combining the thread ID, the post number, and some other url guff. For instance, I can produce a clickable link to the page of the thread where the post is, by doing the above.

  7. #7

    Default Re: Links to individual posts don't work

    Links to a single post such as: https://forums.totalwar.org/vb/showpost.php?p=1523739&postcount=73

    Can be entered as: https://forums.totalwar.org/vb/showpost.php?p=1523739

    This omits the post number, which is just cosmetic.

    The "&postcount=73" only adds the same link to the top corner of the post like this: #73 and links you back to the same post. The number 73 is just a reference to the seventy third post in the thread at that point and is not the real post ID which is the first 7 digit number, so it's not that useful to have it.
    Last edited by caravel; 05-18-2007 at 11:13.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  8. #8
    The Real Ad miN Member Tran's Avatar
    Join Date
    Dec 2006
    Location
    Orion Arm
    Posts
    1,048

    Default Re: Links to individual posts don't work

    Hmmm...for Mafia?

    This thread by itself is very suspicious indeed...
    Medieval 2: Total War Guide to Traits and Retinue
    "Tenderness and kindness are not signs of weakness and despair but manifestations of strength and resolution." - Khalil Gibran

    World War 3 erupted in mid-1960's: NATO - Warsaw Pact Conflict multiplayer Interactive, choose one from several available countries

  9. #9
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by Cambyses II
    Links to a single post such as: https://forums.totalwar.org/vb/showpost.php?p=1523739&postcount=73

    Can be entered as: https://forums.totalwar.org/vb/showpost.php?p=1523739

    This omits the post number, which is just cosmetic.

    The "&postcount=73" only adds the same link to the top corner of the post like this: #73 and links you back to the same post. The number 73 is just a reference to the seventy third post in the thread at that point and is not the real post ID which is the first 7 digit number, so it's not that useful to have it.
    I understand that. That's why I'm bemoaning the lack of any easy way to generate the correct post ID by using the thread ID and the post number. At present, one needs the unique post ID to be able to link to it. It would be nice if it were possible to, let's say, specify the thread ID and the post number within that thread, and the software looks up the relevant post in the database and returns with the unique post ID.

  10. #10
    Bureaucratically Efficient Senior Member TinCow's Avatar
    Join Date
    Mar 2004
    Location
    Washington, DC
    Posts
    13,729

    Default Re: Links to individual posts don't work

    The easiest way is to just mouseover the #X post number in the upper right of the post. Then right click, select Copy Link Location, and paste it into your destination. Not as fast as what you ideally want, but still pretty quick.


  11. #11
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by TinCow
    The easiest way is to just mouseover the #X post number in the upper right of the post. Then right click, select Copy Link Location, and paste it into your destination. Not as fast as what you ideally want, but still pretty quick.
    Aaaargh! What I want is a way to generate the unique post ID using the unique thread ID and the post number within the thread. Copying the url of the #number on the top right works, but it's a hell of a hassle to do for 900+ posts. Hence a script or something that looks it up for me will be preferable. With the Copy url method, I need to know 900+ pieces of information (the unique post IDs). With the thread ID method, I only need to know 1 (the thread ID) plus whatever position the post is within the thread.

    It's the difference between direct lookup of memory and logical. In the first, you need to know the physical location in the memory of the thing you're looking for. In the second, you just need to know the logical location, and the lookup table finds the physical location for you. It's possible to do the first, but how much better it is to do the second and let the computer do the hard work.

  12. #12

    Default Re: Links to individual posts don't work

    You can't do it, because post IDs don't work like that. While the lower numbers would be the earlier posts, when stored in the database table the posts are not stored as threads they are stored as posts in post ID order, which is autogenerated. This means that my post in this thread may be 1546523 but the next post in this thread will probably not be 1546524 because other members will have posted many times before that in other threads in the forum. When the posts for this thread are retrieved for viewing a query is executed that shows the posts where the thread ID, not the post ID, is equal to the thread ID of this thread, so only the posts for this thread are shown. To summarise in basic terms, a thread is usually a collection of posts grouped together by their common thread ID.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  13. #13
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by Cambyses II
    You can't do it, because post IDs don't work like that. While the lower numbers would be the earlier posts, when stored in the database table the posts are not stored as threads they are stored as posts in post ID order, which is autogenerated. This means that my post in this thread may be 1546523 but the next post in this thread will probably not be 1546524 because other members will have posted many times before that in other threads in the forum. When the posts for this thread are retrieved for viewing a query is executed that shows the posts where the thread ID, not the post ID, is equal to the thread ID of this thread, so only the posts for this thread are shown. To summarise in basic terms, a thread is usually a collection of posts grouped together by their common thread ID.
    Is it not possible to query the Posts table by Thread ID, sort by Post ID, then pick out the nth item in that list? Something like

    SELECT * FROM Posts WHERE ThreadID=x SORT BY PostID

    Then whatever function picks out an individual item from the query results, and return the PostID of that item.

  14. #14

    Default Re: Links to individual posts don't work

    You could do yes, but you'd have to get the admin to do it for you I suppose and then have them send you the list of the thread ID's that you want. Try pm'ing TosaInu.
    “The majestic equality of the laws prohibits the rich and the poor alike from sleeping under bridges, begging in the streets and stealing bread.” - Anatole France

    "The law is like a spider’s web. The small are caught, and the great tear it up.” - Anacharsis

  15. #15

    Default Re: Links to individual posts don't work

    And at that point you may as well ask him to install a "sort thread by username" function.

  16. #16
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    Quote Originally Posted by Sasaki Kojiro
    And at that point you may as well ask him to install a "sort thread by username" function.
    It's already there: Sorted by Thread Starter in Display Options.
    Ja mata

    TosaInu

  17. #17
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by TosaInu
    It's already there: Sorted by Thread Starter in Display Options.
    I think Sasaki meant displaying the thread, sorted by username. While we're going on about fantasies, a tree view with a specified user's posts highlighted would be nice. Kind of like the scoring system + highlights Luu Tran did for Xnews. Oh well.

  18. #18
    The Real Ad miN Member Tran's Avatar
    Join Date
    Dec 2006
    Location
    Orion Arm
    Posts
    1,048

    Default Re: Links to individual posts don't work

    I just noticed a little § at top left corner of each post...is it a "new feature"?
    Medieval 2: Total War Guide to Traits and Retinue
    "Tenderness and kindness are not signs of weakness and despair but manifestations of strength and resolution." - Khalil Gibran

    World War 3 erupted in mid-1960's: NATO - Warsaw Pact Conflict multiplayer Interactive, choose one from several available countries

  19. #19
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    Quote Originally Posted by Pannonian
    Is it not possible to query the Posts table by Thread ID, sort by Post ID, then pick out the nth item in that list? Something like

    SELECT * FROM Posts WHERE ThreadID=x SORT BY PostID

    Then whatever function picks out an individual item from the query results, and return the PostID of that item.
    There's a catch with a system to display the 3rd post of a certain topic. The system is dynamic. You build a link to the 3rd post, but when the second is deleted, the 4th becomes third. When a post is inserted in front, the post you want becomes 4th. Both happens.
    Ja mata

    TosaInu

  20. #20
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: Links to individual posts don't work

    This § thing only seems to send you to the post of which it was derived from. But not in a new window or only that post but the entire topic in context.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  21. #21
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by TosaInu
    There's a catch with a system to display the 3rd post of a certain topic. The system is dynamic. You build a link to the 3rd post, but when the second is deleted, the 4th becomes third. When a post is inserted in front, the post you want becomes 4th. Both happens.
    Deleted posts isn't going to affect us too much. In any case, if there is a deleted post, it's easier to update our own external databases by decrementing the links within a certain range than it is to have to keep track of each and every unique post ID within that thread. A few lines of code does the former, but hours and hours of data entry and mouse clicking is required for the latter.
    Last edited by TosaInu; 05-19-2007 at 14:42.

  22. #22
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    Quote Originally Posted by FactionHeir
    This § thing only seems to send you to the post of which it was derived from. But not in a new window or only that post but the entire topic in context.
    Quote Originally Posted by TinCow
    The easiest way is to just mouseover the #X post number in the upper right of the post. Then right click, select Copy Link Location, and paste it into your destination. Not as fast as what you ideally want, but still pretty quick.
    This not an end of story fix.
    Ja mata

    TosaInu

  23. #23
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: Links to individual posts don't work

    I know, I was just wondering about the purpose of the new §
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  24. #24
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    It's the same as the postnumber, but now it makes a solid link to a post and opens in a new window. That is, when used like TinCow described. This should make it easier to make a database of posts (one window/tab to compose the post, another to track posts of interest).
    Ja mata

    TosaInu

  25. #25

    Post Re: Links to individual posts don't work

    May I suggest that, instead of taking one back to the post top, that it shows the whole post on screen - it just seems a little odd at the way it's working at current - it just shows the post title at the bottom of the screen rather than at the top. Thanks!
    Last edited by Omanes Alexandrapolites; 05-19-2007 at 20:57.
    Dawn is nature's way of telling you to go back to bed

  26. #26
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    I can't see that thing on Firefox, only Opera.

  27. #27
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    https://forums.totalwar.org/vb/showt...50#post1548050

    Visible in FireFox. Maybe you have a different skin there? I guess it's not activated in all at this moment.

    Omanes Alexandrapolites, the idea is not to just push that (what would be the use of that?) but to allow quick insertion of posturls into new posts. It does work properly there. https://forums.totalwar.org/vb/showthread.php?p=1547755

    Edit: you're right, not all skins did that. Thank you.
    Last edited by TosaInu; 05-19-2007 at 22:11.
    Ja mata

    TosaInu

  28. #28
    Headless Senior Member Pannonian's Avatar
    Join Date
    Apr 2005
    Posts
    7,978

    Default Re: Links to individual posts don't work

    Quote Originally Posted by TosaInu
    https://forums.totalwar.org/vb/showt...50#post1548050

    Visible in FireFox. Maybe you have a different skin there? I guess it's not activated in all at this moment.

    Omanes Alexandrapolites, the idea is not to just push that (what would be the use of that?) but to allow quick insertion of posturls into new posts. It does work properly there. https://forums.totalwar.org/vb/showthread.php?p=1547755

    Edit: you're right, not all skins did that. Thank you.
    Perhaps I should have added that I use the dial-up skin.

  29. #29
    Nur-ad-Din Forum Administrator TosaInu's Avatar
    Join Date
    Jul 2002
    Posts
    12,326

    Default Re: Links to individual posts don't work

    It's there now too.
    Ja mata

    TosaInu

  30. #30

    Post Re: Links to individual posts don't work

    Thanks Tosa.
    Dawn is nature's way of telling you to go back to bed

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO