这个争论是由ethan42411老兄的signature, Taiwan is a country.引发的。 五毛看到这个不顺眼。 台湾本来就是一个国家,她的名字叫中华民国,她是联合国创始国。与美国地位相同。这是联合国宪章里写了的。说台湾是个国家多此一举。

中华民国代表中国,在某些方面是理所当然的,例如,punbb的中文版,就是由中华民国的人首先发表。 山塞中文(简体版)1.4至今还没出来。

我建议ethan42411去掉Taiwan is a country的签名,以免五毛看不顺眼。大家都知道台湾是个国家,不要多此一举。

那个山塞共和国的人呢? 先把山塞中文版punbb先搞出来,再来谈中华民国的问题。

Yes! It works! Thank you!

Environment

    Operating system: FreeBSD
    PHP: 5.2.17 - Show info
    Accelerator: N/A

Database

    PostgreSQL 9.1.0

PunBB version

    PunBB 1.4



pun_tags

Version 1.7.4

Uninstall then re-install won't help.

An error was encountered

The error occurred on line 139 in /usr/local/www/frank/extensions/pun_tags/functions.php

Database reported: ERROR: column "cnt" does not exist LINE 1: ..._tags AS tt ON t.id = tt.tag_id GROUP BY t.id HAVING cnt = 0 ^ .

Failed query: SELECT t.*, COUNT(tt.tag_id) AS cnt FROM p1_tags AS t LEFT JOIN p1_topic_tags AS tt ON t.id = tt.tag_id GROUP BY t.id HAVING cnt = 0

No.  1.4 not work for Chinese in search.
This is the error:

You have to enter at least one keyword and/or an author to search for.
Time (s)     Query
0.00050     SET NAMES 'utf8'
0.00651     SELECT u.*, g.*, o.logged, o.idle, o.csrf_token, o.prev_url FROM p1_users AS u INNER JOIN p1_groups AS g ON g.g_id=u.group_id LEFT JOIN p1_online AS o ON o.user_id=u.id WHERE u.id=2
0.00105     UPDATE p1_online SET logged=1321452307, prev_url='http://frank.schmates.us:8180/search.php?action=search&keywords=%E4%B8%AD%E6%96%87&search=Search' WHERE user_id=2
0.00076     SELECT o.* FROM p1_online AS o WHERE o.logged < 1321452007
0.00155     SELECT COUNT(r.id) FROM p1_reports AS r WHERE r.zapped IS NULL
0.01037     Total query time

7

(0 replies, posted in PunBB 1.4 additions)

Hi, guys!

In order to make our own extensions, we have to make a hello world extension to get started.

This is my hello world extension. It inserts a new column in table topics. You can confirm it by looking at it in the database after installing it.
Then you can uninstall, the column will disappear.

It has only two files: index.html and manifest.xml

please name the folder as pun_helloworld and put in extensions directory

<html>
<head>
<title>.</title>
</head>
<body>
.
</body>
</html>

manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE extension SYSTEM "ext-1.0.dtd">

<!--
/**
** author: pccom.frank@hotmail.com
 */
-->

<extension engine="1.0">
        <id>pun_helloworld</id>
        <title>frank helloworld extension </title>
        <version>1.0.0</version>
        <description>Insert a column into database</description>
        <author>frank.pccom@hotmail.com</author>
        <minversion>1.3</minversion>
        <maxtestedon>1.4RC2</maxtestedon>

        <install><![CDATA[
if (!$forum_db->field_exists('topics', 'helloworld'))
        $forum_db->add_field('topics', 'helloworld', 'varchar(255)', false, '');

        ]]></install>

        <uninstall><![CDATA[
$forum_db->drop_field('topics', 'helloworld');
        ]]></uninstall>


</extension>

Some one please make a better hello world to display something.

Sorry, but your email identified as spam. You cant register on this forum.

But I registered as fake@fake.com

Can this stop spam?  How about the spam use a random email address?

As long as this can stop spam, that will be fine.

When I register as a new member, it did not ask me any question.
This is the web test web site.
http://frank.schmates.us

10

(2 replies, posted in Discussions)

jennypretty wrote:

Hello,

I tried to set Vietnamese as default language on the forum, but it failed.

Here is the error:

Warning: require(./lang/Vietnamese/url_replace.php) [function.require]: failed to open stream: No such file or directory in /home/domainaccount/public_html/forum/include/functions.php on line 763

Warning: require(./lang/Vietnamese/url_replace.php) [function.require]: failed to open stream: No such file or directory in /home/domainaccount/public_html/forum/include/functions.php on line 763

Fatal error: require() [function.require]: Failed opening required './lang/Vietnamese/url_replace.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domainaccount/public_html/forum/include/functions.php on line 763


www.saigon123.com/forum/

please advice.

When I set English, then it worked.

thanks.

Check this file's security setting.
Who is the owner?
Who can read it?
Who is running the web sever?

You have to let the web server to access this file.

/home/domainaccount/public_html/forum/include/functions.php

Hi,

I installed punbb 1.4RC2. Everything seems OK except I cannot get flv bbcode extension to work.
The extension id is flv_bbcode_punbb. The version is 1.0.0.
The error # is 2032.
The maximum tested on is 1.3.2.

This extension works in FluxBB.
http://fluxbb.org/forums/viewtopic.php?id=5251

12

(28 replies, posted in Supported extensions)

I can play a local flash file.

This is the link http://bd78.hnu.schmates.us/swfobject/daolaji.html

This is the page html code.

<!DOCTYPE html>
<head>
<script type="text/javascript" src="/flowplayer-3.2.6.min.js"></script>
</head>
<body>
<a href="http://bd78.hnu.schmates.us/extensions/pun_attachment/daolaji.flv" 
    style="display:block;width:425px;height:300px;" 
    id="player">
</a>
<script language="JavaScript">
    flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf");
</script>    
</body>
</html>

The flv file can be uploaded by pun_attachment.
Could you please help me to modify the fancy_video_tag to embed the local flash player into the forum post?

this is the code I changed. It won't work.

   'dailymotion' => array(
                                                'match'                 => '`extensions/pun_attachment/([a-z0-9]+).flv`i',
                                                'uri'                   => 'http://bd78.hnu.schmates.us/%s',
                                                'html5_uri'             => '<iframe frameborder="0" width="640" height="385" src="http://bd78.hnu.schmates.us
/%s"></iframe>',
                                                'width'                 => 640,
                                                'height'                => 385
                                        ),

Have you got your "helloworld" running?

What is the software  you are using to upload image to extension?
I am using Chevereto to upload image to my site. It is easy to use.

15

(2 replies, posted in PunBB 1.3 additions)

I tried with 1.3. It is not working. 
Are you still working on it?

16

(8 replies, posted in Development)

dimkalinux wrote:

All Fancy extensions include video tag - https://github.com/dimkalinux/Fancy-Ext … all/master


Thank you! I figured out that the fancy_extension is the same as other extensions.

17

(28 replies, posted in Supported extensions)

How to add a local video file such as swf file or flv file?

18

(8 replies, posted in Development)

I have installed 1.4RC2. Looks no problem for now.
I have installed the extensions.

How to install fancy_video_tag, please help!

19

(7 replies, posted in PunBB 1.3 additions)

##
##
##        Mod title:  Topic Image
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.x
##     Release date:  2008-10-24
##           Author:  downliner ( willvilliers.com/forum.php )
##
##      Description:  Display an image on viewforum.php with each topic.
##                Similiar to Topic Icons only this allows any image URL to be entered and displayed.
##
##   Affected files:  post.php
##                lang/English/common.php

##                edit.php
##                viewforum.php
##
##       Affects DB:  Yes. Adds one column to 'topics'.
##
##            Notes:  PLEASE BACKUP THE ABOVE 4 LISTED FILES BEFORE INSTALLING THIS MOD!
##                IF YOU'RE UNCOMFORTABLE INSTALLING MODS/EDITING CODE DROP ME AN EMAIL :)
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##


#
#---------[x. UPLOAD ]----------------------------------------------
#

install_mod.php


#
#---------[x. RUN ]----------------------------------------------
#

install_mod.php


#
#---------[x. DELETE ]----------------------------------------------
#

install_mod.php


#
#---------[ 1. OPEN ]----------------------------------------------------------
#

post.php

#
#---------[ 2. FIND (line:41) ]----------------------------------------------------------
#

if ($tid)
    $result = $db->query('SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.subject, t.closed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$tid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
else

#
#---------[ 3. REPLACE WITH ]----------------------------------------------------------
#

if ($tid)
    $result = $db->query('SELECT f.id, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.subject, t.topicimage, t.closed FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id='.$tid) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
else

#
#---------[ 4. FIND (line:93) ]----------------------------------------------------------
#

        else if ($pun_config['p_subject_all_caps'] == '0' && strtoupper($subject) == $subject && $pun_user['g_id'] > PUN_MOD)
            $subject = ucwords(strtolower($subject));

#
#---------[ 5. ADD AFTER !!! ]----------------------------------------------------------
#

            $topicimage = $_POST['topicimage'];

#
#---------[ 6. FIND (line:287) ]----------------------------------------------------------
#

            // Create the topic
            $db->query('INSERT INTO '.$db->prefix.'topics (poster, subject, posted, last_post, last_poster, forum_id) VALUES(\''.$db->escape($username).'\', \''.$db->escape($subject).'\', '.$now.', '.$now.', \''.$db->escape($username).'\', '.$fid.')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());

#
#---------[ 7. REPLACE WITH ]----------------------------------------------------------
#

            // Create the topic
            $db->query('INSERT INTO '.$db->prefix.'topics (poster, subject, posted, last_post, last_poster, forum_id, topicimage) VALUES(\''.$db->escape($username).'\', \''.$db->escape($subject).'\', '.$now.', '.$now.', \''.$db->escape($username).'\', '.$fid.', \''.$db->escape($topicimage).'\')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());

#
#---------[ 8. FIND (line:491) ]----------------------------------------------------------
#

if ($fid): ?>
                        <label><strong><?php echo $lang_common['Subject'] ?></strong><br /><input class="longinput" type="text" name="req_subject" value="<?php if (isset($_POST['req_subject'])) echo pun_htmlspecialchars($subject); ?>" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" /><br /></label>
<?php endif; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />


#
#---------[ 9. REPLACE WITH !!! ]----------------------------------------------------------
#

if ($fid): ?>
                        <label><strong><?php echo $lang_common['Subject'] ?></strong><br /><input class="longinput" type="text" name="req_subject" value="<?php if (isset($_POST['req_subject'])) echo pun_htmlspecialchars($subject); ?>" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" /><br /></label>
<?php endif; ?>

<?php 
if ($fid AND $pun_user['g_id'] == 1): ?>
                        <label><strong><?php echo $lang_common['TopicImage'] ?></strong><br /><input class="longinput" type="text" name="topicimage" value="<?php if (isset($_POST['topicimage'])) echo pun_htmlspecialchars($topicimage); ?>" size="80" /><br /></label>
<?php endif; ?>                        <label><strong><?php echo $lang_common['Message'] ?></strong><br />


#
#---------[ 10. OPEN ]----------------------------------------------------------
#

lang/English/common.php

#
#---------[ 11. FIND (line: 78) ]----------------------------------------------------------
#

'Subject'                =>    'Subject',

#
#---------[ 12. ADD AFTER !!! ]----------------------------------------------------------
#

'TopicImage'                =>    'Topic Image URL',

#
#---------[ 13. OPEN ]----------------------------------------------------------
#

edit.php

#
#---------[ 14. FIND (line:39) ]----------------------------------------------------------
#

// Fetch some info about the post, the topic and the forum
$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.posted, t.closed, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

#
#---------[ 15. REPLACE WITH ]----------------------------------------------------------
#

// Fetch some info about the post, the topic and the forum
$result = $db->query('SELECT f.id AS fid, f.forum_name, f.moderators, f.redirect_url, fp.post_replies, fp.post_topics, t.id AS tid, t.subject, t.topicimage, t.posted, t.closed, p.poster, p.poster_id, p.message, p.hide_smilies FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'topics AS t ON t.id=p.topic_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND p.id='.$id) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

#
#---------[ 16. FIND (line:84) ]----------------------------------------------------------
#
:
        else if ($pun_config['p_subject_all_caps'] == '0' && strtoupper($subject) == $subject && $pun_user['g_id'] > PUN_MOD)
            $subject = ucwords(strtolower($subject));

#
#---------[ 17. ADD AFTER !!! ]----------------------------------------------------------
#

            $topicimage = $_POST['topicimage'];

#
#---------[ 18. FIND (line:117) ]----------------------------------------------------------
#

            // Update the topic and any redirect topics
            $db->query('UPDATE '.$db->prefix.'topics SET subject=\''.$db->escape($subject).'\' WHERE id='.$cur_post['tid'].' OR moved_to='.$cur_post['tid']) or error('Unable to update topic', __FILE__, __LINE__, $db->error());

#
#---------[ 19. ADD AFTER !!! ]----------------------------------------------------------
#

            // Update the topic image?
            $db->query('UPDATE '.$db->prefix.'topics SET topicimage=\''.$db->escape($topicimage).'\' WHERE id='.$cur_post['tid']) or error('Unable to update topic image', __FILE__, __LINE__, $db->error());

#
#---------[ 20. FIND (line:209) ]----------------------------------------------------------
#

<?php if ($can_edit_subject): ?>                        <label><?php echo $lang_common['Subject'] ?><br />
                        <input class="longinput" type="text" name="req_subject" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" value="<?php echo pun_htmlspecialchars(isset($_POST['req_subject']) ? $_POST['req_subject'] : $cur_post['subject']) ?>" /><br /></label>
<?php endif; ?>                        <label><?php echo $lang_common['Message'] ?><br />

#
#---------[ 21. REPLACE WITH ]----------------------------------------------------------
#

<?php if ($can_edit_subject): ?>                        <label><?php echo $lang_common['Subject'] ?><br />
                        <input class="longinput" type="text" name="req_subject" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" value="<?php echo pun_htmlspecialchars(isset($_POST['req_subject']) ? $_POST['req_subject'] : $cur_post['subject']) ?>" /><br /></label>
<?php endif; ?>
////////////
<?php 

if ($pun_user['g_id'] == 1): ?>
                        <label><strong><?php echo $lang_common['TopicImage'] ?></strong><br />
                        <input class="longinput" type="text" name="topicimage" size="80" maxlength="70" tabindex="<?php echo $cur_index++ ?>" value="<?php echo pun_htmlspecialchars(isset($_POST['topicimage']) ? $_POST['topicimage'] : $cur_post['topicimage']) ?>" /><br /></label>
<?php endif; ?>            
////////////////////////////
////////////


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


#
#---------[ 22. OPEN ]----------------------------------------------------------
#

viewforum.php


#
#---------[ 23. FIND (line:112) ]----------------------------------------------------------
#

    // Without "the dot"
    $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];


#
#---------[ 24. REPLACE WITH ]----------------------------------------------------------
#

    // Without "the dot"
    $sql = 'SELECT id, poster, subject, posted, last_post, last_post_id, last_poster, num_views, num_replies, closed, sticky, moved_to, topicimage FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];

#
#---------[ 25. FIND (line:122) ]----------------------------------------------------------
#

        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 26. REPLACE WITH ]----------------------------------------------------------
#

        case 'mysqli':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.topicimage FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 27. FIND (line:126) ]----------------------------------------------------------
#

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

#
#---------[ 28. REPLACE WITH ]----------------------------------------------------------
#

        case 'sqlite':
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.topicimage FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.id IN(SELECT id FROM '.$db->prefix.'topics WHERE forum_id='.$id.' ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'].') GROUP BY t.id ORDER BY t.sticky DESC, t.last_post DESC';
            break;

#
#---------[ 29. FIND (line:130) ]----------------------------------------------------------
#

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 30. REPLACE WITH ]----------------------------------------------------------
#

        default:
            $sql = 'SELECT p.poster_id AS has_posted, t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.topicimage FROM '.$db->prefix.'topics AS t LEFT JOIN '.$db->prefix.'posts AS p ON t.id=p.topic_id AND p.poster_id='.$pun_user['id'].' WHERE t.forum_id='.$id.' GROUP BY t.id, t.subject, t.poster, t.posted, t.last_post, t.last_post_id, t.last_poster, t.num_views, t.num_replies, t.closed, t.sticky, t.moved_to, t.topicimage, p.poster_id ORDER BY sticky DESC, '.(($cur_forum['sort_by'] == '1') ? 'posted' : 'last_post').' DESC LIMIT '.$start_from.', '.$pun_user['disp_topics'];
            break;

