1

Topic: Remove page number from the tittle

Any way to remove the page number from the tittle?

Re: Remove page number from the tittle

join to njn :laiqdiz..
https://s3.amazonaws.com/TrollEmoticons/trolldance.gif

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

3

Re: Remove page number from the tittle

any update for this issue?

4 (edited by leoya 2012-08-31 16:48)

Re: Remove page number from the tittle

Find and open the file include/functions.php

Look for function generate_crumbs(). Find the code:

' ('.$lang_common['Page'].' '.forum_number_format($forum_page['page']).')'

And replace with this one:

($forum_page['page'] == 1) ? ''  : ' ('.$lang_common['Page'].' '.forum_number_format($forum_page['page']).')')
http://replace.org.ua/ - Ukrainian Programming Forum.

5

Re: Remove page number from the tittle

Does not work. it shows an error.

6 (edited by leoya 2012-09-12 14:58)

Re: Remove page number from the tittle

What error? Can you show code starting with $crumbs .=

This is my code, but with some modifications:

        for ($i = $num_crumbs - 1; $i >= 0; --$i) {
            $crumbs .= (is_array($forum_page['crumbs'][$i]) ? 
                forum_htmlencode($forum_page['crumbs'][$i][0]) : 
                forum_htmlencode($forum_page['crumbs'][$i])).((isset($forum_page['page']) && $i == ($num_crumbs - 1)) ?
                     ($forum_page['page'] == 1) ? ''  : ' ('.$lang_common['Page'].' '.forum_number_format($forum_page['page']).')' : 
                     '').($i >= 1 ? $lang_common['Title separator'] : '');
        }
http://replace.org.ua/ - Ukrainian Programming Forum.

7

Re: Remove page number from the tittle

Thank you it works. It was my fault because I was doing the code replace wrong.

Thanks smile