How to have a Common Template like code in HTML ?

Discussion in 'HTML & Website Design' started by csetube, May 2, 2013.

  1. #1
    Im having a site namely www.csetube.in
    Im disapproved by adsense for no reason.

    So Im changing the ad code often in my web pages.

    I need a common code for my webpages for the ad area - leaderboard (Code1) and skyscraper (Code2). I will place code 1 and code2 in their respective places.

    If I assign a code A to Code1, All pages with that code should run the html code I specified in Code A. Similarly to code B to code2.

    If needed, I can change Code A and Code B instead of changing the ad codes in all pages..

    For the past 2 years Im changing ad codes in my website to get money... but none succeeded till now.. So Im trying to minimize the work atleast...

    Hope I will get a good answer from this forums.
     
    csetube, May 2, 2013 IP
  2. cadsii

    cadsii Well-Known Member

    Messages:
    220
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Whats the problem ? What platform are you using ? Seems like a pretty simple solution.

    Set a new theme option in wordpress, add it to admin options and set the adsense data in there
    When you update there it will update on all sites...

    just have your template code reflect the option not the adsense data

    <?php if (get_option('adsense1')) { echo get_option('adsense1') } ?>
     
    cadsii, May 2, 2013 IP
  3. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    I need it in HTML... I have create my site in weebly.com where PHP is not allowed.
    Thats Why its a problem for me..
     
    csetube, May 2, 2013 IP
  4. cadsii

    cadsii Well-Known Member

    Messages:
    220
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #4
    you cant do it with pure html, you need a language that can make decisions, either jquery front end or php or something along those lines for the backend
     
    cadsii, May 2, 2013 IP
  5. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    Is it possible using iframes ?
     
    csetube, May 2, 2013 IP
  6. cadsii

    cadsii Well-Known Member

    Messages:
    220
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #6
    You still need a way to change which iFrame is showing at the current time so no
     
    cadsii, May 2, 2013 IP
  7. cadsii

    cadsii Well-Known Member

    Messages:
    220
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #7
    Google Ad-sense also checks which domain you are hosting your ads from some iFrames from a different domain wont work
     
    cadsii, May 2, 2013 IP
  8. csetube

    csetube Member

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    Since Im not Having proper ad network, I have this problem...
    Thanks cadsii.. :)
     
    csetube, May 2, 2013 IP
  9. cadsii

    cadsii Well-Known Member

    Messages:
    220
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #9
    I dont get it where is the like button on these posts ?
     
    cadsii, May 2, 2013 IP