|
#1
Sep 12, 2010, 07:20 AM
|
|
Array of Comments
Good afternoon,
I can't comprehend the composition of the array code for comments and plus, I'd like to have the composition of the code to meet the conditions specified in the list, then you can set, among other things, in the byline: "Homepage" - in the byline: "Multi Post Pages" and in the byline: "Single Post Pages":
* No comment.
* 1 Comment.
* %Comments (with the power to enter anything after 'Comments', if the number of comments is higher than 1 and less or equal to n).
* %Comments (with the power to enter anything after 'Comments', if the number of comments is higher than n.
* Comments are closed.
I hope I have been clear.
Thank you.
Sincerely, Andrea.
|
#2
Sep 12, 2010, 03:18 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
it's easy...well once you understand it
the first field is if there are 0 comments
the second field is if there is 1 comment
the third field is when there are more than 1 comment
the fourth field is when comments are closed
you can put anything in you want, you could use %comments('red', 'orange', 'yellow', 'green')%
and if you had no comments, you would get the word 'red', if there was one comment you would get 'orange' etc.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Sep 12, 2010, 03:50 PM
|
|
Good evening.
I'm afraid I did not well explained, but if you had better read what I wrote, you would understand that the conditions that I would are 5 not 4.
Repeating: I would like, instead of a single condition with a number of comments that is higher than 1, two conditions, namely: a condition with the number of comments that is greater than 1 and equal or less than that is "n" ( where "n" is a number to be set in the settings), the other condition, with the number of comments exceeds "n" (always with "n" set in the settings).
Thanks if you want to help me.
Andrea
|
#4
Sep 12, 2010, 07:16 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
If you would like to change it so there are five conditions, then you are going to have to dig into the themes code and figure a way to add the fifth case and add a new variable so you can have the 1 to nn case.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Sep 13, 2010, 12:39 AM
|
|
Good morning
Excuse me, but if you are unable to give me the help I'm looking for, why answer?.
I already admitted I have had difficulties to that code, so I'm not waiting for you to tell me what to do or where to go, I would be able alone to make these ridiculous decisions.
This is a support forum or what?.
I hope there is someone more prepared to respond to this forum!.
The administrator should imagine that our participation helps him to create the best solutions for its Thema.
Regards, Andrea.
|
#6
Sep 13, 2010, 04:41 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Excuse me, but I did give you the answer. You want a custom modification of the code. In my quick opinion, this will not be an easy change, therefore you have three options.
1) dig into the code and produce the modification to the code so it does what you want
2) hire someone to look at the code and produce the modification you want or
3) do without the option you want
I get the impression that you expect someone to jump on this and maybe spend several hours figuring out how to code the change you want, testing it and then handing it to you on a platter. But what is in it for that person?
While I give extensively of my time to others on the forum, I do it because many of them donate to me or I see an question that intrigues me or I know the answer off the top of my head. However, if in my opinion a request will signafant time, I will let someone know that the are free to dig into the code or they can contact me in a PM and I'll quote them my rate.
However you are free to wait for someone 'more prepared to respond' - good luck
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Hybrid Mode
|
|