#
#---------[ 31. FIND (line:206) ]----------------------------------------------------------
#

?>
                <tr<?php if ($item_status != '') echo ' class="'.trim($item_status).'"'; ?>>

#
#---------[ 32. ADD BEFORE !!! ]----------------------------------------------------------
#

        if ($topicimage != '')
            $topicimage = '<a href="viewtopic.php?id='.$cur_topic['id'].'" title="'.pun_htmlspecialchars($cur_topic['subject']).'"><img src="'.pun_htmlspecialchars($cur_topic['topicimage']).'" alt="'.pun_htmlspecialchars($cur_topic['subject']).'" class="topicimage" /></a>';
        else
        {
            $topicimage = '&nbsp;';
        }




#
#---------[ 33. FIND (line:213) ]----------------------------------------------------------
#

                                <?php echo $subject."\n" ?>


#
#---------[ 34. ADD BEFORE !!! ]----------------------------------------------------------
#

                                <?php echo $topicimage ?>

#
#---------[ 35. OPEN ]----------------------------------------------------------
#

style/YOUR_STYLE.css


#
#---------[ 36. ADD TO THE VERY BOTTOM OF FILE ]-------------------------------------------------
#

.topicimage {    float: right;
            width:75px;
            height: 50px;
            padding: 1px;
            border: 1px solid! important;
            margin-left: 10px ! important;}


