Topic: Remove page number from the tittle
Any way to remove the page number from the tittle?
You are not logged in. Please login or register.
PunBB Forums → Feature requests → Remove page number from the tittle
Any way to remove the page number from the tittle?
join to njn :laiqdiz..
any update for this issue?
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']).')')
Does not work. it shows an error.
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'] : '');
}
Thank you it works. It was my fault because I was doing the code replace wrong.
Thanks
PunBB Forums → Feature requests → Remove page number from the tittle
Powered by PunBB, supported by Informer Technologies, Inc.