Log in

View Full Version : Edit width of the topic/last post Ad box


postcd
12-02-2014, 05:01 PM
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.
#ad_thread_last_post_content {width: 400px;}

postcd
12-03-2014, 08:57 AM
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...

You may be able to use this css code.
e.g.
#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 :)