826

(15 replies, posted in PunBB show off)

Grant wrote:

I don't think you will be able to access it now.

Yes, you are absolutely right smile

827

(9 replies, posted in Discussions)

This article should help you

You should follow this instructions:

[ 1. UPLOAD ]mod_easy_bbcode.php to /

#
#---------

[ 2. OPEN ]-
#

post.php

#
#---------

[ 3. FIND (line: 490) ]
#

<?php endif; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />

#
#---------

After this mod "Easy BBCode" will be installed.

Srut wrote:

Hi Slavok,

Thanks for the reply, you mean you tried it with [youtbe]full url of youtube video[/youtube] on your own setup and it works?

Yes, it is. I am in Windows XP, I have tested it in IE 7, Firefox 4, Opera 9.

Srut wrote:

Could it be because of my parser.php file?

Have you got any others changes in parser.php?

830

(9 replies, posted in PunBB 1.3 troubleshooting)

To disable debug mode you should to comment this line of "<FORUM_ROOT>/include/essentials.php":

define('FORUM_DEBUG', 1);

Your code works properly for me. I have tried this BBCode-tag:

[youtube]http://www.youtube.com/watch?v=...[/youtube]

832

(15 replies, posted in Programming)

Try this peace of code:

echo '<td><a href="'.PUN_ROOT.'gallery/'.$file.'"><img width="50" height="50" src='.PUN_ROOT.'gallery/'.$file.'"></a></td>';

This checking is needed to avoid CSRF, we are not recommended to you to take it off.
But if you want to do this, just add this line to config.php to skip security checking:

define('FORUM_DISABLE_CSRF_CONFIRM', 1);

To limit the length of a message use this code:

define('MAX_MESSAGE_LENGTH', 100);
...
<p>'.substr($message, 0, MAX_MESSAGE_LENGTH).'</p>';

835

(5 replies, posted in PunBB 1.3 discussion)

Navigation links are generated in the function "generate_navlinks" (Line 413 of "<FORUM_ROOT>/include/functions.php"). Additional navlinks are added at lines 458-464. To determine whether a user is guest or not use this code:

  if ($forum_user['is_guest'])
  {
     //actions
  }

Will this information be enough for you?

836

(4 replies, posted in PunBB 1.3 discussion)

hcgtv wrote:

How's this going?

It was finished a few days ago (http://software.informer.com/forum/).

837

(2 replies, posted in PunBB 1.3 discussion)

There is a style generator for PunBB 1.3. Is this what you needed?

A security token is needed to avoid CSRF. You can turn it off, but it is not recommended, because it will decrease the security of your forum.

jasondore wrote:

We click CONFIRM and it pops up again.

You mean that after the confirmation of the token, the form appeared again and you couldn't finish your action?

grudon66 wrote:

But what will you guys, do after punbb 1.3.3 is finished?

We will focus on feature requests and development of extensions.
PunBB 2.0 is in our plan, but we can't say anything certain about when its development will start.

Replace 292 line of "<FORUM_ROOT>/viewtopic.php" with this:

'ORDER BY'    => 'p.id DESC',

841

(3 replies, posted in PunBB 1.3 troubleshooting)

Does your Firefox display images for other sites? You can also try using another browser.

If someone has changed your group, you can contact the administrator of the forum and describe the issue.

Have you installed any mods or changed anything in the forum since the last successful use of DB Management?

Add an extension request, please

845

(1 replies, posted in PunBB 1.3 extensions)

Users are identified by usernames at the forum, not by e-mail. This will require changing a lot of the forum's logic.

846

(8 replies, posted in PunBB 1.3 extensions)

Is this what you needed?

  • Go to 68 line of index.php. And replace array "$query" with this:

$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'
);
  • Go to 211 line of index.php and replace it with this:

$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']).'">'.format_time($cur_forum['last_post']).'</a></strong> <cite>'.sprintf($lang_index['Last poster'], forum_htmlencode($cur_forum['last_poster'])).'</cite><strong>'.forum_htmlencode($cur_forum['subject']).'</strong></li>';

The last thing you can change is the style of a displayed subject.

8k84 wrote:

bug: if selection includes a smiley, then whole message text is quoted rather than just the selection

When an image gets into selection, alt attribute of the image is added to the selected text. And when JS searches an entry of the selected text in a post, it will not find it, because within a post smiles are stored in BBCode. We will think about how to fix this.

rajuru wrote:

i get this js error when click Quick Quote link:

Error: pun_quote_authors is not defined
Source File: http://forum.projanmo.com/extensions/pu … scripts.js
Line: 128

Thanks for reporting, we will check it out.

849

(9 replies, posted in PunBB 1.3 troubleshooting)

Are you sure that your e-mail, which you use on the forum, has not been hacked?

850

(2 replies, posted in PunBB 1.3 bug reports)

This bug was fixed in [1001].