Smartmonkey wrote:

Well diff error message now:

An error was encountered
Error: Could not copy file to server.

root/uploaded directory should have proper access... sad dunno whats going on

Same error here...

BIGGER ERROR! (i wish I could make this in neon...oh, wait - I can!)

Um, Loiso?
In your archive, you might wanna take out that fake "lang>English>common.php". That really screwed up my forum when I uploaded the whole directory through FTP.


Could any of these issues possibly be bacause of slight differences in 1.2.* and 1.2.2, or is it the differences in 1.1.5 and 1.2.*?

Jameslicious wrote:
Connorhd wrote:

nah cos it would never be as good as Oxygen tongue

la-mayo tongue

You're right! I never noticed that it looks exactly like a mayonnaise jar!


(54 replies, posted in PunBB 1.2 show off)

If it did come out, I'm sure that someone could work at getting a couple of color sets out...

Proabably based on the original punBB forum themes -but still. I work with what I've got...


(7 replies, posted in PunBB 1.2 discussion)

Ok...I didn't think this was supposed to go in any of the other forums, so I put it here.

It's not a full mod or anything. It's not even fancy.
It's just a simple little mod to pritty things up.

What this does is causes all text-boxes, input boxes, and buttons to become flat - all instead of having that annoying beveled look.

Add this line to all your CSS templates in the section "4"

