Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

date / time link in comments


  #1  
Old Jun 27, 2009, 12:03 PM
janey73
 
15 posts · Jun 2009
I want to disable the link in the date / time stamp for comments, but can't find where to do that. I still want the date / time stamp to show, just not be a link. Suggestions, please.
  #2  
Old Jun 27, 2009, 03:08 PM
fromtheranks
 
149 posts · Apr 2009
Dev Env't: XP Pro SP3, IIS 5.1, MySQL 5.1, PHP 5.2.x, WP 2.7.1, Atahualpa 3.3.3, IE 7, FF 3.0.x
Janey73,

Did you know, and I just noticed this the other day on a site with a lot of comments, that clicking on the date scrolls the page of comments? The comment moves to the top of the page. Handy feature requiring less use of the mouse's scroll wheel.

Hope this helps.
  #3  
Old Jun 29, 2009, 07:16 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You would have to replace
PHP Code:
        <a href="<?php echo htmlspecialcharsget_comment_link$comment->comment_ID ) ) ?>">
        <?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')),  get_comment_time()) ?></a>
with
PHP Code:
<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')),  get_comment_time()) ?>
in functions/bfa_custom_comments.php

but as fromtheranks mentioned, the link can be useful, just so you know
  #4  
Old Mar 8, 2010, 12:27 AM
Zona
 
30 posts · Jan 2010
Thanks for an amazing theme!!

What if I would like to change the color of the date/time line in each posted comment. Where would I make that change? (I've been able to change author and posted comments lines in CSS Inserts using this BFA Post: http://forum.bytesforall.com/showthr...style+comments)

Also:
How would I put the AUTHOR(of comment) + DATE/TIME on the same line so it reads something like:

Posted by Zona on March 7th, 2010 at 8:30pm


And last question:
How would I move this newly created line below the actual comment content so it reads something like this:

Incredible post. I can't wait for the next one!
Posted by Zona on March 7th, 2010 at 8:30pm

Last edited by Zona; Mar 8, 2010 at 12:40 AM.
  #5  
Old Mar 8, 2010, 05:45 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you look at the generated source of a page with comments, you will see something like this
HTML Code:
	<a name="comments"></a><!-- named anchor for skip links -->
	<h3 id="comments">3 comments to Post with thumbnail and image</h3>

	<div class="navigation-comments-above"><a class='prev page-numbers' href='/wordpress/?p=27&cpage=1#comments'>&laquo; Older Comments</a>
<a class='page-numbers' href='/wordpress/?p=27&cpage=1#comments'>1</a>
<span class='page-numbers current'>2</span></div>
	<!-- Comment List -->
	<ul class="commentlist">
		
			<li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1 clearfix" id="comment-12">
		<div id="div-comment-12" class="clearfix comment-container bypostauthor">
		<div class="comment-author vcard">
				<span class="authorname">admin</span>
		</div>
				<div class="comment-meta commentmetadata">
		<a href="http://yourdomain.com/wordpress/?p=27&amp;cpage=2#comment-12">
		February 23rd, 2010 at 1:45 pm</a>
        <span class="comment-reply-link"><a rel='nofollow' class='comment-reply-link' href='/wordpress/?p=27&cpage=2&replytocom=12#respond' onclick='return addComment.moveForm("comment-12", "12", "respond", "27")'> &middot; Reply</a></span>				</div>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi varius vestibulum rutrum. Quisque in ligula lacus, sed scelerisque nisl. Proin congue sodales leo ac eleifend. Curabitur mollis accumsan varius. Donec a velit risus. Integer egestas, sapien in pellentesque sagittis, odio leo posuere turpis, a ultrices quam est sit amet lacus. Nunc at lectus elit, vitae egestas augue. Maecenas auctor tempus leo, vitae egestas magna ornare sit amet. Morbi sollicitudin convallis scelerisque.</p>
		</div>
if you look, you will see the date is part of an anchor '<a...> that is part of a <div..> with a class comment-meta. With this information, you can construct a CSS Selector and the rules you want to apply.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 18, 2010 at 04:00 AM.
  #6  
Old Mar 8, 2010, 10:49 PM
Zona
 
30 posts · Jan 2010
Apologies -- I'm a little slow on this one... so to change the date color and rearrange the order of the content... I need to write code to put in CSS Inserts and you suggest creating that code from the example of what I see when I view the source code on a page running comments -- is that correct?

Thank you.
  #7  
Old Mar 9, 2010, 04:50 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You will create a CSS selector and CSS rules to affect the HTML element and put them in the CSS Inserts area. If you think of number of things that can be styled on a page, the number is staggering because every HTML element could be uniquely styled.

Atahualpa gives you the ability to change a lot of them thru it's options, but not all of them. Each option actually is put into a CSS Selector/rule for the site. Since Atahualpa doesn't have options for every single possible element, it has the 'CSS Inserts' area so you can add selectors/rules that you need for your site.

In the example above, if I wanted to change the date/time to show up BLUE, I would code
HTML Code:
div.comment-meta a { color: blue;}
the 'div.comment-meta a' says 'for every link element (<a>) that exists inside a <div> that has a class of 'comment-meta', change teh text color to blue'. Note that since there is a <span> with an <a> in the same <div>, the text in that <a> will also be effected since it is an <a> inside teh <div> that has a class 'comment-meta'. If you wanted that text (the word 'Reply') to be black, you would have to code another CSS selector/rule like
HTML Code:
div.comment-meta a span a{ color: black;}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Mar 18, 2010 at 04:01 AM.
  #8  
Old Mar 10, 2010, 11:59 PM
Zona
 
30 posts · Jan 2010
Hi JD: thanks for replying so quickly. I will work on this and let you know my progress...

Many thanks.
  #9  
Old Mar 18, 2010, 02:31 AM
Zona
 
30 posts · Jan 2010
Hi JD: Ok - I failed at this challenge and am rethinking what I want and can do. I'd like to just delete the time from my commenter's responses -- can I do this by deleting the section referring to time in comments_paged.php?

My commenter's responses now read:
March 11th, 2010 at 11:32pm

I'd like it to read:
March 11th, 2010

My comments_paged.php reads:
<span class="commentdate">
<?php // Comment Date and Time
printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?>
</span>

I would change it to read:
<span class="commentdate">
<?php // Comment Date
printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa'))?>
</span>

This is so simple... but, am I even close??? :-)

