Jump to content

Equivalent of act=findpost&pid=X


TSP

Recommended Posts

Posted

What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. 

In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. 

Is this a bug?

Posted

What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. 

In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. 

Is this a bug?

http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513

you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?

Posted
http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513

you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?

In my intended use case I don't know the topic id. I also know of plenty of posts with the old act=findpost&pid= in it that I would like to ensure is redirected. 

Posted

In my intended use case I don't know the topic id. I also know of plenty of posts with the old act=findpost&pid= in it that I would like to ensure is redirected. 

Can't you just load the post ID to get the topic data?

$tid = \IPS\forums\Topic\Post::load( $pid )->topic_id;

Then you load $tid now.

Posted

What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work.

There are no posts, only comments.

Article comments, event comments, topic comments, etc.

Where should I be redirected?

 

Posted
http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513

you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto?

If you move the post to anonther thread (or split the post to a new thread) the URL does not work anymore. Thats sad because it is the world wide share URL.

  • 2 weeks later...
Posted

There is none unless you also know the topic ID then you can do:

https://community.invisionpower.com/topic/416386-ANYTHINGHERE/?do=findComment&comment=2562614 

 

Maybe the more important question. Why do you need the old format to work? Did something not get converted correctly in your upgrade? I had to write scripts to fix some of my links and rewrite them into the format above. But now that's completed I don't "need" the old format.

 

Posted

There is none unless you also know the topic ID then you can do:

https://community.invisionpower.com/topic/416386-ANYTHINGHERE/?do=findComment&comment=2562614 

 

Maybe the more important question. Why do you need the old format to work? Did something not get converted correctly in your upgrade? I had to write scripts to fix some of my links and rewrite them into the format above. But now that's completed I don't "need" the old format.

 

And what do you do if the parent thread of the post change? Without the thread id the post link would be working forever. With the thread id it is not really a shareable permlink... :(

Posted

What is the equivalent of this now? It seems I can't get ?do=findComment&comment=X to work. 

In fact a link like topic/416166-34-features-missing-in-40/?do=findComment&comment=2557393 doesn't seem to work in the instance where a post has been moved to another topic either, which I thought it was meant to do. 

Is this a bug?

Just realised that the topic ID is also not necessary here. See: https://community.invisionpower.com/topic/000-something/?do=findComment&comment=2565193

You will be redirected to the post ID. So you don't have to worry about topic ID or title, which makes things weird.

Posted

Just noticed in the post id argument/poll thread that these links break when topics are merged. The share link post should really be a url that can survive merges/moves and work solely on the post id. Something like /do=findForumComment&comment=xxxxx

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...