$matches = array(); preg_match_all(‘/<img.+src=[\’“]([^\’“]+)[\’“].*\/>/i’ , $article->text , $matches); if($matches[0][0]){ echo $matches[0][0]; }
$matches = array(); preg_match_all(‘/<img.+src=[\’“]([^\’“]+)[\’“].*\/>/i’ , $article->text , $matches); if($matches[0][0]){ echo $matches[0][0]; }
To create modal popup for user login for example Go to menu and Add new Select on Menu Item Type -> External URL Link http://www.yourdomain.com/index.php?option=com_users&view=login&Itemid=99999&tmpl=component Link CSS Style modal bmenu “ rel=“{handler: ‘iframe’, size: {x: 780, y: 500}, onClose:function(){$(‘sbox-content’).empty();}} You…
go to /components/com_virtuemart/controllers/cart.php and add this fuction public function deleteall() { $mainframe = JFactory::getApplication(); $cart = VirtueMartCart::getCart(); $cart->emptyCart(); $mainframe->redirect(JRoute::_(‘index.php?option=com_virtuemart&view=cart’)); } Go to your cart template and add <a title=“<?php echo JText::_(‘COM_VIRTUEMART_CART_DELETE’) ?>“ align=“middle“ href=“<?php echo JRoute::_(‘index.php?option=com_virtuemart&view=cart&task=deleteall’) ?>“><i></i></a>
$text = JHTML::_(‘content.prepare’, $text );