![]() |
Okay that sounds good to me. Thanks for your help and the information. I appreciate it.
|
as i saw above, it works with adsense also
how does the user implement his adcode? he enters pub-xxxxxxxx or does he need to enter the full adsense code? |
It's up to you how much you want to share. When you're entering the adsense code into the admin panel you replace part of it with #shared# (or your own specified code). #shared# is what will be replaced with the user's custom code.
So let's say your admin code is: Hello there, my name is #shared#. If your user's custom adcode is Ralph then the output will be Hello there, my name is Ralph. Or you could set your admin code as: Hello there, #shared#. If your user's custom adcode is Ralph then the output will be Hello there, Ralph. Or your user's custom adcode could be my name is Ralph and the output will again be Hello there, my name is Ralph. It's up to you how much you want to open up to user's to specify, but to keep things on the straight and narrow I'd generally recommend that you share the minimum amount of code possible. |
Quote:
I tried putting it under the Navbar code but that puts the ad between the navbar and the top of the forums just as before - except that this time it put it to the far left, rather than the center. What I really want is the code inside the Navbar to the far right next to the username. If this isn't possible I can live with it below, but I need it centered. Is there some easy code I can add that will center it? The code $footer_advertisement centers automatically. I'm sorry to be so terribly picky... but I like my library to look just right. My members count on it being a nice, neat-looking place, kwim? It's here if you want to see it: http://www.thehomeschoollibrary.com Right now I've got the footer ads showing up both in the footer and below the navbar. I'm just using that $footer_advertisement code twice. But I really want to have two different ads there, if possible. The goal is to put Adsense in the footer eventually. Thanks again...and I guess I need to make another donation, don't I! :) |
You can put $navbar_advertisement in any template anywhere you like, it is a global advertisement.
If you want to style/position it, edit the navbar_advertisement template to your taste. If you want it centered, change <div> to <div style="text-align:center;"> To put it in your navbar to the right (this is untested, but it's roughly the right approach if not quite correct) look in your navbar template for the following code and note the change I made which are highlighted in bold. Code:
<td class="alt2" valign="top" nowrap="nowrap"> |
Need a hand :)
I have the Ads Running Above the Whats Going On Box ... http://www.dieselbombers.com/attachm...8&d=1178210965 Thing is when ever The Window is Shrunk they go to 2 lines of ads instead of a single row , and it displays different on different screen sizes also , I set it up to be even with the forum on my computer but it always moved the last ad (mine) to below the rest , I had to make it to where i have 1/4 inch open on either side of my computer screen (when the window is maximized) just so it don't effect others . This is my lay out ... HTML Code:
<a href="http://www.dieselbombers.com/info/sponsors.htm" target="_blank" class="banner"><img src="bannerads/test.gif" width=20 height=108 border=1></a> Is there a way for me to format it by a % so it always shows even with the forum no matter what screen/window size Thanks a Bazillion !! DM |
Quote:
|
Quote:
Code:
<!-- breadcrumb, login, pm info --> I had another mod that I'd downloaded a while back called "Banner Rotator by Redline" or "Banners_in_Navbar." I didn't like the program - it isn't sophisticated enough. But I figured I would check and see where he put the code. I stuck your bit in where he put all of his and it works like a charm. Check out the pic! Thanks so much RedTyger! I'm very pleased! |
Quote:
|
I got it !!! it works Unless the window size goes less than 7 inches wide The ads now shrink and stay in place other than staying there defined sizes and going to a new line
HTML Code:
<a href="http://www.warn.com" target="_blank" class="banner"><img src="bannerads/warnad.gif" width="10%" border=1></a> |
All times are GMT. The time now is 06:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|