if (!empty($fp_params['entry'])) {
index_singlepost($params, $module);
} elseif (
($explicit_req = $page = @$fp_params['page']) ||
(empty($fp_params) && $page = @$fp_config['general']['startpage'])
) {
index_staticpage($page, $explicit_req, $params, $module);
if you don't need rss/atom feeds, you can delete the whole if/else block and replace it with a single call to index_showposts($params, $module);
HTH
Now, a Warning, even though you are asking your users not to edit the *same* entry, this won't prevent the index from being corrupted, since the access to the indices is not exclusive.
So, suppose A writes entry1 and B writes entry2, if A hits SAVE and then B hits SAVE while the update operation for entry1 has not completed, either you'll get a corrupt and non-working index, or one of the two entry won't show up (probably A's).
However I've seen myself that rebuilding the indices is quite quick, so you'll just have to go to the maintainance tab and choose that option.
Posted By: NoWhereManNow, a Warning, even though you are asking your users not to edit the *same* entry, this won't prevent the index from being corrupted, since the access to the indices is not exclusive. So, suppose A writes entry1 and B writes entry2, if A hits SAVE and then B hits SAVE while the update operation for entry1 has not completed, either you'll get a corrupt and non-working index, or one of the two entry won't show up (probably A's). However I've seen myself that rebuilding the indices is quite quick, so you'll just have to go to the maintainance tab and choose that option.
Posted By: lantacais possible to make a plug in to do these? Private area and multy member access?
Posted By: NoWhereManhey, I've figured out how to hack a plugin :)
Posted By: oddis this plugin outdated?
title: Login required content: Hello, this is a private area, please [url=login.php]Login[/url]. Thanks in advanced ;)
fp-interface/themes/"your theme name"/widgets.tpl
Now change it to:
{if $flatpress.loggedin }
{widgets pos=right}
{$subject}
{$content}
{/widgets}
{widgets pos=left}
{$subject}
{$content}
{/widgets}
{/if}
Edit:
One case will not work with the Plugin. If you have the complete url from any entry, you can visit this entry without logged in. This is a problem with this solution.
It looks like you're new here. If you want to get involved, click one of these buttons!