PDA

Zobacz pełną wersję : Przy rejestracji nie wyświetla "aktywuj konto klikając w odnośnik na maila".



badyllek1993
14-11-2010, 00:12
Witam.
Mam problem przytoczony w temacie.

W ostatnim czasie na http://www.wyrusze.pl zarejestrowało się kilkanaście osób, z czego żadna nie aktywowała swojego konta.

Okazało się, że po przyjęciu danych od razu przechodzi się na stronę główną, nie ma żadnej informacji o tym, że został wysłany mail.

Wcześniej miałem 1.5.17 i przed chwilą aktualizowałem do 1.5.22 i problem dalej jest ten sam. W PA nic na ten temat nie ma...

Proszę zarejestrować się, zobaczyć.

Z góry dziękuję i pozdrawiam.

Jola
14-11-2010, 02:06
Witam,
a takowy wpis:
<jdoc:include type="message" />
w index.php szablonu istnieje?

badyllek1993
14-11-2010, 11:36
Nie, nie mam takiego wpisu.

Mój plik index.php wygląda tak:


<?php
/*
#------------------------------------------------------------------------
JA Purity II for Joomla 1.5
#------------------------------------------------------------------------
#Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
#@license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html
#Author: J.O.O.M Solutions Co., Ltd
#Websites: http://www.joomlart.com - http://www.joomlancers.com
#------------------------------------------------------------------------
*/


// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'libs'.DS.'ja.template.helpe r.php');

$tmplTools = JATemplateHelper::getInstance($this, array('ui', JA_TOOL_SCREEN, JA_TOOL_MENU, 'main_layout', 'direction'));

//Calculate the width of template
$tmplWidth = '';
$tmplWrapMin = '100%';
switch ($tmplTools->getParam(JA_TOOL_SCREEN)){
case 'auto':
$tmplWidth = '97%';
break;
case 'fluid':
$tmplWidth = intval($tmplTools->getParam('ja_screen-fluid-fix-ja_screen_width'));
$tmplWidth = $tmplWidth ? $tmplWidth.'%' : '90%';
break;
case 'fix':
$tmplWidth = intval($tmplTools->getParam('ja_screen-fluid-fix-ja_screen_width'));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '771px';
$tmplWidth = $tmplWidth ? $tmplWidth.'px' : '770px';
break;
default:
$tmplWidth = intval($tmplTools->getParam(JA_TOOL_SCREEN));
$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '981px';
$tmplWidth = $tmplWidth ? $tmplWidth.'px' : '980px';
break;
}

$tmplTools->setParam ('tmplWidth', $tmplWidth);
$tmplTools->setParam ('tmplWrapMin', $tmplWrapMin);

//Main navigation
$ja_menutype = 'mega';
$jamenu = null;
if ($ja_menutype && $ja_menutype != 'none') {
$japarams = new JParameter('');
$japarams->set( 'menutype', $tmplTools->getParam('menutype', 'mainmenu') );
$japarams->set( 'menu_images_align', 'left' );
$japarams->set( 'menupath', $tmplTools->templateurl() .'/ja_menus');
$japarams->set('menu_images', 1); //0: not show image, 1: show image which set in menu item
$japarams->set('menu_background', 1); //0: image, 1: background
$japarams->set('mega-colwidth', 215); //Megamenu only: Default column width
$japarams->set('mega-style', 1); //Megamenu only: Menu style.
$japarams->set('rtl',($tmplTools->getParam('direction')=='rtl' || $tmplTools->direction == 'rtl'));
$jamenu = $tmplTools->loadMenu($japarams, $ja_menutype);
}
//End for main navigation

$layout = $tmplTools->getLayout ();
if ($layout) {
$tmplTools->display ($layout);
}

Jola
14-11-2010, 21:38
Nie znam struktury szablonu JA Purity II.
Wygląda na to, że trzeba przeszukać pozostałe pliki szablonu.

badyllek1993
14-11-2010, 23:26
Tak wygląda plik default.php szablonu Light od CloudBase - na T3Framework.


<?php
/*
#------------------------------------------------------------------------
JA Purity II for Joomla 1.5
#------------------------------------------------------------------------
#Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
#@license - GNU/GPL, http://www.gnu.org/copyleft/gpl.html
#Author: J.O.O.M Solutions Co., Ltd
#Websites: http://www.joomlart.com - http://www.joomlancers.com
#------------------------------------------------------------------------
*/


// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$this->_basewidth = 20;
$positions = array (
'left1' =>'left',
'left2' =>'left2',
'left-mass-top' =>'left_top',
'left-mass-bottom' =>'left_bottom',
'right1' =>'right',
'right2' =>'right2',
'right-mass-top' =>'right_top',
'right-mass-bottom' =>'right_bottom',
'content-mass-top' =>'top',
'content-mass-bottom' =>'bottom',
'content-top' =>'adv_top',
'content-bottom' =>'adv_bottom',
'inset1' =>'inset1',
'inset2' =>'inset2'
);
$this->customwidth('right1', 22);
$this->customwidth('left1', 22);
//$this->customwidth('right1', 25); <== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
$this->definePosition ($positions);
?>

