PDA

Zobacz pełną wersję : Jak skonfigurować i opublikować dodatek Multilingual Registration Approval



PEREFERE
25-03-2010, 13:23
Witam,

prosze Was o pomoc w konfiguracji dodatku Multilingual registration approval (http://extensions.joomla.org/extensions/access-a-security/authentication/9007) dla szablonu Youjoomla. Jak go opublikować? (proszę o informację krok po kroku). :blink:

Do prawidłowego działania niezbędne jest uruchomienie wiadomości <jdoc:include type="message" /> w pliku index.php. Niestety nie mam pojęcia w którym miejscu pliku to dodać. Autor posta do którego się dokopałem sugeruje wpis przed <jdoc:include type="component" /> natomiast nie ma takiego.

Z góry proszę o pomoc, plik poniżej;


<?php
$who = strtolower($_SERVER['HTTP_USER_AGENT']);
/*================================================= =====================*\
|| ################################################## ################## ||
|| # License: GNU/GPL http://www.gnu.org/copyleft/gpl.html (http://www.gnu.org/copyleft/gpl.html) ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright: (C) Since 2006 Youjoomla LLC. All Rights Reserved. ||
|| # Author: Youjoomla LLC ||
|| # Website: www.youjoomla.com (http://www.youjoomla.com/) ||
|| ################################################## ##################
|| ||
\*================================================ ======================*/

defined( '_JEXEC' ) or die( 'Restricted index access' ); define( 'TEMPLATEPATH', dirname(__FILE__) ); require( TEMPLATEPATH.DS."settings.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd (http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)">
<html xmlns="http://www.w3.org/1999/xhtml (http://www.w3.org/1999/xhtml)" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> <?php JHTML::_('behavior.mootools'); ?> <link href="<?php echo $yj_site ?>/css/template.<?php echo $cssextens; ?>" rel="stylesheet" type="text/css" /> <link href="<?php echo $yj_site ?>/css/<?php echo $css_file; ?>.<?php echo $cssextens; ?>" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="<?php echo $yj_site ?>/favicon.ico" /> <?php require( TEMPLATEPATH.DS."head.php");?> </head> <body id="color"> <div id="centertop" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width; ?>;">
<?php if($nonscript == 1 ){?>
<noscript>
<p class="error" style="text-align:center" >This Joomla Template is equiped with JavaScript. Your browser does not support JavaScript! Please enable it for maximum experience. Thank you.</p>
</noscript>
<?php } ?>
<!--header-->
<div id="header">
<div id="logo" class="png">
<div id="tags">
<h1> <a href="index.php" title="<?php echo $tags?>"><?php echo $seo ?></a> </h1>
</div>
<!-- end tags -->
</div>
<!-- end logo -->
<?php if ($this->countModules('banner')) {?>
<div id="banner">
<jdoc:include type="modules" name="banner" style="raw" />
</div>
<!-- end banner -->
<?php } ?>
</div>
<!-- end header -->
<!--top menu-->
<div id="<?php echo $topmenuclass ?>" style="font-size:<?php echo $css_font; ?>;">
<div id="<?php echo $menuclass ?>"> <?php echo $topmenu; ?> </div>
</div>
<!-- end top menu -->
</div>
<!-- end centartop-->
<?php if ($this->countModules('advert1')) {?> <div id="advert_out">
<div id="advert" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width; ?>;">
<div id="advert1">
<jdoc:include type="modules" name="advert1" style="yjsquare" />
</div>
</div>
</div>
<?php } ?>
<?php if ($this->countModules('user1') || $this->countModules('user2') || $this->countModules('user3')) {?> <div id="topshelf">
<div id="topsin" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width; ?>;">
<?php if ($this->countModules('user1')) {?>
<div id="user1" style="width:<?php echo $topswidth ?>;">
<div class="topins">
<jdoc:include type="modules" name="user1" style="yjsquare" />
</div>
</div>
<?php } ?>
<?php if ($this->countModules('user2')) {?>
<div id="user2" style="width:<?php echo $topswidth ?>;">
<div class="topins">
<jdoc:include type="modules" name="user2" style="yjsquare" />
</div>
</div>
<?php } ?>
<?php if ($this->countModules('user3')) {?>
<div id="user3" style="width:<?php echo $topswidth ?>;">
<div class="topins">
<jdoc:include type="modules" name="user3" style="yjsquare" />
</div>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if ($ie6notice == 1){ ?>
<!-- notices -->
<?php
if (preg_match( "/msie/",$who)){
if (preg_match("/msie 7/",$who) || preg_match("/msie 8/",$who)) { echo ''; }else{ echo'
<p class="clip" style="text-align:center" >Hello visitor.You are using IE6 , an outdated version of Internet Explorer. Please consider upgrading. Click <a href="http://www.webstandards.org/action/previous-campaigns/buc/ (http://www.webstandards.org/action/previous-campaigns/buc/)" target="_blank" >here</a> for more info .</p>'; } }

?>
<!--end notices -->
<?php } ?>
<?php require( TEMPLATEPATH.DS."layouts/layout".$site_layout.".php");?>
</div>
<!-- end centerbottom-->
<?php if ($this->countModules('user4') || $this->countModules('user5') || $this->countModules('user6')) {?> <div id="bottomshelf">
<div id="bottomin" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width; ?>;">
<?php if ($this->countModules('user4')) {?>
<div id="user4" style="width:<?php echo $bottomwidth ?>;">
<div class="botins">
<jdoc:include type="modules" name="user4" style="yjsquare" />
</div>
</div>
<?php } ?>
<?php if ($this->countModules('user5')) {?>
<div id="user5" style="width:<?php echo $bottomwidth ?>;">
<div class="botins">
<jdoc:include type="modules" name="user5" style="yjsquare" />
</div>
</div>
<?php } ?>
<?php if ($this->countModules('user6')) {?>
<div id="user6" style="width:<?php echo $bottomwidth ?>;">
<div class="botins">
<jdoc:include type="modules" name="user6" style="yjsquare" />
</div>
</div>
<?php } ?>
</div>
</div>
<?php } ?>
<!-- footer -->
<div id="footer">
<div id="youjoomla" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width; ?>;">
<div id="cp"> <?php echo getYJLINKS() ?> </div>
</div>
</div>
<!-- end footer -->
</body>
</html>