Здравствуйте Гость ( Вход | Регистрация ) | Выслать повторно письмо для активации |
meravaz |
Отправлено: Mar 27 2010, 12:30 PM
|
Генерал Группа: Members Сообщений: 266 Пользователь №: 1600 Регистрация: 22-May 08 |
ниже код шаблона, вставил туда код от SAPE для размещения рекламы, как вы поняли ссылки отображаются в самом низу страницы, как сделать так что бы ссылки отображались в КОНКРЕТНОМ месте сайта
<?php define( "_VALID_ANT", 1 ); define( "_VALID_LM", 1 ); define( "_VALID_MOS", 1 ); /*These functions are used to keep track of generation time */ function t_getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } function t_pagetime($type){ static $orig_time; if($type=="init")$orig_time=t_getmicrotime(); if($type=="print")return sprintf("%2.4f",t_getmicrotime()-$orig_time); } t_pagetime("init"); /* the main config file */ if(is_file("config.php"))include ("config.php"); if (!file_exists( "config.php" ) || filesize( "config.php") < 10) { header( "Location: install/index.php" ); exit(); } error_reporting( $lm_error_level ); /*include other main files */ session_start(); if(isset($lm_seo))include($lm_absolute_path."classes/class_seo.php"); include($lm_absolute_path."includes/initglobals.php"); include($includes_dir."functions.php"); include($classes_dir."limbo.php"); include($lm_absolute_path."lang/$lm_language/$lm_language.php"); /*intialize database */ include($includes_dir."dblayer.php"); include($classes_dir."class_auth.php"); include($classes_dir."class_stats.php"); /* if offline display message and exit */ if(!$lm_online && $my->gid < 5) { include($lm_absolute_path."includes/offline.php"); return; } /*intialization and compatibility layer before using mambo code */ include($includes_dir."mambo.php"); /*now use the mambo template to geerate fioal out put */ if ( $my->id ) { include($lm_absolute_path.'editor/editor.php'); } //iF Item id is not set then get the topmost Itemid if(!isset($option)) { //get home $row=$conn->GetRow("SELECT * FROM #__menu WHERE menutype='mainmenu' ORDER BY ordering ASC"); $arr=explode('?',$row['link'],2); if(count($arr)>0) { $url_vars=explode('&',$arr[1],10); foreach($url_vars as $url_var) { list($uvar,$uval) =explode('=',$url_var); eval("\$$uvar='$uval';"); } } $Itemid=$row['id']; } $show_pathway=false; $lm_template_dir=$lm_absolute_path."templates/".$limbocore->getTemplate()."/"; ob_start(); include($lm_template_dir."index.php"); $data=ob_get_contents(); ob_end_clean(); /* XHTML templates can control content */ ob_start(); include($includes_dir."content.php"); $content=ob_get_contents(); ob_end_clean(); fill_meta($data); /*path is created at te end */ if($show_pathway) { include($includes_dir."pathway.php"); $data=str_replace("LM_PATHWAY",showPathway(),$data); } $data=str_replace(array("LM_CONTENT_REP"),array($content),$data); if ($lm_gzip && eregi("gzip",getenv("HTTP_ACCEPT_ENCODING"))) { ob_start("ob_gzhandler"); } header("Content-type: text/html; "._ISO); if($lm_seo)echo $lm_seo_ap->seo_url($data); else echo $data; echo 'fff'; if (!defined('_SAPE_USER')){ define('_SAPE_USER', 'cb54d3a0b7cff32311e5d8266cf964f6'); } require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php'); $sape = new SAPE_client(); echo $sape->return_links(3); ?> -------------------- |
meravaz |
Отправлено: Mar 29 2010, 03:45 PM
|
Генерал Группа: Members Сообщений: 266 Пользователь №: 1600 Регистрация: 22-May 08 |
ну что , гуру php посоветуйте уже что нибудь, помогите пожалуйста.
-------------------- |
meravaz |
Отправлено: Mar 30 2010, 09:57 AM
|
Генерал Группа: Members Сообщений: 266 Пользователь №: 1600 Регистрация: 22-May 08 |
неужели ни кто не поможет?
-------------------- |