Thanks, Zona
  #10  
Old Mar 18, 2010, 05:16 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
looks like it will work, give it a try
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Mar 22, 2010, 03:38 AM
Zona
 
30 posts · Jan 2010
Hi JD: The edit I proposed didn't work for me. I also edited another line in comments_paged.php that referred to time:

<?php // Comment Date and Time
printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?>

and changed it to:
<?php // Comment Date
printf(__('%1$s at %2$s'), get_comment_date(__('F jS, Y','atahualpa')) ?>

but still no success

Any ideas?

Thanks, Zona
  #12  
Old Apr 6, 2010, 07:04 PM
Zona
 
30 posts · Jan 2010
Still working on this one... double-checked to see that I had taken all commands for time in comments_paged.php. Looks like I got everything...

Does anyone have any suggestions?
  #13  
Old Apr 18, 2010, 05:41 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try changing it to:
HTML Code:
<?php // Comment Date
printf(__('%1$s), get_comment_date(__('F jS, Y','atahualpa')) ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #14  
Old Apr 21, 2010, 05:39 PM
Zona
 
30 posts · Jan 2010
Hi JD: Thanks for the reply. Unfortunately, that didn't work for me. (I saw two instances for code on Comment Date and I changed both places to the code you gave me.)

Any other ideas?
  #15  
Old Apr 22, 2010, 06:39 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
edit bfa_custom_comments.php and change line 23 (in version 3.4.6) from
HTML Code:
		<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')),  get_comment_time()) ?></a>
to
HTML Code:
		<?php printf(__('%1$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa'))) ?></a>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #16  
Old May 7, 2010, 06:38 PM
Zona
 
30 posts · Jan 2010
You got it JD! Worked perfectly (in version 3.4.4)!!

Thank you very much!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
date of comments Francesco788 Atahualpa 3 Wordpress theme 4 Jun 4, 2009 09:15 AM
Weird phrase showing up instead of comment time / date Taquoriaan Comments, trackbacks & pings 0 May 15, 2009 10:49 PM
Changed board time to US Central Time and AM/PM Flynn Forum How-To 4 Apr 1, 2009 09:09 AM
External Link in Byline Date cdevenish Post-Kicker, -Byline & -Footer 0 Mar 27, 2009 01:50 PM
comment time/date info shady Comments, trackbacks & pings 1 Feb 27, 2009 04:38 AM


All times are GMT -6. The time now is 09:06 AM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.