Results 1 to 2 of 2

Thread: Lightbox for Facebook Likebox - cookie based??

  1. #1
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation 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>
    saved as .php and 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 -->
    I am using (Studiopress Genesis) Wordpress.

    It isn't working... I am a newb.

    Thanks,
    Last edited by jscheuer1; 12-06-2011 at 10:28 PM. Reason: Format

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Moderator's note: for some reason this post was caught by our automatic spam filter. Usually this is because there is a keyword in the post, but I don't see what that is. Because of that, there may be a short delay when posting new replies, but a moderator will approve them as soon as possible if that happens.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    goldenimage (12-06-2011)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •