News Scripting for SMF 1.1
Copyright © 2006-2007 Simple
Machines LLC.
All Rights Reserved.
http://www.simplemachines.org/
-
Setup the include statement on the page you wish your news to appear on
according to the type of file you will be using (either PHP or SHTML.)
This example will use PHP.
-
Start with the include to point to SSI.php in your root SMF directory.
e.g. <?php include('http://www.simplemachines.org/community/SSI.php');
?>
-
Add ?ssi_function=boardNews;board=n to the end of
the URL above. Make sure you replace the n with the
number of the board you want news to appear from.
e.g. <?php include('http://www.simplemachines.org/community/SSI.php?ssi_function=boardNews;board=9');
?>
That is all you need to do to get your basic script running. You can
add any of the following to the end of that, but make sure you put a
semicolon (;) between each variable. These variables
aren't needed, but provide better versatility.
- limit=n
- Limits the amount of news items to show (the default is 5.)
- length=n
- Limits the length of each post to n
characters (the default is to impose no limit.)
- start=n
- Starts the news items at a certain offset. (the default is 0)
e.g. <?php include('http://www.simplemachines.org/community/SSI.php?ssi_function=boardNews;board=9;limit=7');
?>
This shows an example of how one might change the limit on the news
items.
Personal development in the forum "Create Your World" → you
can write to Sergei Baryshnikov at - http://article.klandaic.com/index.php?id=65
На форуме
"Создай свой мир", можно посмотреть Ленту новых
статей
и тем.
Or on the file
to use the news.
Verses
by Alexander Pushkin
О,
сколько нам открытий чудных
Готовит
просвещенья дух
И
опыт, сын ошибок трудных,
И
гений, парадоксов друг,
И
случай, бог изобретатель,
И
беззаботный созидатель –
Блаженный
гений и талант –
Один
– алмаз, другой – бриллиант,
Воображенье
– дерзкий странник,
И
восхищение творцом,
Чей
неизвестный нам посланник
С
неузнаваемым лицом
И
в величайших откровеньях,
И
в мимолётнейших прозреньях
Явленью
всякому дал суд –
Всё
достигается чрез труд
Если
ВЫ новичок читайте инструкции
от Сергея Барышникова ⇒
Если
Вы зарегистрированный пользователь свяжитесь с Барышниковым по электронной
почте ⇒
Если для Вас очень важно, или вы родственник, то Вы можете получить
телефонный номер Сергея.
⇒