Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
img (image) not displayed
  • Posted: 05.09.2004, 22:59
     
    ru
    rank:
    Freshman Freshman
    registered:
     May 2003
    Status:
    offline
    last visit:
    28.12.04
    Posts:
    2
    environment: PN 0.750 with XTE, modified theme DCC-Portal (based on PostNukeBlue)

    File Name: News-index.htm

    Code-snippet:

    Code

    <td valign="top">
          <!--[$preformat.searchtopic]-->
          <div style="text-align:right;" class="tiny"> <!--[$info.counter]--> <!--[pnml name=_READS]--></div>
          <br /><!--[$info.hometext]-->
          <br /><span class="note"><!--[$preformat.notes]--></span>
          <div class="pn-sub">
            <br />
            <!--[$preformat.send]-->&nbsp;&nbsp;
            <!--[$preformat.print]-->&nbsp;&nbsp;
            <a href="index.php?module=xFPDF&func=main&plugin=News&sid=<!--[$info.sid]-->" target="_blank" />XX[b]<img src='modules/xFPDF/images/pdf.gif' alt='PDF' border='0'>[/b]XX</a>&nbsp;&nbsp;
            <!--[$preformat.comment]-->
            </div>
          <div style="text-align:right;">
          <!--[$preformat.readmore]--> <!--[if $info.bodytext|count_words gt 0]--> (<!--[$info.bodytext|count_words]--> <!--[pnml name=_WORDSMORE]-->) <!--[/if]--></div>
          </td>


    The PDF-image does not get displayed althouh the xx in front and behind the img-tag do get displayed. It seems as if pnRender does not interpret the img-tag correctly as within the source of the rendered page (when displayed under IE -> Source) has the following code in it:

    Code

    <a class="pn-normal" href="modules.php?op=modload&amp;name=Recommend_Us&amp;file=index&amp;req=FriendSend&amp;sid=56"><img src="images/global/friend.gif" alt="Send this story to someone" /></a>&nbsp;&nbsp;
            <a class="pn-normal" href="print.php?sid=56"><img src="images/global/print.gif" alt="Printer-friendly page" /></a>&nbsp;&nbsp;
            <a href="index.php?module=xFPDF&func=main&plugin=News&sid=56" target="_blank" />XX                                                             XX</a>&nbsp;&nbsp;
            <a class="pn-normal" href="modules.php?op=modload&amp;name=News&amp;file=article&amp;sid=56&amp;mode=thread&amp;order=0&amp;thold=0">Comments?</a>
            </div>
          <div style="text-align:right;">
          <a class="pn-normal" href="modules.php?op=modload&amp;name=News&amp;file=article&amp;sid=56&amp;mode=thread&amp;order=0&amp;thold=0">Read more...</a>  (952 More words) </div>
          </td>


    As you see there is a huge amount of blanks between the two 'xx'. I already tried (the img-tag within the theme) with single and with douple quotation marks, but that does not make any difference.

    I read the XTE-docs back and forth but couldnīt find any hint.

    The funny thing is, when I do not use te Xanthia Admin-panel to edit the page, but upload the changed HTML-page via normal ftp the resulting page in first gets displayed correctly but refuses (after a couple of minutes) to do so, resulting in the same missing img on the displayed page.

    The other funny thing is, as soon as I change the code using Xanthia admin-panel as follows:

    Code

    <!--[$preformat.print]-->&nbsp;&nbsp;
    <img src='modules/xFPDF/images/pdf.gif' alt='PDF' border='0'>
            <a href="index.php?module=xFPDF&func=main&plugin=News&sid=<!--[$info.sid]-->" target="_blank" />XX<img src='modules/xFPDF/images/pdf.gif' alt='PDF' border='0'>XX</a>&nbsp;&nbsp;
            <!--[$preformat.comment]-->


    both PDF-icons get displayed. Weired!!!

    Hopefully I explained the problem good enough to understand. Sorry for the message being that long.

    TIA for your help!

    Kind regards,

    Klaus
  • Posted: 17.05.2005, 18:28
     
    avdalen
    rank:
    Freshman Freshman
    registered:
     August 2004
    Status:
    offline
    last visit:
    02.11.05
    Posts:
    20
    Hi,
    the solution is simple. Change
    PDF

    to
    PDF

    Spot the difference? Images should be replaced with PNimages.
  • Posted: 18.05.2005, 15:34
     
    Landseer
    rank:
    Developer Developer
    registered:
     January 2003
    Status:
    offline
    last visit:
    27.11.08
    Posts:
    851
    Sorry for nitpicking, but indeed it should be be pnimages instead of PNimages icon_smile . Take care about operating systems that are case sensitive...

    --
    "He is not dangerous, he just wants to play...."

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula