Ok first i cant remember which version i uopgraded from as its been a while, but after the upgrade when i go to the FAQ page there now appears to be 2 empty lines after each category, which makes the page less than desirable

configuration as follows

Questions
Clicking on question opens the answer in a new page
Questions listing style: Ordered List

Categories
Clicking on category opens the questions/answers in a new page
Categories listing style: Unordered List
Show FAQ count

I also have Category descriptions

CommentFileSizeAuthor
#15 faq_5x_267793.patch694 bytesstella
#6 faq_267793.patch5.01 KBstella
#4 faq_267793.patch2.32 KBstella

Comments

stella’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Would you mind providing a screenshot to help illustrate what you mean? Also, what theme are you using?

I don't think it would have any effect on this issue, but did you run update.php after the upgrade?

Cheers,
Stella

nancydru’s picture

This may be a duplicate of http://drupal.org/node/251748

Anonymous’s picture

Here is a link to the page itself

http://www.crydee.com/faq

update was run

The theme is considerably modified so best to say homebrew, though much of the work was not done by myself. It has not been changed in almost 6 months.

If you would like to see it as it was before replace "www" in the URL above with "cms2" ( I haven't supplied it as a link as I do not want it picked up by search engines and possibly indexed)

IIRC the test site is almost the same as the live site except it is running FAQ 5.x-2.4 which is what the main site upgraded from. So the change may have happened at some point inbetween.

A thought has something changed where a <br /> would have existed and is now a <p> ?

Thanks
John

stella’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new2.32 KB

This is the same issue as #251748: Unusual empty space pushing parts of the FAQ page below the blocks. However try the attached patch and see how you get on. Alternatively, use the latest dev release (available later today).

Oh and nice site! I'm a big Raymond E. Feist fan.

Cheers,
Stella

Anonymous’s picture

Hi Stella

I implimented the patch, and the two empty lines has now reduced to one between questions, though originally there were none (IE7), In Firefox all appears Ok

Also the patch has shown that there is a large space after the description. I had a play and found that this can be changed by removing the

<p>  </p>

from

function theme_faq_category_description($term_description = '', $term_image = '') {
  $description = '';
  if (!empty($term_description)) {
    $description = '<div class="faq_qa_description"><p>';
    $description .= $term_description ."</p></div>\n";
  }

The space then appears the same size, one line that follows the Questions (IE7). Though i am not sure how that would affect other themes. At present though i have left the code as you wrote it

Oh an nice to meet another fan of Rays. (BTW The link for Feistfans at the website, is a mailing list Ray participates. in )

stella’s picture

StatusFileSize
new5.01 KB

In addition to the previous patch, try this attached patch. If it doesn't solve the problem then you may need to tweak your theme's css. I don't see the issue on your site in Firefox by the way, just in IE.

Cheers,
Stella

Anonymous’s picture

The Patch worked a Dream

Though i did find "check_markup" in a couple of places in the patch that were not in the module so assume they were used by yourself for testing ?

I have also added

  padding-left: 10px;

into the faq_qa_description tag in my theme to indent the description, incase you look and wonder what happened :)

Again Many thanks for a great module

John

nancydru’s picture

Check_markup is used to have filters applied to content. This helps protect the integrity of your site.

stella’s picture

midkemia: it's as NancyDru says, those check_markup() calls need to be there. They were only discovered to be missing when you raised this issue.

Cheers,
Stella

Anonymous’s picture

I think i have figured out what happened. I downloaded the latest dev version but hadn't realised that it was not the version that was the basis of the patch , hence the reason i couldnt find the check_markup() in the code, and assumed it was used during testing. I will add it back in :)

The patch called for 1.1.4.63.2.51
but dev was 1.1.4.63.2.50 I must pay more attention to these little details, I assume the check_markup() appeared in .51 :)

Thanks again

stella’s picture

Sorry, that was probably my fault. I think that change was made in between the two patches. oops.

Cheers,
Stella

stella’s picture

Status: Needs review » Fixed

Released in faq 5.x-2.11.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Anonymous’s picture

Version: 5.x-2.9 » 5.x-2.11
Status: Closed (fixed) » Active

Hi Stella,

The previous problemof extra space seems to have re-appeared, though i skipped 2.10 so am unsure if it appeared then.

If there is a description for the FAQ category

we get

http://www.crydee.com/faq/485

when there is no description we get

http://www.crydee.com/faq/483

It looks like the space is not collapsed when not in use

stella’s picture

StatusFileSize
new694 bytes

Try the attached patch.

Cheers,
Stella

Anonymous’s picture

Hi Stella, many thanks for the quick response. I tried the patch, and it does reduce the gap, but it appears to be doing it by removing the "Description" . Not sure if this is how it is intended?

I did find using the following worked

  elseif (!empty($desc)) {
    $output .= '<div class="faq_qa_header">'. $term_image . $desc ."</div>\n";
  }

I think it was down to the requirement for a term image that i do not use

But as i am usure of the implication, I have removed the patch for the moment, until this is clarified

stella’s picture

Oops, change this line:

elseif (!empty($term_image) && !empty($desc)) {

to

elseif (!empty($term_image) || !empty($desc)) {
Anonymous’s picture

Hi Stella, works perfectly

stella’s picture

Status: Active » Fixed

This fix has already been committed, just updating status.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

stella’s picture

Released in 5.x-2.12.