Перейти к содержанию
Форум поддержки пользователей VamShop

Делаю менюшку для статей-разделов


Рекомендуемые сообщения

Картина такая

На странице статьи хочу вывести ссылки на другие статьи в отдельном боксе

Просто на странице статьи выводится. беру так:

из articles.php


// the following tPath references come from application_top.php
$topic_depth = 'top';
if (isset($tPath) && vam_not_null($tPath)) {
$topics_articles_query = "select count(*) as total from " . TABLE_ARTICLES_TO_TOPICS . " where topics_id = '" . (int)$current_topic_id . "'";
$topics_articles_query = vamDBquery($topics_articles_query);
$topics_articles = vam_db_fetch_array($topics_articles_query);
if ($topics_articles['total'] > 0) {
$topic_depth = 'articles'; // display articles
} else {
$topic_parent_query = "select count(*) as total from " . TABLE_TOPICS . " where parent_id = '" . (int)$current_topic_id . "'";
$topic_parent_query = vamDBquery($topic_parent_query);
$topic_parent = vam_db_fetch_array($topic_parent_query);
if ($topic_parent['total'] > 0) {
$topic_depth = 'nested'; // navigate through the topics
} else {
$topic_depth = 'articles'; // topic has no articles, but display the 'no articles' message
}
}
}
if ($topic_depth == 'top' && !isset($_GET['authors_id'])) {
$breadcrumb->add(NAVBAR_TITLE_DEFAULT, vam_href_link(FILENAME_ARTICLES));
}
$topic_query = vam_db_query("select td.topics_name, td.topics_heading_title, td.topics_description from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.topics_id = '" . (int)$current_topic_id . "' and td.topics_id = '" . (int)$current_topic_id . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "'");
$topic = vam_db_fetch_array($topic_query);
if (vam_not_null($topic['topics_name'])) {
$topic_name = $topic['topics_name'];
} else {
$topic_name = NAVBAR_TITLE_DEFAULT;
}
$vamTemplate->assign('HEADER_TEXT', $topic_name);
if (vam_not_null($topic['topics_heading_title'])) {
$vamTemplate->assign('TOPICS_HEADING_TITLE', $topic['topics_heading_title']);
}

if (vam_not_null($topic['topics_description'])) {
$vamTemplate->assign('TOPICS_DESCRIPTION', $topic['topics_description']);
}

require (DIR_WS_INCLUDES.'header.php');
if ($topic_depth == 'articles' || isset($_GET['authors_id'])) {
// show the articles of a specified author
if (isset($_GET['authors_id'])) {

$listing_sql = "select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and au.authors_id = '" . (int)$_GET['authors_id'] . "' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' order by a.sort_order, ad.articles_name";
} else {

$listing_sql = "select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' and a2t.topics_id = '" . (int)$current_topic_id . "' order by a.sort_order, ad.articles_name";
}
} else {

$listing_sql = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' ORDER BY IF (`a`.`sort_order`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
}
if ($_GET['akeywords'] != ""){

$_GET['akeywords'] = urldecode($_GET['akeywords']);

if (isset($_GET['description'])) {
$listing_sql = "select ad.articles_name, a.articles_date_added, a.articles_date_available, a.articles_id, ad.articles_description from " . TABLE_ARTICLES_DESCRIPTION . " ad inner join " . TABLE_ARTICLES . " a on ad.articles_id = a.articles_id where a.articles_status = '1' and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and (ad.articles_name like '%" . $_GET['akeywords'] . "%' or ad.articles_description like '%" . $_GET['akeywords'] . "%' or ad.articles_head_desc_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_keywords_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_title_tag like '%" . $_GET['akeywords'] . "%') order by ad.articles_name ASC";
} else {
$listing_sql = "select ad.articles_name, a.articles_date_added, a.articles_date_available, a.articles_id, ad.articles_description from " . TABLE_ARTICLES_DESCRIPTION . " ad inner join " . TABLE_ARTICLES . " a on ad.articles_id = a.articles_id where a.articles_status='1' and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and (ad.articles_name like '%" . $_GET['akeywords'] . "%' or ad.articles_head_desc_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_keywords_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_title_tag like '%" . $_GET['akeywords'] . "%') order by a.sort_order, ad.articles_name ASC";
}
}

$articles_split = new splitPageResults($listing_sql, $_GET['page'], MAX_ARTICLES_PER_PAGE);
if (($articles_split->number_of_rows > 0)) {
$vamTemplate->assign('NAVIGATION_BAR', TEXT_RESULT_PAGE.' '.$articles_split->display_links(MAX_DISPLAY_PAGE_LINKS, vam_get_all_get_params(array ('page', 'info', 'x', 'y'))));
$vamTemplate->assign('NAVIGATION_BAR_PAGES', $articles_split->display_count(TEXT_DISPLAY_NUMBER_OF_ARTICLES));
}
$module_content = '';
if ($articles_split->number_of_rows > 0) {
$vamTemplate->assign('no_articles', 'false');
$articles_query = vam_db_query($articles_split->sql_query);
while ($articles = vam_db_fetch_array($articles_query)) {
$SEF_parameter = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter = '&article='.vam_cleanName($articles['articles_name']);
$SEF_parameter_author = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter_author = '&author='.vam_cleanName($articles['authors_name']);
$SEF_parameter_category = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter_category = '&category='.vam_cleanName($articles['topics_name']);
$module_content[] = array (

'ARTICLE_NAME' => $articles['articles_name'],
'ARTICLE_SHORT_DESCRIPTION' => $articles['articles_head_desc_tag'],
'ARTICLE_DATE' => vam_date_long($articles['articles_date_added']),
'ARTICLE_LINK' => vam_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles['articles_id'] . $SEF_parameter),
'AUTHOR_NAME' => $articles['authors_name'],
'AUTHOR_LINK' => vam_href_link(FILENAME_ARTICLES, 'authors_id=' . $articles['authors_id'] . $SEF_parameter_author),
'ARTICLE_CATEGORY_NAME' => $articles['topics_name'],
'ARTICLE_CATEGORY_LINK' => vam_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . $SEF_parameter_category)

);
}
} else {
$vamTemplate->assign('no_articles', 'true');
}
[/CODE] Вставляю в articles_info.php ссылик выводятся на странице статьи. Но когда создаю бокс(бокс сделал правильно-выводится) и вставляю в my_box.php
[CODE]
<?php
// reset var
$box = new vamTemplate;
$box_content='';
$flag='';
$box->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
$box_content = '';

