Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

HomePage Excerpt Error in Comment Link Text


  #1  
Old Apr 27, 2011, 08:58 AM
RolandK
 
7 posts · Apr 2011
I have version 3.5.3. My blog has many post titles that refer to coupon amounts and savings. I've noticed the homepage excerpts for some titles generate an error in the comment link/text. See attached image 'comments-link' which shows this
"/1 Dole Salads Coupon!">5 comments "
instead of
"5 comments"

Seems to happen when the title contains special characters like colon and dollar sign with a number:
e.g. COUPONS: Rare $1/1 Dole Salads Coupon!

Had a similar error on a post called COUPONS: $1/1 Horizon Dairy Product + More!

Is this a known error? What can be done until the software is fixed? Thanks
Attached Thumbnails
Click image for larger version

Name:	couponproblog.com title.png
Views:	1823
Size:	2.9 KB
ID:	1321  Click image for larger version

Name:	couponproblog.com comments-link.png
Views:	1828
Size:	5.4 KB
ID:	1322  
  #2  
Old Apr 27, 2011, 12:01 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
This post might help you. Be sure and do the rename of the original file just in case so you can go back if it doesn't work. I mentions it is for Atahualpa 3.4.6 but the files may be the same but all the more reason to no overwrite the original file.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Apr 28, 2011, 07:11 AM
RolandK
 
7 posts · Apr 2011
Thanks lmilesw, but I'm reluctant to try since that thread from Mar 2009 also says
"This fix will be included in version 3.5.4 which should be out shortly "

Any other ideas that are more specific to the comments line on homepage?
  #4  
Old Apr 28, 2011, 07:22 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what is the url?
I just put that title in a post on 353 and have no problem. Edit the post and what is in the 'Atahualpa Post Options' section of the post page?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 28, 2011, 11:13 AM
RolandK
 
