Hi
searched up and down the forums for anything similar... no luck
I am using rereplacer and sourcerer to try and create a tag for our office staff to add a special offer item into an article.
[additem]item_code[/additem]
and i want it to replace this with the php code to add to the cart which is in a php file.
I have
\[additem\](.*?)\[/additem\]
and
{source} [[script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"]][[/script]]
[[script type="text/javascript" src="fancybox/jquery.fancybox-1.3.0.pack.js"]][[/script]]
[[script type="text/javascript" src="fancybox/jquery.easing-1.3.pack.js"]][[/script]]
[[link rel="stylesheet" href="fancybox/jquery.fancybox-1.3.0.css" type="text/css" media="screen"]]
[[link rel="stylesheet" href="fancybox/style.css" /]]
[[?php
$var = \1;
echo $var;
//include JPATH_SITE.DS.'mlfsnippets'.DS.'addinc.php';
?]]{/source}
for my search and replace but $var is not being seen in the addinc.php file
Help?
regards
Marco