Problem with the templeron-template after update sp1 (2.8.2.)

dbs

Hi, seems the forum has changed the posted code.
this:  '
should be this: '
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

nene

Unfortunately, its not working for me. I get the error below

Parse error: syntax error, unexpected '&', expecting T_STRING or T_VARIABLE or '$' in /home/awutse/public_html/templates/templeron/index.php on line 48

Can anyone help me?

Thanks
Nene

VCRulez

Quote from: dbs on September 19, 2011, 02:23:31 PM
short tested, code should better be:

<!-- Top Menu -->
<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_ALL|SM2_PRETTY
           
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>'
           
'<li class="divisoremenu">&nbsp;</li>'
           
'<ul id="menu">'
           
'</ul>'falsefalse);

?>

<!-- // Top Menu -->

Working fine! Thank you very much! :-)

dbs

short tested, code should better be:

<!-- Top Menu -->
<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_ALL|SM2_PRETTY
           
'<li class="premuto"><a class="menuHead" href="[url]" title="[page_title]">[menu_title]</a>'
           
'<li class="divisoremenu">&nbsp;</li>'
           
'<ul id="menu">'
           
'</ul>'falsefalse);

?>

<!-- // Top Menu -->
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

DarkViper

ok, this should work:

1.: remove any code between <!-- Top Menu --> and <!-- // Top Menu -->
2: replace it by following code:


<?php
show_menu2
(0SM2_ROOTSM2_STARTSM2_ALL|SM2_PRETTY
           
'<li class="premuto"><a href="[url]" title="[page_title]">[menu_title]</a>'
           
'<li class="divisoremenu"></li></li>'
           
'<ul class="menu"><li class="divisoremenu"></li>'
           
'</ul>'falsefalse);

?>



untested and without any guaranty!  ;-)
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

VCRulez

Same problem here. Would be great if someone could provide help with the correct code. I also think, that this theme is still popular.

NaHoW

Hey,

Thanks for the reply, yes already noticed that.
I already tried to change the argument but then the menu is totally messed up and I don't know how to code properly so the menu keeps working.
Is it possible to update the template in the repo? Since this is the best template for WebsiteBaker if you ask me.
If not, how can I code that argument back into it?


Kind regards

DarkViper

templeron is a template from Nov. 2006 and was designed for WebsiteBaker 2.6
it does not include any show_menu() nor show_menu2() call. But it tries to access a not existing object '$menu1' in line 68.
Can be that this object existed in WB2.6... but never since 2.8.0.

The one and only way to use is to remove the code between the lines 68 and 78 and replace it by a normal show_menu2() call.
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

dbs

i don't know this template.
plz post a link to the template or show the index.php.
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

NaHoW

Bump.

I have the same problem, hope someone will actually reply here with a solution.

webby

Hi

I've got this error after the sp1-update:

"Fatal error: Call to a member function fetchRow() on a non-object in /data/www/mtmerne.dk/templates/templeron/index.php on line 68"

What is this and how to solve it

Thank you :) :)