7 posts · Apr 2011
url is http://couponproblog.com
the title problem does not show on individual page view, but only on homepage excerpt or if search results return that post (e.g. look at this search page to see it: http://couponproblog.com/?s=dole+salads

The page options are:
Footer homepage:
<image(comment-gray.gif)> %comments('Leave a comment', 'One comment', '% comments', 'Comments are closed')% &nbsp; <image(folder-gray.gif)> %categories-linked(', ')% %tags-linked('&nbsp; <image(tag-gray.gif)> ', ', ', ' &nbsp; ')% %edit(' | ', 'Edit', '')%
__________________________________________________ ____
  #6  
Old Apr 28, 2011, 11:21 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
What happens if you use a dash instead of a slash?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Apr 28, 2011, 12:21 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ok, I've reproduced it, let me take a look...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Apr 28, 2011, 03:14 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
This is caused by the '$1' it's being treated as a variable in an area of the code. if you change it to '$ 1' there will be no problem. I've sent a note to Flynn about a possible fix, but it could take a number of days before he has time to look at it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Apr 28, 2011, 04:03 PM
RolandK
 
7 posts · Apr 2011
Thanks so much for replicating and finding the problem so quickly!
I'd appreciate if you notify me when he has looked at it so I can circumvent until the fix gets in the next release. As you can imagine, the reader sees the difference

COUPONS: Rare $ 1/1 Dole Salads Coupon!

since we read the dollar sign without spaces.

Would $1.00/1 work any better as a circumvention?
  #10  
Old Apr 28, 2011, 04:57 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Nope, it's the dollar sign next to the number one '$1' so '$1.00' would still cause the issue. May even be a problem if you used $0.99 or $2.00
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old May 5, 2011, 06:10 PM
RolandK
 
7 posts · Apr 2011
Hello Juggledad,
The problem is a bit more urgent now that it causes my posts to completely disappear. I had decided to live with the incorrect text around the 'leave a comment' link on homepage rather than add space in the title. But today I published such a title, lost posts immediately (on viewing). Put the post in draft mode and the other published posts reappeared. My posts had been vanishing a bit lately and I had to have support repair the database, but this time I see the $ connection in this mishap more clearly!

can you expedite this for me? thanks for your help.
  #12  
Old May 5, 2011, 06:18 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm still waiting for a response from the developer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Jan 16, 2012, 12:50 PM
tizmeashley
 
3 posts · Jan 2012
Is there an update on this issue? I am experiencing the same problem.

Thanks!
  #14  
Old Jan 16, 2012, 02:21 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I believe this was handled in a patch or a later version of Atahualpa. Which version are you using?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #15  
Old Jan 17, 2012, 11:28 AM
tizmeashley
 
3 posts · Jan 2012
I'm using WordPress 3.3.
  #16  
Old Jan 17, 2012, 12:24 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
He means what version of Atahualpa are you using - the current version is 3.7.3
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #17  
Old Jan 17, 2012, 03:08 PM
tizmeashley
 
3 posts · Jan 2012
oh, ha! Silly me sorry about that -- I'm using Atahualpa 3.6.4, so it's possible updating will correct my problem?
  #18  
Old Jan 17, 2012, 03:15 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Updating or adding patches. Be sure and do a manual update "just in case".

There are instructions for manually updating in the new versions and updating forum.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #19  
Old May 10, 2012, 05:12 PM
RolandK
 
7 posts · Apr 2011
Hi,
I'm back but regarding a different blog. It's a year since we discussed this problem and I have the latest version 3.7.6 downloaded directly (not an update of earlier version). The problem happens only on the home or category pages since that's where the post info puts the link to the 'leave a comment' using the title (the actual slug does not have the $ sign!). Now it seems to repeat the category and tags and then messes up the link: (see attachment) the title is
$1.50/1 Clorox 2 Product Coupon + Target & Dollar General Deals while the slug is
http://dealdetectingdiva.com/2012/05...al-deals.html/


Here's an example on the tag page: http://dealdetectingdiva.com/tag/cleaning/

Use of $1 is common on couponing sites, so this error is very frustrating and causes folks to change themes... "$ 1" is not how people write or read numbers... Please advise as soon as possible.
Attached Thumbnails
Click image for larger version

Name:	dealdetectingdiva.com bad footer.png
Views:	1409
Size:	4.9 KB
ID:	1869  
  #20  
Old May 10, 2012, 07:29 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'm sorry this fell thru the cracks . I've just sent another email to Flynn and will nag him till we have a solution. Feel free to nag me too.

I'm also going to look at the code though it has to do with a 'preg_replace' statement and they make my head hurt.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #21  
Old May 11, 2012, 03:30 PM
sudipto's Avatar
sudipto
 
15 posts · Feb 2011
LetusBuzz.com Powered by Wordpress and Atahualpa
Add the below code to functions.php
===============================

PHP Code:
function suppress_dollar_in_title($title$id) {
    
$title=str_replace('$'"&#-36;"$title);
    return 
$title;
}
add_filter('the_title''suppress_dollar_in_title'12); 

==========================================
the code simple filters the post title and replaces the $ sign with HTML code of $ sign
&#-36; --- please note remove the dash (-) in the above code.. since its an HTML code its getting converted into dollar

Last edited by sudipto; May 11, 2012 at 03:45 PM.
  #22  
Old May 11, 2012, 03:47 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
sudipto - nice try, but it doesn't work. This has to do with this line of code
HTML Code:
			$postinfo = preg_replace("/(.*)%comments\((.*?)\)%(.*)/i", "\${1}" .
    	    $comment_link. "\${3}", $postinfo);
and preg_xxxxx's hurt my head

p.s. I tried adding
HTML Code:
			$postinfo=str_replace('$', "$", $postinfo);
just before thise lines and no change.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #23  
Old May 11, 2012, 04:27 PM
RolandK
 
7 posts · Apr 2011
Well it seems to do the trick as a 'work-around' until the theme code is changed. See the page I gave before as badly formatted: http://dealdetectingdiva.com/tag/cleaning/

looks fine after Sudipto's php code...
  #24  
Old May 11, 2012, 04:44 PM
sudipto's Avatar
sudipto
 
15 posts · Feb 2011
LetusBuzz.com Powered by Wordpress and Atahualpa
Quote:
Originally Posted by juggledad
sudipto - nice try, but it doesn't work. This has to do with this line of code
HTML Code:
			$postinfo = preg_replace("/(.*)%comments\((.*?)\)%(.*)/i", "\${1}" .
    	    $comment_link. "\${3}", $postinfo);
and preg_xxxxx's hurt my head

p.s. I tried adding
HTML Code:
			$postinfo=str_replace('$', "$", $postinfo);
just before thise lines and no change.
The dollar sign is creating problem then just replacing it will the HTML of $ is the best alternative. The function that I added works.
  #25  
Old May 11, 2012, 04:47 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Ahh much better with the ascii values in it. I'll pass this on. Thanks sudipto
__________________
"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; May 11, 2012 at 04:59 PM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
thumbnail and excerpt text float chipbrock Center area post/pages 10 Jun 14, 2010 07:00 PM
Developed a new Category Error when in Excerpt Mode pennyb46 Page & Category Menu Bars 1 May 31, 2010 12:27 PM
[SOLVED] Excerpt Error: &quot;Fatal error: Call to undefined function: the_post_thumbnail( buzz628 Excerpts, Read more, Pagination 2 Jan 15, 2010 03:58 PM
Full Post instead of Excerpt after posting a comment? adum Excerpts, Read more, Pagination 4 Jul 11, 2009 04:19 PM
Excerpt not showing [...], so i can't replace it with a read more link 25jai Excerpts, Read more, Pagination 4 Jul 10, 2009 10:20 AM


All times are GMT -6. The time now is 08:41 AM.


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