Announcement

Collapse
No announcement yet.

best hack for advertising

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • best hack for advertising

    do you know the best hack that rotates and show banners and text ads and google adsence on different part of forum? i have VB 3.5.4
    I want to disable / enable showing ads on different parts e.g. header, after first post, ....

  • #2
    There are several ways to do that. There are some banner management hacks on www.vbulletin.org. Here is a simple one that I made.

    Comment


    • #3
      Thank you!
      seems great, also do you know anyone that have control panel to control each part palcement automaticaly and do not need to change the codes in forum manually?

      Comment


      • #4
        You will need to manually edit template code for each banner location.

        Comment


        • #5
          Thanks Jake

          Your advice on that link about the ad banners has just put my mind to rest after 3 days trying to sort a basic banner out. Your easy to follow and fool proof instructions even got this non-programmer on the right track - sweet Am now up running.

          Just one question. How can I direct the banners to the middle of the screen and not to the far right corner. I presume I need to change either the TD allign or border number. Please advise and thanks again.

          Comment


          • #6
            Top center of the header? For example:

            Code:
            <!-- logo -->
            <a name="top"></a>
            
            [color=blue]<div align="center">
            	$random_banner[$random_number]
            </div>[/color]
            
            <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
            <tr>
            	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
            	<td align="$stylevar[right]">
            		&nbsp;
            	</td>
            </tr>
            </table>
            <!-- /logo -->
            
            <!-- content table -->
            $spacer_open
            
            $_phpinclude_output

            Comment


            • #7
              Hi Jake

              thanks for getting back to me so quickly. I have followed your instructions again, and am nearly there (banner is now in the center). However it is a few cm higher, and therefore out of sync, with the logo. Can you adivse how to allign them please.

              www.bulgarianpropertyforum.com

              Comment


              • #8
                Then move it back but change the alignment of the cell:

                Code:
                <!-- logo -->
                <a name="top"></a>
                <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
                <tr>
                	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                	<td align="[color=blue]center[/color]">
                		[color=blue]$random_banner[$random_number][/color]
                	</td>
                </tr>
                </table>
                <!-- /logo -->
                
                <!-- content table -->
                $spacer_open
                
                $_phpinclude_output

                Comment


                • #9
                  Krushkov, you can do that a couple of ways. Possibly the easiest way is to add a style statement to the DIV code Jake gave you:
                  Code:
                  <div [COLOR="Red"]style="margin-top:10px;"[/COLOR] align="center">
                  	$random_banner[$random_number]
                  </div>
                  Change the units to however many pixels work best (be sure to check results in different browsers to get a balance that looks good in the ones most used on your forums)

                  You could also set up a CSS class for your random banners and add that to the additional CSS in your style editor. This way you can have a couple of different properties for each type of random banner:

                  Code:
                  .headbanner {margin: 10px  0; text-align: center; padding: 3px; border: solid 1px blue;}
                  Then you code the header template like this:
                  Code:
                  <!-- logo -->
                  <a name="top"></a>
                  
                  <div [COLOR="Red"]class="headbanner"[/COLOR]>
                  	$random_banner[$random_number]
                  </div>
                  
                  <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
                  <tr>
                  	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                  	<td align="$stylevar[right]">
                  		&nbsp;
                  	</td>
                  </tr>
                  </table>
                  <!-- /logo -->
                  
                  <!-- content table -->
                  $spacer_open
                  
                  $_phpinclude_output
                  This should give you a banner positioned where you want it (play with the margin number which in my example is 10px top and bottom and 0px right and left) with a thin blue border around it centered on the top of the page. There are a number of style elements you can add to change the look and position of your ad block. If you have several different ad blocks, you can have a different class for each one (call them .randban1, .randban2, etc. or more descriptive names like .headban, .footban, etc.). You can add that class to the <td> instead if you want.

                  I'm still a rookie at this stuff, but that should work.

                  Grump
                  Last edited by eJM; Sun 11 Jun '06, 9:10am.
                  If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
                  www.TheFloorPro.com

                  Comment


                  • #10
                    thanks guys...

                    ...I guess I am taking this like a duck to a minefield...but where theres a will (and some good online help) theres a way Will try the changes this evening, am sure I am nearly there and just about getting the hang of the mods.

                    Thanks for your time.

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X