HTML widgets in sidebars?

classic Classic list List threaded Threaded
36 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
Harvey44 wrote
I'd like to put my ad above the adsense ad.
Ok, in this case I will have to change the code. I'll post it here soon.
Harvey44 wrote
Also it seems that now the ARCHIVES are showing. I THINK we had prevented those from showing.
Does it is being shown in a wrong place?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey

Before this we had eliminated the archive in the directory.  Now it is showing.again.

(via mobile)

On Aug 1, 2012 7:16 PM, "Pedro &lt;Nabble&gt; [via Nabble Support]" <[hidden email]> wrote:
Harvey44 wrote
I'd like to put my ad above the adsense ad.
Ok, in this case I will have to change the code. I'll post it here soon.
Harvey44 wrote
Also it seems that now the ARCHIVES are showing. I THINK we had prevented those from showing.
Does it is being shown in a wrong place?


If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/HTML-widgets-in-sidebars-tp7580917p7580972.html
To unsubscribe from HTML widgets in sidebars?, click here.
NAML
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
The fastest way to eliminate that "Archive" is to edit the  <n.archives_widget/>  macro and leave it blank.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
Actually, the macro name is archives_widget.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
Pedro <Nabble> wrote
Actually, the macro name is archives_widget.

I'm little confused. Did the change we made bring the archive widget back?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
In reply to this post by Pedro
Can I just override it with this:

<raw><override_macro name="archives_widget" requires="node_page,servlet">
</override_macro></raw>

On Wed, Aug 1, 2012 at 10:02 PM, Pedro <Nabble> [via Nabble Support] <[hidden email]> wrote:
Actually, the macro name is archives_widget.


If you reply to this email, your message will be added to the discussion below:
http://support.nabble.com/HTML-widgets-in-sidebars-tp7580917p7580979.html
To unsubscribe from HTML widgets in sidebars?, click here.
NAML



--
"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!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
Yes.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
In reply to this post by Harvey
Harvey44 wrote
<override_macro name="archives_widget" requires="node_page,servlet">
</override_macro>

If I want to add a light rule or a separator between the ads and the FEEDS etc

what code could I add in the middle?

HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
In reply to this post by Harvey
Harvey44 wrote
I'd like to put my ad above the adsense ad.
1- Go to sidebar_widget -> Remove override
2 - Let's put that code in a individual macro. Create a new one like this:
<macro name="h_widget">
    <n.put_in_head.>
		<script type='text/javascript'>
			$(document).ready(function(){
				var footer_pos = $("table.footer-table").position().top;
				var ad_pos = $("div.ad").position().top;
				var ad_h = 220;
				var widget_h = 272;
				if(footer_pos - ad_pos > (ad_h +widget_h))
					$("#h-widget").show();
			});
		</script>
	</n.put_in_head.>    
	<div id='h-widget' class="invisible">
		<div style="text-align: center;">
		<a href="http://www.nelsap.org/book.html" rel="nofollow" target="_blank"><img src="http://nyskiblog.com/wp-content/uploads/2012/07/Lost-Ski-Areas-Southern-Adirondacks.jpg" style="border: solid #000000; border-width: 1px" alt="Lost Ski Areas of S Adk" width="180"/></a>
		</div> 
		<div style="color: #ffffff; text-align: center;"> <span style="font-size: normal;">Order Your Copy Today!</span></div>  
    </div> 
</macro> 
3 - Edit your ads_widget macro to call it before the ads. Like this:
<override_macro name="ads_widget">
	<n.h_widget/>
	<n.widget.>
		<n.show_ad location="widget" />
	</n.widget.>
</override_macro>
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
Pedro you are the man - it looks fantastic IMO:

http://directory.nyskiblog.com/Nordic-Ski-Areas-of-NY-f4642515.html

And now I can change the order, if i like.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
Thanks
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
In reply to this post by Harvey
Harvey44 wrote
If I want to add a light rule or a separator between the ads and the FEEDS etc
what code could I add in the middle?
What kind of separator do you want? An image? A line?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
I was thinking about a rule (thin line), but I think I like it the way it is.  Still would like to know how to do it.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
You can edit your actions_widget macro. One option is put an <hr/> tag at the end of this macro.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Harvey
Pedro <Nabble> wrote
You can edit your actions_widget macro. One option is put an <hr/> tag at the end of this macro.
I never knew that. Just add </hr> at the end before macro closing tag?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: HTML widgets in sidebars?

Pedro
Harvey44 wrote
I never knew that. Just add </hr> at the end before macro closing tag?
Yes,  before macro closing tag.  The <hr/> is a simple html line, let me know if you want something more customized.
My test forum.
12