vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   https versus http - messes up thread framing. Help? (https://vborg.vbsupport.ru/showthread.php?t=320279)

K-fab 09-18-2015 02:27 PM

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:

https://vborg.vbsupport.ru/external/2015/09/15.png

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

https://vborg.vbsupport.ru/external/2015/09/16.png

Notice the change in framing?

Anyone have any thoughts?

Dave 09-18-2015 02:52 PM

Got a live example on your forum so we can look into it?

Brandon Sheley 09-18-2015 10:17 PM

A live example would help for sure. The screenshots just look like one is centered, one isn't.

Zachery 09-19-2015 03:14 PM

One looks like AME and the other looks like a normal embed.

K-fab 09-20-2015 01:30 PM

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.

PinkMilk 09-20-2015 02:19 PM

Quick fix
Admincp > Styles & Templates > Replacement Variable Manager

Search for Text: https://www.youtube
Replace with Text: http://www.youtube

K-fab 09-21-2015 01:28 PM

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

I'm guessing that this string looks for https and replaces it with http?

Lynne 09-21-2015 03:25 PM

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.

K-fab 09-21-2015 10:53 PM

Thank you Lynne! Now... how do I go about fixing this? (very novice user here...)

Gio~Logist 09-22-2015 12:12 AM

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

Lynne 09-22-2015 12:33 AM

Quote:

Originally Posted by K-fab (Post 2555490)
Thank you Lynne! Now... how do I go about fixing this? (very novice user here...)

Disable all mods and see if it still happens. If you have post caching enabled, you may have to turn that off for testing.


All times are GMT. The time now is 01:41 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.01267 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete