2010-10-27, 12:21 PM
In my plugin im using the "str_replace" as shown below:
Its replacing the string as i want. My only problem is i cant attach the css class to it for some reason, ive added the a link to the css class in "headerinclude" , ive added it to global css , but it just refuses to display the class.
Maybe someone might have a heads up on this
EDIT:
I sorted it , its actually to embarrassing to tell you what i was doing wrong lol
$templates->cache['forumdisplay_thread'] = str_replace('<td class="{$bgcolor}{$thread_type_class}">', '<td class="\"new_thread\"{$thread_type_class}">',$templates->cache['forumdisplay_thread']);
Its replacing the string as i want. My only problem is i cant attach the css class to it for some reason, ive added the a link to the css class in "headerinclude" , ive added it to global css , but it just refuses to display the class.
Maybe someone might have a heads up on this
EDIT:
I sorted it , its actually to embarrassing to tell you what i was doing wrong lol