1

(11 replies, posted in PunBB 1.3 troubleshooting)

Oh,

Lol, you're using a Localhost and installed PunBB on that? Good luck.

2

(1 replies, posted in PunBB 1.3 troubleshooting)

Dear Community,

I have a few things that I'd like to change.. I haven't successfully applied this, so here I am sincerely asking for some decent help!

I'd like to have several things changed, I've made an image to show you guys what Im trying to change, please advise and suggest if possible!

View image: http://www.burstingforce.com/Image.bmp

If you need additional information please don't hesitate to ask and I will grab some more for you!

A big thanks!

Socuine

3

(11 replies, posted in PunBB 1.3 troubleshooting)

Just make another account on another computer, then access your phpmyadmin and make that user (which you created) administrator. Then re-log, and unban yourself.

Easy, right?

Dear community,

I've successfully modified my index.php and include/functions.php in order to create a subject in the last post row. Works like a charm! However .. One small details remains. In the Topics row my username appears at the bottom of that row..

Please view the issue here: http://project.burstingforce.com

Index.php Line 68 (*modified*):

$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster, t.subject',
    'FROM'        => 'categories AS c',
    'JOINS'        => array(
        array(
            'INNER JOIN'    => 'forums AS f',
            'ON'            => 'c.id=f.cat_id'
        ),
        array(
            'LEFT JOIN'     => 'topics AS t',
            'ON'            => 't.last_post_id=f.last_post_id'
        ),
        array(
            'LEFT JOIN'     => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => 'fp.read_forum IS NULL OR fp.read_forum=1',
    'ORDER BY'    => 'c.disp_position, c.id, f.disp_position'
);

Index.php Line 208 (*Modified*):

$forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['Last post'].'</span><strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.limit_characters(forum_htmlencode($cur_forum['subject'])).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite><strong>'.format_time($cur_forum['last_post']).'</strong></li></strong><cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite></li>';

Could somebody help me out? Thanks! :]

Sincerely,

Socuine

EDIT: Nevermind, I got it to work. Please delete this thread in order to prevent confusion.

Grez wrote:

Hi. I highlighted string which is causing the problem smile (just delete it and it should work fine  wink )

Socuine wrote:

$forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['Last post'].'</span><strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.limit_characters(forum_htmlencode($cur_forum['subject'])).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite><strong>'.format_time($cur_forum['last_post']).'</strong></li>';</strong><cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite></li>';

You sir are amazing. Thanks for the fast resolve. I am in your debt.

Sincerely,

Socuine

Dear community,

I've attempted to modify the index.php file in order to mod the last post row. I've followed a certain topic which showed me what I should change in order to get the desired effect.

I get the following error:

Parse error: syntax error, unexpected '<' in /mnt/web2/21/17/51673017/htdocs/community/index.php on line 208

Index.php (line 208) view code below(line marked with bold is line 208):

if ($cur_forum['last_post'] != '')
$forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><span class="label">'.$lang_index['Last post'].'</span><strong><a href="'.forum_link($forum_url['post'], $cur_forum['last_post_id']).'">'.limit_characters(forum_htmlencode($cur_forum['subject'])).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite><strong>'.format_time($cur_forum['last_post']).'</strong></li>';</strong><cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite></li>';       

else

$forum_page['item_body']['info']['lastpost'] = '<li class="info-lastpost"><strong>'.$lang_common['Never'].'</strong></li>';

($hook = get_hook('in_normal_row_pre_display')) ? eval($hook) : null;
   
}

Great modification! Just tried it out and works like a charm! Muchly appreciated. :]