/* 4.5 Flat Boxes and buttons provided by Eris Siva */
.pun INPUT, .pun SELECT, .pun TEXTAREA {
     border: solid 1px

I just think it looks more professional.

For a demo, click here.
The demo is just to show what the buttons and inputs look like.

Smartmonkey wrote:

erissvia.. thanks that at least allowed me to view the page.. but I am also getting the same error

An error was encountered
Error: No file selected for upload.

Yuppers....Same error I keep getting. I just think that some variables weren't transferred over correctly from version to version.


You can't make me learn something! I want someone to do it for me!

This might be the only software that I actually learn stuff from. Everywhere else, I'm catered to. I'm actually glad you guys push us to find it out for ourselves by pointing us in the right direction.

Loiso - That's not what's wrong...
I have the same problem. It has to do with the way that variables are being called.

I've gotten the page to load with the following code.
What I did was replace "$pun_root" with "PUN_ROOT", and "$language" with "$pun_user['language']".
Past that, I don't know what else to change.
Paste this as the "uploads.php" file. It should work...


define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

$page_title=pun_htmlspecialchars($pun_config['o_board_title']).'  »  Uploader';
// Load the viewtopic.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/'.'topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/'.'uploads.php';

require PUN_ROOT.'header.php';

    $result = $db->query('SELECT * FROM '.$db->prefix.'uploads_conf WHERE g_id='.$pun_user['g_id']); 
    $upl_conf= $db->fetch_assoc($result);
    if (!$upl_conf) {
        $result = $db->query('SELECT * FROM '.$db->prefix.'uploads_conf WHERE g_id=0');        
        $upl_conf= $db->fetch_assoc($result);
     $result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups') or error('Unable to get useergroups', __FILE__, __LINE__, $db->error()); 
    while ($i < $db->num_rows($result)) {

        $groups[$i] = $db->fetch_assoc($result);
        $result2 = $db->query('SELECT * FROM '.$db->prefix.'uploads_conf WHERE g_id='.$groups[$i]['g_id']) or error('Unable to upload persmissions', __FILE__, __LINE__, $db->error());
        $perms[$i]= $db->fetch_assoc($result2);
        if (!$perms[$i]) {
            $result2 = $db->query('SELECT * FROM '.$db->prefix.'uploads_conf WHERE g_id=0');        
            $perms[$i]= $db->fetch_assoc($result2);

  $allowed = array(".txt",".gif",".jpg",".jpeg",".png");
  $pics = array(".gif",".jpg",".jpeg",".png");


<b><a href="./index.php"><?php echo pun_htmlspecialchars($pun_config['o_board_title']); ?></a></a>  »  <a href="uploads.php"><?php echo $lang_uploads['Uploader']; ?></a><?php //echo ' / '.$lang_uploads['File']; ?></b> 
<div class="block">
    <div class="box">
        <div class="inbox">
        if (!$upl_conf['p_view']) {
        <div id="announce" class="block">
            <h2><span><b>Not allowed</b></span></h2>
                <div class="box">
                    <div class="inbox">
                        <div><?php    echo '<b>You do not have permissons to access upload module. Please, contact Administration.</b>'; ?></div>
elseif (!$_POST) { 
        <div class="inform">
            <legend>Upload file</legend>
            <div class="infldset">
                <form method="POST" action="uploads.php" enctype="multipart/form-data">
                    <p><b>Uploading Rules:</b><br><br>
                    - You can use the upload to upload image and text with the following extention. (.txt, .gif, .jpg, .jpeg, .png)<br>
                    - The file must be under <?php echo round($upl_conf['u_fsize'] / 1024).'KB'; ?> <br>
                    - Please use a sensible file name or i will remove the file, if anyone abuses this uploader, it will be removed.<br><br>
                    <input type="file" name="file" size="30"><br><br>
                    <input type="hidden" name="user_id" value="<?php echo $pun_user['id']; ?>">
                    <input type="hidden" name="user_name" value="<?php echo $pun_user['username']; ?>">
                    <input type="submit" name="act" value="Upload"></p>
        <div class="inform">
            <legend>File list</legend>
            <div class="infldset">
            Files below have been uploaded by users and may be malicous or contain inapropriate content. Click on a file to download. If you find any inapropriate content, please report to Administrator.<br><br>
                <table class="punmain" cellspacing="1" cellpadding="4">
                     <tr class="punhead">
                        <td class="punhead" style="width: 20%"><?php echo $lang_uploads['File']; ?></td>    
                        <td class="punhead" style="width: 5%"><?php echo $lang_uploads['Size']; ?></td>
                        <td class="punhead" style="width: 14%"><?php echo $lang_uploads['Posted by']; ?></td>
                  echo '    <td class="punhead" style="width: 14%; white-space: nowrap">'.$lang_uploads['Delete'].'</td></tr>';        
                if($upl_conf['p_globalview']) {
                $result = $db->query('SELECT * FROM '.$db->prefix.'uploaded') or error('Error getting file list', __FILE__, __LINE__, $db->error());
            } else $result = $db->query('SELECT * FROM '.$db->prefix.'uploaded WHERE id ='.$pun_user['id']) or error('Error getting file list', __FILE__, __LINE__, $db->error());
            while($info = $db->fetch_assoc($result))    {
                    <tr class="puntopic">
            $ext = strtolower(strrchr($info['file'],'.'));
                echo'                    <td class="puncon1"><a href="uploaded/'.$info['file'].'">'.$info['file'].'</td>';
                echo'                    <td class="puncon1"><a href="./uploaded/'.$info['file'].'">'.$info['file'].'</td>';
                    <td class="puncon2"><?php echo round(filesize('./uploaded/'.$info['file']) / 1024).'KB'; ?></td>
                    <td class="puncon1"><?php echo '<a href="profile.php?id='.$info['id'].'">'.$info['user'].'</a>'; ?></td>
                echo '                    <td class="puncon1"><form method="POST" action="uploads.php" enctype="multipart/form-data"><input type="hidden" name="delfile" value="'.$info['file'].'"><input type="submit" name="act" value="Delete"></form></td>';
            elseif ($upl_conf['p_delete']){
                if ($info['id'] == $pun_user['id']) echo '<td class="puncon1"><form method="POST" action="uploads.php" enctype="multipart/form-data"><input type="hidden" name="delfile" value="'.$info['file'].'"><input type="submit" name="act" value="Delete"></form></td>';
                else echo '                    <td class="puncon1">N/A</td>';


<?php } 
elseif ($_POST['act']=='Upload')  {
    if(($upl_conf['p_upload'] <> 1)) error('No permission', __FILE__, __LINE__, $db->error());
    $ext = strtolower(strrchr($file_name,'.'));
    if($file_name == "")
      error('No file selected for upload', __FILE__, __LINE__, $db->error());
    else if(file_exists('./uploaded/'.$file_name))
      error('File already exists', __FILE__, __LINE__, $db->error());
    else if($file_size > $upl_conf['u_fsize'])
      error('File was too big', __FILE__, __LINE__, $db->error());
    else if(!in_array($ext,$allowed))
      error('File is not a valid file type', __FILE__, __LINE__, $db->error());
    else {
        $result = $db->query('INSERT INTO '.$db->prefix.'uploaded(`file`,`user`,`id`) VALUES(\''.$file_name.'\',\''.$_POST['user_name'].'\',\''.$_POST['user_id'].'\')') or error('Unable to add upload data', __FILE__, __LINE__, $db->error());
        @copy($file, './uploaded/'.$file_name) or error('Could not copy file to server', __FILE__, __LINE__, $db->error());

<div class="inform">
        <div class="infldset">
            <div><?php    echo '<b>File has been uploaded to <a href="./uploaded/'.$file_name.'">'.$pun_config['o_base_url'].'/uploaded/'.$file_name.'</a></b>'; ?></div>

        if(in_array($ext,$pics)) echo '<img src="./uploaded/'.$file_name.'"><br><br>';
elseif($_POST['act']=='Delete') {

    if(($upl_conf['p_delete'] <> 1)&&($upl_conf['p_globaldelete'] <> 1)) error('No permission', __FILE__, __LINE__, $db->error());

      error('File doesn\'t exist', __FILE__, __LINE__, $db->error());
    else {
        $result = $db->query('DELETE FROM '.$db->prefix.'uploaded WHERE file=\''.$delfile.'\'') or error('Unable to delete data', __FILE__, __LINE__, $db->error());
<div class="inform">
        <div class="infldset">
            <div><?php    echo $delfile.' removed from the uploader.'; ?></div>




$footer_style = 'index';
require PUN_ROOT.'footer.php';

The only problems that I get with it is that I get a wierd error:
"Notice: Undefined index: Uploader in /home/adonis/public_html/bb/uploads.php on line 45" which has to do with the way things are being defined (again).

Also, it won't let me upload. It keeps saying that I need to select something to upload, even when I have...

I understand that the output is static, but the comment link is generated by the PHP plugin.
From what I understand, the script looks through news.tpl and replaces key tags with information defined in that line that I put in my last post.

That's why I was wondering what to add/detract/change in order to get a post number next to it. For instance, it could just be pulling the number of replies to a topic (that is show in the forum navigation) and displaying it next to the link to comment. The numbers would be from 0-whatever....
It would show up like so:

"0 Comment" or maybe "Comments: 0" if we wanted to be correct.

About the auto-update...It's not that big of a pain, and I was pretty sure that there was no way to do it without extensive hacking.

Yeah, I know there's really no point in having WordPress if I'm going to be using punBB to post all my info.

But, I'm still going to keep it because it makes it easier to edit the template than going into FTP and uploading time after time.
Or, even better - navigating through the sludge of my "File Manager" and clicking "Edit File" each time.
Blegh - I'll keep WP, thank you very much.

Ooo...Plus - Nice plugins, like for weather.
Sorry - I digress.

Um...where was I?
Oh, yeah.

A couple questions...

1) Is there some way to have it update when I post a new topic to that forum instead of me going "Post > Admin > Nedws Generator > Generate"? Like, me just post and it shows up on the front page?

2) Is there some way to show how many comments or posts have been made to the comments section of a post? Such as, instead of saying "Comments", it says "x Comments" where "x" is the number?
I thought it might be in this line -

        $replace = array(pun_htmlspecialchars($cur_topic['subject']), date('Y-m-d H:i', $cur_post['posted']), pun_htmlspecialchars($cur_post['poster']), parse_message($cur_post['message'], $cur_post['hide_smilies']), '<a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'">Comments</a>');

But, I wasn't sure what to add/detract for it to show that number.
Any help on this?


(1,382 replies, posted in General discussion)



(54 replies, posted in PunBB 1.2 show off)

Fantastic job!
I'm amazed at how fast it loads.

Could this be possible using only CSS?
I mean, by calling images and such?


(37 replies, posted in News)


Tastier than my mommy's home cookin'!

Ok...It's mostly working awesomely.

Except for this page:

It's still uses the original code. So, stuff shows up as unread like it used to.


(3 replies, posted in General discussion)


I win again!


(1,382 replies, posted in General discussion)


alcison- Apparently, ConnorHD has been working on a MiniPortal.
It should be released within time.

Right now it's only for 1.1.5:


(25 replies, posted in PunBB 1.2 troubleshooting)

Justin wrote:

The sea of nested tables in that forum's markup is likely to win few converts. smile

I don't quite get it... Why does it have the potential to be better?

Yeah...I know about the markup. That's why I'm working on a better version of it. (XHTML and CSS compliant, more accessible...perhaps 508, and slim down the code.)
It has the potential to be better because it's fast, has some nice features, and is pretty simple. But, they never work on it's got all those issues that have been listed.

Paul wrote:

I thought that was probably the one you meant. It's the only fully featured board I've seen which is in the same league as PunBB for speed and could even be faster though I can't quite work out how.

Which forum? ThW?

hcgtv wrote:
t2 wrote:

We should have a contest.  I think that is how Wordpress got so many nice styles.

First prize: a free copy of PunBB 1.2.2 smile

I win!


(3 replies, posted in General discussion)

That's awesome.
I think that we should do that everywhere.
Weathermen are just powerless shamens in nice jackets.


(1,382 replies, posted in General discussion)


Well, okay...then maybe it won't be so bad. Having punBB resouces on only two main sites can't be too bad...Right?
*ominous music plays*

Just kidding...So, does that mean that the style that I'm working on now is kaput? I mean - How long until the upgrade?
It's just, I don't want to put a little bit of work into it and have it be outdated a week or so afterwards.


(11 replies, posted in PunBB 1.2 troubleshooting)

This is true...My old site once had 177 errors until I realized it was because I had "BR" instead of "br", and "A HREF" instead of "a href"

'Twas annoying to go through and change all that stuff.


(25 replies, posted in PunBB 1.2 troubleshooting)

graue wrote:

You should give us a link to this supposedly superior board so we can supply long lists of reasons why PunBB is actually still the best.

Well, it's not so much that I think that they are better now - They're obviously not. Because, if they were, I would be using their software.
It's that I think they could be. The potential is great, it just seems that no one gives a flying flip.

If it bugs you so-


Rickard wrote:

I've actually received more than one e-mail informing me that PunBB style websites are in the making.


And this begins a chaotic time in the history of punBB styles....

This is basically what's going on with WordPress. There is no unification and so it all goes down the stinky-hole.
PunRes seems like a good idea. Is it the "official" resource, or third-party?


(25 replies, posted in PunBB 1.2 troubleshooting)

Paul wrote:
erissiva wrote:

This is about as good as you're going to get. The only better board than punBB is in German. And, they haven't done any work on it for around a year.

Care to give the details.  Maybe they have something that could be useful.

*lol* I'm not so sure...That's like advertising for the enemy.
Actually, I'm working on an English version myself (yes, using a punBB board as my medium of communications. Ironic?)
The funniest part is that I'll continue using a punBB board after I finish the project. That's because I don't fully understand all the faults and such that could be in this other software.

Right now I'm just trying to translate it and make it markup valid. I might post some info about it later. Plus, I make announcements about it from time to time on my website.

graue - Nah...I was never really impressed by their product...