Instead of:
$TableOfContents? ||= ""; $pageText =~ s//$TableOfContents?/gi;
on lines 1615 and 1616 (in my debian 1.0.6 version of UseMod anyway) write:
$TableOfContents? ||= ""; # To be able to put the search form in any location... my $SearchForm? = q( <div id="search"> ) . &GetFormStart . &GetSearchForm . $q->endform . q( </div> ); my $EditLink? = &GetEditLink($Id, T('Edit')); my $UploadLink? = &GetUploadLink?($Id, T('Upload')); my $PrefLink? = &GetPrefsLink?($Id, T('Preferences')); $pageText =~ s//$TableOfContents?/gi; $pageText =~ s/<search>/$SearchForm?/gi; $pageText =~ s/<edit>/$EditLink?/gi; $pageText =~ s/<upload>/$UploadLink?/gi; $pageText =~ s/<prefs>/$PrefLink?/gi;
However, there is some issue with the preview sometimes not saving but searching for '' when hitting the Save button, I already fixed that and will write it down here as soon as I found the bit again.
Thanks for your patience, --UdoGüngerich, 2005-08-22