WordPress.org

Ready to get started?Download WordPress

Forums

WP Bannerize
[resolved] I can fix -- Click counter for Flash Files (3 posts)

  1. preukson
    Member
    Posted 2 years ago #

    Step 0: Change Adobe Flash Window Mode = "opaque" in wp bannerize setting

    Step 1: Open File .... Classes/wpBannerizeFrontend.php

    Step 2: Find if ($row->mime == "application/x-shockwave-flash") about line 144

    Step 3: You will see <div> change to <div style="position:relative; z-index:0">

    Step 4: Add this code
    <a <?php echo $javascriptClickCounter ?> style="width:<?php echo $row->width ?>px; height:<?php echo $row->height ?>px; position:absolute; z-index:999" href="<?php echo $row->url ?>" target="_blank" <?php echo ( ($row->nofollow == '1') ? 'rel="nofollow"' : '') ?> <?php echo ( ($row->target != '') ? 'target="' . $row->target . '"' : '' ) ?>></a>

    after <div> in step 3

    Step 5: Enjoy!

    FULL CODE

    <?php // Check for Adobe Flash, Image or free HTML text
    				if ($row->banner_type == kWPBannerizeBannerTypeFromLocal || $row->banner_type == kWPBannerizeBannerTypeByURL) :
    					if ($row->mime == "application/x-shockwave-flash") : ?>
                        <div style="position:relative; z-index:0">
    						<a <?php echo $javascriptClickCounter ?> style="width:<?php echo $row->width ?>px; height:<?php echo $row->height ?>px;  position:absolute; z-index:999" href="<?php echo $row->url ?>" target="_blank" <?php echo ( ($row->nofollow == '1') ? 'rel="nofollow"' : '')  ?> <?php echo (  ($row->target != '') ? 'target="' . $row->target . '"' : '' )  ?>></a>
    							<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo $row->width ?>" height="<?php echo $row->height ?>">
    							<param name="movie" value="<?php echo $row->filename ?>" />
    							<param value="<?php echo $this->options['comboWindowModeFlash'] ?>" name="wmode" />
                 				<!--[if !IE]> -->
    								<object data="<?php echo $row->filename ?>" width="<?php echo $row->width ?>" height="<?php echo $row->height ?>" type="application/x-shockwave-flash">
    									<param value="<?php echo $this->options['comboWindowModeFlash'] ?>" name="wmode" />
    								</object>
    							<!--<![endif]-->
    							</object>
    							<?php if ($row->use_description == '1') : ?>
    								<br/>
    								<span>
    									<?php if( $this->options['linkDescription'] && $row->url != '' ) : ?>
    										<a <?php echo $javascriptClickCounter ?> href="<?php echo $row->url ?>" <?php echo ( ($row->nofollow == '1') ? 'rel="nofollow"' : '')  ?> <?php echo (  ($row->target != '') ? 'target="' . $row->target . '"' : '' )  ?>>
    											<?php echo $row->description ?>
    										</a>
    									<?php else : echo $row->description;
    										  endif; ?>
    								</span>
    							<?php endif; ?>
    						</div>

    http://wordpress.org/extend/plugins/wp-bannerize/

  2. gfazioli
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, Thank U very much!

    I fixed in 3.0.32

    regards
    GF

  3. preukson
    Member
    Posted 2 years ago #

    ^ ู^

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic