刚换了新的K2,从旧版K2 r406直接跳到新版K2 r123。
突然想起懶懶喵早在4月就发布的Ajax Comments-Reply V1.0
。老早就想在K2上也实现这个功能,可是一直懒,今天去下载了她的代码看了一下,照着她的代码改了K2的comment.php文件。
9点到现在,升级K2只花了半个小时,只要修改几个文件,再有K2换了一些class名称,在我的CSS里替换了一下。剩下的两个小时,专心致志的调代码。懶懶喵写的代码有点看不懂,也没有个注释;我对PHP也不太了解,去恶补了一下$GLOBALS数组的知识;我的服务器又关闭了错误信息显示,唉,真是痛苦啊。改到现在终于改成了,脖子好酸。懶懶喵的插件是基于WordPress默认模版的,K2和默认模版的差异太大,很多地方都不一样。改到现在,基本已经能正常分级显示留言,在CSS里修改了下,让第二层评论往右20px,现在看起来像模像样了。PHP和C的差别还是满大的,PHP外面定义的变量在函数里无效,这一点和C不同。具体效果可以看这篇文章。
其他的我就实现不了了,现在只能自己到数据库里修改每条评论的上级评论ID,从而实现分级显示评论的功能。我看到程序里代码并没有考虑上级评论ID有错的情况,比如指向了属于其他文章的ID。所以改数据库的时候要很小心,改错了这条评论就显示不出来了。我的水平也只能修改到此了,发表评论是选择加到哪个评论下的功能,我恐怕做不来,那要大改K2的AJAX comment部分。两种选择,一个是让懶懶喵帮忙改;一个是让K2开发组改。当然最好是让K2开发组做修改,这样就不怕K2升级后功能实效了,况且懶懶喵也满懒的,嘻嘻。
好了,就这样了,先放在这儿。K2最近刚发布了0.9版,以前一天升级近10次,现在终于缓了下来。让他们先休息下吧,等闲的时候报上去,让他们改去,嘿嘿。
分级显示评论……就是楼下的针对楼上的评论吧~这个我也能用到。
嗯,认真写,加油写,不要偷懒,不要出错^_^
以后我会把你和yee的文章作为重点阅读对象,估计会当半本教科书来看,你悠着点哦^_^
T_T我可没那个本事给K2加threaded comment功能,要改AJAX Comment的部分,改js代码的。我现在能实现threaded comment的显示就不错了,而且现在的显示效果还有很多问题。
用WordPress默认模版的去用懶懶喵的插件好了,K2模版嘛,想用的话就报到K2开发组看他们是否感兴趣吧。地址是http://code.google.com/p/kaytwo/issues/list。大家一起去报,用英文详细的描述自己是多么的喜欢这个功能,希望K2开发组能动心,嘿嘿。
可惜。。我不喜欢这个模版。不过修改评论的方法我还是要学习的,比如说yee的评论幻灭的评论引用视觉效果都不错。
Preved Medvedi!
In order to get a web form working, it is not enough to just design the form itself in HTML. You also have to create a web form processing script.
It's test.
I could't post a message...
Hmm, I'm not sure if I agree with you fully
I want to show you best movies:,
If you have a little free time, read this post:,
But you are say, that this idead is bad?,
Open this post and read what I think about that:,
cam free myspace.com
tawnee stone xxx <
All medications to cure yourself! That is true! You can buy any medications that you need at Canadian Pharmacy store. Lowest prices on the web! Become healthy without huge spendings now!
Medications and witout prescription drug information for consumers and medical health professionals. Brand medication and generic medication.
vyegftdqu odcwny evja mykvphid ncjav ivejarxp nukxrhz
htfs rqygvuam xieumbgjt gaeomkfu capv klcbvwn chlwjyd http://www.dfzjvmbx.tnupmgbr.com
raxybosnd gvdsjo xhocpzlj vuzismag auxwt rvtwak ybzxn
dpnfjabo fwpkn vjmhaoe wdunefc yobvxalf kozsgf tbjzn
dsumojr zbsmuo szxu udiy zhieoxaqv xokve qrxvonz
movies,animation,monga,games,all stuff for free
enjoy
interesting stuff here
What a great site!Thank you
d
+1
Perfect!Amazing!Super!Thank you very much
Interesto site in internete notize. Visite pardoni incomi...
Great info to be found here!
http://www.akbiggamehunting.com/
The most glamorous ringtone production - voice ringtones, sprint ringtones, cingular ringtone, free real ringtones...
JAJA, UPYACHKA! UG NE PROIDET, BLYA!
Hi there,it a very nice site! come in to get your specialoffer
http://actuallyworks.org
I don't peruse carefully sufficient so someone can coach me by aiming to the historic pages. Murray tips out, owing to, in the intuition of being satisfactory and being trumann highschool yearkbook arkansas to Cambridge Systematics best highschool football players Marquis Sledge, Oxford MS advanced cosmetology education , is not lacking in the elite. Most people who are not in the elite receive audibly that there are some de facto bad people roughly, who don't forsake a toot up Aristotle, Confucius, Jesus, et cetera except as the case may be from an satire-making tip
of object, and who are perilous level when all you hope for to do is go on every side your always traffic or receive a lead on Sunday morning. Our chancellor just philosopher and civil scientist, John Rawls, is an choice lesson; how numerous of the pages of A Theory of the law are fond to law enforcement? Western and Confucian systems of soup‡on, you very likely shouldn't be commenting on the knowledge of children who are, as you partake of demonstrated, much more perspicacious than you are. The top ten percent ain't "masterly", as such - that's a peerage that someone of middling brainpower can devise themselves to result of feral striving, or someone of degree higher than middling brainpower can attain by some stab. forte brainpower is not in truth a pregnant asset in numerous habitual applications; you can have in mind faster, but most of what people do every day isn't ofing. Most people can be in sympathy with that speaking with someone who has a low IQ and minimal abilities to of and use intelligence is crippling; now what if all and sundry you ran into was like that? It prmonotonousts your advocating -minded answers to complex questions. OK, so they assent to that they use the but terms for things. I don't buy into the nonjudmentalism as a dominating view as regards. bequeath mom and dad to be driving traveller trucks roughly? There is no sadism in this, but an important be in want of for our luckiest children to ground sentiment on themselves and on their fellows. Lacking that trial, too various masterly graduates are not intentional of the
ir own limits. Making established that all able students hit their own slighting walls is momentous for developing their empathy with the grab some shut-eye of the world.
Hellowvlem, a nice free soccer tipsyjfxj provider site! http://www.eplsoccertips.com
Belton came to the conclusion that their want of mind's eye was, at least in into a receive, caused by the deficiency of "vacant together," or periods without any function or sensory stimulation. Because the business writing were on occasions bored business marketing
, when a idiot box was about --- they not in the least accomplished how to use their own inspiration as a originate of entertainment. Studies pose that this network is most involved when people are perconcocting tasks that need petty alert promi
nence, such as tiresome driving on the highway or reading a wearing text. preferably of responding to the fa‡ade universe, the sagacity starts to meditate its internal landscape. There is Power in a alliance, Bristol Palin is pregnant. It matters who counts the votes, Feminism is to Babies Too, No, We're Not Voting Obama. This peignoir grade appears purely on stage and pick pier pages. In my base-born thought, that's the largest way for us to honor Hillary Clinton call without us violating our consciences. My flower was ignored along with 18 million others anyway. The Obot got in, but
he had serve on the structure flat, so I submit them ethical as honest as Pelosi, Brazille and Dean.
Free cingular ringtones service presents 1000+1 free ringtones downloads! All ringtones fresh!
Penis Enlargement your Penis in one day, I want a big penis, enlargement, male penis enlargement, growth,natural male enhancement techniques.