76

(40 replies, posted in PunBB 1.2 discussion)

i have a feeling this is 1.3 related - can 1.3 really be released in 1 days time? or is this the PunRes site for PunBB 1.3x and beyond being opened early for business with PunRes staying open for PunBB 1.2x to avoid confusion.

77

(16 replies, posted in General discussion)

Jansson wrote:

There was, but it was removed since we doesn't want to create language barriers between members. If you feel there are great need to discuss PunBB in swedish, you're free to open your own swedish board, as is the case with many other languages (french, german, russian etc).

i understand, but with so many Swedes here, why is there no seperate Swedish PunBB board elsewhere then? very strange to me, i am not even living in Sweden but i would think any project with so many Swedes and Swedish speakers present here that it would want to support the Swedish side of things also - even unofficially as you said, like the other languages. there are very few Swedish forums using PunBB that i know of (plus from stats on PunRes - only 1%!!!) and i think there being no big support for Swedish is 1 of the main reasons why there aren't many - just my 0.02 Euro - sorry, bara min 50 öre smile

78

(16 replies, posted in General discussion)

indeed, phpBB is very good, but of the main bloated forum applications out there - phpBB, vBulletin, MyBB, etc. i'd rank MyBB top spot with phpBB in close second. vBulletin is over-rated and the most bloated of them all - it seems preferred by many as it is commercial and people perhaps think that this means it is the best hands down - which is not true. if you need lots of support and someone to hold your hand then vBulletin is king. it is not faster or more robust than other forums either - it just is the "Coca Cola" brand of the forum world - everyone knows it and it costs more, but at least you look "cool", right?

from my limited experience with running forums, nothing beats PunBB for speed, valid standards, easy to install, easy to mod, and easy to integrate and tweak to any site out there. the last point is particularly important - the bigger forum applications mentioned above are much harder than PunBB to integrate to a site and usually this means that the forum is the site which is a pity for many sites were the forum is meant as an extension of the site rather than the focus.

EDIT 1: another bonus to PunBB is that it is Swedish quality smile

EDIT 2: skulle vara fint med en Svensk forum på PunBB.org Rickard - varför finns det ej?

79

(8 replies, posted in PunBB 1.2 discussion)

i'd imagine having a seperate DB for users and messages etc (if PM mod installed) to the other forums and then altering the PunBB code for each of the forums to then get the user info from this "central" user DB shouldn't be too hard to do. thus each user can log into all of the seperate forums with the same username and password, while each forum has seperate category, topic and post IDs to each other as usual.

no problem, i have been in the same situation so many times before, it can get frustrating but a good sign that we're still human smile

the readme file says "include\cache.php" did you check in the include folder? it should be there, at least the official punbb-1.2.14.zip release has it in there.

82

(3 replies, posted in General discussion)

what you need to do is use extern.php (in your PunBB root directory) - instructions on how to use it are at the top of this file. also, if you want to have some sort of news from a certain forum on your homepage then take a look at the Extern.php News Extension by TGO or you can use the News Generator admin plugin by Rickard (but this admin plugin generates static news content which needs to be re-generated manually).

SVE:
fu - bra gjört. Enda problem är när man försöker kalla extern.php 2 eller mer gånger från samma sida. Man behöver ändra några saker på extern.php och flytta det till sidan man kallar från.

ENG:
fu - nice one. Only problem is that whan one tries to call extern.php 2 or more times from the same webpage. You need to change a couple of things on extern.php and move them to the webpage one is calling from.

Edit: Jag tycker om att kalla det internt också fast det blir lite jobbigare desto mer man använder extern.php och det är nog därför det är så att det rekomenderas att kalla det externt - ej bara för att det kallas extern.php smile

84

(51 replies, posted in News)

very nice - 1 central page for the official gossip on PunBB development.

that looks really cool. can users chose to have either the default editor or this when posting or must this be the default for users?

86

(68 replies, posted in PunBB 1.2 discussion)

Smartys wrote:

I was just pointing out that the discussion about copyright notice is effectively moot, since it's not in the next version tongue

does that mean people are openly allowed to remove it from previous versions? as it is removed now from 1.3 - shouldn't forum owners be asked to state somewhere on their site, like a "Credits" page or something, that PunBB is copyright of PunBB.org or something like that instead? or is Rickard and the PunBB team happy with just the "Powered by PunBB" notice?

anyways, the main reason i am posting is that i have a question regarding the "Powered by PunBB" notice, i am not sure if anyone has asked this in a different thread, but i stumbled upon the following image at http://gtmcknight.com/buttons/operated.php:

http://img212.echo.cx/img212/3592/punbb8as.png

what would be the thought of using that button on the footer, linking to http://punbb.org/ of course and with alt text of "PunBB Powered" or something instead of the normal text? i think the button looks nice and compliments sites that use the XHTML 1.0, CSS valid buttons also. i can understand if it is not acceptable as it is an image rather than pure text as before, but i just had to ask smile

sounds like a good idea and may be of use to specific forums.

