Results 1 to 5 of 5

Code for Pop-Up Ads

This is a discussion on Code for Pop-Up Ads within the Off-Topic & Chit Chat forums, part of the Focus on Members category; I'd never run popup ads on any of my sites before last week. Had my programmer add a single popup ...

  1. #1
    Senior Member rmjvol's Avatar
    Real Name
    Ross
    Join Date
    Jan 2006
    Location
    Neyland Stadium West
    Posts
    195
    Liked
    0 times

    Code for Pop-Up Ads

    I'd never run popup ads on any of my sites before last week. Had my programmer add a single popup for non-registered guests but it caused problems for members & guests. Traffic for the 1 day we ran the popups dropped like 70% so we just pulled the code. Traffic came back immediately once we removed the popup.

    I think we were trying to be too fancy in avoiding the various popup blockers but not 100% sure.

    Can someone provide the process & code that you've used to generate popups?

    Thanks, Ross

  2. #2
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,755
    Liked
    1 times
    Blog Entries
    1
    I just put the code in the header or in the navbar. Nothing fancy. However, I am not using popups on any of my sites right now.

    You can put this in the navbar

    PHP Code:
    <if condition="$show['guest']">
    POP UP CODE HERE
    </if> 

  3. #3
    Senior Member rmjvol's Avatar
    Real Name
    Ross
    Join Date
    Jan 2006
    Location
    Neyland Stadium West
    Posts
    195
    Liked
    0 times
    Thanks for the reply but I'm looking for the code to generate the pop ups, not the conditional for display to guests.

    Thanks anyway.

  4. #4
    Senior Member
    Real Name
    Michael
    Join Date
    Oct 2005
    Posts
    1,755
    Liked
    1 times
    Blog Entries
    1
    Not sure what you are asking for. All you need to do is put your pop up code in the code above. The code will have to come from whoever is providing you the ads.

    Unless, you are looking for code that will make one of your own ads display as a popup? This may be the case, I am used to running tribalfusion, burst, etc...

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    try somethign like this:

    Code:
     <script type="text/javascript">
       function init() {
          if(! cookievar)
          {
              window.open(params here);
          }
    
             // set a cookie so it only shows once....
    
          
       window.onload = init;
      </script>

Similar Threads

  1. to clean code or not to clean code, that is the question
    By kidmercury in forum Troubleshooting
    Replies: 3
    Last Post: 11-11-2005, 03:00 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
  •