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.

Thanks.


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

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

378

(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...
wink

379

(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.

No!!!!

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

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...

<?php


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()); 
     $i=0;
    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);
           }
         $i++;               
    }
    

  $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> 
<br><br>
<div class="block">
    <h2><span>Uploads</span></h2>
    <div class="box">
        <div class="inbox">
<?php
        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>
                    </div>
                </div>
        </div>
<?php    
}
  
elseif (!$_POST) { 
    $_POST['act']='';
    
    
?>
        
        <div class="inform">
        <fieldset>
            <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>
                </form>
            </div>
        </fieldset>    
        </div>    
        
        <div class="inform">
        <fieldset>
            <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>
    <?php
            if($upl_conf['p_delete'])
                  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">
    <?php
            $ext = strtolower(strrchr($info['file'],'.'));
            if(in_array($ext,$pics))
                echo'                    <td class="puncon1"><a href="uploaded/'.$info['file'].'">'.$info['file'].'</td>';
            else
                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>
    <?php
            if($upl_conf['p_globaldelete'])
                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>';
            }
    ?>
                    </tr>
    <?php
            }
    ?>
                </table>
                
            </div>
        </fieldset>    
        </div>
        
        
        </div>
    </div>
</div>


    

  
<?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">
    <fieldset>
        <legend>Uploading...</legend>
        <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>
        </div>
    </fieldset>
</div>
<?php

        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());

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

        </div>
    </fieldset>
</div>
    
<?php
    }
}

?>

<?php

$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.

http://www.zanthria.com

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

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.
Thanks!


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?

385

(1,382 replies, posted in General discussion)

dome

386

(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?

387

(37 replies, posted in News)

*mmmm*
Upgraded...

Tastier than my mommy's home cookin'!

Ok...It's mostly working awesomely.

Except for this page:
http://www.zanthria.com/bb/search.php?action=show_new

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

389

(3 replies, posted in General discussion)

Ooooo...

I win again!

390

(1,382 replies, posted in General discussion)

Truth

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

Right now it's only for 1.1.5:
http://punbb.org/forums/viewtopic.php?id=5044

392

(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...plus 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

*lol*
I win!

394

(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.

395

(1,382 replies, posted in General discussion)

anarchy

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.

397

(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.

398

(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-

ThWboard

Rickard wrote:

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

NU!!!!

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

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?

400

(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...