Page 1 of 1

Capitalization mod

PostPosted: Thu Nov 22, 2007 6:55 am
Author: jomasaco
I try to install this mod on my board, but im stuked on viewforum.
This mod is to capitalize the first charecter on each word on topic titles.

Can you tell me here are that peace of code.

MOD
viewforum.php

#
#-----[ FIND ]----------------------------------------
#

$topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_rowset[$i]['topic_title']) : $topic_rowset[$i]['topic_title'];

#
#-----[ AFTER ADD ]-----------------------------------
#


// Start capitalization MOD

switch($board_config['capitalization'])
{
case 1: $topic_title = strtoupper($topic_title);
break;
case 2: $topic_title = strtolower($topic_title);
break;
case 3: $topic_title = ucfirst($topic_title);
break;
case 4: $topic_title = ucwords($topic_title);
break;
default: break;
}

// End capitalization MOD

[hr:2lbqleu5]
=IM141
// Note : all the code that was standing there stands now in functions_topics_list.php, topic_list() func
//
//---------------------------------------
if( $total_topics )
{
for($i = 0; $i < $total_topics; $i++)
{
$topic_id = $topic_rowset[$i]['topic_id'];

$topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replaceme....



What is the file with that code now?
Or how i fix that.
thanks.

* edit to fix quote