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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 11-22-2011, 02:03 PM
SteveLV702 SteveLV702 is offline
 
Join Date: Oct 2009
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not my site.. I am just helping fix this issue... but I will let the owner know...

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

Quote:
Originally Posted by nerbert View Post
I think you need a "clear:none;" in the css for the ad column. "clear:left;" will not allow anything to the left of the column so it drops below the ads. I don't know where there would be a"clear:left;" for the ad column but you can override it with an inline style if you need to.
there is no css for the ad (that I am aware of) there is just a plugin with this info

Code:
// info: init_startup(), Prod: vbulletin, name: Ad Generator



$sql = "SELECT styleid, multiplicity FROM " . TABLE_PREFIX . "adv_banner_style";
$adv_styles = $vbulletin->db->query_read_slave($sql);
while ($adv_style = $vbulletin->db->fetch_array($adv_styles))
{
    $sql = "SELECT bannerid, src, alt, url FROM " . TABLE_PREFIX . "adv_banner WHERE styleid = " . $adv_style['styleid'];
    $sql .= " ORDER BY RAND() ";
    if ($adv_style['multiplicity'] > 0) $sql .= " LIMIT " . $adv_style['multiplicity'];

    $adv_q = $vbulletin->db->query_read_slave($sql);
    $banner[$adv_style['styleid']] = "";
    while ($bnr = $vbulletin->db->fetch_array($adv_q))
    {
        if (substr($bnr['src'], -4) == '.txt')
        { // Scripted creative
            if ($bannerFile = fopen($bnr['src'], "r"))
            {
                $bannerSource = fread($bannerFile, filesize($bnr['src']));
                @fclose($bannerFile);
            } else {
                $bannerSource = "";  // Place error message/image here if you desire one
            }
            $banner[$adv_style['styleid']] .= '<div style="padding: 1px; border: none;">' . $bannerSource . '</div>';
        } else {
          // Image / URL creative
            $banner[$adv_style['styleid']] .= '<div style="padding: 1px; border: none;"><a href="' . $bnr['url'] . '" target="_New"><img src="' . $bnr['src'] . '" alt="' . $bnr['alt'] . '" border="0" /></a></div>';
        }
    }
}

vB_Template::preRegister('navbar', array('banner' => $banner));

vB_Template::preRegister('FORUMHOME', array('banner' => $banner));

vB_Template::preRegister('SHOWTHREAD', array('banner' => $banner));

vB_Template::preRegister('FORUMDISPLAY', array('banner' => $banner));

vB_Template::preRegister('search_resultlist', array('banner' => $banner));
then in FORUMDISPLAY there is this code in there

Code:
<div style="float:right; width:100px; position:relative;">{vb:raw banner.1}</div>

<div id="content_container">
    <div id="content" style="margin-right:120px;">
then in FORUMHOME there is this code

Code:
<!-- Adversiting Edit -->
    <div id="sidebar_container" style="float:right; width:100px; margin:0px; padding:0px; margin-top:20px; position:relative;">{vb:raw banner.1}</div>


	<!-- Advertising Edit -->
	<div id="content_container">
		<div id="content" style="margin-right:120px;">
in navbar there is

Code:
<div style="width:468px; margin-left:auto; margin-right:auto; margin-bottom:5px; margin-top:-5px;">{vb:raw banner.2}</div>
search_resultlist there is

Code:
<!-- Adversiting Edit -->
    <div id="sidebar_container" style="float:right; width:100px; margin:0px; padding:0px; margin-top:20px; position:relative;">{vb:raw banner.1}</div>


	<!-- Advertising Edit -->
	<div id="content_container">
		<div id="content" style="margin-right:120px;">
and finally but not least in SHOWTHREAD there is

Code:
<div style="float:right; width:100px; position:relative;">{vb:raw banner.1}</div>

<div id="content_container">
    <div id="content" style="margin-right:120px;">
Reply With Quote
 


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 08:22 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.04816 seconds
  • Memory Usage 2,700KB
  • Queries Executed 13 (?)
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
  • (8)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (14)post_thanks_box
  • (14)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (14)post_thanks_postbit_info
  • (14)postbit
  • (4)postbit_attachment
  • (14)postbit_onlinestatus
  • (14)postbit_wrapper
  • (1)showthread_list
  • (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_threadedmode.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_threaded
  • showthread_threaded_construct_link
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete