TSP Posted June 15, 2015 Share Posted June 15, 2015 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? Link to comment Share on other sites More sharing options...
TVplaneta Posted June 16, 2015 Share Posted June 16, 2015 I need too Link to comment Share on other sites More sharing options...
TVplaneta Posted June 16, 2015 Share Posted June 16, 2015 how we can realise this? Link to comment Share on other sites More sharing options...
TVplaneta Posted June 17, 2015 Share Posted June 17, 2015 more old URLs is broken now:((( Link to comment Share on other sites More sharing options...
MADMAN32395 Posted June 17, 2015 Share Posted June 17, 2015 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=2558513you mean this little chunk? (it links to OP) ; i guess i am confused by your question. it seems you already have the new goto? Link to comment Share on other sites More sharing options...
TSP Posted June 17, 2015 Author Share Posted June 17, 2015 http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513you 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. Link to comment Share on other sites More sharing options...
Adriano Faria Posted June 17, 2015 Share Posted June 17, 2015 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. Link to comment Share on other sites More sharing options...
TSP Posted June 17, 2015 Author Share Posted June 17, 2015 Yes sure, but I was expecting there to already be an URL for this redirect available somewhere. Link to comment Share on other sites More sharing options...
TVplaneta Posted June 18, 2015 Share Posted June 18, 2015 anyone know, how this release? Link to comment Share on other sites More sharing options...
TVplaneta Posted June 23, 2015 Share Posted June 23, 2015 anyone known answer? Link to comment Share on other sites More sharing options...
Adriano Faria Posted June 23, 2015 Share Posted June 23, 2015 @Mark? Link to comment Share on other sites More sharing options...
newbie LAC Posted June 23, 2015 Share Posted June 23, 2015 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? Link to comment Share on other sites More sharing options...
TVplaneta Posted June 24, 2015 Share Posted June 24, 2015 There are no posts, only comments.Article comments, event comments, topic comments, etc.Where should I be redirected? forums_posts`.`pid` Link to comment Share on other sites More sharing options...
newbie LAC Posted June 26, 2015 Share Posted June 26, 2015 forums_posts`.`pid`?Topic post = comment.If you have problems with urls you need use rewrite rules Link to comment Share on other sites More sharing options...
querschlaeger Posted June 26, 2015 Share Posted June 26, 2015 http://community.invisionpower.com/topic/416386-equivalent-of-actfindpostpidx/?do=findComment&comment=2558513you 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. Link to comment Share on other sites More sharing options...
TVplaneta Posted June 29, 2015 Share Posted June 29, 2015 anyone have ideas? Link to comment Share on other sites More sharing options...
TVplaneta Posted July 8, 2015 Share Posted July 8, 2015 bad:{ Link to comment Share on other sites More sharing options...
AutoItScript Posted July 8, 2015 Share Posted July 8, 2015 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. Link to comment Share on other sites More sharing options...
querschlaeger Posted July 8, 2015 Share Posted July 8, 2015 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... Link to comment Share on other sites More sharing options...
AutoItScript Posted July 8, 2015 Share Posted July 8, 2015 If the link doesn't work after the topic is moved (I've not checked) then it's a bug that should be reported. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 8, 2015 Share Posted July 8, 2015 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=2565193You will be redirected to the post ID. So you don't have to worry about topic ID or title, which makes things weird. Link to comment Share on other sites More sharing options...
AutoItScript Posted July 8, 2015 Share Posted July 8, 2015 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 Link to comment Share on other sites More sharing options...
TVplaneta Posted July 23, 2015 Share Posted July 23, 2015 from 4.0.11 worked old url! https://community.invisionpower.com/index.php?app=forums&module=forums§ion=findpost&pid=2569264 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.