Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2015, 02:27 PM
K-fab's Avatar
K-fab K-fab is offline
 
Join Date: Jan 2014
Location: Scottsdale, AZ - Eden!
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default https versus http - messes up thread framing. Help?

My forum has an issue with framing and display.

When people link a YouTube video on my forum, if they have "https" it tends to completely screw up the framing.

If the post links with https - https://www.youtube.com/watch?v=yQExHNrucho
- the forum displays this way:



If I remove the s out of https - http://www.youtube.com/watch?v=yQExHNrucho - my forum displays correctly:



Notice the change in framing?

Anyone have any thoughts?
Reply With Quote
  #2  
Old 09-18-2015, 02:52 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got a live example on your forum so we can look into it?
Reply With Quote
  #3  
Old 09-18-2015, 10:17 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A live example would help for sure. The screenshots just look like one is centered, one isn't.
Reply With Quote
  #4  
Old 09-19-2015, 03:14 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One looks like AME and the other looks like a normal embed.
Reply With Quote
  #5  
Old 09-20-2015, 01:30 PM
K-fab's Avatar
K-fab K-fab is offline
 
Join Date: Jan 2014
Location: Scottsdale, AZ - Eden!
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, here are two examples. The top entry is with https, the bottom is with http

https versus http issues

Coding is as follows (obviously w/o the spaces) - and this is the only line in each entry.

Top entry, that has the messed up framing:
[URL = "https://www.youtube.com/watch?v=M2NKa48M-p0"]To the Moon![/ URL]

Bottom entry, w/o the s:
[URL = "http://www.youtube.com/watch?v=M2NKa48M-p0"]To the Moon![/ URL]

The s seems to be the culprit, but why?

You can see that it splits the post above the signature line with the s in https, while w/o the s all is correct.
Reply With Quote
  #6  
Old 09-20-2015, 02:19 PM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick fix
Admincp > Styles & Templates > Replacement Variable Manager

Search for Text: https://www.youtube
Replace with Text: http://www.youtube
Reply With Quote
  #7  
Old 09-21-2015, 01:28 PM
K-fab's Avatar
K-fab K-fab is offline
 
Join Date: Jan 2014
Location: Scottsdale, AZ - Eden!
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, went in, put that in place and nothing...

I'm guessing that this string looks for https and replaces it with http?
Reply With Quote
  #8  
Old 09-21-2015, 03:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what is wrong in the page source for the first one...

HTML Code:
<div id="post_message_308606"><!-- google_ad_section_start --><a href="https://<div style='text-align: center; margin: 20px;'>
I don't know why it's putting the "<a href="https://" in front of the <div> tag, but that is what is causing the issue.
Reply With Quote
  #9  
Old 09-21-2015, 10:53 PM
K-fab's Avatar
K-fab K-fab is offline
 
Join Date: Jan 2014
Location: Scottsdale, AZ - Eden!
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Lynne! Now... how do I go about fixing this? (very novice user here...)
Reply With Quote
  #10  
Old 09-22-2015, 12:12 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can always use the replacement manager for Lynne's suggestion and replace

Code:
<a href="https://<div
with
[code]<div [/div]

This is assuming that the <a href tag is completely unnecessary
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 07:22 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.05752 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete