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 » Post-Kicker, -Byline & -Footer »

[SOLVED] More option comment numbering on Byline.


  #1  
Old Apr 20, 2013, 04:26 AM
giacinto
 
10 posts · Apr 2013
[SOLVED] More option comment numbering on Byline.

Good morning and congratulations for the great theme.
In wp-includes (comment-templates.php) I changed the original function comments_number in order to have a fifth option ($ zero = false, $ one = false, $ less = false, $ more = false, $ deprecated = '').
The code works fine on the pages of posts.
What I ask is: how do I implement the same function to have the vision of the counts even in the setting of the byline?.
I use Ata 3.7.10 and wp 3.5.1
Thanks
  #2  
Old Apr 20, 2013, 04:44 AM
juggledad's Avatar
juggledad
 
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you'll probably have to edit bfa_postinfo.php but first I'd suggest you upgrade to 3.7.12
  #3  
Old Apr 20, 2013, 05:22 AM
giacinto
 
10 posts · Apr 2013
Thanks kind Mr. Juggledad.
Honestly though, I can not proceed. Can you be so kind as to tell me exactly where and what to change?.
Thanks
  #4  
Old Apr 20, 2013, 06:29 AM
juggledad's Avatar
juggledad
 
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
not really, not without knowing what you did to comment-templates.php and then spending a lot of time looking at the interaction.

This is not a theme issue and beyond what I'm willing to do for free because of how much of my time would be involved.

If you aren't capable of doing this, I suggest you advertise and see if you can hire someone to do it or rethink the need for this.
  #5  
Old Apr 20, 2013, 06:59 AM
giacinto
 
10 posts · Apr 2013
What you wrote is correct and I can not pretend, of course.
I hope that seeing the changes that I have made, you can guess if the problem is solved or not.
Thanks anyway gentle Mr. Juggledad.

Code:
function comments_number( $zero = false, $one = false, $less = false, $more = false, $deprecated = '' ) {
	if ( !empty( $deprecated ) )
		_deprecated_argument( __FUNCTION__, '1.3' );

	$number = get_comments_number();
	if ( $number > 1 && $number <12 )
		$output = str_replace('', number_format_i18n($number), ( false === $less ) ? __(' Comments') : $less);
	elseif ( $number >= 12 )
		$output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);
	elseif ( $number == 0 )
		$output = ( false === $zero ) ? __('No Comments') : $zero;
	else // must be one
		$output = ( false === $one ) ? __('1 Comment') : $one;

	echo apply_filters('comments_number', $output, $number);
...and others little pieces of code.

Two of the results are these:
Attached Thumbnails
Click image for larger version

Name:	atapost.jpg
Views:	1187
Size:	10.7 KB
ID:	2315  Click image for larger version

Name:	atapost1.jpg
Views:	1159
Size:	12.3 KB
ID:	2316  

Last edited by giacinto; Apr 20, 2013 at 07:55 AM.
  #6  
Old Apr 22, 2013, 05:49 AM
giacinto
 
10 posts · Apr 2013
Good afternoon Mr. Juggledad,
really you can't help me, just only addressing me on the right way?.
I'm sure that the others guys like the adding option.
Please!.
Best regards

Bookmarks

Tags
byline, comment numbering, more option

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Greg's Comment Numbering Plugin and Styling Nolie Comments, trackbacks & pings 9 Sep 28, 2017 03:42 AM
[SOLVED] &quot;Quick and Dirty Comment Numbering&quot; Not working for latest update of the the Shan_LSOS Comments, trackbacks & pings 5 Oct 26, 2010 12:03 AM
[SOLVED] Quick/Dirty Comment Numbering rickheck Comments, trackbacks & pings 8 Aug 25, 2010 10:20 AM
[SOLVED] Numbering comments using Greg's Threaded Comment Plugin perdox808 Comments, trackbacks & pings 7 Dec 6, 2009 10:16 AM
Please help... Comment numbering jmarsden92 Comments, trackbacks & pings 1 Jul 28, 2009 04:23 AM


All times are GMT -6. The time now is 01:21 AM.


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