Display advert with a space but when theres no add remove the space

Started on the old forum in September 2010 · view the original in the archive · old links redirect here

4 replies · 449 views · started 16 years ago · 1 min read

4 participants
jnetwensu Junior · 35 posts #1

Hi, How do I display an admob, or decktrade or admoda code doesnt really matter, but how do i display the code with a break but then if there isnt enough inventory and the ad doesnt display, i dont want it to still show the break, because then theres spaces all over the page, can anyone help with a snippet?

jnetwensu Junior · 35 posts #3

No its totally different... that was because i thought something was wrong but If i only want to use 1 ad group like adultmoda and if there is inventory it must display the add with a break and if there isnt inventory it must not display the break by itself so it doesnt leave spaces on my site.. can anyone help?

sm4rtgl0b3 Junior · 11 posts #4

just put your ads to div and dont put break line

echo ""; include("./ads.php"); echo "";

Done.,

frostymarvelous Senior · 266 posts #5

Look into the ad installer code like the one admon gives, look for where the ad is returned to you then edit the html there by adding your breaks. If an ad is served, it will come with the breaks if not, no breaks. 😀 I used this to make my code xhtml compliant by changing and making the codes html entities.و

Added after 2 minutes:

Look into the ad installer code like the one admon gives, look for where the ad is returned to you then edit the html there by adding your breaks. If an ad is served, it will come with the breaks if not, no breaks. 😀 I used this to make my code xhtml compliant by changing and making the codes html entitiesو

Perfection comes at a cost

I accept liberty!

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close