Even after adding the line of code in comment.tpl and styles.css, the background color of the best replied comment doesn't retain after refreshing the page.

and is there any other way through which that piece of code can be put in the bestreply.module file itself..?

pls help..

Comments

WorldFallz’s picture

Project: Drupal core » Best reply
Version: 6.x-dev » 6.x-6.4
Component: node system » Miscellaneous

moved to appropriate issue queue.

I'm cautioning you again-- please stop blasting your support requests all over creation. This clearly is NOT a critical drupal core issue. Take the time to figure out WHERE to post before posting or you will get blocked.

taslett’s picture

Assigned: Unassigned » taslett
Category: bug » support
Priority: Critical » Minor

So the style is applied when you first click the bestreply link, then disappears when you reload.
That sounds like you are adding the changes to the wrong comment.tpl.php
Check to see if the bestreply id exists on the page.

I don't no of any way to add that code to the modules instead of the template, if you find a way let me know.

avpaderno’s picture

Title: Best reply - not working properly » Style changes are not persistent
keep smiling’s picture

ok i've found out a way to do tat.. i've done it by altering the theme registry. And i put the comment.tpl inside the bestreply folder itself with the required code :
if ($comment->bestreply) print 'id="bestreply"';
added along with a new bestreply.css containing the styling code..

taslett’s picture

Status: Active » Closed (fixed)

Hi subhasini,
That's fine as long as you have no other modules or themes that require changes to comment.tpl.php

keep smiling’s picture

ya.. thats there.. i just hope i dont get to do the same elsewhere..