vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Edit width of the topic/last post Ad box (https://vborg.vbsupport.ru/showthread.php?t=315784)

postcd 12-02-2014 05:01 PM

Edit width of the topic/last post Ad box
 
Hello,

vBulletin has an Advertisement manager and we can add an Ad into each topic into last post in the thread view.

I mean last post in each thread contains some Ad.

I added an Text with hyperlink

Bad result: the last post text got srinked into like 10px wide contianer and the Ad text occupy around 90% of the last post width.

Please in which file i can define maximum width of the Ad container or what to do to prevent tis issue? Thank you

Lynne 12-02-2014 05:39 PM

Why doesn't you set a width and height for the image in your ad so it isn't so wide?

Seven Skins 12-02-2014 08:57 PM

You may be able to use this css code.

e.g.
Code:

#ad_thread_last_post_content {width: 400px;}

postcd 12-03-2014 08:57 AM

Quote:

Originally Posted by Lynne (Post 2525286)
Why doesn't you set a width and height for the image in your ad so it isn't so wide?

thx, because i dont use image ad, just two sentences of text. I found i can add <div style="width:200px;">my ad text</div> but i thought about somehow modifying some vbulletin file so i dont need to care adding div around each text ad...

Quote:

Originally Posted by Seven Skins (Post 2525320)
You may be able to use this css code.
e.g.
Code:

#ad_thread_last_post_content {width: 400px;}

thx, i found yours mentioned variable is in the file showthread.css

OLD:
#ad_thread_last_post_content {
float:{vb:stylevar right};
}

NEW:
#ad_thread_last_post_content {
float:{vb:stylevar right};
width: 65%;
padding-top: 30px;
}

i editted also first post which is right above last post

i found % value works too and might be more suitable maybe

so now Ad container width works properly. SOLVED thank you for help

ozzy47 12-04-2014 11:08 PM

Excellent, glad to hear you got the results you were looking for. :)

Dunken Swettie 12-05-2014 12:35 PM

May I ask in this thread if I can have different Ad for mobile style only? And where will I set it in Admincp, can this method in this thread apply to mobile style as well?

Thanks everyone :)


All times are GMT. The time now is 01:15 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.01780 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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