Welkom bij Joomla!NL

Om alle mogelijkheden van dit forum te kunnen gebruiken, moet je je eerst registreren.

Dit forum is gesloten!
Als hier nog een onbeantwoorde vraag staat waar je graag reactie op wilt, rapporteer deze dan even met de knop "Rapporteren aan moderator", dan verplaatst een van de moderators hem naar het nieuwe forum.

Foutje in template

Foutje in template

19 feb 2013 15:55
#1
Goedemiddag,

Ik ben een 3.0 website aan het bouwen met een template van Gobblerthemes (Onne Style). De sitebouw ging tot nu toe perfect tot ik een wijziging wou aanbrengen in de index.php. Daarna kreeg ik deze foutmelding:


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in ///public_html/templates/onnestyle/index.php on line 17


Geen probleem dacht ik, gewoon de originele index.php terugzetten. Echter: de foutmelding blijft (ook na cache verversen etc)

Iemand een idee hoe dit te fixen??

BVD

De index.php is als volgt:

Code:
<?php /**************************************************** ##################################################### ##-------------------------------------------------## ## ONNE STYLE ## ##-------------------------------------------------## ## Copyright = globbersthemes.com- 2012 ## ## Date = juin 2012 ## ## Author = globbers ## ## Websites = http://www.globbersthemes.com ## ## version (joomla) ## ## ## ##################################################### ****************************************************/ // no direct access defined(\'_JEXEC\') or die(\'Restricted access\'); include_once(JPATH_ROOT . \"/templates/\" . $this->template . \'/js/classe/layout.php\'); ?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"<?php echo $this->language; ?>\" lang=\"<?php echo $this->language; ?>\" > <head> <jdoc:include type=\"head\" /> <?php JHTML::_(\'behavior.framework\', true); $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $csite_name = $app->getCfg(\'sitename\'); $path = $this->baseurl.\'/templates/\'.$this->template; $newsflash = $this->params->get(\"newsflash\", \"hello and welcome on onne style template for joomla 2.5!!!! design by globbers for globbersthemes.com.. \"); ?> <link rel=\"stylesheet\" href=\"<?php echo $this->baseurl ?>/templates/onnestyle/css/tdefaut.css\" type=\"text/css\" media=\"all\" /> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/jquery.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/superfish.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/hover.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/cufon-yui.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/cufon-replace.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/Bebas_400.font.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/BlackJack_400.font.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/nivo.slider.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/scroll.js\"></script> <link rel=\"icon\" type=\"image/gif\" href=\"<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif\" /> <script type=\"text/javascript\"> var $j = jQuery.noConflict(); $j(document).ready(function() { $j(\'.navigation ul\').superfish({ delay: 800, animation: {opacity:\'show\',height:\'show\'}, speed: \'normal\', autoArrows: false, dropShadows: true }); }); </script> <script type=\"text/javascript\"> var $j = jQuery.noConflict(); jQuery(document).ready(function ($){ $j(\"#slider\").nivoSlider( {effect: \"sliceUpDown\", slices: 15, boxCols: 8, boxRows: 4, animSpeed: 1000, pauseTime: 3000, captionOpacity: 1 }); }); </script> </head> <body> <div class=\"pagewidth\"> <div id=\"wrapper\"> <div id=\"newsflash\"> <p><?php echo $newsflash ?></p> </div> <div id=\"topmenu\"> <div class=\"navigation\"> <jdoc:include type=\"modules\" name=\"position-1\" /> </div> </div> <?php $menu = JSite::getMenu(); ?> <?php $lang = JFactory::getLanguage(); ?> <?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?> <?php if ($this->params->get( \'slidedisable\' )) : ?> <?php include \"slideshow.php\"; ?><?php endif; ?> <?php } ?> <div id=\"main\"> <jdoc:include type=\"component\" /> </div> <?php if ($this->countModules(\'position-3\') || $this->countModules(\'position-4\') || $this->countModules(\'position-6\')) { ?> <div id=\"box-wrap\"> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-3\" style=\"xhtml\" /> </div> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-4\" style=\"xhtml\" /> </div> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-6\" style=\"xhtml\" /> </div> </div> <?php } ?> <div id=\"ft\"> <div class=\"ftb\"> <?php echo date( \'Y\' ); ?>&nbsp; <?php echo $csite_name; ?>&nbsp;&nbsp;<?php require(\"template.php\"); ?> </div> <div id=\"top\"> <div class=\"top_button\"> <a href=\"#\" onclick=\"scrollToTop();return false;\"> <img src=\"templates/<?php echo $this->template ?>/images/top.jpg\" width=\"30\" height=\"30\" alt=\"top\" /></a> </div> </div> </div> </div> <div id=\"colonne\"> <div id=\"sitename\"> <div id=\"name\"> <a href=\"index.php\"><img src=\"templates/<?php echo $this->template ?>/images/logo.png\" width=\"81\" height=\"79\" alt=\"logotype\" /></a> </div> </div> <div id=\"slogan\"> <a href=\"http://www.globbersthemes.com\"><img src=\"templates/<?php echo $this->template ?>/images/slogan.png\" width=\"207\" height=\"102\" alt=\"free joomla templates\" /></a> </div> <div id=\"right\"> <jdoc:include type=\"modules\" name=\"position-7\" style=\"xhtml\" /> </div> </div> </div> </body> </html>
Geert Franken
SpotOn Webdesign
Portugal
spoton-webdesign.eu
  • geertf
  • geertf's berichtenfoto Heeft onderwerp gestart
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 154

