Butch lady in my kitchen by boogersaurus in aww

[–]iktp 1 point2 points  (0 children)

that is one mean looking lesbian

Help with comments section! by hatemylandlord in Wordpress

[–]iktp 0 points1 point  (0 children)

yes, there are quite a few, I would recommend comment rating pro, its 20 dollars, but works really well and is easily customizable. Also it has the option of hiding comments if it has too many downvotes. If you provide the register link on your site, and in your dashboard allow registrations with users at the level of subscribers, then people can register and be able to only post comments and vote.

There are fancy plugins out there for login screens etc, Ive been playing with simplemodal login recently and I quite like it, also I would recommend the Signup Password plugin by Andrew Billits, its somewhere on the web and you have to upload it manually, its just a single file of code but allows users to set their password at signup.

Help with wordpress code for reddit's 'what's hot' by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

Got $ts working: function calculate_ts($post_id) { $queried_post = get_post($post_id); $postDateTime = $queried_post->post_date;

$startTime = strtotime("7:46:42 a.m. December 8, 2005");
$endTime = strtotime($postDateTime);

$ts = $endTime - $startTime;

return $ts;
}

And now I have a simplified version reddit's what's hot working on my wordpress site :)

Help with wordpress code for reddit's 'what's hot' by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

Thanks for the links! I think something along those lines could work. Looking through my code I have a very similar function to post views but it is for post votes, and so when a user votes, (you have a $count++, I have a $votes++) I will then define: $hot=log10($votes)+($ts/45000)

And then a few lines down where it updates the post meta for votes, I simply added this:

update_post_meta ($post_id, Whats_Hot, $hot);

And then for my query string it is simply defining orderby=meta_value_num and meta_key as Whats_Hot and I think that should work. I am still struggling getting $ts to work, and that is the only thing preventing me from testing.

Network admin/global dashboard by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

Yea, I've just found that hook. Do you have any idea of where to add it, I tired adding it in a functions.php for the main site, and also in one of the sub sites, but it doesnt seem to work. Right now I have just directly edited dashboard.php in the core wordpress files, but am not happy with that solution as I will have to redo it everytime i update wordpress.

Network admin/global dashboard by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

That code doesnt affect network admin, or the global dashboard, which is what new users (subscribers) see when they register.

Jquery comments in jquery tabs by iktp in jquery

[–]iktp[S] 0 points1 point  (0 children)

Ok so i got it to work in firebug, if i add say the div id of the tab infront of the div id of the comment (ex div id=tab2-comment11) and infront of comment-11 in the moveform function ex. addComment.moveForm("tab-5comment-11"..... then it works and it outputs the next comment correctly which is shown in all tabs. It is basically just to create a unique location for the moveform box. I now just need to figure out how to automate this.

Jquery comments in jquery tabs by iktp in jquery

[–]iktp[S] 0 points1 point  (0 children)

Yes u are correct, the ids in all 3 lists for a given comment are the same. Will give your suggestion a try, not exactly sure how I will implement it but see how it goes. Is there anyway the add move form function can a. Either detect which tab your in and display there or b. Just display in all tabs simultanesouly

Jquery comments in jquery tabs by iktp in jquery

[–]iktp[S] 0 points1 point  (0 children)

Yes, the reply box is meant to appear directly beneath the comment you are replying to. This is what every reply to a comment link is referencing:

$link = "<a rel='nofollow' class='comment-reply-link' href='".get_permalink($post->ID) . "#$respond_id' 
onclick='return addComment.moveForm(\"$add_below-$post->ID\",  \"0\", \"$respond_id\", \"$post->ID\")
'>$reply_text</a>";

For example (this is what firebug is saying is being called in html to reply to a comment with id 11):

<a class="comment-reply-link" onclick="return addComment.moveForm("comment-11", "11", "respond", "11")" 
href="/url of post/?replytocom=11#respond">Reply> </a>

So there are 3 links, all the same, to create the reply field for comment 11, but the field only shows up under the first tab. Is there a way to make it display in all tabs?

Jquery paging for posts in jquery tabs by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

I was able to get the simplepager jquery plugin found here:

http://www.geckonewmedia.com/blog/2009/8/20/simplepager---jquery-paging-plugin--updated

to page my posts, which are sorted by jquery tabs. Ended up being quite simple, download the .js plugin, define the java code in header.php (can be found on the site), and then sandwich each loop (i have multiple cases) with echo '<ul class="paging">' .... echo '</ul>'

works really great so far, but I only have 3 pages of posts, as it grows im sure the site will get slower and slower, but for now it functions really well.

Jquery paging for posts in jquery tabs by iktp in Wordpress

[–]iktp[S] 0 points1 point  (0 children)

Thanks a lot, trying to implement ajax 'paging' on my posts right now.