possible bug in the blog's excerpt feature(s)?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/6/2010 11:40:52 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

possible bug in the blog's excerpt feature(s)?

I just noticed something really strange, which seems somewhat "buglike" to me, so I thought I should mention it.

In the blog feature:  I have the feature's settings configured to use the excerpt feature, with a defined 360 char length.  However there may be excerpts that don't fit well in that length, so I use the "excerpt" tab when editing the actual post.  However, when I enter the excerpt that I want in that tab, it changes the "suffix" at the end of the excerpt; it no longer shows my defined "Read More..." text -- instead it shows the disqus "0 comments and 0 reactions" link, despite that this link is already present at the very bottom of each post.

Weird, huh?

 

this is, BTW,

Mojo v2.3.5.4,

MSSQL,

ASP.NET Version v2.0.50727 Running in Full Trust,

Microsoft Windows NT 6.1.7600.0

 

Dunno if any of that is relevant, but some forums won't even read an ostensible bug report without all that sort of thing.

Thx,

Andria

PS: you can see this weirdness in action at http://blog.crypticsites.net/ -- the blog post "Whither Irregular Verbs?" is using the tabbed excerpt rather than the standard one defined in the feature's settings, so the suffix is goofy....

11/8/2010 8:37:58 AM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

Wondering if anyone who would know has seen or looked into this yet.  I've examined the situation further, and I've noted that when you use the tabbed excerpt rather than the one generated by the blog feature's defined-length excerpt, it keeps its markup (bold, italic, etc), and it's enclosed in the standard paragraph tags added by the wysiwyg editor -- the blog-generated excerpt appears to strip all markup, and it doesn't use any <P> tags, it's simply <div class="blogtext">the stripped txt</div>. (what the heck did I do before there was firebug?!)

For this reason (the stripping of markup), I'd have to say I prefer the non-stripped, available by using the tabbed excerpt -- but that weird appending of the comments link rather than the Read More link really needs to get fixed-- if you can tell me where that code is and what it should be instead, I can probably do the edit myself -- it's only the inclusions of the ASP code that sometimes throws me for a loop, the HTML is no biggie.

Thx,

Andria

11/8/2010 9:10:41 AM
Gravatar
Total Posts 18439

Re: possible bug in the blog's excerpt feature(s)?

Hi Andria,

I cannot produce the problem you describe, when I edit an excerpt directly it still shows the read more link. The only thing I can think of that would break it is if there is invalid markup in the excerpt like a missing closing tag or an extra closing tag somewhere.

Can you try to produce the problem on demo.mojoportal.com?

One thing to note is that the excerpt length is only used/enforced if excerpts are generated automatically (in which case markup is removed and the excerpt is plain text so that we avoid leaving out any closing tags which could happen if we arbitrarily truncate markup to a set length). Once you enter something directly in the excerpt it uses whatever you enter there as is and just appends the more link.

Best,

Joe

11/8/2010 4:37:39 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

Hmm.  I went to demo.mojoportal.com.  When I tried adding a new post to the blog, when the page opens for that, there is no tab for "excerpt," just tabs for "content" (where the post is actually entered), and "page meta data".  When I went into the feature settings for the blog, there are no jquery tabs, so there is nothing past "date/time format string" -- no way to even check and see what the excerpt settings are.

I did note that that demo site is running mojo 2.3.5.5, and mine is still 2.3.5.4 -- could it be some difference between versions, or, is the demo site setup to use excerpts at all -- it's one of the jquery tabs that aren't showing up in the demo site's blog feature settings page.

Thx!

Andria

11/8/2010 4:56:07 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: possible bug in the blog's excerpt feature(s)?

Hi Andria, check the blog instance settings. The "use excerpt" setting probably has to be enabled at the feature level.

Actually, I just reread where you said that there were no jquery tabs in the feature instance settings for the blog. You could try another skin and see if that helps. I took a look at the demo site and it's the "green lagoon" skin, and the jquery tabs are there for me. I did have to scroll down a bit to see the other tabs though. Maybe Joe can fix all that extra space in a later revision.

