Quote:
Originally Posted by dave_finlayson
Great mod but it doesn't seem to work for search results. Can it be amended to do so?
|
well i didn't know it didn't worked in search results until i saw your post and i didn't liked it either so here we go to make it work within the search results
1)open hooks_vbprojecttools.xml (/includes/xml folder from the pt distrubution) and find
Code:
<hook>projectsearch_results_groupbit</hook>
replace that with
Code:
<hook>projectsearch_results_bit</hook>
<hook>projectsearch_results_groupbit</hook>
upload the modified hooks_vbprojecttools.xml to /includes/xml
2)create a new plugin with this information
- product: Project Tools Status Colors
- hook
rojectsearch_results_bit
- phpcode
$get_background = $vbulletin->db->query_first("SELECT background FROM " . TABLE_PREFIX . "pt_issuestatus WHERE issuestatusid='{$issue['issuestatusid']}'");
$issue['background'] = $get_background['background'];
- active:yes
3)edit template pt_searchresultbit and add the background color in all "<td>" tags like this
HTML Code:
<td class="alt2" align="center" style="background-color:$issue[background]">
all done