i propose some sort of contest, supported by the punbb comunity or the dev team, to encourage the creation of more modifications.
why?
well ive been looking at other forum softwares such as phpbb and simplemachines and they have quite a bit of modifications, and are somewhat easier to install
for me, recently, ive been looking for a store mod to try to give my members more of an incentive to post more so they can buy stuff from the store
phpbb and SM both have a store mod as well as many other mods
however punbb doesnt...
i think many people can agree punbb is a great software but lacks the extra plugins/mods to make each punbb forum more original which is why we see more of other forum software on sites

this contest has many benefits:
1.  encourages more people to use punbb
2.  a bigger community
3.  more mods to choose from
and others that i cant think of tongue

we can have prizes supported by donations of by the dev team personally

i dont know, i was just pitching this idea as i like this software and would like to see more mods for it in the future

lol nvm
ok i fixed this by adding
<?php require('_drawrating.php'); ?>
to the top of viewtopic.php

and to have a rating for each topic i did this
<?php echo rating_bar($id,''); ?>

and then call the css files and js files in header.php
and it works perfectly!!!!!

so topic resolved...

ok im during this on my local computer, not on a host

im trying to get this ajax rating script to work with punbb
http://www.masugadesign.com/the-lab/scr … ating-bar/

ok first you have to put this on top of your script

<?php require('_drawrating.php'); ?>

if i put that in header.php i get this error

Fatal error: Cannot redeclare rating_bar() (previously declared in C:\xampplite\htdocs\punbb\_drawrating.php:14) in C:\xampplite\htdocs\punbb\_drawrating.php on line 94

im calling rating_bar like this in viewtopic.php

<?php echo rating_bar($id); ?>

can someone help me get this to work

and all the files that are needed are with viewtopic, index ....ect
and in /img and in /js

<pun_online> and <pun_sidelinks> work within a php file
now i just need to get my css to work
thx pogenwurst

one more question
can you include an external stylesheet in a tpl file?
or would it be better to put it in the header.php file

hmm my "sidebar" aint showing up
heres my main.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 140px;
        float: left;
    }
    #main {
        margin-left: 150px;
    }
    #container {
        width: 100%;
        float: right;
        margin-left: -140px;
    }
</style>
</head>
<body>
 
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
 
<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>
 
<div id="container">
    <div id="main">
    
        <pun_announcement>
    
        <pun_main>
        
    </div>    
</div>
 
<pun_include "sidebar.php">
 
<div class="clearer"></div>
 
<pun_footer>
 
</div>
</div>
 
</body>
</html>

and heres my sidebar.php in /include/user

<?php 
if(basename($_SERVER['PHP_SELF'], 'php') == 'index')
{
?>
<div id="left">    
    <div class="block">
        <h2><span>Menu</span></h2>
        <div class="box">
        <pun_sidelinks>            
        </div>
    </div>     
    
    <div class="block">
        <h2><span>Whos Online?</span></h2>
        <div class="box">
        <pun_online>
        </div>
    </div>
</div>    
<?php
}
else {
}

?>

my punbb is modified like how connorhd miniportal which i have an index.php which i want the sidebar to show and a forum.php which i just want the forum without a sidebar

can i use php in main.tpl?
and if so
how could i do: if your on index.php, show <div class=box>
but if your on any other page, dont show <div class=box>

any ideas?

can you make it that the user can only vote once on a topic?

why not?

could you add support so you can only vote on a topic once
so someone doesnt keep voting on the same topic

ok it works
just had to clear my cookies and it worked

<?php
define('PUN_ROOT', './forums/');
include 'forums/include/common.php';

function login_menu() {
global $pun_user;

function directory($result) {  
     
     $handle=opendir("./files");  
     while ($file = readdir($handle)) {  
     if ($file == "." || $file == ".." || $file == "index.php") { } else { print "<a href=$file>$file</a><br>\n"; } 
       
     }  
     closedir($handle);  

return $result;  
}  

if ($pun_user['is_guest']) {
  echo "<br />Please <a href=\"http://animelink.be/forums/register.php\">Register Here</a> or <a href=\"http://animelink.be/forums/login.php\">Login Here</a><br />";
    }
else {
echo "<b>Manga Downloader</b><p>";
echo directory($result);
echo "<p><a href=\"http://localhost/pantasia\">Go Back To Pantasia</a>";
}
}
login_menu();
?>