Jamie

11/8/2010 8:24:14 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

Ok, when I went back to the demo site, there was another skin active, so I checked again, and did see the jquery tabs; I set it to use excerpts, and I am also unable to reproduce the error, so at this point I'm thinking I should upgrade my 2.3.54 to 2.3.5.5, and see if that might fix it.  So I'll go and download the whole site, and backup the database, and then do the upgrade.

Thx,

Andria

11/8/2010 8:51:29 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

I may have found the problem; before going to the extent of doing the upgrade, I changed the comment system from Disqus to Internal -- and now I get the "read more" link -- so it's evidently something in the code that pulls up the disqus comment link rather than the read more link, but only when using the tabbed excerpt, not the default mojo-generated excerpt.

I went back to the demo site and changed the blog's comment setting to Disqus, but I'm not sure it "took;" the link still says "Feedback" rather than "0 comments and 0 reaction", and I was not able to reproduce the error I'm seeing, so it may be confined to 2.3.5.4 (and possibly earlier).

Andria

11/8/2010 10:55:16 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

Further on this weirdness... I went ahead and got an IntenseDebate account, and am using that now instead of Disqus, and the "read more" link appears just fine, whether I use the blog-generated stripped excerpt (and yes that makes beautiful sense to strip markup, so as not to leave any of those messy unclosed tags) or I enter the excerpt myself in the tab -- of course, because it doesn't strip the <p>, it does put the read more link on the next line, as the </p> automatically kicks to the next line.  so maybe I'll just change the look of the Read More link, to make it fit better visually.

I read someplace else in this forum when I was trying to learn how to use the thing, that the IntenseDebate comment system seemed to cause far less problems all round, so I figured it was worth trying out.  I like that the mojo code seems to play nicer with it, but again, I think the problem I've seen with this might already be resolved with the newer 2.3.5.5 release.  I never was able to reproduce the weird link at the demo site, though I tried getting everything set up as it is here -- but then again, I didn't go into site admin and change the comment system there, so perhaps that might be a factor as well.

At least now I have a working Read More link, even if I use the tabbed excerpt (which I do like, for the ability to customize the excerpt length, and retain markup), so that's all to the good, problem solved.  And now I have a much better grasp about the markup stripping/not-stripping -- thanks y'all!

Andria

11/9/2010 6:13:40 AM
Gravatar
Total Posts 18439

Re: possible bug in the blog's excerpt feature(s)?

Hi Andria,

It sounds like the javascript from Disqus may be doing something to the html on the page. My guess is that you really did not get it configured fully for Disqus on the demo site. It would require a valid Disqus Short Name in addition to choosing Disqus as the comment system. Probably if fully configured it would result in the same problem you described.

I do think IntenseDebate has less problems.

Best,

Joe

11/9/2010 5:02:22 PM
Gravatar
Total Posts 147
Download Free Mojo Skins http://crypticsites.net

Re: possible bug in the blog's excerpt feature(s)?

You may be right about the javascript, but I have rarely been able to decipher much javascript, so there's no way I can look at it and figure out what's wrong with it.  Switching to a different comment system works for me, as it will serve to keep my .net sites distinct from my .com sites, which are all on a Linux server, running Joomla and disqus (though I'm planning to move one of my .coms to another mojo site on the .net server, just because my son, who is the ostensible admin for my book review site, finds the joomla backend almost incomprehensible -- it took me about 2 yrs to get really conversant with it).

At some point I'll revisit the demo site and try that, setting the comment system to disqus in the system admin, and see if that will reproduce the error; at least if it can be reproduced in 2.3.5.5 it would indicate that it didn't get inadvertently fixed with the new release.  It could be something as simple as a misplaced semi-colon and javascript would have a hissy fit.  wink

Andria

You must sign in to post in the forums. This thread is closed to new posts.