Revision history for CustomPageTitleTag


Revision [21606]

Last edited on 2011-10-09 11:12:24 by EmeraldIsland [Changes for WikkaWiki version with UTF-8 support]
Additions:
==={{color hex="#73A" text="Wikka with UTF-8 support (since version 1.3.2)"}}===
''**§**'' ASCII code is 0xA7 and because it is bigger than 0x7F, the corresponding UTF-8 code differs. You need to replace in the code above each ''**§**'' whith ''**\xC2§**''.
Alternatively, you can also choose a free char with an ASCII code below 0x7F (but you will have to change also all your pages title.
In ##""PageTitle()""## function :
##ereg## might be replaced with ##preg_match## for deprecated reason and ##$title = ""''"";## might be changed to ##$title = array();## --EmeraldIsland


Revision [19027]

Edited on 2008-01-28 00:13:47 by ShopRocker [Modified links pointing to docs server]

No Differences

Revision [16006]

Edited on 2007-01-28 17:03:05 by ShopRocker [wrong file quoted]
Additions:
2) Modify wakka.class file, you'll find it in the /libs/ directory.
Deletions:
2) Modify wikka.php file, you'll find it in the main directory.


Revision [15992]

Edited on 2007-01-23 06:20:18 by OlivierBorowski [wrong file quoted]
Additions:
//note: as the custom title should not contain special characters, regexp could be simplified. For example ereg("§§§.*§§§"...)//


Revision [15991]

