quiksilver189
Forum Replies Created
-
Forum: Hacks
In reply to: Creating a Comment History?Tried it – still the same issue. 10 posts per page, by the way. Can you think of any way to use the $page instead?
If not it’s not the end of the world – you’ve done more than enough!
Forum: Hacks
In reply to: Creating a Comment History?Actually I thought about it, and WP-paginate is unlikely to be the problem. It uses the regular structure for pages and interlinking between pages, but just creates more links to non-adjacent pages for ease of navigation. I think for this scenario we can ignore that it exists.
http://codex.wordpress.org/Function_Reference/get_comment_link
I’m looking around here and it seems that we can set the $per_page argument to maybe tell the get_comment_link when a post will be on another page. Since it defaults to 0 and it isn’t set in the code you gave me last, maybe that’s why it’s only linking to the first page of comments? Again, I’m totally ignorant of how php works, so maybe this is all gibberish. Or maybe we can use a bit of the code you gave earlier to tell it what to use for the $page argument?
Forum: Hacks
In reply to: Creating a Comment History?The links seem to be forming correctly now (with the pages in the generated link), but it seems that regardless of what page the actual comment is on, they all link to page 1 of the comments.
For example:
http://www.homepageurl.com/archives/209/comment-page-1#comment-90
Despite that comment being on page 2
Forum: Hacks
In reply to: Creating a Comment History?Tried it out, no dice. It looks like the links being generated for second-page comments aren’t following the $page > 1 conditional, so they look exactly like links to comments on page 1, but with a different post ID. They end up just linking to the first comment on the first page then. I’m wondering if the stored post ID isn’t storing anything about what page it’s actually on?
Also, if it helps, here’s what the link to a comment on another page looks like (since you’re linked to it after posting it):
http://www.homepageurl.com/archives/209/comment-page-2#comment-89
Or maybe I’m overthinking it. Thoughts?
Forum: Hacks
In reply to: Creating a Comment History?http://www.homepageurl.com/archives/209/comment-page-2#comments
whereas when it’s page one it’s just:
http://www.homepageurl.com/archives/209#comments
the 209 is just the blog post number.
Forum: Hacks
In reply to: Creating a Comment History?It looks like that works perfectly for any comment that’s on the first page of comments, but anything after page 1 (thus comment 10) it just links straight to the first page of comments. Any ideas? I’m using WP-Paginate if that helps at all.
I must say again, you are incredibly helpful. Thank you so much!
Forum: Hacks
In reply to: Creating a Comment History?Thank you so much! That’s perfect, you’ve been unbelievably helpful.
My last, last question, and this one might be a bit harder. So I have my comments set up into pages of 10 comments each, and with this history page, ideally the links of each comment post would jump straight to the exact spot on the page, on the correct page of comments. So if I posted the 22nd comment on a post, clicking the link would bring me to the second page of the comments, a bit down the page to view my exact comment. How might I alter this template to adjust the links in that way?
Forum: Hacks
In reply to: Creating a Comment History?That’s precisely what I’d like to do!
Now, in terms of implementation, how would I put this on a page such that it’d work for anyone who’s logged in and viewing that page? Or at least, what’s the easiest way?
Forum: Fixing WordPress
In reply to: Limiting the amount of text generated by '%link'…No, not quite. I’m talking about the navigation on a post page that brings you to other post pages, not the link that brings you from an excerpt to the post that was excerpted from.
This is the code that I’m looking to alter
<div id="nav-above" class="navigation"> <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> </div><!-- #nav-above -->Forum: Themes and Templates
In reply to: Removing the "Notify me if…" from Comment form?Yeah, I noticed the options in my Discussion settings from Jetpack, but neither of them are checked and yet the boxes persist.
That did, however, point me in the right direction to editing the Jetpack plug-in. I deleted all the content from Subscriptions.php, and that got rid of them easily enough. It’s also easy enough to redo it should an update roll around, and I’ve got the original backed up. Thanks for all the help!
Forum: Themes and Templates
In reply to: Removing the "Notify me if…" from Comment form?Thanks for the concern – I’m using a copied and modified version of Twenty Ten, with the original in tact and not being edited. All my edits have been done to the modified version, which is saved separately.
That aside, any tips for getting rid of the Notify features?