Viewing 12 replies - 1 through 12 (of 12 total)
  • You need a Flickr account for one.
    Log in to your account …
    In the right column there will be a list of things.
    Scroll down to

    Did you know?
    You can publish your photos on another website with a Flickr badge.

    I’ve set up Flickr Badge on my blog (http://www.biglittleg.com/blog/). Just wondering how I might put a white or blue-ish border around the image.

    In whatever script was generated for you to display your picture(s) change this line to your likings…

    flickr_badge_image_border = "1px solid #000000";

    1px = border width
    solid = border style
    #000000 = border color

    Looking at your page I don’t see

    <script type="text/javascript">
    <!--
    flickr_badge_background_color = "";
    flickr_badge_border = "";
    flickr_badge_width = "120px";
    flickr_badge_text_font = "10px Arial, Helvetica, Sans serif";
    flickr_badge_image_border = "1px solid #000000";
    flickr_badge_link_color = "";
    //-->
    </script>

    which is where you set the css part of it. This is generated also when you go through the questionaire on flickr…

    I plugged the script into my index.php. Does that matter? It seems to be working, so I thought I was okay.

    Ah – but I asked for “no style” hence that code not being there.

    Here’s the script I plugged into my index.php: <script type=”text/javascript” src=”http://www.flickr.com/badge_code.gne?nsid=5…&#8230;.@N00&count=1&display=random&name=1&size=thumb&raw=1″></script>

    Keep the script you have and then

    put:

    <script type="text/javascript">
    <!--
    flickr_badge_background_color = "";
    flickr_badge_border = "";
    flickr_badge_width = "120px";
    flickr_badge_text_font = "10px Arial, Helvetica, Sans serif";
    flickr_badge_image_border = "1px solid #000000";
    flickr_badge_link_color = "";
    //-->
    </script>

    above it. You can then change the stuff to your liking.

    Okay – I plugged the code in, but still no joy. Here’s how it looks on index.php:
    <li id=”images”><?php _e(‘Images:’); ?>

    I’m still relatively new at coding, so bear with me.

    Many thanks.

    I would just go through the process again on flickr to get both sets. Something in the parameters sent in the url are probably not looking for the css.

    Will try again tomorrow. Thanks again for the tips.

    Okay – re-entered code and it needs just a bit of tweaking. I want the image to be left aligned, in keeping with the other categories. And it appears that the random image function has disappeared. It doesn’t seem to work when I’m refreshing the page

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Flickr Bagde Code? Randomly inserting flickr images into my blog’ is closed to new replies.