Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 10:28:03 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: My WB templates do not work in 2.8.2 - WHY???? PLEASE HELP!  (Read 419 times)
tschiemer

Offline Offline

Posts: 19


WWW
« on: October 12, 2011, 06:20:28 PM »

I have been using WB for 5+ years and love it... Thanks!  I have tried to give back as much as I can by submitting the numerous modules we have built for WB to your organization.

Unfortunately though with the upgrade to WB 2.8.2 my custom designed templates no longer work properly.  If I take the same template programming I have used in dozens of site for years and plug them into anything from 2.8.1 and below, they work perfectly.  When I install the same template into 2.8.2, the navigation does not show up, the content area does not show up and my style sheet no longer links properly allowing for the content background images repeat, the footer background is gone, etc. 

What changed so drastically that this would occur from one version to the next?  I have attached screen shots and a sample of my WB .zip file.  Please HELP!! 

Just FYI:  Here are just some my recent sites that I have made using the exact same programming, just different art, navigation direction and styles... and they all work beautifully in every WB version dating back to 2.7.

http://www.avsdigital.com/

http://www.advancedmedicalandwellness.com/

http://www.goodietwoshoes.org/

http://www.trueidlv.com/

http://www.medicalsculpturing.com/

http://www.lvaorchestra.com/






Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #1 on: October 12, 2011, 06:57:22 PM »

My guess is wb282 is installed at another server?


You use short open tags : <? include("csshover.php") ?>
don't, use <?php include("csshover.php") ?>  instead

I think there lies your answer.

If the server doesn't like short open tags the file will not be included, thus some functions will not be available.

This might allso be logged in your error.log.

Have fun.
John


PS, It is common knowledge that typing in uppercase is considered shouting!
Normally I don't respond on these uppercase questions.
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #2 on: October 12, 2011, 06:59:27 PM »

PS Instead of pmenu you might consider using showmenu2 wich is very powerfull.
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
tschiemer

Offline Offline

Posts: 19


WWW
« Reply #3 on: October 12, 2011, 08:32:22 PM »

Hi all.  No yelling here... just very anxious about getting a solution.

Thanks for the reply, but this does not really help solve the problems of the Content php, the Footer PHP and the style sheet not linking properly, even though the template works fine in 2.8.1.

Attached I have included another template I am building that, when installed, does allow for the Content PHP to link, the footer does show up (there is no navigation bar in this one, so I don't know if that works, but at least I know that something is working) and the style sheet is linking.  what is different between the two?  It is all using the same techniques and code, so I am stumped. 

The only thing that I notice does not work in the attached template is the style sheet is set to center the footer text in the vertical center of the table it is in... this does not happen, yet in 2.8.1 it works.

Any more help would be great appreciated.
Logged
tschiemer

Offline Offline

Posts: 19


WWW
« Reply #4 on: October 12, 2011, 08:34:00 PM »

One last comment.  All of these sites are running on the same server, so there is no difference in the setup other than the WB version just uploaded for this new site.  I was planning to upgrade the WB admin of each of the old sites to the new version, but the way it is now, that will break all my existing sites.
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #5 on: October 12, 2011, 09:46:45 PM »

Did you correct the open tag?

I really think the prob is there.
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
tschiemer

Offline Offline

Posts: 19


WWW
« Reply #6 on: October 13, 2011, 12:39:44 AM »

I tried that, but it did not fix it.

I use the Project7 MagicMenu system for the navigation customization and drop down menus.
It seems to be a database issue when trying to use this:

On line 21 of csshover.php is this (see attached for the file):


   $query_menu = $database->query("SELECT page_id,menu_title,page_title,link,target,level,visibility$extra_sql FROM ".TABLE_PREFIX."pages WHERE parent = '$parent' AND $menu_number AND $extra_where_sql ORDER BY position ASC");


This is where the template breaks and then on line 23 when it tries to use the query it's broke... any ideas why this would stop working in the new version of WB?
Logged
tschiemer

Offline Offline

Posts: 19


WWW
« Reply #7 on: October 13, 2011, 12:40:18 AM »

Here is the csshover.php file.
Logged
cthamer

Offline Offline

Posts: 23


« Reply #8 on: October 13, 2011, 08:06:26 AM »

Just an FYI for this topic. I resolved this problem for tschiemer.

In the end it was an issue with the code for the menu he was using. That code used a global WB variable $extra_where_sql in its main function. For whatever reason in the latest version of WB that global variable was empty. This in turn caused a query syntax error and finally for the page to have a fatal error in mid-load.
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #9 on: October 13, 2011, 11:00:05 AM »

Aaaahhh, had simular issues where global variables in a function didn't work, they did on wb281 and lower.

Had to rewrite some of them.
I think it has to do with the huge security overhaul, so I can live with the idea it is for a more secure system.


Glad problem is solved.

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!