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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-19-2013, 04:23 AM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Center and size ad.

I am using a 250x250 ad in my sideblock. first is there a way to make it bigger like 300x300 because i dont see that option in adsence. Second i cannot get it to center in the block. I wrapped it with
Code:
<div align="center">
ad here
</div>
with no luck. Thanks for any help.
Attached Images
File Type: png ads.PNG (127.3 KB, 0 views)
Reply With Quote
  #2  
Old 11-19-2013, 07:51 AM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the <div>

And just try <center></center>

As to re-sizing it, check out the source code, the size will be specified in it somewhere, just alter it to your needs, you may need to scale it, so if you reduce the width by 20px to the same to the height to stop it looking stretched
Reply With Quote
Благодарность от:
SPEEDKILLZ
  #3  
Old 11-19-2013, 08:42 PM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but that did not work either.
Reply With Quote
  #4  
Old 11-20-2013, 03:45 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have already looked at this a little bit, and there are a few strange things. I am guessing you are installing this into a forum block. If so send the code you have installed in the forum block, so I can seperate it from the ad code.

Looking at the HTML/CSS on your page you seem to be setting the height and width of the iframe and externally on the div.
Reply With Quote
Благодарность от:
SPEEDKILLZ
  #5  
Old 11-20-2013, 04:41 AM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sponsor -->
<ins class="adsbygoogle"
     style="display:inline-block;width:240px;height:240px"
     data-ad-client="ca-pub-9181553695854459"
     data-ad-slot="2036427109"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Reply With Quote
  #6  
Old 11-20-2013, 06:31 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This took me a bit to figure out. Your template CSS is structured incorrectly and this is really only a patch, that may or may-not work down the line.

Code:
/* Add this to the end of your "additional.css" template */
#sidebar_container .blockrow {
  padding: 10px 3px;
}
Reply With Quote
  #7  
Old 11-20-2013, 06:55 AM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
This took me a bit to figure out. Your template CSS is structured incorrectly and this is really only a patch, that may or may-not work down the line.

Code:
/* Add this to the end of your "additional.css" template */
#sidebar_container .blockrow {
  padding: 10px 3px;
}

Thank you , how did my scc get structured incorrectly? Able to tell that from the code i got from adsence?
Reply With Quote
  #8  
Old 11-20-2013, 06:59 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If that is a purchased template. Then the original CSS box model structure for the sidebar, is incorrect in that section. Hopefully, that patch will work without side-effects, until they fix their CSS code.

Google CSS box model structure.
Reply With Quote
  #9  
Old 11-20-2013, 07:03 AM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks it did center the ad in the forum block. So is it as easy as to change your ad size in the code to make it a different size?
Reply With Quote
  #10  
Old 11-20-2013, 07:16 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SPEEDKILLZ View Post
Able to tell that from the code i got from adsence?
I used your block code to eliminate any unknown from what my browser saw. Then I analyzed what was going wrong with the box model. Modern browsers have all sorts of tools to help in this area, that is why we always ask for a link where people have CSS/HTML problems.
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 10:44 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.06977 seconds
  • Memory Usage 2,273KB
  • Queries Executed 14 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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