1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MG 1.1 Custom field

Discussion in 'Media Gallery Support' started by indicator, May 31, 2016.

  1. indicator

    indicator Member

    Hi there,
    I am using custom field to show URL on media page. I don't want to show full URL but make it as clickable VISIT SITE. what Value Display HTML should I use? I have selected Value Match Requirements: URL
    Thanks in advance
  2. Chris D

    Chris D XenForo Developer Staff Member

    It's actually not possible to do that, unfortunately. If a URL is entered then it is auto linked and it creates the link automatically.
  3. indicator

    indicator Member

    Hi Chris, thanks for your quick response, is there any other way of achieving this?
  4. Chris D

    Chris D XenForo Developer Staff Member

    Unfortunately not. The only solution I can think of is editing the code but that's not ideal.

    The file to edit would be:

    library/XenGallery/Template/Helper/Core.php and find:
    $value XenForo_Template_Helper_Core::callHelper('bodytext', array($value));
    Replace with:
    //$value = XenForo_Template_Helper_Core::callHelper('bodytext', array($value));
  5. indicator

    indicator Member

    Thanks Chris!

Share This Page