Ogólne - Podstrony w nawigacji
karzniczka - 27-03-2016, 18:28 Temat postu: Podstrony w nawigacji Witam
Mam problem z dodaniem memberlist itp. do nawigacji , wiem że można to wyświetlić za pomocą html w plikach ale chciałbym pododawać sobie do functions.php.
Próbowałem dodać:
Kod: | case STRONY:
$field_name = '';
$param_type = '';
$param_value = 'faq';
$pgm_name = "faq.php";
break; |
do
Kod: | // find the object
$athis = isset($tree['keys'][$cur]) ? $tree['keys'][$cur] : -1;
$res = '';
while (($athis >= 0) || ($fcur != ''))
{
$type = (substr($fcur, 0, 1) != '') ? substr($cur, 0, 1) : $tree['type'][$athis];
switch($type)
{
case POST_CAT_URL:
$field_name = get_object_lang($cur, 'name');
$param_type = POST_CAT_URL;
$param_value = $tree['id'][$athis];
$pgm_name = "index.$phpEx";
break;
case POST_FORUM_URL:
$field_name = get_object_lang($cur, 'name');
$param_type = POST_FORUM_URL;
$param_value = $tree['id'][$athis];
$pgm_name = "viewforum.$phpEx";
break;
case POST_TOPIC_URL:
$field_name = replace_encoded($topic_title);
$param_type = POST_TOPIC_URL;
$param_value = $id;
$pgm_name = "viewtopic.$phpEx";
break;
case POST_POST_URL:
$field_name = replace_encoded($topic_title);
$param_type = POST_POST_URL;
$param_value = $id . '#' . $id;
$pgm_name = "viewtopic.$phpEx";
break;
default :
$field_name = '';
$param_type = '';
$param_value = '';
$pgm_name = "index.$phpEx";
break;
} |
ale nic nie wyświetla.
Woytec - 23-05-2020, 21:36
To nie ten kod. Do tego służy page_tail.php i overall_footer.tpl
|
|
|