Announcement

Collapse
No announcement yet.

Adding adsense block under first post in "threaded view"

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

  • [Forum] Adding adsense block under first post in "threaded view"

    Hi,

    Most of my users are using threaded view in my forum and I can't seem to manage to place an adsense block under the first post (which is fairly simple to achieve in linear view for example). Any help would be appreciated

    Thanks

  • #2
    It appears there is no "Built In" ad location for this.

    However you can still add the code by editing your postbit (or postbit_legacy) template depending on which you use, and placing the ad code at the very bottom of the template. It should show under the first (and only) post in threaded view.

    Comment


    • #3
      Originally posted by Joe D. View Post
      It appears there is no "Built In" ad location for this.

      However you can still add the code by editing your postbit (or postbit_legacy) template depending on which you use, and placing the ad code at the very bottom of the template. It should show under the first (and only) post in threaded view.
      Thanks, it helps mee too
      Here what i have done (using help from vb.org)

      in Postbit Templates > postbit_legacy


      Code:
      <vb:if condition="$post['isfirstshown'] AND $show['guest']">
      <ul>
      <li class="postbitlegacy postbitim postcontainer" id="post_{vb:raw post.postid}">
      <!-- see bottom of postbit.css for .userinfo .popupmenu styles -->
      
          <div class="posthead">&nbsp;&nbsp;<img title="Alt" src="./images/statusicon/post_old.png" alt="Alt" border="0" /><span class="date">&nbsp;<a href="http://www.domain.com/register.php" style="color:#FFFFFF; text-decoration:underline;">(No Advertising after the first post? Register now for free!)</a></span></div>
          <div class="postdetails">
              <div class="userinfo">
                  <div class="username_container">
                    <br />
                      <span style="font-weight:bold;font-size:14px;margin-left:0px;color:#000000;">Advertising</span><br /><br />
                      <img src="http://www.xitclub.com/images/it.jpg" width="90px" height="90px" alt="advertising" title="advertising" />
                   <dl class="userinfo_extra"> 
               <dd>XiTCLUB.com</dd>
               <dd>has no influence</dd> 
               <dd>on advertisings</dd>
               <dd>that are displayed by</dd>
               <dd>Google Adsense</dd> 
              </dl>
                  </div>
              </div>
              <div class="postbody">
               <!-- Ad Code -->
               <div class="cleardiv"></div>
              </div>
          </div>
              <div class="postfoot">
                  <div class="textcontrols floatcontainer">
                      <span class="postcontrols">&nbsp;</span>
                  </div>
              </div>
          <hr />
      </li>
      </ul>
      </vb:if>

      Comment

      Related Topics

      Collapse

      Working...
      X