by wp-admin | Oct 16, 2014 | blg |
Add styles and scrtpts to your extension $cssUrl=Juri::base() . ‘components/com_component/assests/style.css’; $jsUrl=Juri::base() . ‘components/com_component/assests/js.js’; $document = JFactory::getDocument(); $document->addStyleSheet($jsUrl); $document->addScript($jsUrl); To display system messages : //Standard message JFactory::getApplication()->enqueueMessage($mymessage); //Notice message JError::raiseNotice(100, $mymessage); //Warning message JError::raiseWarning( 100, $mymessage ); So while programming you need to send a URL variable e.g. ?message=success and in my template/extension file simply made an if statement like this: if($_GET["message"] == "success") { $displaymsg = "My message text.."; JFactory::getApplication()->enqueueMessage($displaymsg); } Send email in Joomla : //mailcode $mailer = JFactory::getMailer(); $config = JFactory::getConfig(); $sender = array( $config->get( ‘mailfrom’ ), $config->get( ‘fromname’ ), $config->get(‘sitename’) ); $mailer->setSender($sender); $mailer->addRecipient($email); $mailer->setSubject(“Subject”); $mailer->setBody($msg); $mailer->isHTML(true); $send = $mailer->Send(); if($send){ }...
by wp-admin | Sep 9, 2014 | WordPress Plugins |
This is Buddy Press Views Plugin. It shows number of profile views count by all (members and guests). Download here:...
by wp-admin | Sep 9, 2014 | WordPress Plugins |
The easy to use DG Maps plugin! Add your customized DG Maps to your WordPress posts and/or pages quickly and easily with the supplied shortcode.
by wp-admin | Sep 9, 2014 | Products |