i put login_menu(); at the end of the script

but it will show the directory whether im logged in or not

this happens in firefox

in opera

it shows the 2 links whether im logged in or not

<?php
define('PUN_ROOT', './forums/');
include 'forums/include/common.php';

function login_menu() {
global $pun_user;

function directory($result) {  
     
     $handle=opendir("./files");  
     while ($file = readdir($handle)) {  
     if ($file == "." || $file == ".." || $file == "index.php") { } else { print "<a href=$file>$file</a><br>\n"; } 
       
     }  
     closedir($handle);  

return $result;  
}  

if ($pun_user['is_guest']) {
  echo "<br />Please <a href=\"http://animelink.be/forums/register.php\">Register Here</a> or <a href=\"http://animelink.be/forums/login.php\">Login Here</a><br />";
    }
else {
echo "<b>Manga Downloader</b><p>";
echo directory($result);
echo "<p><a href=\"http://localhost/pantasia\">Go Back To Pantasia</a>";
}
}
?>

what this is suppose to do is, when the user is logged in, he can see the files in the directory
when the user is NOT logged in, he sees links to register and log in

i dont get any errors
but all i see is a blank screen
when im logged in and when im not logged in

i called it "file.php" and its like this in my directory:

file.php
/forums/            <-punbb directory

can someone fix this?

hey saw this on irc smile
will this work on 1.2.8?

wat rpg u using?

does this work on 1.2.6?

Notice: Use of undefined constant del - assumed 'del' in /home/raptrex/public_html/forum/test.php on line 52

Notice: Undefined index: del in /home/raptrex/public_html/forum/test.php on line 52

Notice: Undefined index: userfile in /home/raptrex/public_html/forum/test.php on line 64

Notice: Undefined index: userfile in /home/raptrex/public_html/forum/test.php on line 87

Notice: Undefined index: message in /home/raptrex/public_html/forum/test.php on line 135

got rid of one smile

the script works without

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

and

if($pun_user['id'] > 1)
{
  echo "Welcome Message";
}
else
{
  echo "Login Form";
}
?>
<?php
define('PUN_ROOT', "$punbb_path");
require PUN_ROOT.'include/common.php';

define('PUN_TURN_OFF_MAINT', 1); // if forums go down the site will not
define('PUN_QUIET_VISIT', 0); // update last visit when outside of the forums

//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
//   You may change maxsize, and allowable upload file types.
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//Mmaximum file size. You may increase or decrease.
$MAX_SIZE = 2000000;
                            
//Allowable file Mime Types. Add more mime types if you want
$FILE_MIMES = array('image/jpeg','image/jpg','image/gif'
                   ,'image/png','application/msword');

//Allowable file ext. names. you may add more extension names.            
$FILE_EXTS  = array('.zip','.jpg','.png','.gif'); 

//Allow file delete? no, if only allow upload only
$DELETABLE  = false;                               


//vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
//   Do not touch the below if you are not confident.
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/************************************************************
 *     Setup variables
 ************************************************************/
$site_name = $_SERVER['HTTP_HOST'];
$url_dir = "http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
$url_this =  "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];

$upload_dir = "files/";
$upload_url = $url_dir."/files/";
$message ="";

/************************************************************
 *     Create Upload Directory
 ************************************************************/
if (!is_dir("files")) {
  if (!mkdir($upload_dir))
      die ("upload_files directory doesn't exist and creation failed");
  if (!chmod($upload_dir,0755))
      die ("change permission to 755 failed.");
}

/************************************************************
 *     Process User's Request
 ************************************************************/
