Privateer Theme Forums
May 19, 2012, 02:01:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Privateer Theme 1.4 is Out.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Known Bugs in 1.8  (Read 587 times)
Tony Lee
Administrator
Full Member
*****

Karma: +2/-0
Posts: 137


View Profile
« on: September 11, 2010, 02:38:56 PM »

At this time, I am unaware of any bugs...but I am aware of a problem that people could run into.

If you are using 1.8 and find that your posts / pages are missing paragraph formatting, you can quickly resolve this by opening the /privateer/functions.php file and locating the following line ( near the bottom ):

remove_filter('the_content', 'wpautop');

Add a # in front of it so that it looks like:

# remove_filter('the_content', 'wpautop');

Save the changes and things should look fine again.

I forgot that I disabled the wpautop filter ( which inserts paragraphs automatically...and often in incorrect spots, causing all kinds of troubles with tools reliant on parsing such as lightbox, slimbox, fcg, etc. ).

Come next version, I'll have it as an option rather than a hard coded line in the functions file.

~Tony
Logged
Tony Lee
Administrator
Full Member
*****

Karma: +2/-0
Posts: 137


View Profile
« Reply #1 on: September 14, 2010, 08:21:27 AM »

Bug #1:

I broke the custom header override for pages and posts.

To fix this:
1. Open the file /privateer/classes/pwsPageRender.class.php
2. Find the line ( in the GetSiteHeader function near the top ) that reads:
Code:
if ( $bForFooter !== false ) {
3. Edit it by replacing false with true so it reads:
Code:
if ( $bForFooter !== true ) {
4. Save the changes and exit.

Alternately, download the attached file, extract it, and upload the pwsPageRender.class.php file to /privateer/classes, overwriting the old one.

Bug #2:
When fixing the display on options for sidebars to make the front page option work reliably, I forgot to account for the page level sidebar display overrides. This is fixed in the downloaded attachments. ( e.g. If you use the wordpress front page rather than the normal post listing page, you can now correctly override the header and hide any unwanted sidebars ). Extract them and overwrite /privateer/header.php and /privateer/classes/pwsPageRender.class.php with the resulting files.


« Last Edit: September 16, 2010, 12:34:12 PM by Tony Lee » Logged
Tony Lee
Administrator
Full Member
*****

Karma: +2/-0
Posts: 137


View Profile
« Reply #2 on: September 23, 2010, 12:16:07 PM »

If you need to have the page menu and category menu exclude sub items of the items you specify, extract the attached zip archive to your /privateer/classes directory and overwrite the existing version.

Currently, they use wp_list_categories and wp_list_pages, which have a bug in the exclude_tree variable ( only one item entered is actually excluded ). I added a quick bit of parsing before hand that will take your exclude list, grab all child ids of the items you have listed, and add them to the exclude list.

This version of the file is the latest current one for 1.8 and not needed unless you use the page bar or category bar and want to exclude entire sub menus without entering each of the items in them into the exclude list.

~Tony
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!