I have an installation of advanced forum that is working fine will the Boxy theme. All icons display properly except it still says "Add New Comment" on the first post. My main default site theme is Acquia Marina and I am on Drupal 6.13. When I switch to Garland, the reply link shows up how it should for the first post.

I see two possible explanations under troubleshooting, but I don't know which to implement or how.

For Drupal 5:
"Problem: The reply link is not showing up at the bottom of the top post.
Solution: You need to copy the phptemplate_comment_wrapper() code."

For Drupal 6:
"Problem: CSS/template overrides are not working in non default themes.
Solution: There is an issue with the global $theme variable not being set affecting only some sites that has never been solved. To work around this, I fall back to the default theme when the variable isn't set. For sites with this problem, you need to put your AF theme overrides in your default theme."

So if I want to try the Drupal 6 solution (if that's correct), how do I put my AF theme overrides in my Acquia Marina?

Great module by the way.

Thanks.

Comments

Michelle’s picture

Category: bug » support
Status: Active » Fixed

This is a known problem with AM. There isn't anything AF can do about it; their theme settings clobber AF's changes. There's already an issue in the queue but I believe it's been won't fix'd because their new Fusion based themes won't have this problem.

As a temporary solution, you can go into AM's theme settings and change it to "reply" there.

Michelle

uomeds’s picture

Thanks Michelle.

I searched the Acquia files and found "Add new comment" in template.php and template-settings.php, but changing all to "reply" and clearing the cache strangely had no result. Anyway, I'd prefer not to have to change things globally if I don't have to (ie. I don't want forum reply icons showing up on news stories).

What I was thinking was would it be possible to add a bit of 'find-replace' php at the end of the advanced forum code that basically says:

If there is a link printed on this page with address "comment/reply/(*)#comment-form" and name "Add new comment", replace the printed link with "reply.png" and keep the address unchanged.

I don't really know php so I don't know if this is possible, but if it is and it were only included in the php Advanced Forum loads, I should think it could get the job done while not affecting the rest of the site.

I'd be a very willing guinea pig if there is any code, however rough, that might do this. Can it be done? Any help is appreciated.

uomeds’s picture

Status: Fixed » Needs review

Just googling around, I find lots on filtering one word to another, but not one word to an image.

Might something like:

$string = str_replace('Add new comment','reply.png',$string);

work? I'd ideally only like to replace "Add new comment" if it's a link to comment/reply/(*)#comment-form, but this would still get the job done if it would work.

If so, in which php file and where might I insert it?

Thanks.

Michelle’s picture

Status: Needs review » Fixed

No, I'm not going to add hacky work arounds for Acquia Marina to AF. Just change it in the theme settings in AM. It's not hard... It's right in the UI. I don't have AM installed anymore to give step by step instructions but it was right there in the theme settings. If you need more help, you can move this issue to their queue and they can tell you exactly where to click.

Michelle

uomeds’s picture

Great. I found a fix from that.

For anyone else on Acquia, under theme configuration, go to Node Settings, then Links, then Comment. Check the "Use custom settings for each content type instead of the default above" box.

Then below that click Forum Topic, and for Full Content enter the Link Text <img src="http://siteaddress.com/sites/all/modules/advanced_forum/styles/naked/images/reply.png">. It should say "HTML is allowed" under the field for this.

Presto. Your forum will display the reply icon you specify instead of "Add new comment".

Michelle’s picture

Great, glad you figured it out.

Michelle

Status: Fixed » Closed (fixed)

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

silverwing’s picture

Closing comments due to spammers