entertain
03.01.2008, 19:30
Hallo alle.
(Sorry, ich wusste nicht in welchen Bereich mit diesem Thema :o)
Und zwar geht es um Template Hooks.
Ich habe erst ein Template erstellt:
<template name="threadauthor" templatetype="template" date="1164306741" username="entertain" version="3.6.8"><![CDATA[
<if condition="$vboptions[threadauthor_active]">
<if condition="!in_array($forum['forumid'], array($vboptions[threadauthor_excluded_forums]))">
<!-- Post Author -->
 
<if condition="$thread['postuserid'] == $post['userid'] AND $post['userid'] AND $post['postid'] != $thread['firstpostid']">
$vboptions[threadauthor_display]
</if>
<!-- / Post Author -->
</if>
</if>]]>
</template>Und dann einen Hook:
<plugin active="1">
<title><![CDATA[Display Author]]></title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[eval('$threadauthor = "' . fetch_template('threadauthor') . '";');]]></phpcode>
</plugin>Aber wenn ich jetzt im postbit Template "$threadauthor" eingebe, passiert nichts :confused:
Weiß jemand, was da falsch ist?
cu
entertain
(Sorry, ich wusste nicht in welchen Bereich mit diesem Thema :o)
Und zwar geht es um Template Hooks.
Ich habe erst ein Template erstellt:
<template name="threadauthor" templatetype="template" date="1164306741" username="entertain" version="3.6.8"><![CDATA[
<if condition="$vboptions[threadauthor_active]">
<if condition="!in_array($forum['forumid'], array($vboptions[threadauthor_excluded_forums]))">
<!-- Post Author -->
 
<if condition="$thread['postuserid'] == $post['userid'] AND $post['userid'] AND $post['postid'] != $thread['firstpostid']">
$vboptions[threadauthor_display]
</if>
<!-- / Post Author -->
</if>
</if>]]>
</template>Und dann einen Hook:
<plugin active="1">
<title><![CDATA[Display Author]]></title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[eval('$threadauthor = "' . fetch_template('threadauthor') . '";');]]></phpcode>
</plugin>Aber wenn ich jetzt im postbit Template "$threadauthor" eingebe, passiert nichts :confused:
Weiß jemand, was da falsch ist?
cu
entertain