#--------------[ NOTE ]-------------------------------------------------------------------------------------#
#                                                                        #
# You must repeat steps 33 and 34 for each stylesheet your site offers (i.e Oxygen, Sulfur, etc)        #
#                                                                        #
# During step 34 please ensure that the preceeding style declaration contains its closing curly bracket.    #
# If using a default style (i.e Oxygen) then you should be adding the code in step 34 /directly below :    #
#                                                                         #
#                    TD DIV.tclcon {MARGIN-LEFT: 2.3em}                                    #
#                                                                        #
#-----------------------------------------------------------------------------------------------------------#


#
#---------[ 37. SAVE & UPLOAD ]-------------------------------------------------
#

I made some thing show up in front of the topic title in punbb-1.2.23.I will try it on punbb-1.4RC2.

20

(1 replies, posted in Discussions)

I am looking for this too.

I was trying to put an img tag in the topic title,

 [img].... image address[/img]

It did not work.

Hi, guys!

I have made a backup database from my master database. I want to run a read-only forum on the read-only slave database. When I was trying to run PunBB, it shows this error:

The error occurred on line 1399 in /usr/local/www/bd78.hnu.schmate.us/include/functions.php
Database reported: ERROR: cannot execute INSERT in a read-only transaction .

Is there any way to run PunBB on a read-only database?

I have changed the domain name in the cache directory. Why PunBB cannot run the web site based on the cache file when it found out the database now is read-only mode?

1, There are some problems to install as Simplified Chinese as default language. I first installed as English as default language, the login as admin and change to English. Then delete English in lang directory. Now it works.
2, There are some problems to edit the title of the topic in a forum. The search_words column word is too short for Chinese. It is varchar(20). 10 Chinese characters will fill it up and make an error.
I do not know how to change it. I go into the database and made a
Alter table search_words alter column word type varchar(100);
Now it works.  I do not know if any problem to change in database.
3, I am using FreeBSD 8.2 stable revision i386, Postgresql 9.1, php-5.2.7, lighttpd 1.3. Chevereto Upload script 1.91 to upload photos. The lighttpd is listening port 8180. I used firewall to forward port 80 to 8180. I think it is a secure site.

4, I have upgraded to 1.3.6. So far so good.

Welcome to my website http://bd78.hnu.schmates.us
Thanks Punbb team! Nice job!

Yes. I am looking for this feature for a long time. It is not a good idea to store files on others' server.

24

(3 replies, posted in PunBB 1.3 additions)

Yes. Every other forum has this feature.

25

(98 replies, posted in PunBB 1.3 extensions)

To add a functionality to the extension pun_attachment to display the image file directly:

Can some one design first? Then we can code it?

Should we start a brand new extension to allow user to insert image file into the posting directly
Or should we modify the pun_attachment extension to display the image file directly?
If we want to modify the current extension, we need add a button "insert image into the posting" or "dispay" and change the previous "add" button to "attach" . Now users have to understand that, to attach is to attach a file, to display is to display the image file in the post.

Please comment!