Edited on 2007-01-23 06:16:30 by OlivierBorowski [wrong file quoted]
Additions:
//note: the "<br />" that follows title should be removed too//
**update 2007/01/23** : custom titles should not be mandatory.
Better patch :
ereg( "(§){3,5}([^=\n]+)(§){3,5}", $pagecontent, $title); // custom title ?
if (!$title) ereg( "(=){3,5}([^=\n]+)(=){3,5}", $pagecontent, $title); // smart title ?
if ($title) {
if ($title) return strip_tags($this->Format($title)); # fix for forced links in heading
Deletions:


Revision [11431]

Edited on 2005-10-13 17:38:32 by TomEk [wrong file quoted]
Additions:
//Feel free to correct any possible errors. Do some of you guys know how to make a wikka action (more nifty than modifing files manually) out of this? If so feel free to modify this article.//
Deletions:
//Feel free to correct any possible errors. Do some of you guys know how to make a wikka action (more nifty than modifing files manually) out of this, if so feel free to modify this article.//


Revision [11430]

Edited on 2005-10-13 17:38:04 by TomEk [wrong file quoted]
Additions:
//Feel free to correct any possible errors. Do some of you guys know how to make a wikka action (more nifty than modifing files manually) out of this, if so feel free to modify this article.//
Deletions:
//Do some of you guys know how to make a wikka action (more nifty than modifing files manually) out of this, if so feel free to modify this article.//


Revision [11426]

Edited on 2005-10-13 17:31:07 by TomEk [wrong file quoted]
Deletions:
%%(php)$this->SavePage($this->tag, $body, $note);%%


Revision [11425]

Edited on 2005-10-13 17:30:49 by TomEk [wrong file quoted]
Additions:
%%(php) $text = preg_replace("/§§§.*?§§§/","", $text); //for cutting out the §§§my title§§§ tag from page content
Deletions:
%% $text = preg_replace("/§§§.*?§§§/","", $text); //for cutting out the §§§my title§§§ tag from page content


Revision [11424]

Edited on 2005-10-13 17:30:34 by TomEk [wrong file quoted]
Additions:
%%(php) // we're cutting the last <br />
Deletions:
%% // we're cutting the last <br />
%% function PageTitle() {


Revision [11423]

Edited on 2005-10-13 17:29:29 by TomEk [wrong file quoted]
Additions:
%%(php)function PageTitle() {
}%%


Revision [11422]

Edited on 2005-10-13 17:28:47 by TomEk [wrong file quoted]
Additions:
%%(php)$this->SavePage($this->tag, $body, $note);%%
Deletions:
%%(php)$this->SavePage($this->tag, $body, $note);%%


Revision [11421]

Edited on 2005-10-13 17:28:32 by TomEk [wrong file quoted]
Additions:
%%(php)$this->SavePage($this->tag, $body, $note);%%


Revision [11420]

Edited on 2005-10-13 17:24:06 by TomEk [wrong file quoted]
Additions:
====USAGE:====
Deletions:
USAGE:


Revision [11419]

Edited on 2005-10-13 17:23:18 by TomEk [wrong file quoted]
Additions:
Now if You want to specify a custom TITLE for a page you're editing, you're free to do so. Just use ##""§§§My Custom Tile§§§""## to specify your specific TITLE for the page. This way the TITLE of the page doesn't have to be same as the highest Heading on the page. --TomEk
Deletions:
Now if You want to specify a custom TITLE for a page you're editing, you're free to do so. Just use ##""§§§My Custom Tile§§§""## to specify your specific TITLE for the page. This way the TITLE of the page doesn't have to be same as the highest Heading on the page.


Revision [11418]

Edited on 2005-10-13 17:22:44 by TomEk [wrong file quoted]
Additions:
P.//S.//
//Do some of you guys know how to make a wikka action (more nifty than modifing files manually) out of this, if so feel free to modify this article.//


Revision [11417]

Edited on 2005-10-13 17:18:01 by TomEk [wrong file quoted]
Additions:
if (ereg( "(=){3,5}([^=\n]+)(=){3,5}", $pagecontent, $title)) {


Revision [11415]

Edited on 2005-10-13 17:05:41 by TomEk [wrong file quoted]
Additions:
However, if you want the page to have a different, more descriptive TITLE (Ex: "Resume of Chopin, the most eminent Polish composer") and still keep the highest Heading short (##""=====Resume=====""##), you can use the following hack and modify two Wikka files.
Deletions:
However, if you want the page to have a different, more descriptive TITLE, for example: "Resume of Chopin, the most eminent Polish composer", you will have to use the following hack (modify two Wikka files).


Revision [11414]

Edited on 2005-10-13 17:00:40 by TomEk [wrong file quoted]
Additions:
wakka2callback('closetags'); %%
wakka2callback('closetags'); %%
} %%
} %%
Deletions:
wakka2callback('closetags');
%%
wakka2callback('closetags');
%%
}
%%
}
%%


Revision [11413]

Edited on 2005-10-13 16:59:49 by TomEk [wrong file quoted]
Additions:
%% // we're cutting the last <br />
%% $text = preg_replace("/§§§.*?§§§/","", $text); //for cutting out the §§§my title§§§ tag from page content
%% function PageTitle() {
%% function PageTitle() {
Deletions:
$text = preg_replace("/§§§.*?§§§/","", $text); //for cutting out the §§§my title§§§ tag from page content
%%
function PageTitle() {
function PageTitle() {


Revision [11412]

Edited on 2005-10-13 16:58:37 by TomEk [wrong file quoted]

No Differences

Revision [11411]

Edited on 2005-10-13 16:57:49 by TomEk [wrong file quoted]
Deletions:
%% (php) <?php
?>


Revision [11410]

Edited on 2005-10-13 16:57:13 by TomEk [wrong file quoted]
Additions:
%% (php) <?php
?>
Deletions:
%% (php)


Revision [11409]

Edited on 2005-10-13 16:56:32 by TomEk [wrong file quoted]
Additions:
%% (php)
Deletions:
%% (php)


Revision [11408]

Edited on 2005-10-13 16:54:39 by TomEk [wrong file quoted]
Additions:
====Here's how:====
%% (php)
Deletions:
Here's how:


Revision [11407]

The oldest known version of this page was created on 2005-10-13 16:53:08 by TomEk [wrong file quoted]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki