vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   VBcms article embedded image issue (https://vborg.vbsupport.ru/showthread.php?t=321442)

edwinrcollins 01-08-2016 02:18 AM

VBcms article embedded image issue
 
I am having and issue when posting articles with embedded getty image codes.
I assume something in the VBcms code is trying to resize the image on the main page but is only re sizing the image but not the rest of the embed code from Getty IMages.

On the main content/vbcms page the top article has a large space between the images and the text.

https://vborg.vbsupport.ru/external/2016/01/13.jpg

When you go into the actual article page that space is gone:

https://vborg.vbsupport.ru/external/2016/01/14.jpg


You can also see for yourself on the site: www.TheDailyNole.com

Any help would be appreciated I have been banging my head on the wall trying to resolve this issue.

Here is a copy of what the getty images embed code looks like in the articles:

Code:

<div class="getty embed image" style="background-color:#fff;display:inline-block;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#a7a7a7;font-size:11px;width:100%;max-width:594px;"><div style="padding:0;margin:0;text-align:left;"><a href="http://www.gettyimages.com/detail/503063432" target="_blank" style="color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;">Embed from Getty Images</a></div><div style="overflow:hidden;position:relative;height:0;padding:72.222222% 0 0 0;width:100%;"><iframe src="//embed.gettyimages.com/embed/503063432?et=4OTIwcqtQcVrbwNE96vCwA&viewMoreLink=on&sig=PSkrcgFvP34ZfmXPJTXByhX63A8JmrwqzwCvLDUyc2Q=" width="594" height="429" scrolling="no" frameborder="0" style="display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;"></iframe></div><p style="margin:0;"></p></div>

MarkFL 01-08-2016 02:26 AM

Please post a link to the CMS page, and I will see if there is some CSS attribute mucking things up...:)

edwinrcollins 01-08-2016 02:39 AM

http://www.thedailynole.com/content.php

It is the website default page or the one above.

--------------- Added [DATE]1452230069[/DATE] at [TIME]1452230069[/TIME] ---------------

Problem resolved:

Changed vbcms.css

Was
Code:

.showpreviewonly iframe {
        {vb:stylevar vbcms_article_preview_object_size};
}

Changed to:
Code:

.showpreviewonly iframe {
        max-width:100%;
        overflow:hidden;
}

Now looks good unless I broke something else doing this.


All times are GMT. The time now is 10:53 PM.

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.00927 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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