View Single Post
  #4  
Old 09-23-2008, 02:42 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Keyword Highlighting

to use this filter inside the dialogs you have to remove
PHP Code:
$smarty->register_outputfilter("hyperlink_all_coffee"); 
from smarty.php

and insert somewhere in your dialog.tpl
HTML Code:
{if $usertype eq 'C'} {php} $smarty->register_outputfilter("hyperlink_all_coffee"); {/php} {/if}


and
HTML Code:
{if $usertype eq 'C'} {php} $smarty->unregister_outputfilter("hyperlink_all_coffee"); {/php} {/if}

somewhere in the end of your dialog.tpl

Excluding all specific matches is also possible.
You have to use regular expressions instead of str_replace function in such case. But it's more complex task. I've just figured out the common way to get over it.
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote