Hi,
here is continuation of this issue: http://drupal.org/node/629990#comment-2287084
I tried to change the modules weight with util module and nothing happened. I tried the off Fivestar module and the same result. Please see new screen in attachment:

Comments

todd nienkerk’s picture

Title: Read More link not inserted properly » Read More link not inserted properly when Fivestar appended to the teaser

djs_core: Can you verify that you're using RC5 and that you have selected the "Inline" option and have saved the settings page?

gregarios’s picture

I'm not seeing a closing </p> in your screenshot of the code in your site. Could that have a bearing on it?

djs_core’s picture

StatusFileSize
new88.24 KB
new119.46 KB
new20.34 KB

Todd Nienkerk: Answer -> Yes. Please see new screenshots screen1 and screen2. (for better clarity I have now turned off the module Fivestar).

gregarios: Please see new screenshots screen3 (here you can see that the tag is closed)

gregarios’s picture

StatusFileSize
new62.75 KB

Yes. I see your tag closed, now how can this be explained...
My settings are the same as yours, but my read-more link falls between the two <p> tags.

I'll see your 3 screenshots and raise you one of my own, lol:

todd nienkerk’s picture

djs_core: Regarding the inline setting, you're sure you have saved the settings page? It's possible you are seeing a default value populating a settings form without it actually being saved to the database.

Also, have you run update.php since upgrading the module?

djs_core’s picture

StatusFileSize
new14.87 KB

Yes! I have saved the seleceted settings and i have run update.php since upgrading the module ... See next screen ;)

djs_core’s picture

Todd Nienkerk: You still need from me some information ? Now I have no idea ...

todd nienkerk’s picture

djs_core: This is a difficult problem to diagnose, as several modules could be altering the teaser by the time it reaches this one. Can you post a list of modules you have enabled?

djs_core’s picture

StatusFileSize
new124.91 KB

Todd Nienkerk: Here is ;)

todd nienkerk’s picture

djs_core: That's a long list! :)

Do you have a development instance of your site that you could use to diagnose this problem? The only thing we can try is disabling all non-core modules (except Read More link), seeing if the problem is fixed, and re-enabling each module until the problem reappears.

djs_core’s picture

Todd Nienkerk: Ok. I try ;)

djs_core’s picture

Todd Nienkerk: Good news! We have found the problem ;) Read More link conflicts with module Smileys (when I turned off, Read More link module works!)
But now the question. How to solve this conflict?

todd nienkerk’s picture

djs_core: Thank you for looking into this! When I have some spare time this week, I'll try to replicate the problem.

todd nienkerk’s picture

Title: Read More link not inserted properly when Fivestar appended to the teaser » Read More link not inserted properly when Smileys is enabled

Changing the issue title to reflect recent findings.

djs_core’s picture

Todd Nienkerk: Ok. I also thank you ;)

bkat’s picture

I think I am having the same problem with rc7 and the inline module. If I attach an image to a node and display it with [inline:file.jpg] the read more link is not where it should be. Like the referenced bug report, it seems to calculate the position before the inline filter is run but substitutes the text after the inline filter expands into a much longer string.

bkat’s picture

I did some investigating into my issue. What's happening is that the module is calling preg_match() against the body to calculate the insertion point but then modifying the teaser at that point. These don't necessarily match if some other module or filter has modified the teaser but not the body.

todd nienkerk’s picture

bkat: We're calculating the insertion point using but applying it to the teaser in order to support the display of CCK fields. (If we calculate the insertion point using the full teaser, the link gets added after the CCK fields instead of the end of the node body.)

I realize the logic seems a bit twisted, but it's the best way we've found so far to support the display of CCK fields in the teaser. This is a work in progress, though, so this may change in a later release.

bkat’s picture

Couldn't you add a callback to the $node->content['#pre_render'] array that modifies the $node->content['body'] ? (called in drupal_render()) Since the $teaser isn't passed into the callback, perhaps you could set the callback in node's view callback if $teaser is true in the view callback?

I'm not super versed in the drupal API so please pardon any glaring holes I may have missed.

todd nienkerk’s picture

bkat: If you're still experiencing problems with the Inline module, can you open a separate issue for it? I want to stick to the Smileys issue in this thread. (It'll save me a headache! :)

todd nienkerk’s picture

Version: 6.x-5.0-rc5 » 6.x-5.0-rc7
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new53.95 KB
new77.48 KB

djs_core: I was not able to duplicate this problem using 6.x-5.0-RC7.

However, when I first enabled Smileys, it caused the Read More link to move to a new line (i.e., it got wrapped in a <div> instead of a <span>). I was able to fix this by rearranging my input filters so that the Smileys filter was run before "Line break converter" and "HTML corrector."

Can you try rearranging your input filters to find something that solves it?

djs_core’s picture

Todd Nienkerk:
Yes, this solution works ;) But I have "Line break converter" and "HTML corrector" on my site disabled ...

todd nienkerk’s picture

djs_core: Does this mean you'd consider this issue fixed?

djs_core’s picture

Todd Nienkerk: It depends on how it takes ;) If the two filters are active, this solution works, but when are not active, this solution not works...

todd nienkerk’s picture

Assigned: Unassigned » todd nienkerk
Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

After further testing, it's clear this is an input filter ordering issue. We've been able to solve all problems by rearranging filters and making sure the HTML filter allows <p>, <br>, and <img> tags.

-e-train’s picture

StatusFileSize
new122.63 KB
new133.27 KB
new171.79 KB

I am having an issue with the Read More module using and

at different times in the same view.

I have checked "inline" and checked

and tags.
I have even reset to defaults and it still usus different tags at different times.

But on my blog view listing page, I see teasers that sometimes have the read more link in a tag and some have it in a

tag? how is this possible?

I am using the teaser break via wysiwyg module (using ckeditor).

I have attached images of settings. I have no cck fields in my blog posts.

picture 1.png - shows the output on my view page. You can see some inline and some not.
picture 2.png - shows the read more settings
picture 3.png - shows my input filters for full html... none should conflict...

If you need more info, please let me know.

-e-train

-e-train’s picture

I have solved my issue of the <span> vs. <div> problem.

If you enable HTML corrector in the input filter, the issue seems to go away.
I still had to go back and insert the <!--break--> tag via the wysiwyg editor, but
they all seemed to be placed in <span>'s now.

Final settings:
Read More: - inline <p> and <span> tag acceptable
Input Filter: HTML full - enabled filters are only HTML corrector and URL filter.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.