Tag Cloud: don't has it :(

I put: <?php printAllTagsAs("cloud", "", "abc", FALSE, TRUE, 2, 50, 10, NULL); ?> in a few different places in my templates, but no tags display. I have tags on a bunch of my test pictures, and even redundant tags. I'm sure it a rookie mistake, exasperating nonetheless. I am trying to make a site with one Album and depending on keywords (and especially a Tag Cloud) to build dynamic Search Albums rather than categorizing. Did I miss a setting in Admin? Help!

Comments

  • I used your code and placed it and it works. The only thing I changed was your second variable of "" to a NULL variable.

    Odd though it's coming up as a bulleted list instead of a cloud. Make sure you're paying attention to the last variable, if your tags aren't used at least 10 times with your code they won't sup up in the cloud.

    Edit: Ok, fixed the bulleted issue. You have to wrap it in a <div id="tag_cloud"></div> for it to list right. Without that no matter what you set the first variable to it doesn't change. So my line of code is:

    <div id="tag_cloud"><?php printAllTagsAs("cloud", NULL, NULL, false, TRUE, 2, 24, 2, NULL); ?></div>
  • Oh! Thanks so much! I spent hours trying to figure that out (dummy). I was having the problem with the block list as well, so that was going to be my next question. I needed to get that tag cloud going first as the site design depends on it. Really appreciate the help!
  • No problem, shoot me a link to the site when you're done. I'm always keen to looking at other galleries and seeing what people do with zenphoto.
Sign In or Register to comment.