yeah, i am aware of that but that is a different version to this Sub Forum Mod i believe? it is also in French and not updated since May last year it appears.

Sub Forum Mod 1.0.6 w/ Index View

1.0.6 w/ listing of sub forums on Forum Index, like at le forum du SOMB.

All credit to nico_somb for this feature as it is just taken from his version and modified a tiny bit to work with this one. Sub Forum Mod is copyright of pabb.

To make this change manually after you have applied the 1.0.6 (posted earlier without this), do the following:

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

index.php


#
#---------[ 2. FIND (line: 47) ]---------------------------------------------
#
 $forums_info = $db->query('SELECT num_topics, num_posts, parent_forum_id, last_post_id, last_poster, last_post FROM '.$db->prefix.'forums WHERE id='.$i) or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());
#
#---------[ 3. REPLACE WITH ]---------------------------------------------
#
 $forums_info = $db->query('SELECT num_topics, num_posts, parent_forum_id, last_post_id, last_poster, last_post, id, forum_name FROM '.$db->prefix.'forums WHERE id='.$i) or error('Unable to fetch sub forum info',__FILE__,__LINE__,$db->error());

#
#---------[ 4. FIND (line: 51) ]---------------------------------------------
#
   $sfdb[$i][0] = $current['parent_forum_id'];
   $sfdb[$i][1] = $current['num_topics'];
   $sfdb[$i][2] = $current['num_posts'];
   $sfdb[$i][3] = $current['last_post_id'];
   $sfdb[$i][4] = $current['last_poster'];
   $sfdb[$i][5] = $current['last_post'];
#
#---------[ 5. AFTER, ADD ]-------------------------------------------------
#
   $sfdb[$i][6] = $current['id'];
   $sfdb[$i][7] = $current['forum_name'];

#
#---------[ 6. FIND (line: 176) ]---------------------------------------------
#
                 <tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>
                    <td class="tcl">
                        <div class="intd">
                            <div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo $icon_text ?></div></div>
                            <div class="tclcon">
                                <?php echo $forum_field."\n".$moderators ?>
#
#---------[ 7. AFTER, ADD ]-------------------------------------------------
#
<?php
                        $sub_forums_list = array();
                        if(!empty($sfdb)) {
                           foreach ($sfdb as $sub_forums) {
                                 if($cur_forum['fid'] == $sub_forums[0]) {
                                    $sub_forums_list[] = '<a href="viewforum.php?id='.$sub_forums[6].'">'.pun_htmlspecialchars($sub_forums[7]).'</a>';
                                 }
                             }
                           if(!empty($sub_forums_list)) {
                                 $sub_forums_list = "\t\t\t\t\t\t\t\t".'<em>Sub Forums:</em> '.implode(', ', $sub_forums_list)."\n";
                                 if ($cur_forum['forum_desc'] != NULL) {
                                    echo "<br />";
                                 }
                                 echo "$sub_forums_list";
                           }
                        }
?>

Sub Forum Mod 1.0.6

         History:
                    Fixed by naitkris
                      in version 1.0.6
                       - Fixed items in the quickjump so sub forums are indented (like fix in 1.0.4 by NeoTall for search)
                    Fixed by Timpa
                      in version 1.0.5
                       - Correctly sorting subforums
                       - Now showing last post as it should
                    Fixed by NeoTall (Rus):
                      in version 1.0.4
                       - Fixed items in combobox "Select where to search"
                      in version 1.0.3
                       - Fixed search in SubForum when using "Non-MultiByted" language
                      in version 1.0.2
                       - Correctly displaying Last Post, Last Poster and Last Posted Time
                       - Correctly displaying Total Topics and Total Posts
                      in version 1.0.1
                       - Correctly creating Last Post link
                       - Correctly displaying word "Topics" on SubForum header

Sub Forum Mod is copyright of pabb.

You will need to re-generate your quickjump cache after applying this mod for the quickjump to indent. The Clear Cache administration plugin can do this for you easily and is available from the PunBB Downloads page.

nonull wrote:

it has some problems.
if each post has some replies. and i include such as [include('http://www.yourhost.com/forums/extern.php?action=news')]
some of them maintain the original post.
but some of the others maintain the first reply, but not original post.
how to include original post ? but not reply?

i had this issue, it is because the SQL code used expects that the first of each unique topic_id (say that topic_id=10) of a row in the posts DB is in fact the first post of that thread, but obviously if the posts table is not ordered by id (as was the case for me), then it will pull whatever row that first comes back with topic_id=10. adding ORDER BY id to the SQL fixes this.

so the SQL code to fix this is:

$msg = $db->query('SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM '.$db_prefix.'posts WHERE topic_id='.$id.' ORDER BY id LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

Integrating PunBB to a site I am developing and I just use:

if($pun_user['group_id'] > PUN_ADMIN) {
   exit("Failure - ".$pun_user['username']." not permitted access.");
}

doing it this basic way I only need to call the common.php PunBB file for authentication and can use other header and footer files etc as needed.