StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-06-2011, 01:00 PM
golden golden is offline
Registered User
Genesis Member
 
Join Date: Dec 2010
Posts: 268
Default Lightbox for Facebook Likebox - cookie based??

Okay, here is what I have:

HTML Code:
<html>


<div style="width:350px; margin:0 auto 0 auto; heigt:260px">
<h2 style="text-align:center; margin:10px auto 10px auto;">Follow Golden Image Photography on Facebook 
</h2>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=www.facebook.com/Golden.Image.Photography&amp;width=350&amp;colorscheme=light&amp;connections=10&amp;stream=false&amp;header=false&amp;height=260" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:260px;" allowTransparency="true"></iframe>
</div>

</html>
uploaded to my main level hosting for this domain.

I need to know where to add this code:

HTML Code:
<!-- Facebook lightbox -->

			<script type="text/javascript">
            
            function readCookie(name) {
            var nameEQ = name + "=";
            var ca = document.cookie.split(';');
            for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
            }
            return null;
            }
            
            if(readCookie('GoldenImageFacebook') !=="GoldenImageFacebook") {
                    $(document).ready(function() {  
                    setTimeout("$.fn.fancybox({href:'/facebooklightbox.php', open:true, opacity:0.7})",5000);  
                })};
            </script>

		<!-- Fin Facebook Lightbox -->
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flexible Lightbox instead of Lightbox thoom General Discussion 3 05-19-2009 08:55 PM
KILL the cookie for PW protected pages / posts coreystovin General Discussion 5 04-17-2009 10:08 PM


All times are GMT -5. The time now is 05:31 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.