Merkzettel für PHPWiki: Infos für mich selbst und ggf. für die Mailingliste
AndereWikis ausgelagert
GROUP_METHOD = WIKIPAGE, und dann
CategoryGroup: * [Administrators] Administrators: * [AdminName] * [SomeUser]
Comments on 1.3.10
default config: I dislike DATABASE_DIRECTORY = /tmp and would prefer to force the user to set a suitable path.
Are the default values in dba.php really necessary and suitable?
- $directory = '/tmp';
- $prefix = 'wiki_';
- $dba_handler = 'gdbm';
- $timeout = 20;
Post 1.3.9:
Pear is now stable and good enough, we don't need our own copies anymore.
- Our shipped pear path is now added automatically to the include_path, and all our files don't load our pear per se, instead it tries the pear files from the standard path.
- This way you can simply update your pear to the latest version and use it with phpwiki. Our pear is for now the same as the latest pear. (Besides the still broken File_Passwd.php. That's the only one so far.) Before we changed the load paths in each pear file to use our pear files.
- If you define your own include_path WITHOUT phpwiki/lib/pear, you must have your own current pear repository installed and setup in the include_path!
- AGAIN
- either don't define include_path or add your pear path (e.g. ".:/usr/share/pear") or add our phpwiki/lib/pear (e.g. ".:/home/user/phpwiki/lib/pear")
Normally you don't have to touch include_path anymore, even with a PrettyWiki? setup with start scripts from completely different directories. You only have to define DATA_PATH then.
...So far it's only in themes/smaller/templates/navbar.tmpl:
- add this to your navbar
<?php if (!empty($user) && $user->isSignedIn()) { ?>
<?=$s?><?= WikiLink?(_("UserPreferences"), "","Preferences") ?>
<?php } ?>
(actionbar is the bottom line, navbar the top line)
argument change to show always the latestversion, even if it's minor, but not all other minor revisions:
<?plugin RecentChanges show_minor||=1 days||=7 daylist=1,3,7,30,90,0 ?>
Reini Urban in der Mailingliste (in Wirklichkeit darf kein Leerzeichen zwischen < und ? sein): < ?plugin PluginName? args...? ?>
The typical plugin returns the output of ->run() as HTML object. It can react on any argument, either from the plugin args in the page or the dynamic request args (GET or POST args).
< ?plugin-form PluginName? args...? ?>
Displays a input type=text with the default argument
< ?plugin-link PluginName? args...? ?>
?? please ask Jeff. Never used that.
< ?plugin-head PluginName? args...? ?>
Here you can set or change any HTML header. Useful for framesets, javascripts or redirects.
Und:
WikiAdminRename?, WikiAdminRemove? and WikiAdminSearchReplace? work fine for me. Now also with WikiAdminSelect again.
WikiAdminChmod? is in the works.
WikiAdminRemove? currently does a "full" remove, which might be the wrong thing. RecentChanges is not aware of it right now. This might be changed to a Revision remove only.
Anschauen: UnfoldSubpages?, UnfoldBacklinks?
a subpage is a page with the SUBPAGE_SEPERATOR (default: "/") in the pagename.
IncludeSiteMap? does this. Use reclimit=1 for only Backlinks on this page:
< ?plugin IncludeSiteMap? reclimit=1
pagename='ThisComment?' includepages='' ?>
Diverse Tweaks:
- define('COMPRESS_OUTPUT', false);
- hilft ggf. gegen XML-Fehler
- if (!defined('DEBUG')) define ('DEBUG', false);
- wenn ZIP-Dump nicht funktioniert, ferner memory_limit und max_execution_time
- Jeff Dairiki about restoring a full ZIPDUMP
- Point WIKI_PGSRC (in index.php) to your zip dump, instead of the distributed pgsrc directory.)
- To avoid version conflicts, IOW maintaining the history
A hack to avoid that is to add an overwrite=1 query arg. I.e. to trigger the "load virgin wiki", browse to:
- Reini's version
- action=loadsave&source=/home/my/phpwiki/pgsrc&overwrite=1
Frank Shearar about ZIPDUMP (create or restore?):
One caveat is that you should, for a large wiki, set DEBUG to false in your index.php or you'll run out of memory after 150-odd pages. If memory serves correctly. It might have been the zipdump or the xhtmldump that had that behaviour...
PATH_INFO funktioniert jetzt bei CNM! Und ich kann es nicht mehr abstellen!
pgsrc lädt bei mir keine deutschen Seiten (1.3.4), mit ZIP geht's aber
- Der zusätzliche Knopf zur Startseite ist in navbar.tmpl, dort vor dem Ende-div
- <?=$s?><?= WikiLink?(_("HomePage"), "button") ?>
- In phpwiki-heavy.css bewirkt diese Zeile
- img { vertical-align: baseline; }
daß das Logo links in einer eigenen Zeile steht -> weg damit!
Fix für removepage.php: Seite muß als weiteres Argument übermittelt werden.
HTML::input(array('type' => 'hidden',
'name' => 'pagename', 'value' => $page->getName())),
($GLOBALS'HTTP_GET_VARS'?'pagename'? für "altes" PHP)
"undefined variable $limit"
In lib/WikiDB/backend/dumb/MostRecentIter?.php
changing the line
$reverse = $limit < 0;
to
$reverse = !empty($limit) && ($limit < 0);
Volltextsuche funktioniert nicht, kann aber manuell hergestellt werden:
...php?pagename=FullTextSearch&s=hinterhuber
Bzw. Fix von Robin Macharg:
In ./lib/WikiPlugin.php, about line 180, in function makeForm, following the 4 lines starting
$form = HTML::form...
- add
- $hidden_action = HTML::input(array('name' => "pagename", 'value' => $args'targetpage'?, 'type' => "hidden")); $form->pushContent($hidden_action);
The QuickSearch? box still needs fixed but the normal searches do now appear to work.
PHPWiki didn't find CSS and grafics until I set DATA_PATH. In
http://sourceforge.net/forum/forum.php?thread_id=652761&forum_id=18929 I found that the following is sufficient:
define('DATA_PATH', ''); define('PHPWIKI_DIR', '.');
- Die Fehlermeldungen bei "DIFF" beseitigt eine neue Zeile 330 in XmlElement?.php
if (preg_match('/(?<!%)%-??\d*^- \d$?/x', $this->_fs)) // $fmt
"German language support thanks to Arno Hollosi"
DATA_PATH needs no trailing slash!?
It would be nice to have a hint that themes have hardcoded date and time format specs.
The pages from locale/*/pgsrc are overwritten by default pages of the same name when creating a new Wiki.
I got localized strings not before putting putenv("LC_ALL=de"); in index.php. Is this statement in config.php correct:
setlocale(LC_ALL, "$LANG");
I found the hint in config.php but can't figure out why it helps.
http://phpwiki.sourceforge.net/phpwiki/PrettyWiki zeigt, wie man die sichtbaren Links/Parameter wegbekommt.
Matti Airas schrieb dazu in der Maiilngliste:
OK, the settings below seem to be minimum settings with which I can get it to work. It's notable that the comment in index.php suggests that USE_PATH_INFO is by default true. Well, this is not quite true. :-)
/.htaccess:
<Files wiki>
</Files>
/phpwiki/index.php:
$include_path = '.:phpwiki'; if (!defined('PHPWIKI_DIR'))
define('PHPWIKI_DIR','/var/www/mairas.net/html/phpwiki');
if (!defined('USE_PATH_INFO')) define('USE_PATH_INFO', true);
Hmm, das stand auf einem Schmierzettel, kann ich gerade nicht zuordnen:
- Icons auch absolute Pfade
- PGSRC war falsch
- Was ist GenericPages?
LinkIcon? test
- Email address
PhpWiki-talk mailing list - Normal http link
PhpWiki's Home Page - Secure http link
PhpWiki's Home Page - File transfer
ftp://ftp.sourceforge.net/
news://nntp.news.com generic icon is shown
gopher://gopher.caltech.cmu.edu - bogus://oedipus.nostradamus.com (no icon)
