PDA

View Full Version : fix for SEO enabled problem in 3.3


jimk
02-07-2009, 04:51 AM
I just installed phpLD version 3.3 and found that none of my subcategory links worked. After doing some digging, I found two things:

1. the DOC_ROOT definition in init.php causes the DOC_ROOT to be defined *with* the subcategories in place, so the scripts start looking for css files and templates in (for example) mydirectory.com/Arts/Humanities/templates/Professional/main.css

My solution was to explicitly set the DOC_ROOT to my domain name:
Content visible to registered users only.2. Even after fixing that, the pages have style, but do not actually show the subcategories. I dug down to include/functions.php and the get_category() function. It appears that it was trying to strip the DOC_ROOT off of the path (url) even when it didn't contain the doc root. I Had to change this line:

Content visible to registered users only.to

Content visible to registered users only.

James
02-07-2009, 06:57 AM
Please add your forum username in your phpLD user area so I can verify license.

Also way off on both counts