[Pmwiki-users] Discussionlink / DiscussionBackLink

nexyufuli evo noskule
Tue Jan 4 08:59:56 CST 2005


Hi List

I did use the Discussionlink function for my wiki
now i would like to add a backlink to the disscussion page witch points 
to the article again, i did try the folowing:


DiscussionLink
-----------------------------------------------------------------------------
## This adds a DiscussionLink to an article
function DiscussLink($pagename,$args) {
# if the current page already ends in "-Discussion", don't make a link
if (preg_match("/-Discussion$/",$pagename)) return '';

# otherwise, generate a link using FmtWikiLink
print FmtWikiLink('',"{{".$pagename."-Discussion}}","Discuss");
}

DiscussionLink
-----------------------------------------------------------------------------
## Generiert den DiscussionBackLink zum Artikel
function DiscussBacklink($pagename,$args) {
# wenn die Seite mit "-Discussion" endet, mach einen link mit dem 
Pagenamen ohne "-Discussion"
if (preg_match("/-Discussion$/",$pagename)) print 
FmtWikiLink('',"{{preg_replace("/-Discussion/",,$pagename)}}","Back") '';
}

this gives me the error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in 
/home/netstrea/public_html/wegweisungsartikel_pmwiki/local/config.php on 
line 45

could anyone giving me a hand with this
im quiete a newbe in html/php
thanx nos


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30.12.2004




More information about the pmwiki-users mailing list