Quantcast
Channel: WordPress.org Forums » [WP-Filebase Download Manager] Support
Viewing all articles
Browse latest Browse all 1341

wordpresscupcom on "[Plugin: WP-Filebase Download Manager] Custom JavaScript download tracking (e.g. Google Analytics)"

$
0
0

I've done this. Just edit wp-filebase\classes\TplLib.php file and comment out the remove action. ;)

// remove existing onclicks
//	$tpl = preg_replace(array('/<a\s+([^>]*)onclick=".+?"\s+([^>]*)href="%file_url%"/i', '/<a\s+([^>]*)href="%file_url%"\s+([^>]*)onclick=".+?"/i'), '<a href="%file_url%" $1$2', $tpl);

Then you can add onclick functions to the template.


Viewing all articles
Browse latest Browse all 1341

Latest Images

Trending Articles



Latest Images