Recent Topics

quicktags <a name =""> hack

Started by on Feb 23, 2014 – Contents updated: Feb 23, 2014

Feb 23, 2014 02:55    

Following up from which refered to my post

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(myFieldidefaultValue)
   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...

open source blog – This forum is powered by b2evolution CMS, a complete engine for your website.