Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
Tags:
Permalink Reply by David R on September 3, 2010 at 4:06pm
Permalink Reply by JenSocial on September 3, 2010 at 5:51pm
Permalink Reply by Jordan Kittle on June 23, 2011 at 11:30pm David R and Jen, I love you both!! First of all, I can't say thank you enough to Jen for providing me with all these tips / hacks / wonderful works of awesomeness. And David, thank you so much for your work.
I have created a little script that works with multiple pages:
<script type="text/javascript" language="javascript">
var pagelist = new Array('encryption-tool','retro-tool','image-editor','photo-editor','music-1','sesh-room');
for (aa=0;aa<pagelist.length; aa++){
if (window.location.href.split('page/')[1] == pagelist[aa]) {
x$('.xg_headline').css('display','none');}
}
</script>
As you can see, all you need to do is put all your pages you want to remove the headline from in the single array called pagelist.
Also, Jen, thank you sooooo much for your tools. I have incorporated pixlr tools into my network as well, I'm sure my members will love it.
I hope my script works well for any of you who may use it, it's working for me at the moment. Thank you again to David R for making this possible!
Edit: I can't get the & gt; and & lt; to work for me :(
Permalink Reply by JenSocial on June 24, 2011 at 1:34am Very nice Jordan! Thanks for sharing.
Best to you, and thank you for the kind support, earlier this evening!
Jen
Permalink Reply by Jordan Kittle on June 24, 2011 at 4:52pm I have changed my script to handle URLS that contain more than just the page name. As the code was written, the heading was still visible if the URL looked something like this http://isesh.com/page/conversion-tool?xg_source=facebook
This should take care of the remaining URL content. The only drawback is page-name and page-name2 would both have their headings removed, even if you only wanted it removed from page-name. I hope that makes sense. Let me know if anybody has any problems with the script, cheers:
<script type="text/javascript" language="javascript">
var pagelist = new Array('encryption-tool','store-1','arcade-1','retro-tool','image-editor','photo-editor','music-1','sesh-room','wabble-dubstep','conversion-tool');
for (aa=0;aa<pagelist.length; aa++){
if (window.location.href.indexOf(pagelist[aa])!= -1) {
x$('.xg_headline').css('display','none');}
}
</script>



Started by IDC. Last reply by JenSocial Oct 27, 2012. 1 Reply 0 Favorites
Started by Dr. Husky. Last reply by Dr. Husky Aug 18, 2012. 5 Replies 0 Favorites
Started by Larry Matthews. Last reply by JenSocial Aug 13, 2012. 1 Reply 0 Favorites
© 2013 Created by JenSocial.
Powered by
© Copyright JenSocial.
