Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 32

Ad after first post, DigitalPoint forum style - How?

This is a discussion on Ad after first post, DigitalPoint forum style - How? within the Off-Topic & Chit Chat forums, part of the Focus on Members category; vBulletin community folks are very slow in responding. Posting on vBSEO forum for some quick response There's a predefined ad ...

  1. #1
    Senior Member
    Real Name
    Kaustubh
    Join Date
    Dec 2007
    Posts
    152
    Liked
    0 times

    Red face Ad after first post, DigitalPoint forum style - How?

    vBulletin community folks are very slow in responding. Posting on vBSEO forum for some quick response


    There's a predefined ad location hook in vBulletin. I'd like to add advertisements after every first post on my forum the way DigitalPoint Forums have; that is, surrounded by a box.

    Also, I'd like the ad to be centered.

    How to do that?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You can iuse this in the post bit template

    Code:
    <if condition="$post[postcount] % $vboptions[maxposts] == 1">
    AD HERE
    </if>


    note, if on vb4, you need to use the <vb:if style instead of just <if

  3. #3
    Senior Member
    Real Name
    Kaustubh
    Join Date
    Dec 2007
    Posts
    152
    Liked
    0 times
    You're a rockstar Brian! I'm just loving vBSEO more than ever before now

    Addendum: Where exactly in the postbit template? (I'm editing postbit_legacy)

  4. #4
    Senior Member
    Real Name
    Kaustubh
    Join Date
    Dec 2007
    Posts
    152
    Liked
    0 times
    I'm using vb4. The Ad isn't centered and there's no box there yet.

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Actually, vb already has an ad location for this. No need to edit the post bit template anymore.

    Now you can simply use something like:
    Code:
    <li class="postbitlegacy postbitim postcontainer">
    <div class="postdetails" style="text-align: center;">
    AD CODE HERE 
    </div>
    </li>
    in the AdLocaiton template: ad_showthread_firstpost

  6. #6
    Senior Member
    Real Name
    Kaustubh
    Join Date
    Dec 2007
    Posts
    152
    Liked
    0 times
    Thanks a LOT! This works exactly the way I want!

  7. #7
    Senior Member StarBuG's Avatar
    Real Name
    StarBuG
    Join Date
    Jul 2007
    Posts
    480
    Liked
    15 times
    That currently creates a simple box between posts.
    I want it to look like a post and not "simply" slap a banner between 1st and 2nd post.

    Like it is on my forum right now: Demo
    The CTR is much higher this way.

    Did anyone do this and doesn't mind to share?
    Anyone willing to help?

  8. #8
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you look at the postbit template, you can find the div's inside the list to make 2 columns like the postbit does.

  9. #9
    Junior Member
    Real Name
    Sander Tuit
    Join Date
    Sep 2009
    Posts
    7
    Liked
    0 times
    Is it possible to do this on the forum homepage as well? I'd like to show an ad after the first forum. I don't think there's a template hook for that, right?

  10. #10
    Senior Member
    Real Name
    Kaustubh
    Join Date
    Dec 2007
    Posts
    152
    Liked
    0 times
    Quote Originally Posted by aVirulence View Post
    Is it possible to do this on the forum homepage as well? I'd like to show an ad after the first forum. I don't think there's a template hook for that, right?
    That would be great!

    +1!

  11. #11
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    forumhomebit_level2_post


    find
    Code:
    </vb:if>
        <vb:if condition="$childforumbits">
            <ul class="childsubforum">
                {vb:raw childforumbits}
    
            </ul>
        </vb:if>
    </li>
    replace with:
    Code:
    <vb:if condition="$forumid == 2">
    <div class="forumrow table">
    <div class="foruminfo td">            
                <div class="forumdata">
                    <div class="datacontainer">
                        <div class="titleline">
    ad
    </div>
    </div>
    </div>
    </div>
    </div>
    </vb:if>
        <vb:if condition="$childforumbits">
            <ul class="childsubforum">
                {vb:raw childforumbits}
    
            </ul>
        </vb:if>
    </li>
    where foumrid 2 is the forum Id you wish the ad to follow. In this example, Main Forum is ID2
    Attached Thumbnails Attached Thumbnails ad_1271081643411.png  

  12. #12
    Member
    Real Name
    chris
    Join Date
    Jan 2009
    Location
    Aus
    Posts
    30
    Liked
    0 times
    Brian,

    sorry to bump this thread as i came across it on google.
    can i ask how the code would look to be able to ad ads to forumhome
    for vb3.8 please?

    also, does anyone know what ads mod digitalpoint.com is using in there post bit please?
    it seems to rotate.

    thanks

  13. #13
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Theres an adlocation template for this in 3.8. Just copy the tr td and the alt1 class for the left and alt2 class for the right side.

  14. #14
    Member
    Real Name
    chris
    Join Date
    Jan 2009
    Location
    Aus
    Posts
    30
    Liked
    0 times
    thanks Brian.

    no luck in the way
    digitalpoint.com disply there ads in postbit please?

    my code in my post bit is just:

    Code:
    <if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
    google ads here
    <br>
    </if>

    that only displays in 1 spot.
    is there anything i can do to make my 468 ads move up and down in random spots on refesh.
    thanks.

  15. #15
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I'm not a member there, so i have no idea what you are referring to moving ads. Anything that moves on page needs some sort of javascript, and well, at that point, you should view-source their page and steal/hack their code to copy it.

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. vBSEO.com 1.0 Style : Problem with Blog - Making new post
    By chrisife in forum vBSEO.com Styles
    Replies: 0
    Last Post: 01-24-2008, 01:09 PM
  2. Clicking a post from the forum index doesn't go to the newest post
    By ChrisGuthrie.net in forum Troubleshooting
    Replies: 2
    Last Post: 06-29-2007, 12:02 AM
  3. FNK.CA | VBul with Digg style post vote up/downs.
    By j0rd in forum Critique Please
    Replies: 0
    Last Post: 04-16-2007, 11:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •