Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 07:12:50 AM

Pages: [1]   Go Down
  Print  
Author Topic: phpwiki tags don't work  (Read 409 times)
squirebug
Newbie
*
Offline Offline

Posts: 1


« on: March 30, 2005, 02:33:12 AM »

I recently installed phpwiki 1.2.7 and every word is treated as a link.

Examples:
The initial front page is displayed as:

Front Page

    * What? is? a WikiWikiWeb? A description? of? this? application?.
    * Learn? HowToUseWiki and? learn? about? AddingPages.
    * Use? the? SandBox page? to? experiment? with? Wiki? pages?.
    * Please? sign? your? name? in? RecentVisitors.
    * See? RecentChanges for? the? latest? page? additions? and? changes?.
    * Find? out? which? pages? are? MostPopular.
    * Read? the? ReleaseNotes
    * Administer? this? Wiki? in? PhpWikiAdministration.

EditText of this page (last edited December 31, 1969) [info] [diff])
FindPage by browsing or searching 5 best incoming links: TextFormattingRules (11), PhpWikiAdministration (7), RecentChanges (7), ReleaseNotes (7), TestPage (2)
5 best outgoing links: and (48)are (43)the (43)in (40)to (39)
5 most popular nearby:



Even very simple use of tags do not work.

<pre>
test
</pre>

Is displayed as follows after saving.
<pre?> test? </pre?>

The phpwiki sourceforge forums have several threads on the use of tags, but they all insist that <pre>,</pre> and <verbatim>,</verbatim> all work fine.

Any suggestions for how to make these tags work in the version lunarpages gives us?

Thank you for your help.

Best regards,
Herb
Logged
katrina1
Guest
« Reply #1 on: March 31, 2005, 05:18:12 AM »

There is an error in phpwiki.

To resolve, open lib/config.php and change this:

//$WikiNameRegexp = "(?<![A-Za-z0-9])([A-Z][a-z]+){2,}(?![A-Za-z0-9])";
// This should work for all ISO-8859-1 languages:
$WikiNameRegexp = "(?<![A-Za-z0-9Ôø?Ôø?-Ôø?-])([A-ZÔø?Ôø?-Ôø?[a-zÔø?Ôø?-]+){2,}(?![A-Za-z0-9Ôø?Ôø?-Ôø?-])";

to this:

$WikiNameRegexp = "(?<![A-Za-z0-9])([A-Z][a-z]+){2,}(?![A-Za-z0-9])";
// This should work for all ISO-8859-1 languages:
//$WikiNameRegexp = "(?<![A-Za-z0-9Ôø?Ôø?-Ôø?-])([A-ZÔø?Ôø?-Ôø?[a-zÔø?Ôø?-]+){2,}(?![A-Za-z0-9Ôø?Ôø?-Ôø?-])";

(uncomment first $WikiNameRegexp, comment out second $WikiNameRegexp).


Also, in the same file, change this:
$ScriptUrl = "";
// URL of admin.php e.g. http://yoursite.com/phpwiki/admin.php
// you can leave this empty - it will be calculated automatically
// if you fill in $ScriptUrl you *MUST* fill in $AdminUrl as well!
$AdminUrl = "";

to this:

$ScriptUrl = "http://_YOURDOMAIN_/_YOUR_DIR_/index.php";
// URL of admin.php e.g. http://yoursite.com/phpwiki/admin.php
// you can leave this empty - it will be calculated automatically
// if you fill in $ScriptUrl you *MUST* fill in $AdminUrl as well!
$AdminUrl = "http://_YOURDOMAIN_/_YOUR_DIR_/admin.php";

(It needs the urls filled in with your URLs is what I'm saying. Not blank.)
Logged
chachiyo
Newbie
*
Offline Offline

Posts: 1


« Reply #2 on: April 01, 2005, 08:22:33 PM »

I followed your advice and now i can solve the problem.

Thank you so much for  your help.

Usa
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: