Sub Menu
Links Menu
Online Users

In total there are 316 users online :: 2 registered, 0 hidden and 314 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

Capitalization mod

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Capitalization mod

PostAuthor: jomasaco » Thu Nov 22, 2007 6:55 am

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
Last edited by jomasaco on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

jomasaco
Members
Members
 
Posts: 31
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 20, 2007 1:16 am
Cash on hand: 0.00

Return to Mods/Hacks

Who is online

Registered users: Bing [Bot], Google [Bot]

cron