Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

highlight does not work with php pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • highlight does not work with php pages

    Jump to match and highlight within a document will not work with my php pages while no problem with html pages.
    example:
    does not work!
    http://localhost:2010/pmwiki.php?n=Unix.AIX?zoom_highlight=memory
    works fine:
    http://localhost:2010/unix_aix.html?zoom_highlight=memory (this is just the obove generated html stored in a file)

    Any suggestions how I can jump and match with my php pages (by using pmwiki)? I did not understand your hint with the virtual() function.
    Any virtual() function example available?

  • #2
    Make sure you actually updated the "highlight.js" file on your server when you switched from V4 to V6.

    Otherwise, without seeing the actual pages in question, it's difficult for us to comment on what might be wrong on your PHP page.

    There is nothing that distinguishes a PHP page from a HTML page based on format alone from a client-side point of view (which is what the highlighting JS will operate on)

    The virtual() function has nothing to do with this problem. You are referring to a previous post which was answering a different question in that same thread. You will see this if you re-read that post more carefully.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment


    • #3
      problem solved

      Ray,
      thanks for quick response.
      I found and solved the problem: use "&" instead of "?" for second URL search
      false:
      http://localhost:2010/pmwiki.php?n=Unix.AIX?zoom_highlight=memory
      correct:
      http://localhost:2010/pmwiki.php?n=Unix.AIX&zoom_highlight=memory

      Comment


      • #4
        You must be using an older build of Zoom, or a modified version of the script (likely one based on an older version). Because the current version/build should already be switching between "?" or "&" as appropriate and has done so for some time.

        Please note that if you are using a modified script (as you must be now, since you just said you made more changes), you should state this in advance. Otherwise it makes it very difficult for us to guess at the behaviour of the modified script.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment

        Working...
        X