PS it looks like any size will work. Is that true?
HTTPS Please!
|
I may be wrong about this. It seems that the style harvey_img forces everything to 180 x 135, although there may be a typo there (in the word "height'): #harvey_img img{ width:180px; heigh: 135px; } Advertisers have their own set sizes of ads and this would be a much more flexible system if I could use different size ads. Would it be possible to enlarge the size of the image container to the maximum that is practical and then center or float ads within the space setting margins or padding?
HTTPS Please!
|
It LOOKS like if the width is correct (180 px) the height doesn't matter?
Not sure if this is just when the height is BELOW 135 px or not. I tried setting the harvey_img class to width: auto; height: auto; but if the image is really large (like the radar shot is 640 x 480) then you can't override it inline.
HTTPS Please!
|
OK you can ignore my last 3 posts, I think I figured those issues out.
One new question: I have one ad running in two sub-apps and have created a class for them called deals_img: <n.if.equal value1="[n.id/]" value2="3646525"> <then> <n.set_css_header/> <div id="deals_img" class='header-col'> <a href="http://www.avantlink.com/click.php?tt=ml&ti=97425&pw=149617" rel="nofollow" target="_blank"><img src="http://www.avantlink.com/gbi/10065/97425/124793/149617/image.png" style="border:1px; margin:20px 0 0 0;" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a> </div> </then> </n.if.equal> <n.if.equal value1="[n.id/]" value2="2531293"> <then> <n.set_css_header/> <div id="deals_img" class='header-col'> <a href="http://www.avantlink.com/click.php?tt=ml&ti=97425&pw=149617" rel="nofollow" target="_blank"><img src="http://www.avantlink.com/gbi/10065/97425/124793/149617/image.png" style="border:1px; margin:20px 0 0 0;" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a> </div> </then> </n.if.equal> The code is the same except for the app number: value2="2531293" and value2="3646525" I can't seem to join them together like this: value2="3646525,2531293" or like this: value2="3646525|2531293" can this be done to save some code?
HTTPS Please!
|
Still wondering if there is a way to combine several ads into one code.
More important, PEDRO has totally hooked me up with the NAML work needed to display ads customized by sub-app: I am now a Liftopia Affiliate. Thank you!
HTTPS Please!
|
In reply to this post by Harvey
First: in order to reduce "if" statements you can do something like this:
<n.if.contains_substring string="id1, id2, id3, etc." substring="[n.id/]"> <then>Ad Code</then> </n.if.contains_substring>It will see if the id is id1, id2, id3 or any you add here. To avoid rewrite ad codes, you can create macros with the ad script inside it: <macro name="ad_Lift1"> <n.set_css_header/> <div id="deals_img" class='header-col'> <a href="http://www.avantlink.com/click.php?tt=ml&ti=97425&pw=149617" rel="nofollow" target="_blank"><img src="http://www.avantlink.com/gbi/10065/97425/124793/149617/image.png" style="border:1px; margin:20px 0 0 0;" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a> </div> </macro>And then you can use: <n.if.equal value1="[n.id/]" value2="3646525"> <then><n.ad_Lift1></then> </n.if.equal>
My test forum.
|
Is this correct? I am getting an error.
<n.if.contains_substring string="3541284, 2108721,2108721,2108721" substring="[n.id/]"> <then> <n.set_css_header/> <div id="deals_img" class='header-col'> <a href="http://www.avantlink.com/click.php?tt=ml&ti=97425&pw=149617" rel="nofollow" target="_blank"><img src="http://nyskiblog.com/wp-content/uploads/2013/10/Liftopia-Ad-260-1.jpg" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a> </div> </then> </n.if.equal>
HTTPS Please!
|
The closing tag should be equal to the opening one:
<n.if.contains_substring>closes with: </n.if.contains_substring>And you don't need to repeat the 2108721 number, you can use it just once: <n.if.contains_substring string="3541284, 2108721" substring="[n.id/]"> <then> <n.set_css_header/> <div id="deals_img" class='header-col'> <a href="http://www.avantlink.com/click.php?tt=ml&ti=97425&pw=149617" rel="nofollow" target="_blank"><img src="http://nyskiblog.com/wp-content/uploads/2013/10/Liftopia-Ad-260-1.jpg" title="Best Deals on Lift Tickets!" alt="Liftopia" /></a> </div> </then> </n.if.contains_substring>
My test forum.
|
What am I doing wrong? I am getting RED:
HTTPS Please!
|
I have already explained that red is not always an error. It is a bad tag format.
Select this piece of code and click "tab"
My test forum.
|
I don't know how to tell when it is an error and when it isn't. Is there a way to tell? The last time I hit save on red code it was an error that I couldn't fix. I will try it again and report back if I have a problem. On Mon, Oct 28, 2013 at 4:10 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote: I have already explained that red is not always an error. It is a bad tag format. "Like" us on Facebook: www.facebook.com/NYSkiBlog Follow us on Twitter: http://twitter.com/nyskiblog ---------- Harvey Road: NYSkiBlog.com NY Ski Forum: forum.NYSkiBlog.com NY Ski Magazine: mag.NYSkiBlog.com NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
|
In reply to this post by Pedro
It worked. How can I know if red means an error or a bad tag format? What is a bad tag format and why doesn't it matter? If it doesn't matter why is it red?
HTTPS Please!
|
Sometimes it matters sometimes it doesn't.
If you save your code an error and its explanation will be shown, if it is the case. When your code is not indented, it can be red to warn you about it.
My test forum.
|
I try to match your indents when I can but I didn't know that it mattered. I'll try to ask fewer questions.
On Mon, Oct 28, 2013 at 5:11 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote: Sometimes it matters sometimes it doesn't. "Like" us on Facebook: www.facebook.com/NYSkiBlog Follow us on Twitter: http://twitter.com/nyskiblog ---------- Harvey Road: NYSkiBlog.com NY Ski Forum: forum.NYSkiBlog.com NY Ski Magazine: mag.NYSkiBlog.com NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
|
In reply to this post by Pedro
Is it possible to use the space above the search bar in other sub apps?
HTTPS Please!
|
Yes, see where I use the facebook like, div class='header-col'. I only check for the root page, you can check for an other and add the properly code.
My test forum.
|
I was wondering if I could add another space for putting something different (an ad) above the search bar instead of the facebook like.
HTTPS Please!
|
Do you mean add something at the third column? See your code, the header-col class div. Try to add something there and see what happens.
My test forum.
|
I dont see it in CSS or naml. ( I see where it is called, but I dont see it). I'm really looking to customize ad units (different ad for different sub-app) the way I did on the other side.
HTTPS Please!
|
At your app_body_header macro.
My test forum.
|
Free forum by Nabble | Edit this page |