if ($_REQUEST[del] && $DELETABLE)  {
  $resource = fopen("log.txt","a");
  fwrite($resource,date("Ymd h:i:s")."DELETE - $_SERVER[REMOTE_ADDR]"."$_REQUEST[del]\n");
  fclose($resource);
  
  if (strpos($_REQUEST[del],"/.")>0);                  //possible hacking
  else if (strpos($_REQUEST[del],$upload_dir) === false); //possible hacking
  else if (substr($_REQUEST[del],0,6)==$upload_dir) {
    unlink($_REQUEST[del]);
    print "<script>window.location.href='$url_this?message=deleted successfully'</script>";
  }
}
else if ($_FILES['userfile']) {
  $resource = fopen("log.txt","a");
  fwrite($resource,date("Ymd h:i:s")."UPLOAD - $_SERVER[REMOTE_ADDR]"
            .$_FILES['userfile']['name']." "
            .$_FILES['userfile']['type']."\n");
  fclose($resource);

    $file_type = $_FILES['userfile']['type']; 
  $file_name = $_FILES['userfile']['name'];
  $file_ext = strtolower(substr($file_name,strrpos($file_name,".")));

  //File Size Check
  if ( $_FILES['userfile']['size'] > $MAX_SIZE) 
     $message = "The file size is over 2MB.";
  //File Type/Extension Check
  else if (!in_array($file_type, $FILE_MIMES) 
          && !in_array($file_ext, $FILE_EXTS) )
     $message = "Sorry, $file_name($file_type) is not allowed to be uploaded.";
  else
     $message = do_upload($upload_dir, $upload_url);
  
  print "<script>window.location.href='$url_this?message=$message'</script>";
}
else if (!$_FILES['userfile']);
else 
    $message = "Invalid File Specified.";

/************************************************************
 *     List Files
 ************************************************************/
$handle=opendir($upload_dir);
$filelist = "";
while ($file = readdir($handle)) {
   if(!is_dir($file) && !is_link($file)) {
      $filelist .= "<a href='$upload_dir$file'>".$file."</a>";
      if ($DELETABLE)
        $filelist .= " <a href='?del=$upload_dir$file' title='delete'>x</a>";
      $filelist .= "<sub><small><small><font color=grey>  ".date("d-m H:i", filemtime($upload_dir.$file))
                   ."</font></small></small></sub>";
      $filelist .="<br>";
   }
}

function do_upload($upload_dir, $upload_url) {

    $temp_name = $_FILES['userfile']['tmp_name'];
    $file_name = $_FILES['userfile']['name']; 
  $file_name = str_replace("\\","",$file_name);
  $file_name = str_replace("'","",$file_name);
    $file_path = $upload_dir.$file_name;

    //File Name Check
  if ( $file_name =="") { 
      $message = "Invalid File Name Specified";
      return $message;
  }

  $result  =  move_uploaded_file($temp_name, $file_path);
  if (!chmod($file_path,0777))
       $message = "change permission to 777 failed.";
  else
    $message = ($result)?"$file_name uploaded successfully." :
               "Somthing is wrong with uploading a file.";
  return $message;
}

?>
<?php
if($pun_user['id'] > 1)
{
?><center>
   <font color=red><?=$_REQUEST[message]?></font>
   <br>
   <form name="upload" id="upload" ENCTYPE="multipart/form-data" method="post">
     Upload File <input type="file" id="userfile" name="userfile">
     <input type="submit" name="upload" value="Upload">
   </form>
   
   <br><b>My Files</b>
   <hr width=70%>
   <?=$filelist?>
   <hr width=70%>
</center><?php  
}
else
{
  echo "Cannot View This Page";
} ?>

thats my upload script checking if you are logged in, it will show you the upload form
but if your not its suppose to display the message

i get these errors

Notice: Use of undefined constant del - assumed 'del' in /home/raptrex/public_html/forum/test.php on line 52

Notice: Undefined index: del in /home/raptrex/public_html/forum/test.php on line 52

Notice: Undefined index: userfile in /home/raptrex/public_html/forum/test.php on line 64

Notice: Undefined index: userfile in /home/raptrex/public_html/forum/test.php on line 87

Notice: Use of undefined constant message - assumed 'message' in /home/raptrex/public_html/forum/test.php on line 135

Notice: Undefined index: message in /home/raptrex/public_html/forum/test.php on line 135

can someone help find the problem
the "test.php" script is in my punbb forum folder

no i mean i want the header and the links on the left to show up for SOME pages
but i want to know a way so i DONT have to include it on every page

i have mini portal installed with my forum
and i have some links i added to main.tpl that i want to show up with the header and the side bar
but i DONT want ALL my links to show up with the header and side bar

how do i do this?

how do i add more fields to the profile

its hard to read the script since all of it is bunched up

i created Connorhd's mini portal script just including the news which is his Step 2
http://punbb.org/forums/viewtopic.php?id=7051

i included that file in my index here
http://www.pro.trap17.com/psp/

i am wondering how i can use the css for my board which is oxygen to show up on my index here http://www.pro.trap17.com/psp/

and i have another question

what variables do i need so i dont have to use the header
cuz i dont want the Title, and the links to show up in the news