User Tools

Site Tools


ru:doc:faq

Часто задаваемые вопросы

Что такое FlatPress?

FlatPress - это расширяемая система для ведения блогов, соответствующая стандартам и совместимая с базами данных SPB.

Могу ли я использовать темы и дополнения от WordPress во FlatPress ?

Извините ;) мы планируем творить волшебство, но пока что мы к этому не готовы.

Наверное, повторять FlatPress это НЕ “WordPress на простых файлах” придётся всегда. Дополнения от WordPress обычно НЕ работают во FlatPress. Впрочем, иногда дополнение может быть всего лишь в паре-тройке строчек от рабочего состояния :) Фактически, многие встроенные фильтры текста перенесены из WP.

Files for download are .tar.bz2 archives. Can you provide zipped archives?

Maintaining packages for all the OS's is quite complicated. Why shouldn't I provide a .sit for MACs, then? Bzip2 has a great compression for text files and you can easiliy expand it on every platform.

On Windows I'd suggest the opensource 7-zip or the freeware tug-zip which are free and will give you access to many other compression formats such as rar and tar.gz beside tar.bz2.

If you'll use one of these apps, packages won't stand on my nerves and I will have much more time to work at the development ;)

Что такое BBCode?

Какие теги реализованы?

Читайте bbcode

Как у вас реализован BBCode?

Мы используем вот этот замечательный класс: StringParser_BBCode

How do I import my old SPB entries in FP ?

Usually is just a matter of copying you content/ and images/ into your fp-content/ directory. I'd anyway suggest you to convert you're entries to the UTF-8 encoding (see next question).

Why do I see some strange characters in my old entries?

Maybe you didn't convert them from iso-8859-15 to utf-8 Please have a look here: http://spbitalia.altervista.org/forum/viewtopic.php?id=491 You can always choose a different encoding from the Admin Panel (Config), but I always suggest the conversion. UTF-8 allows you to enter in you page characters for every known language. More info on http://unicode.org/.

If you are trying to convert your files after you already installed FP, please delete the files in fp-content/cache/

If you have this issue with just a few characters, system may fail sometimes with a few of them: it's a matter of a very few cases and particular situations. Just edit the entry with the problem, fix the character, and, once saved, you should never see this again.

I'm used to SPB blocks; how can I customize them ?

Blocks in FP are very different from the ones you used to see in SPB. If you want to create a text sidebar block as you used to do in SPB the procedure may look a little more complicated, but really it's a little price to pay to get a much, much more versatile system.

In FP, create a new static page (see below) and choose a name for it (not the title, I'm talking about the little text box at the bottom of the editor) and choose a name you like. For instance, “myblock”. Save your static page, and then go to the Widget panel.

Now insert a new blockparser where you want your block to appear. Blockparser is the plugin which parses (i.e. reads) a static page and treats it as the content of a block. syntax for the widget config:

// [...] here would be preceding lines
     'pluginname', // this is an old widget
     'blockparser:myblock', // this is a block created using the widget blockparser, parsing \"myblock\" static page
// [...] // lines that follow

so 'blockparser:STATICNAME' : blockparser column name of the static pahe, all between single quotes.

Save the config, you should see it after the next page refresh (click any link).

See also here http://spbitalia.altervista.org/forum/viewtopic.php?pid=3429#p3429 (ITA)

What is a widget?

A Widget is a dynamic component displayed (depending on the theme and on your config) on a topbar, on the right sidebar (default), etc. With “dynamic component” we mean a plugin providing a special interface (the widget function) designed to print content on the page when called. We called them “widget” and not “blocks” because we see blocks as passive elements which just display content, while widgets (which are php-coded as the common plugins) can of course execute code. A widget can then provide more advanced functions than just displaying a list of links (for which I'd suggest the static+blockparser combo), you may for instance have a widget fetching a displaying an rss feed from an external web page. The only limit is what php can do :)

What is a static page?

A static page is an entry completely unlinked from the normal blog entry flux and that can't be commented. It can be reached using the file name you chose when you save it as a parameter for the URL; for instance if you choose MY_PAGE as a file name (not as a title!) you will be able to access your page using http://mysite.com/flatpress/static.php?page=MY_PAGE Where are my static page linked? How do I show them out?

SPB creates automatically a list of the static pages you have; however we decided to let the user decide wether to link or not his static page, and this without complex interfaces: just create another static page with your own list of links and bind it to a blockparser widget for instance:

[list]
[*][url=static.php?page=MY_PAGE]My Page[/url]
[*][url=static.php?page=ANOTHER_PAGE]Another Page[/url]
[/list]

How do I add a new widget?

Add the corresponding plugin both to the plugin list and to the widget list in the section and at the position you want it to go.

Widgets are organized in groups or bars; every bar can contain any number of widgets. These bars are then displayed on the theme using the special tag {widget pos=BAR} where BAR is the name of the bar.

Generally in themes you have one ore more predefined widget bars. Usually you have at least the right bar; a lot of themes display both the contents of the left and of the right bar even if they actually have one single column of widgets (they show them together, one group after the other).

To add a new widget you add its plugin name to the plugin list in the panel, and the choose one of the groups and add the plugin name to the list as well. As you saw in the blockparser example, some widget may expect you to provide some parameters as well.

I have enabled a widget in the plugin panel but I don't see anywhere in my sidebars

As we said, Widgets are special plugins providing a widget function; by the way FlatPress does not know where you want it to appear, so, once a plugin widget is loaded, you should enable it in the widget panel as well (see the previous question).

Are multiple users supported?

The short answer is no.

You should better ask “can I have more than one user?”. In this case the answer is “yes, but it's not supported” :D

Actually you can run the installer multiple times; if you choose a different username for each time you run the setup, the old user won't be deleted, and so you'll get one user for each time you run the setup.

The drawbacks in this are that every user has administrative powers and there is little or no checks on probable race conditions: for instance, if two you are editing two posts at the same time, strange things may happen: FP may for instance not show one of the posts (clean the cache from the Maintenance panel); if two of you are editing the same posts, the changes of the first to post will be probably lost, overwritten by the changes the other did (no fix for this at the moment).

Of course, working on this is on my todo; you might expect to see something more in a few months…

Почему установщик издевается надо мной?

Потому что я злой!!!11

Я забыл пароль!

  1. Удалите файл %%setup.lock из каталога fp-content;
  2. создайте резервную копию fp-content/config;
  3. запустите установку, укажите то же самое имя, но другой пароль;
  4. восстановите fp-content/config/ из резервной копии.

Я нашёл баг!

Подождите минутку и подумайте дважды. Подумали? Подумайте ещё раз :D Это правда баг или нереализованая возможность?

Баг - это неправильное поведение. Например, если вы создали новый пост, а он не появился (или появился, но не там где надо), это баг. Вы можете связаться с нами, но сначала убедитесь, что у вас установлена последняя версия FlatPress. Если нет, обновитесь, возможно, баг уже нашли и исправили.

Если же вы сохранили пост и он не спел и не станцевал, это скорее всего нереализованная возможность и вам никуда обращаться не надо :)

Можно купить вам пиво?

Можно даже два ;)

ru/doc/faq.txt · Last modified: 2011/07/03 14:16 by surendil