For some reason, my blocks don't get the last and first class from the template.php. For example, when I check a block I get block block-views block-2 block- block-2-. As you can see the first, normal or last are not in it.

I am using "Liquid width" layout and Fervens C column layout.

Any idea what might be causing this behaviour?

TIA,
Kayra.

CommentFileSizeAuthor
#2 fervens_tpl.zip5.2 KBthekayra

Comments

ktleow’s picture

Hello thekayra,

I've switched my demo site to Fervens C + Liquid width (http://demo.kahthong.com/fervens/).
Its all good here. The first and last are applied to the blocks correctly.

May I know what other modules are you using, did you make any modifications to the theme's template files?
I'll try to reproduce the problem from your list of modules and Drupal version.

thekayra’s picture

StatusFileSize
new5.2 KB

Thanks ktleow,

I have altered -more than a little- page-front.tpl.php and created the following templates: page-front.tpl.php, views-view--quicktabs-latest-reviews.tpl.php. You can find these three files in the attachments. I am not the best coder around so the the way I ahve done things might seem crude =).

I do not have any blocks on the front page and I rely on Panels for frontpage and user-profile. I do have the same issue on the search page where I do not use panels and did not alter the tpl.php.

Here below, the list of my modules. I am also going to delete and re-install the theme after this email. Once again thanks for your help. I already like the theme a lot and was already thinking of giving you some paypal love, once I launch my website.

gmap/
persistent_login/
google_analytics/
quicktabs/
active_tags/
heartbeat/
rules/
admin_menu/
i18n/
schema/
advanced_help/
imageapi/
spoiler/
auto_nodetitle/
imagecache/
tabs/
cck/
imagecache_actions/
tagadelic/
cck_fieldgroup_tabs/
imagecache_profiles/
taxonomy_manager/
cnr/
imagefield/
term_node_count/
computed_field/
imagefield_tokens/
token/
conditional_fields/
jammer/
token_custom/
content_profile/
l10n_client/
translation_helpers/
content_taxonomy/
languageicons/
transliteration/
ctools/
lightbox2/
tw/
custom/
link/
unique_field/
devel/
location/
userpoints/
emfield/
logintoboggan/
userpoints_contrib/
luceneapi/
userpoints_nc/
filefield/
luceneapi_cck/
views/
fivestar/
mimedetect/
votingapi/
flag/
multiselect/
wysiwyg/
friendlist/
panels/
genpass/
pathauto/

thekayra’s picture

Re-installing did not work out unfortunately.

ktleow’s picture

Can you provide me the link to your Drupal site with this modified Fervens you're using?

Also, goto http://validator.w3.org/ and try to validate your site see if your modifications are correct.

From the looks, your code have some tags mismatch (eg: forgotten to close an opening <div>, etc).

thekayra’s picture

Finally, the site is online. Unfortunately the problem persists. You can visit it on www.bencesuper.com.

I have checked the validator and it is validated as "XHTML 1.0 Strict".

When I have added some functions in the template.php, they worked. So this is really becoming confusing for me =).

ktleow’s picture

I think I see your problem now.

The blocks within Panels are not controlled by my theme (i mean the markups).
Therefore it does not get the classes applied.

Only normal blocks outside a Panel gets first and last.

thekayra’s picture

Hmnn, I see. However I am not using Panels on taxonomy or node pages. And the blocks are still not getting the first and last. This might still be related to Panels?

ktleow’s picture

Thats a very long list of modules you have there :(

First of all, you should try a fresh copy (download) of latest Fervens theme on your server with only core Drupal modules.
See if the blocks get first and last class applied.

Then install 1 by 1 modules to find out the problem.

thekayra’s picture

Ouch! Well I gotta do what I gotta do then =)

Will let you know once I find the culprit..

thekayra’s picture

OK, Found the culprit!

"Block translation" is the one causing the problem. Once I disabled it, the blocks started to get the extraclass.

Any idea why? I will also ask Internationalization module people to get their help. Will let you know, if I get any info.

Thanks for the help,
KK.

thekayra’s picture

The issue I have opened at Internationalization project: http://drupal.org/node/707596

Jerimee’s picture

I think this is a problem with the latest Fervens update. I have an older version of the fervens theme; when I apply it the first and last classes are correctly applied. In the latest version they are not.

The old version is 6.x-2.2 (where it works), the new is 6.x-2.4 (where it does not).

Please disregard

Jerimee’s picture

The only difference I can find is that the old 2.2 uses the prefix phptemplate_ and that 2.4 uses the prefix fervens_

It's a separate issue, but the theme settings no longer work either. You can no longer choose fervens-b or c from the theme admin.

And sure enough, when I replace the the function prefixes "fervens_" with "phptemplate_" both issues are resolved.

Please disregard - I renamed the theme, and this is why I had the error.

ktleow’s picture

Version: 6.x-2.2 » 6.x-2.4

For users upgrading from previous version, you need to goto admin/settings/performance and clear your Drupal caches because there has been a slight change in codings.

My demo site is using the latest Fervens 2.4, it gets first/last class and switching from styleA/B/C works too.
Have a look at it where I've changed to Fervens C layout, http://demo.kahthong.com/?theme=fervens

ktleow’s picture

Status: Active » Fixed

This problem should be fixed in the version 2.5 release.

Similar issue: http://drupal.org/node/702862

Status: Fixed » Closed (fixed)

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