Revision history for Mod032bModRewrite


Revision [23265]

Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]
Additions:
**[[http://web.archive.org/web/20040810214724/http://www.wakkawiki.com/JoeD | Joe Delaney]]** -- [[http://web.archive.org/web/20040811010939/http://www.wakkawiki.com/RewriteMode | RewriteMode @ WakkaWiki]]
**[[JsnX | Jason Tourtelotte]]** -- Minor improvements.
Deletions:
**[[http://web.archive.org/web/20040810214724/http://www.wakkawiki.com/JoeD Joe Delaney]]** -- [[http://web.archive.org/web/20040811010939/http://www.wakkawiki.com/RewriteMode RewriteMode @ WakkaWiki]]
**[[JsnX Jason Tourtelotte]]** -- Minor improvements.


Revision [19286]

Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [17207]

Edited on 2007-07-07 14:30:52 by JavaWoman [standardized link to WakkaWiki origin and credit links]
Additions:
**[[http://web.archive.org/web/20040810214724/http://www.wakkawiki.com/JoeD Joe Delaney]]** -- [[http://web.archive.org/web/20040811010939/http://www.wakkawiki.com/RewriteMode RewriteMode @ WakkaWiki]]
**[[JsnX Jason Tourtelotte]]** -- Minor improvements.
Deletions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.de/RewriteMode
[[http://jason.tourtelotte.net Jason Tourtelotte]] -- Minor improvements.


Revision [16962]

Edited on 2007-05-31 23:27:31 by JavaWoman [Reverted]
Additions:
<?php echo (!$user || ($user["doubleclickedit"] == Y)) && ($this->GetMethod() == "show") ? "ondblclick=\"document.location='".$this->href("edit")."';\" " : "" ?>
<?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?>
>
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->config["base_url"] ?>TextSearch<?php
if (!$this->config["rewrite_mode"])
echo "&";
else
echo "?";
} ?>phrase=<?php echo urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php echo $this->Link($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>
You are <?php echo $this->Format($this->UserName()) ?>
</div>
%%
You will have to edit actions/footer.php too, look for the img tag with the "xml/xml.gif" source and change it to
%%
<img src=\"xml/xml.gif\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" />
%%
Now in handlers/page/revisions.php
%%(php) replace
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
with
if (!$this->config["rewrite_mode"]) {
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
else
{
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
%%
There may be other broken links that depend on the rewrite rules (look on WakkaBugTracker), but I haven't found any others yet. With these modifications you can turn rewrite_mode on or off at will (remember to change the base_url too) and the stylesheets, xml icon, back-linking and revisions keep working.
You may also need to delete the .htaccess file on the /xml and /css directories.

actions/recentchanges.php need the same xml/xml.gif as actions/footer.php
Similarly in handlers/page/revisions.xml.php
%%(php) replace
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
with
if (!$this->config["rewrite_mode"]) {
$xml .= "<link>".$this->href("show")."&time=".urlencode($page["time"])."</link>\n";
}
else
{
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
}
%%
Deletions:
<?php echo (!$user || ($user["doubleclickedit"] == Y))


Revision [16761]

Edited on 2007-05-31 10:45:02 by HjgD5o [Reverted]
Additions:
<?php echo (!$user || ($user["doubleclickedit"] == Y))
Deletions:
<?php echo (!$user || ($user["doubleclickedit"] == Y)) && ($this->GetMethod() == "show") ? "ondblclick=\"document.location='".$this->href("edit")."';\" " : "" ?>
<?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?>
>
<div class="header">
<h2><?php echo $this->config["wakka_name"] ?> : <a href="<?php echo $this->config["base_url"] ?>TextSearch<?php
if (!$this->config["rewrite_mode"])
echo "&";
else
echo "?";
} ?>phrase=<?php echo urlencode($this->GetPageTag()); ?>"><?php echo $this->GetPageTag(); ?></a></h2>
<?php echo $this->Link($this->config["root_page"]); ?> ::
<?php echo $this->config["navigation_links"] ? $this->Format($this->config["navigation_links"])." :: " : "" ?>
You are <?php echo $this->Format($this->UserName()) ?>
</div>
%%
You will have to edit actions/footer.php too, look for the img tag with the "xml/xml.gif" source and change it to
%%
<img src=\"xml/xml.gif\" width=\"36\" height=\"14\" align=\"middle\" style=\"border : 0px;\" alt=\"XML\" />
%%
Now in handlers/page/revisions.php
%%(php) replace
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
with
if (!$this->config["rewrite_mode"]) {
$output .= "<td> <a href=\"".$this->href("show")."&time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
else
{
$output .= "<td> <a href=\"".$this->href("show")."?time=".urlencode($page["time"])."\">".$page["time"]."</a></td>";
}
%%
There may be other broken links that depend on the rewrite rules (look on WakkaBugTracker), but I haven't found any others yet. With these modifications you can turn rewrite_mode on or off at will (remember to change the base_url too) and the stylesheets, xml icon, back-linking and revisions keep working.
You may also need to delete the .htaccess file on the /xml and /css directories.

actions/recentchanges.php need the same xml/xml.gif as actions/footer.php
Similarly in handlers/page/revisions.xml.php
%%(php) replace
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
with
if (!$this->config["rewrite_mode"]) {
$xml .= "<link>".$this->href("show")."&time=".urlencode($page["time"])."</link>\n";
}
else
{
$xml .= "<link>".$this->href("show")."?time=".urlencode($page["time"])."</link>\n";
}
%%


Revision [7687]

Edited on 2005-04-28 17:25:16 by JavaWoman [correction - point to new WakkaWiki URL]
Additions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.de/RewriteMode
Deletions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.com/RewriteMode


Revision [277]

Edited on 2004-05-13 03:10:58 by JsnX [correction - point to new WakkaWiki URL]
Additions:
""JoeD"" -- Joe Delaney -- http://www.wakkawiki.com/RewriteMode
Deletions:
""JoeD"" -- http://www.wakkawiki.com/RewriteMode


Revision [276]

The oldest known version of this page was created on 2004-05-13 03:10:13 by JsnX [correction - point to new WakkaWiki URL]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki