Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
TSP Posted June 15, 2015 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?
MADMAN32395 Posted June 17, 2015 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?
TSP Posted June 17, 2015 Author 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.
Adriano Faria Posted June 17, 2015 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.
TSP Posted June 17, 2015 Author Posted June 17, 2015 Yes sure, but I was expecting there to already be an URL for this redirect available somewhere.
newbie LAC Posted June 23, 2015 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?
TVplaneta Posted June 24, 2015 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`
newbie LAC Posted June 26, 2015 Posted June 26, 2015 forums_posts`.`pid`?Topic post = comment.If you have problems with urls you need use rewrite rules
querschlaeger Posted June 26, 2015 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.
AutoItScript Posted July 8, 2015 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.
querschlaeger Posted July 8, 2015 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...
AutoItScript Posted July 8, 2015 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.
Adriano Faria Posted July 8, 2015 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.
AutoItScript Posted July 8, 2015 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
TVplaneta Posted July 23, 2015 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.