Closed (fixed)
Project:
Google Groups
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2009 at 20:06 UTC
Updated:
1 Nov 2009 at 19:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
dragonwize commentedIt works through the normal theme system the same as all other templates.
Ensure you are not changing the file name and that you are clearing your theme registry.
Beyond that I would need more information about exactly what you are trying to do, what you are expecting, and what you are actually getting in your output.
Comment #2
drew reece commentedI want to add classes to the markup of the subscribe block.
So I copied the file sites/all/modules/google_groups/google-groups-subscribe-form-block.tpl.php to sites/all/themes/customtheme/google-groups-subscribe-form-block.tpl.php.
I added block.tpl.php to my theme from /modules/system/block.tpl.php to sites/all/themes/customtheme/block.tpl.php.
I added changes to the google-groups-subscribe-form-block.tpl.php in my theme.
I used devel to clear all caches, - no text appeared, theme developer says the block is themed from the module - (see attached screenshot).
My theme is a subtheme of Blueprint, so I added my changed google-groups-subscribe-form-block.tpl.php to that theme & it still will not show up in the block output.
I have cleared the caches between the changes. As mentioned I also tried to use the changed google-groups-subscribe-form-block.tpl.php in the Acquia slate theme but it still failed to alter the html of the subscribe block.
I'm using Drupal 6.12 with 6.x-10 of Google Groups.
EDIT
I forgot to mention, other overrides work from my custom theme, such as node-event.tpl.php overrides my event nodes and block-user.tpl.php overrides the main navigation block.
Comment #3
drew reece commentedWell here is some more info from the status page…
Drupal 6.12
File system Writable (public download method)
GD library bundled (2.0.34 compatible)
GD library bundled (2.0.34 compatible)
MySQL database 5.0.67
PHP 5.2.6
PHP memory limit 256M
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Web server Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7l DAV/2 PHP/5.2.6
jQuery Update 1.2.6
I really don't know why this fails for me, any ideas?
Comment #4
dragonwize commentedI am not sure why it is not working for you. I don't have much time to debug right now. I would suggest upgrading to 2.0 and see if that fixes it for you. There are many bug fixes in that release and 1.0 will soon be completely unsupported.
Even though 2.0 says beta right now, it is stable. It really should be marked RC as I was just letting it sit there long enough for people to test it out and report back. It looks like there are close to 30 sites using it now without issues reported so it will be marked stable as soon as I get around to that soon.
Comment #5
ryan_courtnage commented@drew reece
Did you ever figure this out? I'm having the *exact* same problem, but with a different module (I am not using google_groups.module).
Comment #6
drew reece commentedNo I haven't figured this one out, sorry.
Are you using the Blueprint theme too?
Comment #7
ryan_courtnage commentedHey Drew,
No, in my case, I can duplicated the problem regardless of the theme I'm using.
Cheers
Ryan
Comment #8
ryan_courtnage commentedDrew,
So I figured out what the issue is. Have a look at my comment here:
http://api.drupal.org/api/function/hook_theme/6#comment-158
Ryan
Comment #9
ryan_courtnage commentedI should mention that the solution also applies to google_groups.module, as the theme hook name does not match the template name:
Comment #10
drew reece commentedIf I understand you correctly Ryan, a fix would be…
changing line 118 of google_groups.module from
…to this…
Is that what you mean? I tried altering it in the module to see if it would pick up the the google-groups-subscribe-form-block.tpl.php in my theme but it didn't seem to work. I expect there are other things I need to change.
I think you logic is correct because I can now override the google-groups-subscribe-form-block by adding a 'google-groups-block0-content.tpl.php' to my theme. I don't think that is the correct way to do the override.
Thanks for looking into this,
Drew
Comment #11
dragonwize commentedThanks ryan_courtnage. Change committed.
Comment #12
drew reece commentedI updated to the 6.x-2.0 version and it fixed the issue.
Thank you ryan_courtnage and dragonwise.