Recent Topics

1 Feb 23, 2014 02:55    

Following up from http://forums.b2evolution.net/topic-18633 which refered to my post http://forums.b2evolution.net/topic-15293#75861

I have added code to the link part of [/plugins/quicktags.plugin.php] @copyright (c)2003-2013 by Francois Planque so that if the URL prompt is an anchor, the script will see the hash, recogninse the link is to a bookmark on the same page and add it to $_SERVER[HTTP_REFERER]

The following code is javascriot not php


function b2evoInsertLink(myField, i, defaultValue)
  {
   var ref= '<?php echo $_SERVER[HTTP_REFERER] ?>';
   if (!defaultValue)
     {
      defaultValue = '';
     }
   if (!b2evoCheckOpenTags(i))
     {
       var URL = prompt( '<?php echo T_('URL') ?>:', defaultValue);
       var hash = URL.substring(0,1);
       if (hash == '#')
        {
         URL = ref+URL;
        }
       if (URL)
......
......


Form is loading...