Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function: tagCloud
#2
Looking good, I was actualliy thinking of writing a tagcloud function myself but it seems you beat me to it!

I have a few things I want to say though:
Code:
\\ example   $jsLink=" onclick=\"searchTag('".$tag."');\" ";
Slashes the wrong way, wouldn't this give problems if I were to copy your script into my functions.php?
Code:
$query=$myPages->item;
You define a variable that you're not going to be using anywhere?
Code:
$components = subval_sort($myPages->xpath("//*"),'slug');
You seem to be using subval_sort() but I thought we established the fact that it doesn't work on an array of SimpleXMLElement objects (as are returned by your XPath call)?
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
Function: tagCloud - by n00dles101 - 2009-11-20, 21:04:58
Function: tagCloud - by Zegnåt - 2009-11-20, 22:03:01
Function: tagCloud - by n00dles101 - 2009-11-20, 23:45:04
Function: tagCloud - by ccagle8 - 2009-12-09, 08:13:02
Function: tagCloud - by Jamz - 2009-12-15, 08:52:39
Function: tagCloud - by n00dles101 - 2009-12-15, 19:50:43
Function: tagCloud - by Zegnåt - 2009-12-15, 19:56:06
Function: tagCloud - by internet54 - 2009-12-16, 02:53:14
Function: tagCloud - by Zegnåt - 2009-12-16, 03:53:18
Function: tagCloud - by n00dles101 - 2009-12-16, 05:04:44
Function: tagCloud - by homershines - 2010-04-21, 14:04:28
Function: tagCloud - by Zegnåt - 2010-04-23, 00:57:21
Function: tagCloud - by homershines - 2010-04-23, 02:55:17
Function: tagCloud - by Zegnåt - 2010-04-23, 07:07:39
Function: tagCloud - by kirillaristov - 2010-04-24, 01:11:12
Function: tagCloud - by homershines - 2010-04-24, 04:53:54
Function: tagCloud - by n00dles101 - 2010-04-24, 05:58:51
Function: tagCloud - by homershines - 2010-04-24, 22:31:46
Function: tagCloud - by banter - 2010-04-27, 18:30:05
Function: tagCloud - by n00dles101 - 2010-04-27, 18:59:05
Function: tagCloud - by homershines - 2010-04-29, 00:25:26



Users browsing this thread: 1 Guest(s)