Did you ever figure this out? I haven't had a chance to play around with it, yet, but I'm not expecting much. In all the time I was developing it, I never had a problem with it changes showing up after clearing the cache. And, honestly, it's the theme system that handles this part anyway so unlikely to be anything in AP. I'll leave it as a bug report until I have time to investigate but I suspect it's not a bug in AP.
i have the same problem... i did all what Setzler did, but still no clue.
I tried also to make some changes in other modules-tpl.php, and they were ok.
For now, i just linked the author-pane-block.tpl.php in my theme to modules directory.
What's even more bewildering is not only that changes were not being detected, but I changed the names of these two files - "author-pane-block.tpl.php" and "author-pane.tpl.php" - switched templates, cleared the Druapal cache (although that feature was disabled), cleared the browser cache, yet the author pane was still being displayed :).
Ok, now I'm confused, then. You said you were not seeing changes when using the block. Now you're saying the problem is in using it with AF? Which is it? If you're making changes to the template for the block and not seeing changes in the forum then that makes perfect sense as they are different templates. I'm thinking this is user confusion rather than a bug... What, exactly, is it you're trying to do?
Thanks for responding and HUGE thanks for your superb modules and other Drupal contributions :). I am just trying to re-familiarise myself with Drupal after a bit of a dabble over 2 years ago. My apologies if my post was not entirely clear but I can assure you that I am not confused :). This post will hopefully clarify matters.
At the the moment I am in the process of setting up a forum on a test localhost Drupal 6.12 site and after some mixed results with phpBB3 (my forum of choice) the two available bridges, I decided to have a look at Drupal's built-in Forum module in conjunction with your Advanced Forum module. This combination will probably not win a feature, power, extensibility etc. contest versus phpBB3 but I have nonetheless been quite impressed with it :).
Along with some others recommended by you on the Advanced Forum Module page, I have installed the "Autho Pane" (author_pane-6.x-1.0.tar.gz) and "User Titles" (user_titles-6.x-1.0-beta2.tar.gz) modules with the intention of displaying user titles along with an associated image to reflect the user's rank based on the number of forum posts (e.g. 1 star for "Newbie", 2 for "Juniour", etc). I noticed however that while the user titles were being displayed in the Author Pane, the images were absent even though they were visible in the User titles module administration page at the back end.
I decided to have a look through the Author Pane module's files and figured that by editing either "author-pane.tpl.php" or "author-pane-block.tpl.php" might solve this issue - especially since the former file containes the following lines in the comments section at the beginning:
* - $user_title: Title from user titles module.
* - $user_title_image: Image version of title from user titles module.
However the image was still not displayed even after clearing caches etc.
The "author-pane-block.tpl.php" file contains a similar if (!empty($user_title)):
code block and I repeated the same procedure as above but the image still failed to appear in the Author Pane.
After this, I started tinkering around with the files by adding lines such as "print "hello"; in the
tags", changing the "$user_title" variable name etc. However, the Author Pane information remained unchanged. Even changing the "$user_title" variable to the "Newbie" literal string did not produce a change in the Author Pane. Eventually I decided to try the drastic measure of renaming the files, but nothing changed at the front end. I am not at all familiar with Drupal's internals but thought this was a bit (I guess I have some reading up to do :)). I hope this explains what I have been attempting to achieve.
Later on I did a bit of research and discovered a comment posted by you which stated that the User titles module's image feature had not been implemented in the Author Pane module but was now under consideration - great news:)!.
Incidentally, I tried a "dirty" work-around to display the author title images in the Author Pane which worked. In the "Title" field for a particular User Title on the User Titles Administration page, enter:
Ok, I read all that and it still sounds to me like you're not changing the AF version of the template file like I said in #4. Can you confirm that you:
1) Copied "advf-author-pane.tpl.php" from the style you are using to your theme.
2) Made changes to that file once it was in your theme
3) Cleared your cache
4) Saw no changes in the author pane in your forum posts
As for the user title image, I did add it for a while but it ended up being buggy because user titles fills the variable with empty HTML if there is no image so I had no way to make it display the title only when the image didn't exist. The variable is still created in the preprocess, however, so you can simply print it in the template.
Ok, I read all that and it still sounds to me like you're not changing the AF version of the template file like I said in #4 ...
Spot on! I do feel a bit daft :). All along I was mucking about with the files residing in the "..sites/all/modules" directory instead of the relevant one in the AF "styles" folder. I edited the version in "..sites/all/modules/advanced_forum/styles/blue_lagoon_stacked" (my current style) and presto, up pops the user title image :). I do apologize for unnecessarily diverting your attention. I guess if I was a juniour school student I would now be be saddled with extra homework and a 500 hand-written line penalty :).
LOL! No problem. Sometimes it's a forest/trees thing. :) Having multiple templates gives a lot of flexibility but can make it hard to tell where you need to make your changes.
Just make sure you copy it to your theme and make your changes there so they aren't overwritten if you update the module.
Comments
Comment #1
michelleDid you ever figure this out? I haven't had a chance to play around with it, yet, but I'm not expecting much. In all the time I was developing it, I never had a problem with it changes showing up after clearing the cache. And, honestly, it's the theme system that handles this part anyway so unlikely to be anything in AP. I'll leave it as a bug report until I have time to investigate but I suspect it's not a bug in AP.
Michelle
Comment #2
mafioso commentedHi Michelle,
i have the same problem... i did all what Setzler did, but still no clue.
I tried also to make some changes in other modules-tpl.php, and they were ok.
For now, i just linked the author-pane-block.tpl.php in my theme to modules directory.
Thanks...
Comment #3
chillz commentedWhat's even more bewildering is not only that changes were not being detected, but I changed the names of these two files - "author-pane-block.tpl.php" and "author-pane.tpl.php" - switched templates, cleared the Druapal cache (although that feature was disabled), cleared the browser cache, yet the author pane was still being displayed :).
P.S The module is being used with Advanced Forum.
Odd indeed.
Comment #4
michelleOk, now I'm confused, then. You said you were not seeing changes when using the block. Now you're saying the problem is in using it with AF? Which is it? If you're making changes to the template for the block and not seeing changes in the forum then that makes perfect sense as they are different templates. I'm thinking this is user confusion rather than a bug... What, exactly, is it you're trying to do?
Michelle
Comment #5
chillz commentedHi Michelle
Thanks for responding and HUGE thanks for your superb modules and other Drupal contributions :). I am just trying to re-familiarise myself with Drupal after a bit of a dabble over 2 years ago. My apologies if my post was not entirely clear but I can assure you that I am not confused :). This post will hopefully clarify matters.
At the the moment I am in the process of setting up a forum on a test localhost Drupal 6.12 site and after some mixed results with phpBB3 (my forum of choice) the two available bridges, I decided to have a look at Drupal's built-in Forum module in conjunction with your Advanced Forum module. This combination will probably not win a feature, power, extensibility etc. contest versus phpBB3 but I have nonetheless been quite impressed with it :).
Along with some others recommended by you on the Advanced Forum Module page, I have installed the "Autho Pane" (author_pane-6.x-1.0.tar.gz) and "User Titles" (user_titles-6.x-1.0-beta2.tar.gz) modules with the intention of displaying user titles along with an associated image to reflect the user's rank based on the number of forum posts (e.g. 1 star for "Newbie", 2 for "Juniour", etc). I noticed however that while the user titles were being displayed in the Author Pane, the images were absent even though they were visible in the User titles module administration page at the back end.
I decided to have a look through the Author Pane module's files and figured that by editing either "author-pane.tpl.php" or "author-pane-block.tpl.php" might solve this issue - especially since the former file containes the following lines in the comments section at the beginning:
In the "author-pane.tpl.php" file I found this:
and edited it as follows:
However the image was still not displayed even after clearing caches etc.
The "author-pane-block.tpl.php" file contains a similar
if (!empty($user_title)):code block and I repeated the same procedure as above but the image still failed to appear in the Author Pane.
After this, I started tinkering around with the files by adding lines such as "print "hello"; in the
tags", changing the "$user_title" variable name etc. However, the Author Pane information remained unchanged. Even changing the "$user_title" variable to the "Newbie" literal string did not produce a change in the Author Pane. Eventually I decided to try the drastic measure of renaming the files, but nothing changed at the front end. I am not at all familiar with Drupal's internals but thought this was a bit (I guess I have some reading up to do :)). I hope this explains what I have been attempting to achieve.
Later on I did a bit of research and discovered a comment posted by you which stated that the User titles module's image feature had not been implemented in the Author Pane module but was now under consideration - great news:)!.
Incidentally, I tried a "dirty" work-around to display the author title images in the Author Pane which worked. In the "Title" field for a particular User Title on the User Titles Administration page, enter:
User's Title<br /> <img src="/path_to_the/image.jpg"/>On my test site this is actually:
Newbie<br /> <img src="/drupal/sites/default/files/user-titles-images/newbie.png"/>This places the image under the user's title. Its not particulary elegant but it works :).
Cheers
Comment #6
michelleOk, I read all that and it still sounds to me like you're not changing the AF version of the template file like I said in #4. Can you confirm that you:
1) Copied "advf-author-pane.tpl.php" from the style you are using to your theme.
2) Made changes to that file once it was in your theme
3) Cleared your cache
4) Saw no changes in the author pane in your forum posts
As for the user title image, I did add it for a while but it ended up being buggy because user titles fills the variable with empty HTML if there is no image so I had no way to make it display the title only when the image didn't exist. The variable is still created in the preprocess, however, so you can simply print it in the template.
Michelle
Comment #7
chillz commentedSpot on! I do feel a bit daft :). All along I was mucking about with the files residing in the "..sites/all/modules" directory instead of the relevant one in the AF "styles" folder. I edited the version in "..sites/all/modules/advanced_forum/styles/blue_lagoon_stacked" (my current style) and presto, up pops the user title image :). I do apologize for unnecessarily diverting your attention. I guess if I was a juniour school student I would now be be saddled with extra homework and a 500 hand-written line penalty :).
Thanks once again for the brilliant work.
Comment #8
michelleLOL! No problem. Sometimes it's a forest/trees thing. :) Having multiple templates gives a lot of flexibility but can make it hard to tell where you need to make your changes.
Just make sure you copy it to your theme and make your changes there so they aren't overwritten if you update the module.
Glad you got it working,
Michelle