Jetzt funktioniert alles wie es soll, danke Timeout
Beiträge von ruhrpottbobo im Thema „Template compilation failed: unexpected {/if} in template 'footer' on line 97“
-
-
Ich habe das jetzte so gemacht, aber irgendwie passiert da nix
XML<option name="dkm_slider_position"> <categoryname>dkmslider.position.general</categoryname> <optiontype>radioButton</optiontype> <defaultvalue>dkm_slider_position.1</defaultvalue> <selectoptions><![CDATA[dkm_slider_position.1:wcf.acp.option.dkmslider.general.position.dkm_slider_position.1 dkm_slider_position.2:wcf.acp.option.dkmslider.general.position.dkm_slider_position.2 dkm_slider_position.3:wcf.acp.option.dkmslider.general.position.dkm_slider_position.3]]></selectoptions> </option>
und im Templatelistener
-
Dann ist die Abfrage dafür falsch ?
bis jetzt steht es so drin
{if DKM_SLIDER_POS_1 == true}
-
Danke timeout für die Hilfe, ich üb ja noch
ich hatte noch mehr if Fehler in der templatelistener.xml, die sind jetzt weg, aber es kommt jetzt ein neuer Fehler und ich vermute das ich bei den optionen was falsch habe.
Code
Alles anzeigenFri, 20 May 2016 12:07:34 +0000 Message: PHP notice in file D:\xampp\htdocs\forum\wcf\templates\compiled\0_wcf_1_dashboard.php (1084): Use of undefined constant DKM_SLIDER_POS_2 - assumed 'DKM_SLIDER_POS_2' File: D:\xampp\htdocs\forum\wcf\lib\system\WCF.class.php (309) PHP version: 5.6.12 WCF version: 2.1.10 (Typhoon) Request URI: /forum/index.php?dashboard/ Referrer: http://localhost/forum/acp/index.php?option/2473/& User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 Information: "" Stacktrace: #0 D:\xampp\htdocs\forum\wcf\templates\compiled\0_wcf_1_dashboard.php(1084): wcf\system\WCF::handleError(8, 'Use of undefine...', 'D:\\xampp\\htdocs...', 1084, Array) #1 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateEngine.class.php(323): include('D:\\xampp\\htdocs...') #2 D:\xampp\htdocs\forum\wcf\lib\page\AbstractPage.class.php(305): wcf\system\template\TemplateEngine->display('dashboard', 'wcf') #3 D:\xampp\htdocs\forum\wcf\lib\page\AbstractPage.class.php(100): wcf\page\AbstractPage->show() #4 D:\xampp\htdocs\forum\wcf\lib\system\request\Request.class.php(58): wcf\page\AbstractPage->__run() #5 D:\xampp\htdocs\forum\wcf\lib\system\request\RequestHandler.class.php(139): wcf\system\request\Request->execute() #6 D:\xampp\htdocs\forum\index.php(10): wcf\system\request\RequestHandler->handle('wbb') #7 {main}
XML<option name="dkm_slider_position"> <categoryname>dkmslider.position.general</categoryname> <optiontype>radioButton</optiontype> <defaultvalue>dkm_slider_pos_1</defaultvalue> <selectoptions><![CDATA[dkm_slider_pos_1:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_1 dkm_slider_pos_2:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_2 dkm_slider_pos_3:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_3]]></selectoptions> </option>
-
Die fehlende Klammer hatte ich gerade auch gesehen, der Fehler ist leider geblieben.
-
Ich habe das mal durch ein Validator Checker laufen lassen, da ist kein Syntaxfehler drin, aber vielleicht ist ja die Abfrage in den Optionen falsch
XML<option name="dkm_slider_position"> <categoryname>dkmslider.position.general</categoryname> <optiontype>radioButton</optiontype> <defaultvalue>dkm_slider_pos_1</defaultvalue> <selectoptions><![CDATA[dkm_slider_pos_1:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_1 dkm_slider_pos_2:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_2 dkm_slider_pos_3:wcf.acp.option.dkmslider.general.position.dkm_slider_pos_3]]></selectoptions> </option>
-
XML
Alles anzeigen<!-- user --> <templatelistener name="dkmsliderJavascriptInclude"> <environment>user</environment> <templatename>headInclude</templatename> <eventname>javascriptInclude</eventname> <templatecode><![CDATA[<script data-relocate="true" src="{@$__wcf->getPath()}js/3rdParty/dkmslider/eS-slideshow.v1.0.min.js"></script> <link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'> ]]></templatecode> </templatelistener> <templatelistener name="dkmsliderJavascriptInit"> <environment>user</environment> <templatename>headInclude</templatename> <eventname>javascriptInit</eventname> <templatecode><![CDATA[new $('#dkmslider').eSslideshow({ navigation:{DKM_SLIDER_NAVIGATION}, navfactor:{DKM_SLIDER_NAVFAKTOR}, pager:{DKM_SLIDER_PAGER}, delay:{DKM_SLIDER_PAUSE_TIME}, speed:{DKM_SLIDER_TITLE_SPEED}, interval:{DKM_SLIDER_INTERVAL}, pauseonhover:{DKM_SLIDER_MOUSE_HOVER}, rounding:{DKM_SLIDER_ROUNDING} });]]></templatecode> </templatelistener> <!-- /user --> </import> </data>
-
XML
Alles anzeigen<templatelistener name="DKMSLIDERPOS2"> <environment>user</environment> <templatename>header</templatename> <eventname>headerContents</eventname> <templatecode><![CDATA[{if DKM_SLIDER_POS_2 == true} <!-- Dashboard --> {if DKM_SLIDER_MESSAGE_DASHBOARD_ONLY == true} {if $templateName == 'dashboard'} {include file='__dkmSlider'} {/if} {/if} <!-- Dashboard --> <!-- Forum --> {if DKM_SLIDER_MESSAGE_FORUM_ONLY == true} {if $templateName == 'boardList'} {include file='__dkmSlider'} {/if} {/if} <!-- Forum --> <!-- Blog --> {if DKM_SLIDER_MESSAGE_BLOG_ONLY == true} {if $templateName == 'blog'} {include file='__dkmSlider'} {/if} {/if} <!-- Blog --> <!-- Gallery --> {if DKM_SLIDER_MESSAGE_GALLERY_ONLY == true} {if $templateName == 'gallery'} {include file='__dkmSlider'} {/if} {/if} <!-- Gallery --> <!-- Calendar --> {if DKM_SLIDER_MESSAGE_CALENDAR_ONLY == true} {if $templateName == 'calendar'} {include file='__dkmSlider'} {/if} {/if} <!-- Calendar --> <!-- Filebase Woltlab --> {if DKM_SLIDER_MESSAGE_FILEBASE_ONLY == true} {if $templateName == 'filebase'} {include file='__dkmSlider'} {/if} {/if} <!-- Filebase Woltlab --> <!-- CMS --> {if DKM_SLIDER_MESSAGE_FIREBALLCMS_ONLY == true} {if $templateName == 'page'} {include file='__dkmSlider'} {/if} {/if} {if $templateName == 'newsOverview'} {include file='__dkmSlider'} {/if} {/if} <!-- CMS --> <!-- Portal --> {if DKM_SLIDER_MESSAGE_PORTAL_ONLY == true} {if $templateName == 'portal'} {include file='__dkmSlider'} {/if} {/if} <!-- Portal --> <!-- News --> {if DKM_SLIDER_MESSAGE_NEWS_ONLY == true} {if $templateName == 'news'} {include file='__dkmSlider'} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORY_ONLY == true} {if $templateName == 'category'} {include file='__dkmSlider'} {/if} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORYLIST_ONLY == true} {if $templateName == 'categoryList'} {include file='__dkmSlider'} {/if} {/if} <!-- News ---> <!-- Lexicon --> {if DKM_SLIDER_MESSAGE_LEXICON_ONLY == true} {if $templateName == 'lexicon'} {include file='__dkmSlider'} {/if} {/if} <!-- Lexicon --> <!-- Marketplace --> {if DKM_SLIDER_MESSAGE_MARKETPLACE_ONLY == true} {if $templateName == 'marketplace'} {include file='__dkmSlider'} {/if} {/if} <!-- Marketplace --> <!-- Memberlist --> {if DKM_SLIDER_MESSAGE_MEMBERLIST_ONLY == true} {if $templateName == 'membersList'} {include file='__dkmSlider'} {/if} {/if} <!-- Memberlist --> {/if}]]></templatecode> </templatelistener> <templatelistener name="DKMSLIDERPOS3"> <environment>user</environment> <templatename>footer</templatename> <eventname>copyright</eventname> <templatecode><![CDATA[{if DKM_SLIDER_POS_3 == true} <!-- Dashboard --> if DKM_SLIDER_MESSAGE_DASHBOARD_ONLY == true} {if $templateName == 'dashboard'} {include file='__dkmSlider'} {/if} {/if} <!-- Dashboard --> <!-- Forum --> {if DKM_SLIDER_MESSAGE_FORUM_ONLY == true} {if $templateName == 'boardList'} {include file='__dkmSlider'} {/if} {/if} <!-- Forum --> <!-- Blog --> {if DKM_SLIDER_MESSAGE_BLOG_ONLY == true} {if $templateName == 'blog'} {include file='__dkmSlider'} {/if} {/if} <!-- Blog --> <!-- Gallery --> {if DKM_SLIDER_MESSAGE_GALLERY_ONLY == true} {if $templateName == 'gallery'} {include file='__dkmSlider'} {/if} {/if} <!-- Gallery --> <!-- Calendar --> {if DKM_SLIDER_MESSAGE_CALENDAR_ONLY == true} {if $templateName == 'calendar'} {include file='__dkmSlider'} {/if} {/if} <!-- Calendar --> <!-- Filebase Woltlab --> {if DKM_SLIDER_MESSAGE_FILEBASE_ONLY == true} {if $templateName == 'filebase'} {include file='__dkmSlider'} {/if} {/if} <!-- Filebase Woltlab --> <!-- CMS --> {if DKM_SLIDER_MESSAGE_FIREBALLCMS_ONLY == true} {if $templateName == 'page'} {include file='__dkmSlider'} {/if} {/if} {/if} {if DKM_SLIDER_MESSAGE_FIREBALLNEWS_ONLY == true} {if $templateName == 'newsOverview'} {include file='__dkmSlider'} {/if} {/if} <!-- CMS --> <!-- Portal --> {if DKM_SLIDER_MESSAGE_PORTAL_ONLY == true} {if $templateName == 'portal'} {include file='__dkmSlider'} {/if} {/if} <!-- Portal --> <!-- News --> {if DKM_SLIDER_MESSAGE_NEWS_ONLY == true} {if $templateName == 'news'} {include file='__dkmSlider'} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORY_ONLY == true} {if $templateName == 'category'} {include file='__dkmSlider'} {/if} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORYLIST_ONLY == true} {if $templateName == 'categoryList'} {include file='__dkmSlider'} {/if} {/if} <!-- News ---> <!-- Lexicon --> {if DKM_SLIDER_MESSAGE_LEXICON_ONLY == true} {if $templateName == 'lexicon'} {include file='__dkmSlider'} {/if} {/if} <!-- Lexicon --> <!-- Marketplace --> {if DKM_SLIDER_MESSAGE_MARKETPLACE_ONLY == true} {if $templateName == 'marketplace'} {include file='__dkmSlider'} {/if} {/if} <!-- Marketplace --> <!-- Memberlist --> {if DKM_SLIDER_MESSAGE_MEMBERLIST_ONLY == true} {if $templateName == 'membersList'} {include file='__dkmSlider'} {/if} {/if} <!-- Memberlist --> {/if}]]></templatecode> </templatelistener>
-
ja,
XML
Alles anzeigen<?xml version="1.0" encoding="UTF-8"?> <data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/templatelistener.xsd"> <import> <templatelistener name="DKMSLIDERPOS1"> <environment>user</environment> <templatename>userNotice</templatename> <eventname>userNotice</eventname> <templatecode><![CDATA[{if DKM_SLIDER_POS_1 == true} <!-- Dashboard --> {if DKM_SLIDER_MESSAGE_DASHBOARD_ONLY == true} {if $templateName == 'dashboard'} {include file='__dkmSlider'} {/if} {/if} <!-- Dashboard --> <!-- Forum --> {if DKM_SLIDER_MESSAGE_FORUM_ONLY == true} {if $templateName == 'boardList'} {include file='__dkmSlider'} {/if} {/if} <!-- Forum --> <!-- Blog --> {if DKM_SLIDER_MESSAGE_BLOG_ONLY == true} {if $templateName == 'blog'} {include file='__dkmSlider'} {/if} {/if} <!-- Blog --> <!-- Gallery --> {if DKM_SLIDER_MESSAGE_GALLERY_ONLY == true} {if $templateName == 'gallery'} {include file='__dkmSlider'} {/if} {/if} <!-- Gallery --> <!-- Calendar --> {if DKM_SLIDER_MESSAGE_CALENDAR_ONLY == true} {if $templateName == 'calendar'} {include file='__dkmSlider'} {/if} {/if} <!-- Calendar --> <!-- Filebase Woltlab --> {if DKM_SLIDER_MESSAGE_FILEBASE_ONLY == true} {if $templateName == 'filebase'} {include file='__dkmSlider'} {/if} {/if} <!-- Filebase Woltlab --> <!-- CMS --> {if DKM_SLIDER_MESSAGE_FIREBALLCMS_ONLY == true} {if $templateName == 'page'} {include file='__dkmSlider'} {/if} {/if} {if DKM_SLIDER_MESSAGE_FIREBALLNEWS_ONLY == true} {if $templateName == 'newsOverview'} {include file='__dkmSlider'} {/if} {/if} <!-- CMS --> <!-- Portal --> {if DKM_SLIDER_MESSAGE_PORTAL_ONLY == true} {if $templateName == 'portal'} {include file='__dkmSlider'} {/if} {/if} <!-- Portal --> <!-- News --> {if DKM_SLIDER_MESSAGE_NEWS_ONLY == true} {if $templateName == 'news'} {include file='__dkmSlider'} {/if} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORY_ONLY == true} {if $templateName == 'category'} {include file='__dkmSlider'} {/if} {/if} {if DKM_SLIDER_MESSAGE_NEWS_CATEGORYLIST_ONLY == true} {if $templateName == 'categoryList'} {include file='__dkmSlider'} {/if} {/if} <!-- News ---> <!-- Lexicon --> {if DKM_SLIDER_MESSAGE_LEXICON_ONLY == true} {if $templateName == 'lexicon'} {include file='__dkmSlider'} {/if} {/if} <!-- Lexicon --> <!-- Marketplace --> {if DKM_SLIDER_MESSAGE_MARKETPLACE_ONLY == true} {if $templateName == 'marketplace'} {include file='__dkmSlider'} {/if} {/if} <!-- Marketplace --> <!-- Memberlist --> {if DKM_SLIDER_MESSAGE_MEMBERLIST_ONLY == true} {if $templateName == 'membersList'} {include file='__dkmSlider'} {/if} {/if} <!-- Memberlist --> {/if}]]></templatecode> </templatelistener>
rest kommt im nächsten Beitrag -
Ich habe jetzt die Positionierung auf Radiobutton umgestellt und jetzt hbekomme ich den Fehler.
In Template Footer gibts keine Zeile 97, was mach ich denn jetztCode
Alles anzeigenFri, 20 May 2016 09:34:56 +0000 Message: Template compilation failed: unexpected {/if} in template 'footer' on line 97 File: D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateScriptingCompiler.class.php (346) PHP version: 5.6.12 WCF version: 2.1.10 (Typhoon) Request URI: /forum/index.php?dashboard/ Referrer: http://localhost/forum/acp/index.php?option/2347/& User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.0 Information: "" Stacktrace: #0 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateScriptingCompiler.class.php(243): wcf\system\template\TemplateScriptingCompiler->compileTag('/if', 'footer', Array) #1 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateScriptingCompiler.class.php(808): wcf\system\template\TemplateScriptingCompiler->compileString('footer', '\t\t\t\t{event name...', Array, true) #2 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateScriptingCompiler.class.php(352): wcf\system\template\TemplateScriptingCompiler->compileIncludeTag(' file='footer'', 'dashboard', Array) #3 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateScriptingCompiler.class.php(243): wcf\system\template\TemplateScriptingCompiler->compileTag('include file='f...', 'dashboard', Array) #4 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateCompiler.class.php(30): wcf\system\template\TemplateScriptingCompiler->compileString('dashboard', '{include file='...', Array) #5 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateEngine.class.php(461): wcf\system\template\TemplateCompiler->compile('dashboard', '{include file='...', 'D:\\xampp\\htdocs...', Array) #6 D:\xampp\htdocs\forum\wcf\lib\system\template\TemplateEngine.class.php(317): wcf\system\template\TemplateEngine->compileTemplate('dashboard', 'D:\\xampp\\htdocs...', 'D:\\xampp\\htdocs...', Array) #7 D:\xampp\htdocs\forum\wcf\lib\page\AbstractPage.class.php(305): wcf\system\template\TemplateEngine->display('dashboard', 'wcf') #8 D:\xampp\htdocs\forum\wcf\lib\page\AbstractPage.class.php(100): wcf\page\AbstractPage->show() #9 D:\xampp\htdocs\forum\wcf\lib\system\request\Request.class.php(58): wcf\page\AbstractPage->__run() #10 D:\xampp\htdocs\forum\wcf\lib\system\request\RequestHandler.class.php(139): wcf\system\request\Request->execute() #11 D:\xampp\htdocs\forum\index.php(10): wcf\system\request\RequestHandler->handle('wbb') #12 {main}