| Re: How to Change the Title Case (spotlight) |
| by mrgym on 2004/7/16 17:38:17 Or, you could alter the smarty template, using the capitalize function http://smarty.php.net/manual/en/language.modifiers.php#language.modifier.capitalize |
| Re: How to Change the Title Case (spotlight) |
| by Stewdio on 2004/7/16 15:37:44 Another possibility (for future reference for other users, is to: Edit spotlight/includes/functions.php around line 418: Change: le="color: #000000"><?php if (isset($xoopsModuleConfig['stopshouting'])) { return $string; } to: le="color: #000000"><?php if ($xoopsModuleConfig['stopshouting'] == 0) { return $string; } This may or may not work depending on your version, but it worked for me when I had a problem where I could not use all upper case for things like acronyms and such. |
| Re: How to Change the Title Case (spotlight) |
| by johny on 2004/7/16 15:28:11 A big Thank U to both of you! I had to move my site to a new server and had so many problems with that that I forgot all about this setting. The solution that worked was macnoludo's one - I had to edit (delete) the two lines in modules/spotlight/include/function.php and my problem was solved. For additional reference: XOOPS itself also has the same function; class/smarty/plugins/modifier.upper.php (but spotlight module does not use that one). |
| Re: How to Change the Title Case (spotlight) |
| by macnoludo on 2004/6/23 14:59:46 Hello, i'm not sure this is the best way todo that but... You could remove in functions.php the line 442and 443 corresponding to : le="color: #000000"><?php if (!in_array($word, $higher_exceptions)) $word = strtolower($word); if (!in_array($word, $lower_exceptions))$word[0] = strtoupper($word[0]); Ciao
|
| Re: How to Change the Title Case |
| by Dave_L on 2004/5/29 21:45:03 If there are no configuration options that control that, then you would have to locate the places in the code (or template) where the capitalization or uppercasing is done, and remove it. The capitalization is probably done by the PHP function ucfirst or the Smarty modifier capitalize. Conversion to all uppercase is probably done by the PHP function strtoupper or the Smarty modifier upper. |