Foutje in template

19 feb 2013 16:22 - 19 feb 2013 16:24
#2
Volgens mij heb je toch de aangepaste index.php terug geplaatst. Ik heb even gekeken en in de eerste regels komt er continue een
Code:
/
of
Code:
\
voor die er niet thuishoort.

Ik denk dat dit juiste code moet zijn, of in ieder geval een flinke stap in de goede richting:
Code:
<?php /**************************************************** ##################################################### ##-------------------------------------------------## ## ONNE STYLE ## ##-------------------------------------------------## ## Copyright = globbersthemes.com- 2012 ## ## Date = juin 2012 ## ## Author = globbers ## ## Websites = http://www.globbersthemes.com ## ## version (joomla) ## ## ## ##################################################### ****************************************************/ // no direct access defined('_JEXEC') or die('Restricted access'); include_once(JPATH_ROOT . "templates" . $this->template . 'js/classe/layout.php'); ?> <!DOCTYPE html PUBLIC "-W3C DTD XHTML 1.0 Transitional EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml\" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" > <?php JHTML::_('behavior.framework', true); $app = JFactory::getApplication(); $templateparams = $app->getTemplate(true)->params; $csite_name = $app->getCfg('sitename'); $path = $this->baseurl.'templates'.$this->template; $newsflash = $this->params->get("newsflash", "hello and welcome on onne style template for joomla 2.5!!!! design by globbers for globbersthemes.com.. "); ?> <link rel=\"stylesheet\" href=\"<?php echo $this->baseurl ?>/templates/onnestyle/css/tdefaut.css\" type=\"text/css\" media=\"all\" /> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/jquery.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/superfish.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/hover.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/cufon-yui.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/cufon-replace.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/Bebas_400.font.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/BlackJack_400.font.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/nivo.slider.js\"></script> <script type=\"text/javascript\" src=\"templates/<?php echo $this->template ?>/js/scroll.js\"></script> <link rel=\"icon\" type=\"image/gif\" href=\"<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/favicon.gif\" /> <script type=\"text/javascript\"> var $j = jQuery.noConflict(); $j(document).ready(function() { $j(\'.navigation ul\').superfish({ delay: 800, animation: {opacity:\'show\',height:\'show\'}, speed: \'normal\', autoArrows: false, dropShadows: true }); }); </script> <script type=\"text/javascript\"> var $j = jQuery.noConflict(); jQuery(document).ready(function ($){ $j(\"#slider\").nivoSlider( {effect: \"sliceUpDown\", slices: 15, boxCols: 8, boxRows: 4, animSpeed: 1000, pauseTime: 3000, captionOpacity: 1 }); }); </script> </head> <body> <div class=\"pagewidth\"> <div id=\"wrapper\"> <div id=\"newsflash\"> <p><?php echo $newsflash ?></p> </div> <div id=\"topmenu\"> <div class=\"navigation\"> <jdoc:include type=\"modules\" name=\"position-1\" /> </div> </div> <?php $menu = JSite::getMenu(); ?> <?php $lang = JFactory::getLanguage(); ?> <?php if ($menu->getActive() == $menu->getDefault($lang->getTag())) { ?> <?php if ($this->params->get( 'slidedisable' )) : ?> <?php include "slideshow.php"; ?><?php endif; ?> <?php } ?> <div id="main"> <jdoc:include type="component\" /> </div> <?php if ($this->countModules('position-3') || $this->countModules('position-4') || $this->countModules('position-6')) { ?> <div id=\"box-wrap\"> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-3\" style=\"xhtml\" /> </div> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-4\" style=\"xhtml\" /> </div> <div class=\"box\"> <jdoc:include type=\"modules\" name=\"position-6\" style=\"xhtml\" /> </div> </div> <?php } ?> <div id=\"ft\"> <div class="ftb"> <?php echo date( 'Y' ); ?>&nbsp; <?php echo $csite_name; ?>&nbsp;&nbsp;<?php require("template.php"); ?> </div> <div id="top"> <div class="top_button"> <a href="#" onclick="scrollToTop();return false;\"> <img src=\"templates/<?php echo $this->template ?>/images/top.jpg\" width="30" height=\"30\" alt=\"top\" /></a> </div> </div> </div> </div> <div id=\"colonne\"> <div id=\"sitename\"> <div id=\"name\"> <a href=\"index.php\"><img src=\"templates/<?php echo $this->template ?>/images/logo.png\" width=\"81\" height=\"79\" alt=\"logotype\" /></a> </div> </div> <div id=\"slogan\"> <a href=\"http://www.globbersthemes.com\"><img src=\"templates/<?php echo $this->template ?>/images/slogan.png\" width=\"207\" height=\"102\" alt=\"free joomla templates\" /></a> </div> <div id=\"right\"> <jdoc:include type=\"modules\" name=\"position-7\" style=\"xhtml\" /> </div> </div> </div> </body> </html>
Laatst bewerkt 19 feb 2013 16:24 door Robby van der Zande.

Foutje in template

19 feb 2013 23:59
#3
Bedankt voor je reactie Robby, je hebt me inderdaad op het juiste spoor gezet.

Waar het op neer komt is dat als ik de index.php vanuit Joomla bewerk, dit niet goed gaat. Joomla zet de slashes en backslashes er zelf in! Wellicht een bugje?? Herkent iemand deze eigenaardigheid?

Het probleem heb ik opgelost door de originele template opnieuw te installeren. Morgen pas ik hem aan maar dan wel lokaal in Notepad oid voordat ik hem upload. B)

(onderwerp kan wat mij betreft gesloten worden)
Geert Franken
SpotOn Webdesign
Portugal
spoton-webdesign.eu
  • geertf
  • geertf's berichtenfoto Heeft onderwerp gestart
  • Bekend met Joomla!NL
  • Bekend met Joomla!NL
  • Berichten: 154

Foutje in template

20 feb 2013 00:03
#4
Fijn dat het opgelost is.
Dank je wel voor de terugkoppeling.
Met vriendelijke groet,

Peter Reitsma
Wil je Joomla!NL steunen? Dat kan met een donatie.

  • Peter
  • Peter's Profielfoto
  • Algemeen Moderator
  • Algemeen Moderator
  • Berichten: 2826
Moderators: Juliank92PeterJelleRomke
Tijd voor maken pagina: 0.823 seconden

Wil je Joomla!NL steunen?

Steun Joomla!NLAlle teamleden werken enthousiast, op vrijwillige basis, mee aan Joomla!NL. Maar een website met forum kost nu eenmaal geld. Dus als je Joomla!NL wilt steunen, dan kan dat, graag zelfs!

Lees hier meer informatie