Posted by fred0 on November 4, 2009 at 12:47am
Jump to:
| Project: | Advanced Forum |
| Version: | 6.x-2.x-dev |
| Component: | Styles |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I'm seeing <span class="image-replace"></span> appearing in the page display text of the node links for reply/edit/delete in forum topics. It is generated by line 78 of advanced_forum_preprocess_node.inc.
Also, the Post Reply text is not completely covered by the image (at the top left).
See attached nodelinks.png for example.
In the topic display, I also see the <span class="image-replace"></span> appear for the New topic link. This one is line 387 of core-overrides.inc
See topiclist.png for example.
| Attachment | Size |
|---|---|
| nodelinks.png | 34.69 KB |
| topiclist.png | 58.7 KB |
Comments
#1
I have no idea what might cause that. Normally browsers will interpret the HTML, not just display it. Have you found anything out?
Michelle
#2
I afraid I didn't. Ended up dropping AF from my build.
#3
Ah, sorry to hear that. If it becomes an issue again, feel free to re-open. Though I don't know that I have any more to tell you...
Michelle
#4
Hi Michelle, I have the same problem and I can not solve it. The problem is that it becomes to
<span class="image-replace"></span>within the text node. I would like tohtml_entity_decodethis string but I do not know where to do it. Perhaps you can help to fix this issue.Edit: After testing to decode the html entities back it seems to me that the convertion happens after calling
$variables['forum_links'] = theme('links', $variables['links'], array('class' => 'forum-links'));in advanced_forum_preprocess_forums.inc#5
Found a solution: Remove all
<span class="image-replace"></span>fromincludes/mark-read.inc : line 19, 25and fromadvanced_forum.module : line 423, 727, 815, 829, 850and set up your css style to show button over text like here: (I am not experienced in Drupal or CSS, so it can be wrong).en .forum-links .mark-read span
{
display: block;
text-indent: -9999px;
}
.en .forum-links .mark-read
{
display: block;
background: transparent url(images/en/mark-read.png) no-repeat;
}
#6
Looks like you found something that works for you.
Michelle
#7
Automatically closed -- issue fixed for 2 weeks with no activity.