Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2016, 04:27 PM
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default vBulletin 5 Request - Mod Rewrite for remove "fb_comment_id" from url

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
Attached Images
File Type: jpg Clip_5.jpg (27.3 KB, 0 views)
File Type: jpg Clip_6.jpg (11.1 KB, 0 views)
Reply With Quote
  #2  
Old 11-06-2016, 05:21 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.yurtopic.com/tech/programming/remove-fb-action-id.html" target="_blank">http://www.yurtopic.com/tech/program...action-id.html</a> ?
Reply With Quote
Благодарность от:
TheLastSuperman
  #3  
Old 11-08-2016, 04:15 PM
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-08-2016, 04:32 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

PHP Code:
RewriteCond %{QUERY_STRING} (^|&)fb_(.*)_id=
RewriteRule ^(.*)$ $1? [L
Reply With Quote
  #5  
Old 11-08-2016, 05:31 PM
ZoLKoRn ZoLKoRn is offline
 
Join Date: Mar 2015
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
data-href="http://www.zolkorn.com/forums/node/{vb:raw nodeid}" 
Thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10753 seconds
  • Memory Usage 2,220KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete