Новичок
Профиль
Группа: Участник
Сообщений: 10
Регистрация: 9.2.2008
Репутация: нет Всего: нет
|
Проблема в том что выводить надо на данных страницах.... а php я так понял вот: | Код | <?php /* Smarty version 2.6.14, created on 2008-02-26 21:04:41 compiled from themes/default/content/href.content.tpl */ ?> <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strtolower', 'themes/default/content/href.content.tpl', 10, false),array('modifier', 'replace', 'themes/default/content/href.content.tpl', 40, false),array('modifier', 'truncate', 'themes/default/content/href.content.tpl', 40, false),array('function', 'math', 'themes/default/content/href.content.tpl', 71, false),)), $this); ?> <?php if ($this->_tpl_vars['settings']['catoff'] == 0): ?> <?php if ($this->_tpl_vars['link']): ?> <?php echo $this->_tpl_vars['ajax']; ?> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top" width="80%"> <p style="padding-left:3px;font-size:11px;"> <?php $_from = $this->_tpl_vars['rubric_path']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['rubr']): ?> <?php if ($this->_tpl_vars['rubr']['is_last']): ?> <a href="<?php echo $this->_tpl_vars['rubr']['link']; ?> " style="color:black;font-size:11px;text-decoration:none;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rubr']['caption'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?> </a> > просмотр участника <?php else: ?> <a href="<?php echo $this->_tpl_vars['rubr']['link']; ?> " style="color:black;font-size:11px;text-decoration:none;"><?php echo ((is_array($_tmp=$this->_tpl_vars['rubr']['caption'])) ? $this->_run_mod_handler('strtolower', true, $_tmp) : strtolower($_tmp)); ?> </a> > <?php endif; ?> <?php endforeach; endif; unset($_from); ?> </p> <h1><?php echo $this->_tpl_vars['link']['title']; ?> </h1> </td> <td align="right" width="20%" valign="middle"> <a href="<?php echo $this->_tpl_vars['rubric']['link']; ?> ">назад в раздел <?php echo $this->_tpl_vars['rubric']['caption']; ?> </a> </td> </tr> </table> <div id="leftmenu"> <?php if ($this->_tpl_vars['settings']['viewsub']): ?> <?php if ($this->_tpl_vars['subrubrics'][$this->_tpl_vars['rubric']['id_cat']]): ?> подразделы <?php $_from = $this->_tpl_vars['subrubrics'][$this->_tpl_vars['rubric']['id_cat']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['rubr']): ?> <h3><a href="<?php echo $this->_tpl_vars['rubr']['link']; ?> " onmouseout="return nd();" onmouseover="overlib('Участников в данном разделе - <?php echo $this->_tpl_vars['rubr']['links_this']; ?> ',BGCOLOR, '#FFFFCC', FGCOLOR, '#FFFFCC')"><?php echo $this->_tpl_vars['rubr']['caption']; ?> </a></h3> <ul> <?php $_from = $this->_tpl_vars['subrubrics'][$this->_tpl_vars['rubr']['id_cat']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['rubr1']): ?> <li><a href="<?php echo $this->_tpl_vars['rubr1']['link']; ?> " onmouseout="return nd();" onmouseover="overlib('Участников в данном разделе - <?php echo $this->_tpl_vars['rubr1']['links_this']; ?> ',BGCOLOR, '#FFFFCC', FGCOLOR, '#FFFFCC')"><?php echo $this->_tpl_vars['rubr1']['caption']; ?> - </a></li> <?php endforeach; endif; unset($_from); ?> </ul> <?php endforeach; endif; unset($_from); ?> <?php endif; ?> <?php endif; ?> <?php if ($this->_tpl_vars['stats']): ?> <p style="padding-top:20px;">статьи по теме <?php $_from = $this->_tpl_vars['stats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['stat']): ?> <li class="subviews"><a href="<?php echo $this->_tpl_vars['stat']['link']; ?> " onmouseout="return nd();" onmouseover="overlib('<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['stat']['caption'])) ? $this->_run_mod_handler('replace', true, $_tmp, '"', '') : smarty_modifier_replace($_tmp, '"', '')))) ? $this->_run_mod_handler('replace', true, $_tmp, '\'', '') : smarty_modifier_replace($_tmp, '\'', '')))) ? $this->_run_mod_handler('replace', true, $_tmp, '!', '') : smarty_modifier_replace($_tmp, '!', '')))) ? $this->_run_mod_handler('replace', true, $_tmp, '?', '') : smarty_modifier_replace($_tmp, '?', '')); ?> ',BGCOLOR, '#FFFFCC', FGCOLOR, '#FFFFCC')"><?php echo ((is_array($_tmp=$this->_tpl_vars['stat']['caption'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 40, "...") : smarty_modifier_truncate($_tmp, 40, "...")); ?> </a></li> <?php endforeach; endif; unset($_from); ?> </p> <?php endif; ?> <?php if ($this->_tpl_vars['topviews']): ?> <p style="padding-top:20px;"> самые просматриваемые ссылки раздела <?php $_from = $this->_tpl_vars['topviews']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['st']): ?> <li class="subviews"><a href="<?php echo $this->_tpl_vars['st']['link']; ?> " onmouseout="return nd();" onmouseover="overlib('Просмотров: <?php echo $this->_tpl_vars['st']['views']; ?> ',BGCOLOR, '#FFFFCC', FGCOLOR, '#FFFFCC')"><?php echo $this->_tpl_vars['st']['title']; ?> </a></li> <?php endforeach; endif; unset($_from); ?> <?php endif; ?> <?php if ($this->_tpl_vars['topvisitors']): ?> <p style="padding-top:20px;"> самые посещаемые ссылки раздела <?php $_from = $this->_tpl_vars['topvisitors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)): foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['st']): ?> <li class="subviews"><a href="<?php echo $this->_tpl_vars['st']['link']; ?> " onmouseout="return nd();" onmouseover="overlib('Переходов: <?php echo $this->_tpl_vars['st']['visitors']; ?> ',BGCOLOR, '#FFFFCC', FGCOLOR, '#FFFFCC')"><?php echo $this->_tpl_vars['st']['title']; ?> </a></li> <?php endforeach; endif; unset($_from); ?> <?php endif; ?> <div style="padding-top:10px;"><?php echo $this->_tpl_vars['settings']['begun']; ?> </div> </div> <div id="rightmenu"> <?php $this->assign('href', $this->_tpl_vars['link']); ?> <h2>Об участнике</h2> <div style="padding-left:22px;width:95%;"> <p><?php if ($this->_tpl_vars['link']['status'] == 0): ?> <?php if ($this->_tpl_vars['link']['title']): ?> <strong>Название участника:</strong> <a href="<?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['content_pth'])."/content/show_addr.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>" target="_blank"><?php echo $this->_tpl_vars['link']['title']; ?> </a><br> <strong>URL</strong>: <a href="<?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['content_pth'])."/content/show_addr.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?>" target="_blank"><?php echo $this->_tpl_vars['link']['url']; ?> </a></p> <table width="200" border="0" cellpadding="0" cellspacing="0"> <tr> <td><div class="ots"> <div class="ots2" style="width:<?php echo smarty_function_math(array('equation' => "x*y",'x' => $this->_tpl_vars['href']['otsenka'],'y' => 19,'format' => "%.0f"), $this);?> px;"></div> </td> </tr> </table> <p><br> <strong>Оценка</strong>: <?php if ($this->_tpl_vars['link']['otsenka'] > 0): ?> <?php echo $this->_tpl_vars['link']['otsenka']; ?>
<?php else: ?> не оценивалось <?php endif; ?><br> <strong>Голосов</strong>: <?php if ($this->_tpl_vars['link']['voters'] > 0): ?> <?php echo $this->_tpl_vars['link']['voters']; ?>
<?php else: ?> 0 <?php endif; ?><br> </p> <p> <strong>Параметры</strong>: <font color="#9a9a9a">тИЦ: <?php echo $this->_tpl_vars['link']['tic']; ?> , PageRank: <?php echo $this->_tpl_vars['link']['pr']; ?> , просмотров: <?php echo $this->_tpl_vars['link']['views']; ?>
<?php if (! $this->_tpl_vars['settings']['linehref']): ?> , переходов: <?php echo $this->_tpl_vars['link']['visitors']; ?>
<?php endif; ?> <?php if ($this->_tpl_vars['settings']['show_p1']): ?> <?php echo $this->_tpl_vars['settings']['name_p1']; ?> : <?php echo $this->_tpl_vars['href']['p1']; ?> <?php endif; ?> <?php if ($this->_tpl_vars['settings']['show_p2']): ?> <?php echo $this->_tpl_vars['settings']['name_p2']; ?> : <?php echo $this->_tpl_vars['href']['p2']; ?> <?php endif; ?> <?php if ($this->_tpl_vars['settings']['show_p3']): ?> <?php echo $this->_tpl_vars['settings']['name_p3']; ?> : <?php echo $this->_tpl_vars['href']['p3']; ?> <?php endif; ?> </font> </p> <h2 style="padding-left:0px;">Описание участника:</h2> <?php if ($this->_tpl_vars['link']['longdescription']): ?> <?php echo $this->_tpl_vars['link']['longdescription']; ?>
<?php else: ?> не указано <?php endif; ?> <?php else: ?> Описание ссылки не найдено! <?php endif; ?> </div> <h2>Оцените участника!</h2> <?php echo ' <script> function fvote(id_link) { var g=1; for (i=0;i<=4;i++) { if (document.frm.vote[i].checked) g=i+1; } xajax_vote(id_link,g); } </script> '; ?> <div id="votes" style="padding-left:22px;"> <form name="frm"> <input type="radio" name="vote" value="1"> 1 <input type="radio" name="vote" value="2"> 2 <input type="radio" name="vote" value="3"> 3 <input type="radio" name="vote" value="4"> 4 <input type="radio" name="vote" value="5" checked> 5 <input type="button" value="голосовать" onclick="fvote(<?php echo $this->_tpl_vars['href']['id_link']; ?> )"> </form> </div> </p> <?php else: ?> <h2>Ссылка еще не опубликована!</h2> <?php endif; ?> <?php else: ?> <h2>Ссылки не существует!</h2> <?php endif; ?> </div> <?php else: ?> <h2>Эта опция отключена администратором</h2> <?php endif; ?>
|
но всеравно возникл проблема прикрутить... Добавлено @ 23:46Нормально переваривается таким методом маинлинк в footer.tpl....этот скрипт не хочет Это сообщение отредактировал(а) skyboy - 27.2.2008, 02:43
|