Witka :soczek:
mam pytanko:
przy instalowaniu Featured Links mod w phpld trzeba zrobic 2 rzeczy:
1.zamienic index.php w glownym folderze
i
2.Create a link in your template file using the following href tag:
href="{$smarty.const.DOC_ROOT}/index.php?list=featured"
i o co chodzi z 2 punktem????
thx
Strona 1 z 1
pomoc w instalowaniu Featured Links mod w phpld
#2
Napisano 30 wrzesień 2008 - 03:44
Nie musisz podmieniać pliku index.php.
Wystarczy dodać taki kodzik:
Znajdź w kodzie:
case 'latestlinks' :
i następnie przed:
default:
http_redirect(DOC_ROOT);
break;
Wklej kod który podałem.
Potem w zależności od szablonu dodajesz link do wywołania future.
U nie jest on w top-bar.tpl i jest tej postaci:
<a href="{$smarty.const.DOC_ROOT}/featured.html">New Featured</a>
Efekt masz tu:
http://www.maxlinks.org/featured.html
Dopisz do htaccess:
zaraz pod: ##Latest Articles Rewrite
##TOP FUTURE
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^featured\.htm[l]?$ index.php?list=future [QSA,NC,L]
I masz Freindly Url.
Wystarczy dodać taki kodzik:
CODE
case 'future':
$links = $db->GetAll("SELECT * FROM {$tables['link']['name']} WHERE STATUS=2 AND FEATURED = 1 ORDER BY DATE_ADDED DESC limit 0, ".LINKS_TOP);
$path[] = array ('ID' => '0', 'TITLE' => _L('Top ' . LINKS_TOP . ' Last Featured '), 'TITLE_URL' => '', 'DESCRIPTION' => '');
break;
$links = $db->GetAll("SELECT * FROM {$tables['link']['name']} WHERE STATUS=2 AND FEATURED = 1 ORDER BY DATE_ADDED DESC limit 0, ".LINKS_TOP);
$path[] = array ('ID' => '0', 'TITLE' => _L('Top ' . LINKS_TOP . ' Last Featured '), 'TITLE_URL' => '', 'DESCRIPTION' => '');
break;
Znajdź w kodzie:
case 'latestlinks' :
i następnie przed:
default:
http_redirect(DOC_ROOT);
break;
Wklej kod który podałem.
Potem w zależności od szablonu dodajesz link do wywołania future.
U nie jest on w top-bar.tpl i jest tej postaci:
<a href="{$smarty.const.DOC_ROOT}/featured.html">New Featured</a>
Efekt masz tu:
http://www.maxlinks.org/featured.html
Dopisz do htaccess:
zaraz pod: ##Latest Articles Rewrite
CODE
##TOP FUTURE
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^featured\.htm[l]?$ index.php?list=future [QSA,NC,L]
I masz Freindly Url.
Udostępnij ten temat:
Strona 1 z 1

Pomoc












