Hello,

I have published a blog post, and while in Content corner icons are perfectly displayed, in link area there are html codes showing instead of icons :

instead of icons there is :

Only local images are allowed.
Only local images are allowed.
Only local images are allowed.

the html page code seems to be correct :

<div class="links">
<ul class="links inline">
<li class="first blog_usernames_blog">
<a href="/blog/1">Les News de REGIE PUB ONLINE</a>
</li>
<li class="print_html">
<a href="/print/content/statistiques-du-mois-de-janvier-2009"><img src="/sites/all/modules/print/icons/print_icon.gif" alt="Version imprimable" title="Version imprimable" width="16" height="16" class="print-icon" /></a>
</li>
<li class="print_mail">
<a href="/printmail/content/statistiques-du-mois-de-janvier-2009"><img src="/sites/all/modules/print/icons/mail_icon.gif" alt="Envoyer à un ami" title="Envoyer à un ami" width="16" height="16" class="print-icon" /></a>
</li>
<li class="last print_pdf">
<a href="/printpdf/4"><img src="/sites/all/modules/print/icons/pdf_icon.gif" alt="PDF version" title="PDF version" width="16" height="16" class="print-icon" /></a>
</li>
</ul>
</div>

It's like the Only local images are allowed. html tag was not read : instead of showing the icon, it shows the Only local images are allowed. tag as if it was some normal text...

I don't understand why...

Could somebody tell me what's wrong, or what to do ?
Thank you for your help.

Comments

marcelduchamp’s picture

instead of icons there is :

<img src="/sites/all/modules/print/icons/print_icon.gif" alt="Version imprimable" title="Version imprimable" width="16" height="16" class="print-icon" />
<img src="/sites/all/modules/print/icons/mail_icon.gif" alt="Envoyer à un ami" title="Envoyer à un ami" width="16" height="16" class="print-icon" />
<img src="/sites/all/modules/print/icons/pdf_icon.gif" alt="PDF version" title="PDF version" width="16" height="16" class="print-icon" />
jcnventura’s picture

I am totally baffled by this report... This is just totally weird. Can you tell me if the links are working OK for non-blog nodes? I would like to limit the scope of the problem.

marcelduchamp’s picture

StatusFileSize
new37.22 KB

It seems to be everywhere the same issue...
I have tested blog nodes, page nodes, article nodes and the problem appears on all these content type...
Icons are showing in content corner, but in link area there are html text...
I don't understand why, everything seems OK and working good, e-mailing, printing, pdf printing, so I don't understand why these icons are not showing...

html code looks good, so why is it not read as the rest ?

if you have an idea...
Thank you for your help.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

OK, then maybe it is your theme... Can you switch to Garland and see if it still shows that HTML??

What theme are you using, BTW?

João

marcelduchamp’s picture

YES !

you're right it's coming from the theme I'm using...

with Garland there is no problem...

I'm using Amadou 6.x-1.1
http://drupal.org/project/amadou

Well, I have looked into the template folder but I don't know where this problem could come from...

Have you an Idea ?

Thank you for your help João !

jcnventura’s picture

Project: Printer, email and PDF versions » Amadou
Version: 6.x-1.2 » 6.x-1.1
Component: User interface » Code
Status: Postponed (maintainer needs more info) » Closed (duplicate)

Looking at amadou's issue queue, there are two duplicates for this (and a solution in the first):

#262264: SL display HTML instead of actual buttons and links
#267615: Not working with "service links" module

I suspect that amadou may be abandoned, so if you really like it, try to start a discussion to revive its maintenance.

João

marcelduchamp’s picture

Yes, I was actually in the template.php ;
I had not seen these issues thank you...

I'm going to test the solution.

Thank you João

marcelduchamp’s picture

Hi,

I've tried Kylehase solution : http://drupal.org/node/262264#comment-984451

      if (isset($link['href'])) {
        $link_options = array('attributes'  => $link['attributes'],
                              'query'       => $link['query'],
                              'fragment'    => $link['fragment'],
                              'absolute'    => FALSE,
                              'html'        => $html);
        $output .= l($link['title'], $link['href'], $link_options);
      }

and it works fine !

I'm happy. Thank you.

Hope this patch will be ported to the next Amadou release...

Good Bye :)