how to put adsense after first post.

Discussion in 'vBulletin' started by fireservice, Nov 4, 2008.

  1. #1
    i m going to make a entertainment forum and want to know that how to put adsense after first post in vbullatin 3.7.3

    thanks in advance.
     
    fireservice, Nov 4, 2008 IP
  2. shabbirbhimani

    shabbirbhimani Well-Known Member

    Messages:
    1,063
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Check out the Ad template group and it should help you get ads after first post in show thread.
     
    shabbirbhimani, Nov 4, 2008 IP
  3. fireservice

    fireservice Well-Known Member

    Messages:
    1,672
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    170
    #3
    thanks that nice and easy.

    but i want to know how to do by editing postbit_legecy templete.
    becaz i m want many diffrent condition.
    so plz suggest me.

    thanks.
     
    fireservice, Nov 4, 2008 IP
  4. shabbirbhimani

    shabbirbhimani Well-Known Member

    Messages:
    1,063
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    140
    #4
    There is a variable like FIRSTPOST ( search for this in the php files ) and depending on the condition you can do that.
     
    shabbirbhimani, Nov 5, 2008 IP
  5. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Search in your templates for ad and you will see the locations in the Ad location templates, this is were you can put ads in vbulletin. These are already built into the templates and make calls to the ad locations.

    For example, I have a header banner under my navbar. The code is entered into the ad_navbar_below template, not actually in the navbar code.

    I also have a banner between the first and second post, that location is ad_showthread_firstpost

    There is no need in editing the core VBulletin files. The ad locations are built in, you just add the code to the location template.

    Here is an example of the code I use:


    This entry - <if condition="is_member_of($bbuserinfo,array(1,2,15))"> makes it so that only certain groups see the banner. The 1,2 and 15 are the usergroup IDs, and only these groups see the banner.
     
    ~kev~, Nov 5, 2008 IP
  6. pripatel93

    pripatel93 Peon

    Messages:
    276
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    jesus, MYBB is so much easier to understand than the VB code lol
    Still, i like them both :)

    I hope the Above answer Helps you jakki
     
    pripatel93, Nov 5, 2008 IP
  7. novashun

    novashun Well-Known Member

    Messages:
    818
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    138
    #7

    How do you do it with PHPBB Pripatel?
     
    novashun, Nov 5, 2008 IP
  8. P2Host

    P2Host Guest

    Messages:
    217
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Novashun thieir is a mod out their that does it For PHPBB 3 its very usful and has lots of areas to put them

    visit PHPBB3 Advertisement Topic
     
    P2Host, Nov 7, 2008 IP
  9. novashun

    novashun Well-Known Member

    Messages:
    818
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    138
    #9
    Thanks Buddy. Exactly what I was looking for.
     
    novashun, Nov 7, 2008 IP
  10. P2Host

    P2Host Guest

    Messages:
    217
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Great To Help
     
    P2Host, Nov 7, 2008 IP
  11. Ikaruga

    Ikaruga Active Member

    Messages:
    1,840
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    90
    #11
    I'm bumping an old post because I need help with manually putting in ads now that my ad plug-in is ceasing to work. How do I set up rotating banners?
     
    Ikaruga, Apr 5, 2009 IP