<?php if ($this->isIE() && ($this->getParam('direction')=='rtl' || $this->direction == 'rtl')) { ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php } else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php } ?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">

<head>
<?php $this->loadBlock('head') ?>
</head>

<body id="bd" class="fs<?php echo $this->getParam(JA_TOOL_FONT);?> <?php echo $this->browser();?> <?php echo $this->getParam(ca_colorVariation);?>">
<div id="ja-wrapper">
<a name="Top" id="Top"></a>

<!-- HEADER -->
<?php $this->loadBlock('header') ?>
<!-- //HEADER -->

<?php $this->loadBlock('showcase') ?>

<!-- MAIN NAVIGATION -->
<?php $this->loadBlock('mainnav') ?>
<!-- //MAIN NAVIGATION -->

<?php $this->loadBlock('topsl') ?>

<?php $this->loadBlock('breadcrumbs') ?>

<!-- MAIN CONTAINER -->
<div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w'); ?>">
<div class="main clearfix">
<div id="ja-container-inside">
<div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
<?php $this->loadBlock('main') ?>
<?php $this->loadBlock('left') ?>
</div>

<?php $this->loadBlock('right') ?>
</div>
</div>
</div>
<!-- //MAIN CONTAINER -->

<?php $this->loadBlock('botsl') ?>

<!-- FOOTER -->
<?php $this->loadBlock('footer') ?>
<!-- //FOOTER -->

</div>

<jdoc:include type="modules" name="debug" />

<?php if ($this->isIE6()) : ?>
<?php $this->loadBlock('ie6/ie6warning') ?>
<?php endif; ?>

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17984120-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

</body>
</html>

Mam gdzieś tą linię podaną wyżej dodać? Gdzie?

Dziękuję za zainteresowanie.

Jola
15-11-2010, 02:50
Zazwyczaj wstawia się tuż nad <jdoc:include type="component" /> (można ostylować). Jednak w żadnym z podanych skryptów nie ma tej pozycji.

zwiastun
15-11-2010, 22:25
<?php $this->loadBlock('main') ?>
W tym kawałku kodu "ukryte" jest wczytywanie treści głównej. I o ile mi wiadomo, także komunikatów systemowych ;) Prosze popatrzeć na pliki main.php

badyllek1993
16-11-2010, 00:04
W [templatka]/layouts/blocks/main.php znalazłem:


<!-- CONTENT -->
<div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
<div class="inner clearfix">

<jdoc:include type="message" />

<?php
$mass_top = $this->getPositionName ('content-mass-top');
if($this->countModules($mass_top)) : ?>
<div class="ja-mass ja-mass-top clearfix">
<jdoc:include type="modules" name="<?php echo $mass_top;?>" style="JAxhtml" />
</div>
<?php endif; ?>

<div id="ja-contentwrap" class="<?php echo $this->getColumnWidth('cls_m'); ?>">
<?php
$inset1 = $this->getPositionName ('inset1');
$inset2 = $this->getPositionName ('inset2');
?>
<div id="ja-content" class="column" style="width:<?php echo $this->getColumnWidth('cw') ?>%">

<div id="ja-current-content" class="column" style="width:<?php echo $this->getColumnWidth('c') ?>%">
<?php
$content_top = $this->getPositionName ('content-top');
if($this->countModules($content_top)) : ?>
<div class="ja-content-top clearfix">
<jdoc:include type="modules" name="<?php echo $content_top;?>" style="JAxhtml" />
</div>
<?php endif; ?>

<?php $contents = $this->getBuffer('component');
if (!preg_match ('/<div class="blog">\s*<\/div>/',$contents)) :?>
<div class="ja-content-main clearfix">
<jdoc:include type="component" />
</div>
<?php endif; ?>

<?php
$content_bottom = $this->getPositionName ('content-bottom');
if($this->countModules($content_bottom)) : ?>
<div class="ja-content-bottom clearfix">
<jdoc:include type="modules" name="<?php echo $content_bottom;?>" style="JAxhtml" />
</div>
<?php endif; ?>
</div>

<?php if($this->countModules($inset1)) : ?>
<div class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
<jdoc:include type="modules" name="<?php echo $inset1;?>" style="JAxhtml" />
</div>
<?php endif; ?>

</div>

<?php if($this->countModules($inset2)) : ?>
<div class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
<jdoc:include type="modules" name="<?php echo $inset2;?>" style="JAxhtml" />
</div>
<?php endif; ?>
</div>

<?php
$mass_bottom = $this->getPositionName ('content-mass-bottom');
if($this->countModules($mass_bottom)) : ?>
<div class="ja-mass ja-mass-bottom clearfix">
<jdoc:include type="modules" name="<?php echo $mass_bottom;?>" style="JAxhtml" />
</div>
<?php endif; ?>

</div>
</div>
<!-- //CONTENT -->

Jola
16-11-2010, 00:08
Możesz sprawdzić poprawne wyświetlanie wiadomości w tym miejscu np. przez wysłanie jakiejś wiadomości przez formularz kontaktowy (standardowy com_contact).
Po wysłaniu powinien pojawić się komunikat z podziękowaniem za wysłaną wiadomość.