We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6991
    • 15 Posts
    Thanks Ganesh, ill try’em.

    @ Eol
    the code have some problem,

    [+comment.custom.web:isnot=``:then=`<a href="http://[+comment.custom.web:nohttp+]" target="_blank"><img src="[(base_url)]manager/media/style/MODx/images/icons/globe.gif" width="16" height="16" alt="Web site" title="[+comment.custom.web:nohttp+]" border="0" /></a>`+]


    Here i try to explain:
    - My custom field name is "web".
    - Its pretty clear that its trying to prefix the "http://" to the link itself, ie: <a href="http:// .
    - Also removes the "http://" prefix entered by users ie: [+comment.custom.web:nohttp+] .
    - If i use this code, the output will be "http:///" (note the triple slashes) without any address or title of the specific url.
    - Also if i remove the "http://" prefix from the link itself, ie: <a href="[+comment.custom.web:nohttp+], then the url will be internally linked!.
    - if i leave the http:// intact, if users enter the url with http:// then the code attaches another http:// and it will be something like http://http://www.google.com

    So how can i fix this?

    Thanks smiley
      • 36416
      • 589 Posts
      Quote from: DeLL at Dec 17, 2007, 10:39 AM

      - If i use this code, the output will be "http:///" (note the triple slashes) without any address or title of the specific url.

      You’ve lost me a bit here, link will be like that only if value of field is "/" (a single slash)...
      Do you have standalone PHx 2.1.3 plugin installed?
        • 6991
        • 15 Posts
        i have installed the modx0.9.6.1 & I’m not sure whether it have PHx 2.1.3 ?
        do you know a way to resolve the issue?

        Thanks smiley
          • 36416
          • 589 Posts
          Quote from: DeLL at Dec 18, 2007, 08:28 AM

          i have installed the modx0.9.6.1 & I’m not sure whether it have PHx 2.1.3 ?

          I don’t think so. Get it from here: http://modxcms.com/PHx-1006.html