/* -----------------------------------------------------------------------------------------
$Id: article_info.php 1292 2007-02-06 19:20:03 VaM $
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(products_new.php,v 1.25 2003/05/27); www.oscommerce.com
(c) 2003 nextcommerce (products_new.php,v 1.16 2003/08/18); www.nextcommerce.org
(c) 2004 xt:Commerce (products_new.php,v 1.16 2003/08/18); xt-commerce.com
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contributions:
Enable_Disable_Categories 1.3 Autor: Mikel Williams | mikel@ladykatcostumes.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/

// include needed function
require_once (DIR_FS_INC.'vam_date_long.inc.php');
require (DIR_WS_INCLUDES.'header.php');

// the following tPath references come from application_top.php
$topic_depth = 'top';
if (isset($tPath) && vam_not_null($tPath)) {
$topics_articles_query = "select count(*) as total from " . TABLE_ARTICLES_TO_TOPICS . " where topics_id = '" . (int)$current_topic_id . "'";
$topics_articles_query = vamDBquery($topics_articles_query);
$topics_articles = vam_db_fetch_array($topics_articles_query);
if ($topics_articles['total'] > 0) {
$topic_depth = 'articles'; // display articles
} else {
$topic_parent_query = "select count(*) as total from " . TABLE_TOPICS . " where parent_id = '" . (int)$current_topic_id . "'";
$topic_parent_query = vamDBquery($topic_parent_query);
$topic_parent = vam_db_fetch_array($topic_parent_query);
if ($topic_parent['total'] > 0) {
$topic_depth = 'nested'; // navigate through the topics
} else {
$topic_depth = 'articles'; // topic has no articles, but display the 'no articles' message
}
}
}
if ($topic_depth == 'top' && !isset($_GET['authors_id'])) {
$breadcrumb->add(NAVBAR_TITLE_DEFAULT, vam_href_link(FILENAME_ARTICLES));
}
$topic_query = vam_db_query("select td.topics_name, td.topics_heading_title, td.topics_description from " . TABLE_TOPICS . " t, " . TABLE_TOPICS_DESCRIPTION . " td where t.topics_id = '" . (int)$current_topic_id . "' and td.topics_id = '" . (int)$current_topic_id . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "'");
$topic = vam_db_fetch_array($topic_query);
if (vam_not_null($topic['topics_name'])) {
$topic_name = $topic['topics_name'];
} else {
$topic_name = NAVBAR_TITLE_DEFAULT;
}
$vamTemplate->assign('HEADER_TEXT', $topic_name);
if (vam_not_null($topic['topics_heading_title'])) {
$vamTemplate->assign('TOPICS_HEADING_TITLE', $topic['topics_heading_title']);
}

if (vam_not_null($topic['topics_description'])) {
$vamTemplate->assign('TOPICS_DESCRIPTION', $topic['topics_description']);
}

require (DIR_WS_INCLUDES.'header.php');
if ($topic_depth == 'articles' || isset($_GET['authors_id'])) {
// show the articles of a specified author
if (isset($_GET['authors_id'])) {

$listing_sql = "select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and au.authors_id = '" . (int)$_GET['authors_id'] . "' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' order by a.sort_order, ad.articles_name";
} else {

$listing_sql = "select a.articles_id, a.authors_id, a.articles_date_added, ad.articles_name, ad.articles_head_desc_tag, au.authors_name, td.topics_name, a2t.topics_id from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_status = '1' and a.articles_id = a2t.articles_id and ad.articles_id = a2t.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' and a2t.topics_id = '" . (int)$current_topic_id . "' order by a.sort_order, ad.articles_name";
}
} else {

$listing_sql = "select a.articles_id, a.articles_date_added, a.articles_date_available, ad.articles_name, ad.articles_head_desc_tag, ad.articles_viewed, au.authors_id, au.authors_name, td.topics_id, td.topics_name from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_TO_TOPICS . " a2t left join " . TABLE_TOPICS_DESCRIPTION . " td on a2t.topics_id = td.topics_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where (a.articles_date_available IS NULL or to_days(a.articles_date_available) <= to_days(now())) and a.articles_id = a2t.articles_id and a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and td.language_id = '" . (int)$_SESSION['languages_id'] . "' ORDER BY IF (`a`.`sort_order`,`a`.`articles_date_available`, `a`.`articles_date_added`) DESC";
}
if ($_GET['akeywords'] != ""){

$_GET['akeywords'] = urldecode($_GET['akeywords']);

if (isset($_GET['description'])) {
$listing_sql = "select ad.articles_name, a.articles_date_added, a.articles_date_available, a.articles_id, ad.articles_description from " . TABLE_ARTICLES_DESCRIPTION . " ad inner join " . TABLE_ARTICLES . " a on ad.articles_id = a.articles_id where a.articles_status = '1' and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and (ad.articles_name like '%" . $_GET['akeywords'] . "%' or ad.articles_description like '%" . $_GET['akeywords'] . "%' or ad.articles_head_desc_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_keywords_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_title_tag like '%" . $_GET['akeywords'] . "%') order by ad.articles_name ASC";
} else {
$listing_sql = "select ad.articles_name, a.articles_date_added, a.articles_date_available, a.articles_id, ad.articles_description from " . TABLE_ARTICLES_DESCRIPTION . " ad inner join " . TABLE_ARTICLES . " a on ad.articles_id = a.articles_id where a.articles_status='1' and ad.language_id = '" . (int)$_SESSION['languages_id'] . "' and (ad.articles_name like '%" . $_GET['akeywords'] . "%' or ad.articles_head_desc_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_keywords_tag like '%" . $_GET['akeywords'] . "%' or ad.articles_head_title_tag like '%" . $_GET['akeywords'] . "%') order by a.sort_order, ad.articles_name ASC";
}
}

$articles_split = new splitPageResults($listing_sql, $_GET['page'], MAX_ARTICLES_PER_PAGE);
if (($articles_split->number_of_rows > 0)) {
$vamTemplate->assign('NAVIGATION_BAR', TEXT_RESULT_PAGE.' '.$articles_split->display_links(MAX_DISPLAY_PAGE_LINKS, vam_get_all_get_params(array ('page', 'info', 'x', 'y'))));
$vamTemplate->assign('NAVIGATION_BAR_PAGES', $articles_split->display_count(TEXT_DISPLAY_NUMBER_OF_ARTICLES));
}
$module_content = '';
if ($articles_split->number_of_rows > 0) {
$vamTemplate->assign('no_articles', 'false');
$articles_query = vam_db_query($articles_split->sql_query);
while ($articles = vam_db_fetch_array($articles_query)) {
$SEF_parameter = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter = '&article='.vam_cleanName($articles['articles_name']);
$SEF_parameter_author = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter_author = '&author='.vam_cleanName($articles['authors_name']);
$SEF_parameter_category = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter_category = '&category='.vam_cleanName($articles['topics_name']);
$module_content[] = array (

'ARTICLE_NAME' => $articles['articles_name'],
'ARTICLE_SHORT_DESCRIPTION' => $articles['articles_head_desc_tag'],
'ARTICLE_DATE' => vam_date_long($articles['articles_date_added']),
'ARTICLE_LINK' => vam_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles['articles_id'] . $SEF_parameter),
'AUTHOR_NAME' => $articles['authors_name'],
'AUTHOR_LINK' => vam_href_link(FILENAME_ARTICLES, 'authors_id=' . $articles['authors_id'] . $SEF_parameter_author),
'ARTICLE_CATEGORY_NAME' => $articles['topics_name'],
'ARTICLE_CATEGORY_LINK' => vam_href_link(FILENAME_ARTICLES, 'tPath=' . $tPath . $SEF_parameter_category)

);
}
} else {
$vamTemplate->assign('no_articles', 'true');
}
$article_check_query = "select count(*) as total from " . TABLE_ARTICLES . " a, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.articles_status = '1' and a.articles_id = '" . (int)$_GET['articles_id'] . "' and ad.articles_id = a.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "'";
$article_check_query = vamDBquery($article_check_query);
$article_check = vam_db_fetch_array($article_check_query, true);
$article_info_query = "select a.articles_id, a.articles_date_added, a.articles_date_available, a.authors_id, ad.articles_name, ad.articles_description, ad.articles_url, ad.articles_viewed, au.authors_name from " . TABLE_ARTICLES . " a left join " . TABLE_AUTHORS . " au on a.authors_id = au.authors_id, " . TABLE_ARTICLES_DESCRIPTION . " ad where a.articles_status = '1' and a.articles_id = '" . (int)$_GET['articles_id'] . "' and ad.articles_id = a.articles_id and ad.language_id = '" . (int)$_SESSION['languages_id'] . "'";
$article_info_query = vamDBquery($article_info_query);
$article_info = vam_db_fetch_array($article_info_query, true);
vam_db_query("update " . TABLE_ARTICLES_DESCRIPTION . " set articles_viewed = articles_viewed+1 where articles_id = '" . (int)$_GET['articles_id'] . "' and language_id = '" . (int)$_SESSION['languages_id'] . "'");
if ($article_check['total'] > 0) {
$vamTemplate->assign('no_article', 'false');
$SEF_parameter_author = '';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true')
$SEF_parameter_author = '&author='.vam_cleanName($article_info['authors_name']);
$vamTemplate->assign('ARTICLE_NAME', $article_info['articles_name']);
$vamTemplate->assign('ARTICLE_DESCRIPTION', $article_info['articles_description']);
$vamTemplate->assign('ARTICLE_VIEWED', $article_info['articles_viewed']);
$vamTemplate->assign('ARTICLE_DATE', vam_date_long($article_info['articles_date_added']));
$vamTemplate->assign('ARTICLE_URL', $article_info['articles_url']);
$vamTemplate->assign('AUTHOR_NAME', $article_info['authors_name']);
$vamTemplate->assign('AUTHOR_LINK' , vam_href_link(FILENAME_ARTICLES, 'authors_id=' . $article_info['authors_id'] . $SEF_parameter_author));
include (DIR_WS_MODULES.FILENAME_ARTICLES_XSELL);

} else {
$vamTemplate->assign('no_article', 'true');
}
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$vamTemplate->assign('module_content', $module_content);
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE.'/module/article_info.html');
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
include ('includes/application_bottom.php');

$box->caching = 0;
$box->assign('language', $_SESSION['language']);
$box_admin= $box->fetch(CURRENT_TEMPLATE.'/boxes/box_link_articles.html');
$vamTemplate->assign('box_LINK_ARTICLES',$box_admin);
?>
и в html шаблон бокса вставляю

{config_load file="$language/lang_$language.conf" section="boxes"}
{config_load file="$language/lang_$language.conf" section="articles"}
ssssssssssssssssss
{if $TOPICS_HEADING_TITLE}
<p>
{$TOPICS_HEADING_TITLE}
</p>
{/if}
{if $TOPICS_DESCRIPTION}
<p>
{$TOPICS_DESCRIPTION}
</p>
{/if}

{if $no_articles=='true'}
<p>
{#text_no_articles#}
</p>
{else}
{foreach name=aussen item=module_data from=$module_content}
<div class="page">
<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
<div class="pageItem">
<p>
<a href="{$module_data.ARTICLE_LINK}">{$module_data.ARTICLE_NAME}</a>
</p>
{if $module_data.AUTHOR_NAME}
<p>
{#text_author#} <a href="{$module_data.AUTHOR_LINK}">{$module_data.AUTHOR_NAME}</a>
</p>
{/if}
<div class="clear"></div>
</div>
<b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b>
</div>
{/foreach}
<div class="clear"></div>
<div class="navigation">
<span class="right">{$NAVIGATION_BAR}</span>{$NAVIGATION_BAR_PAGES}
</div>
<div class="clear"></div>
{/if}
{if $no_article=='true'}
<p>
{#text_no_article#}
</p>
{else}
<div class="page">
<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b>
<div class="pageItem">
{if $ARTICLE_DESCRIPTION}
<p>
{$ARTICLE_DESCRIPTION}
</p>
{/if}
{if $ARTICLE_VIEWED}
<p>
{#text_viewed#} {$ARTICLE_VIEWED}
</p>
{/if}
{if $AUTHOR_NAME}
<p>
{#text_author#} <a href="{$AUTHOR_LINK}">{$AUTHOR_NAME}</a>
</p>
{/if}
{if $ARTICLE_DATE}
<p>
{#text_date#} {$ARTICLE_DATE}
</p>
{/if}
{if $ARTICLE_URL}
<p>
{#text_url#} <a href="http://{$ARTICLE_URL}" target="_blank">http://{$ARTICLE_URL}</a>
</p>
{/if}
<div class="clear"></div>
</div>
<b class="b4b"></b><b class="b3b"></b><b class="b2b"></b><b class="b1b"></b>
</div>
{if $MODULE_articles_xsell != ''}
{$MODULE_articles_xsell}
{/if}
<div class="clear"></div>
{/if}
[/code]

То выводится только sssssss :)

Саш, направь плиз

Ссылка на сообщение
Поделиться на другие сайты

Сложно так сказать по куче кода.

Видимо, дело в названии переменных.

Вы начните с чего-то попрощу, т.е. сначала сделайте пустой бокс, потом добавьте какие-то простые данные, потом Sql запрос и смотрите что он выводит.

Так по-шагово вполне всё получится, а не сразу разом, да и понимание процесса будет.

Ссылка на сообщение
Поделиться на другие сайты

так вот бокс выводится, маленькие SQL ки то же.

Саш, по сути для php разницы не должно быть выводится в боксе или еще где?

Если так, значит что то не то делаю

Ссылка на сообщение
Поделиться на другие сайты

Разницы не должно быть.

Наверное переменная неправильно обявлена или ещё что.

Ну напрмиер вместо $vamTemplate написано $boxContent или ещё как.

Нужно вобщем смотреть стандартные боксы и свой.

Ссылка на сообщение
Поделиться на другие сайты

хм.... я наверное что не так делаю.... если взять почему то из php не выводится ничего. но в код html бокса вставляю-выводится (текст например)

Ссылка на сообщение
Поделиться на другие сайты

Решил я не тупить и не резать бокс а засунуть ссылки в id и версткой загнать в сайтбар справа(сверху) и всх дел.

Ссылка на сообщение
Поделиться на другие сайты

Решил я не тупить и не резать бокс а засунуть ссылки в id и версткой загнать в сайтбар справа(сверху) и всх дел.

"Самое правильное решение часто бывает простым до глупости." (С) Кобо Абэ

Ссылка на сообщение
Поделиться на другие сайты

"Самое правильное решение часто бывает простым до глупости." (С) Кобо Абэ

и не говори ка. весь день голову ломал, а потом отвлекся и "озарило" что я просто тупил с боксом

Ссылка на сообщение
Поделиться на другие сайты
×
×
  • Создать...