vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323822

Mod Rewrite for remove "fb_comment_id" from url
by ZoLKoRn
06 Nov 2016 18:27

2 Attachment(s)
Hello all,

I have try to add facebook comment to thread and it work well but just one thing not work when we have go to that link from facebook notification because facebook has add some path into url which facebook comment ID (fb_comment_id=xxxxx_xxxxx) after going to any thread from facebook notification we the comment in fb-comment box will not appear caused the url is not same path

on my ideal now try to rewrite the url from .htaccess for remove "fb_comment_id" but I have try so many rule it redirect to www.domain.com/forum/index.php not the url of thread of I want

So it possible for do that with rewrite like www.domain.com/forums/754?fb_comment_id=123456_654321 to www.domain.com/forums/754 ?

Thank you for help

Dave 06 Nov 2016 19:21

http://www.yurtopic.com/tech/program...action-id.html ?

ZoLKoRn 08 Nov 2016 18:15

Follow that link it wont's work the url still have ?fb_...._id

for the rule it seem be close to success is...

RewriteCond %{QUERY_STRING} (^|&)fb_comment_id=
RewriteRule ^(.*)$ $1? [L]

but it still have ?fb_...._id

Thanks for help and I will still looking ways for it :)

Dave 08 Nov 2016 18:32

Try this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


ZoLKoRn 08 Nov 2016 19:31

I'm sorry for stupid of typing !

Actually I will meaning ?fb_comments_id as full url

by the way from new rule you give me is still same you can try checking what you self with link below

original thread >> http://www.zolkorn.com/forums/forum/...mment-redirect

after rewrite >> http://www.zolkorn.com/forums/node/7...70966356259614

I have using code to call the current url by


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thank you :)


All times are GMT. The time now is 16:01.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.