Joomla make custom Module for LOGIN in POPUP window

No comments
//Just copy and paste this code in default.php of your module.

<?php

defined('_JEXEC') or die;
JHTML::_('behavior.modal');


$user = JFactory::getUser(); //get user credentials

?>

<div class="btl-panel">
   <?php if($user->guest){?>
          <a class="modal login-popup" href="index.php?option=com_users&view=login&tmpl=component" rel="{ size: {x: 480, y: 340}}" >Login</a>
    <?php }else{ ?>
         <a  class="" href="index.php?option=com_users&task=user.logout&<?php echo JSession::getFormToken();?>=1">Logout</a>
    <?php } ?>
</div>

No comments :

Post a Comment

PHP CURL coding

No comments

 <?php
$ch= curl_init();



$url ="www.domain.com";
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,5);


$curl_result=curl_exec($ch);
curl_close($ch);
$curl_result=str_replace("<","<",$curl_result);
$curl_result=str_replace(">",">",$curl_result);
echo $curl_result;
?>

No comments :

Post a Comment

Stuck Installing Joomla On Windows 8 and Windows 10

No comments
SOLUTION ONE:
Change max_execute_time in php.ini to a value like 200 when done or when in production change it back to 60 or less.

SOLUTION TWO:
CHANGE MYSQL ENGINE REFERENCE
in php.ini file turn
Output_Buffering=Off Display_Errors=Off and in wamp\www\Your joomla folder\installation\sql\mysql\Joomla.sql replaced all the occurence of "ENGINE=InnoDB" with "ENGINE=MyIsam"

SOLUTION THREE:
If changing max_execute_time or replacing InnoDB didn't work for you, try to install it in different browser like IE or Opera if you've run it in Chrome & Firefox already.

No comments :

Post a Comment