![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Have you modified that file at all, sparrowhawk? The reason I ask is that the ABBR HTML tag that wraps the date is missing from your code.
If you paste the entire contents of the file here in [php] tags or at our paste bin, I'll make sure you get the correct code to edit to add in an edit link.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
Rick just absolutely ROCKS!!!
Now that I've sucked up just a tad (though my statement is quite true), what would it take to put a similar function into the comments? I rarely edit a comment, but the occasional spam does slip through and it's easier to nuke it via an "edit" link in the comment as opposed to going in through the dashboard. I'm assuming something goes somewhere in the comment_functions.php file. I'd even hazard a guess it goes somewhere in here: Code:
<p class="to_comments"><span class="bracket">{</span> <a href="<?php the_permalink() ?>#comments" rel="nofollow"><?php comments_number(__('<span>0</span> comments', 'thesis'), __('<span>1</span> comment', 'thesis'), __('<span>%</span> comments', 'thesis')); ?></a> <span class="bracket">}</span></p>
|
|
|||
|
This doesn't include any styling, but since only logged in users with the right to edit comments will see it, styling doesn't seem too important.
Anyway, in comments.php, find this: Code:
<strong><?php comment_author_link(); ?> </strong><span class="comment_time"><?php comment_date('m.d.y'); ?> at <?php comment_time(); ?></span>
Code:
<?php edit_comment_link('Edit', '<span class="edit_comment"> | ', '</span>'); ?>
Code:
.custom .edit_comment { }
![]()
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
Quote:
PHP Code:
![]() |
|
|||
|
Okay, replace this bit of code:
Code:
get_the_time('F j, Y') . ''; ?>
Code:
get_the_time('F j, Y') . ''; edit_post_link('Edit', ' | '); ?>
![]()
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! Last edited by kingdomgeek : 08-14-2008 at 07:32 PM. Reason: code fix |
|
|||
|
Oops I did the edit and received:
Parse error: syntax error, unexpected '<' in /homepages/13/d176864820/htdocs/blog/wp-content/themes/thesis/lib/functions/content_functions.php on line 48 ![]() I put the original back and now I will sit on my hands. ![]() |
|
|||
|
Maybe I should sit on my hands! I fixed the code in the above post for you; I left out "?>" in the line that you needed to copy in. Should work fine now.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
Quote:
Thank you, it works fine on my blog! |
|
|||
|
Works perfectly, thanks for all the help you give!
|
|
|||
|
Prior to updating today to Thesis 1.1, I used the code below from kingdomgeek and it worked perfectly.
Quote:
I'm wondering if there is a new code that I have to use to get the edit posts functionality back. Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|