1,226

(10 replies, posted in PunBB 1.2 show off)

here my index.php
this goes for the header.

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New page 1';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
$newsid = '4'; //This is the forum the news is retrieved from
$newsdisplay = '5'; //This is how many news articles are displayed.

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
}

$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);

$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);

$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
 
?>

this goes where you want the news topic to display at.
remember to set the news id by the forum id that you want to pull from.
and also the number amount of the to pull
here the code..

<h2>Site News</h2>
<p><table>
                    <tr>
                        <td>
                            <?
                                $result = $db->query('SELECT t.id, t.subject, t.forum_id, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, g.g_title, f.forum_name FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'posts AS p ON p.topic_id=t.id AND p.posted=t.posted INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.forum_id='.$newsid.' AND t.moved_to IS NULL AND f.redirect_url IS NULL ORDER BY t.posted DESC LIMIT '.$newsdisplay) or error('Unable to fetch announcements', __FILE__, __LINE__, $db->error());
                    
                    if ($db->num_rows($result))
                    {
                            while($cur_post = $db->fetch_assoc($result))
                            {
                                    $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
                                echo "\t\t\t\t\t\t\t".'<p><strong><a href="forum.php">Forum</a> » <a href="viewforum.php?id='.$cur_post['forum_id'].'">'.pun_htmlspecialchars($cur_post['forum_name']).'</a> » <a href="viewtopic.php?id='.$cur_post['id'].'">'.pun_htmlspecialchars($cur_post['subject']).'</a></strong> - Posted '.format_time($cur_post['posted']).' <span class="byuser'.(isset($cur_post['g_title']) ? ' '.strtolower(str_replace(' ', '', $cur_post['g_title'])) : '').'"><strong> » </strong><a href="profile.php?id='.$cur_post['poster_id'].'" class="username">'.pun_htmlspecialchars($cur_post['poster']).'</a></span></p>'."\n";
?>
                                <div class="clearer">
                                    <?php echo $cur_post['message']."\n" ?>
                                </div>
                                <br />
                                <?php
                                if ($cur_post['poster_id'] == $pun_user['id'] || $pun_user['g_id'] < PUN_GUEST)
                                {
                                    echo '<span style="float:right"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a> | <a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a></span>';
                                }
                                ?>
                            <br />
                            <?
                            }
                        }
                        else
                        {
                            echo 'No news';
                        }    
                            ?>                    
                        </td>
                    </tr>
                </table>

go look at http://www.oswd.org/ for templates free tons of templates to pick from. then edit the main.tpl like smartys said.

1,228

(15 replies, posted in PunBB 1.2 troubleshooting)

anytime..

evil giggles
Q

1,229

(15 replies, posted in PunBB 1.2 troubleshooting)

make sure that this is at the very top

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'bamboo_kadus';
$db_username = 'XXXXX';
$db_password = 'XXXXX';
$db_prefix = 'kadus_';
$p_connect = false;

$cookie_name = 'punbb_cookies';
$cookie_domain = '.bambooborneo.com';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = 'c0a9fb60';

define('PUN', 1);

1,230

(15 replies, posted in PunBB 1.2 troubleshooting)

in the config.php take out the space at the top of the file
line 1.
line 2. <?php

open the include/template/main.tpl file there what you need to mod to fit punbb inside your website. here a example
http://bunpai.com i took it way beyond just simple moding... i incorporated punbb in my site completely.
here is my main.tpl. u will see how i modded it. and where i placed the punbb stuff <pun_stats> etc.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>Bunpai- Sharing the knology with others!</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta http-equiv="Content-Language" content="en-us" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="description" content="Bunpai- Sharing the knology with others!" />
    <meta name="keywords" content="" />
    <style type="text/css" media="all">@import "images/style.css";</style>
    <!--[if IE]> <link rel="stylesheet" href='images/ie_fixes.css' type="text/css" media="screen, projection" /> <![endif]-->
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss/" />
    <style>
    #brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
    DIV.box {BORDER-COLOR: #663333; }
.pun H2, #brdmenu {BACKGROUND-COLOR: #fff; COLOR: #0F61E5; }
DIV.blockpost H2 {BACKGROUND-COLOR: #fff; }
#punwrap * { font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #663333; }
.pun {
    font-size: 12px !important;
    color: #000000;
}
    </style>
</head>

<body>
    <div class="content">
        <div id="top">
            <div class="padding">
                <a href="#">About me</a> | <a href="#">Contact</a> | <a href="forum.php">Forum</a> | <a href="calendar.php">Event Calendar</a>
            </div>
        </div>
        <div id="header">
            
            <div class="title">
                <h1>Bunpai</h1>
                <h2>Sharing the knology with others!</h2>
            </div>
        </div>
    
        <div id="subheader">
            <div id="menu">
                  <ul>
                    <li><a href="index.php">Home</a></li>
                    <li><a href="forum.php">Forum</a></li>
                    <li><a href="register.php">Register</a></li>
                    <li><a href="#">Affiliates</a></li>
                      <li><a href="#">About</a></li>
                      <li><a href="#">Contact</a></li>
                  </ul>
            </div>
            
            
        </div>
        
        <div id="main">
            <div class="right_side">
                
                <div class="nav">
                 <pun_online>
                 <pun_sidelinks>
        <pun_artcatbox>
        <pun_userbox>
        <pun_toppost>
        <pun_status>
           <pun_footer>
                </div>
            </div>
            <div class="left_side">
                <div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
    </div>
</div>
<pun_main>
</div>
</div>
                
                <br />
            </div>
            
        </div>
        
        <div id="footer">
            <div class="padding">
                Copyright © 2006 Bunpai | modded by: <a href="http://bunapi.com">Bunpai </a> |
                <a href="#">Contact</a> | Powered By <a href="http://punbb.org">Punbb</a> © Copyright 2002–2005 Rickard Andersson | <a href="#">Login</a>
            </div>
        </div>
    </div>
</body>
</html>

1,232

(10 replies, posted in PunBB 1.2 show off)

the version that i use is a different one that on punres.
i had did all the upgrades from 10 to 12 and added a few other mods to it.
it is not hard to mod to a css template it is all in the main.tpl.
and u might have to change the width of a few txt blocks.
i can post my index.php or index1.php or even the main tpl if will help you.
ill fix the spelling error
ops i even did the firefox and IE fix. so it looks half way good in both..lol..

1,233

(10 replies, posted in PunBB 1.2 show off)

i started playing with the main.tpl and then i started looking at how punbb is put together. and decided to mix it up either way i get it to work ..
a little css and punbb magic working together.
the register.php is completely out of the normal reg file. i added the php stuff to a html file.
and so is the index.php
if you want to see the normal mod for main.tpl
http://bunpai.com/index1.php
compaired to
http://bunpai.com/index.php

1,234

(8 replies, posted in PunBB 1.2 show off)

this is the login script. once a member sign in it will disappear.

<?php

// Show login if not logged in
if($pun_user['is_guest'])
{
    if(!isset($focus_element) || (isset($focus_element) && !in_array('login', $focus_element)))
    {

    // Load the language files
    // Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
    $redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';

    $required_fields = array('req_username' => $lang_common['Username'], 'req_password' => $lang_common['Password']);

?>
<h2>Login</h2>
        <div class="logintop">
            <form id="login" name="login" name="qpost" method="post" action="login.php?action=in" onsubmit="return process_form(this)">
                <p>
                    <input type="hidden" name="form_sent" value="1" />
                    <input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>" />
                    <?php echo $lang_common['Username'] ?>:
                    <input type="text" name="req_username" size="10" maxlength="25" />
                     <?php echo $lang_common['Password'] ?>:

                    <input type="password" name="req_password" size="10" maxlength="16" wrap="virtual" onkeypress="if(event.keyCode==13) document.login.submit()" />
                     <a href="#" onclick="document.login.submit(); return true"><?php echo $lang_common['Login'] ?></a>  |  <a href="register.php"><?php echo $lang_common['Register'] ?></a>
                </p>
            </form>
        </div>
<?php
    }
}
?>

1,235

(8 replies, posted in PunBB 1.2 show off)

example of this working is http://bunpai.com
it is about 85% done!

dude kewl.. rename the index.html to index.php
get the this code and put it at the top

what this does is cookies and session the punbb with the index.php file.
so that member can jump around with out losing there login.
also the extra code is for posting news topics on the front page.

<?php

define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'include/parser.php'; 

$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);


$newsid = '4'; //This is the forum the news is retrieved from
$newsdisplay = '5'; //This is how many news articles are displayed.

if ($pun_config['o_users_online'] == '1')
{
    // Fetch users online info and generate strings for output
    $num_guests = 0;
    $users = array();
    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)
            $users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
        else
            ++$num_guests;
    }

    $num_users = count($users);
}

$result = $db->query('SELECT COUNT(id)-1 FROM '.$db->prefix.'users') or error('Unable to fetch total user count', __FILE__, __LINE__, $db->error());
$stats['total_users'] = $db->result($result);

$result = $db->query('SELECT id, username FROM '.$db->prefix.'users ORDER BY registered DESC LIMIT 1') or error('Unable to fetch newest registered user', __FILE__, __LINE__, $db->error());
$stats['last_user'] = $db->fetch_assoc($result);

$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
?>

this code is for the area where you want to display the news topics at on the index.php

<table>
                    <tr>
                        <td>
                            <?
                                $result = $db->query('SELECT t.id, t.subject, t.forum_id, p.poster, p.poster_id, p.message, p.hide_smilies, p.posted, g.g_title, f.forum_name FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'posts AS p ON p.topic_id=t.id AND p.posted=t.posted INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id LEFT JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id WHERE t.forum_id='.$newsid.' AND t.moved_to IS NULL AND f.redirect_url IS NULL ORDER BY t.posted DESC LIMIT '.$newsdisplay) or error('Unable to fetch announcements', __FILE__, __LINE__, $db->error());
                    
                    if ($db->num_rows($result))
                    {
                            while($cur_post = $db->fetch_assoc($result))
                            {
                                    $cur_post['message'] = parse_message($cur_post['message'], $cur_post['hide_smilies']);
                                echo "\t\t\t\t\t\t\t".'<p><strong><a href="forum.php">Forum</a> » <a href="viewforum.php?id='.$cur_post['forum_id'].'">'.pun_htmlspecialchars($cur_post['forum_name']).'</a> » <a href="viewtopic.php?id='.$cur_post['id'].'">'.pun_htmlspecialchars($cur_post['subject']).'</a></strong> - Posted '.format_time($cur_post['posted']).' <span class="byuser'.(isset($cur_post['g_title']) ? ' '.strtolower(str_replace(' ', '', $cur_post['g_title'])) : '').'"><strong> » </strong><a href="profile.php?id='.$cur_post['poster_id'].'" class="username">'.pun_htmlspecialchars($cur_post['poster']).'</a></span></p>'."\n";
?>
                                <div class="clearer">
                                    <?php echo $cur_post['message']."\n" ?>
                                </div>
                                <br />
                                <?php
                                if ($cur_post['poster_id'] == $pun_user['id'] || $pun_user['g_id'] < PUN_GUEST)
                                {
                                    echo '<span style="float:right"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a> | <a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a></span>';
                                }
                                ?>
                            <br />
                            <?
                            }
                        }
                        else
                        {
                            echo 'No news';
                        }    
                            ?>                    
                        </td>
                    </tr>
                </table>

I got bored and completely redid my site.


http://bunpai.com

so what ya think?
it is about 85% done!

Q

1,237

(8 replies, posted in PunBB 1.2 show off)

first open ya main.tpl make copy of it.
replace all the code in side with the html from ya stuff
minus the php file.
then start adding the main tpl stuff to your main.tpl.
i use dreamweaver to edit live.

just install 3 forum on one site.
and link the forums to it... set all the forum to there own table but mod the user table to pull from the main one.

wazzz, look at the footer of the forum there is an extra image at the bottom.
u need to close that footer in the style i think..lol.

tomas that why i started moding punbb more and moving my css template and punbb intergrated more just beside the main.tpl look mod.
http://bunpai.com
is what im working on now.
i got the signup online stats and reg forum all in the html.

1,241

(11 replies, posted in PunBB 1.2 show off)

Eman, I started working on the site that i ask for a programmer to help with and get paid. i just used e107 and start moding it.
im about to work with adding punbb to it. there normal forum sux.
http://extremecombat.org
keep up the kewl coding.. still like ur site better.

Q

1,242

(8 replies, posted in PunBB 1.2 show off)

mode the main.tpl to make the forum fit inside the css template.
here some starter code

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

<!-- Wordpress Template CSS -->
<link rel="stylesheet" type="text/css" href="grass_stains.css" media="screen" />

<style type="text/css">
#brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
#punwrap {
    width: 680px;
    text-align: left;
    margin-top: 6px;
    margin-right: 0px;
    margin-bottom: 6px;
    margin-left: 0px;
    padding-right: 2px;
}
DIV.box {BORDER-COLOR: #CFD9BE; }
.pun H2, #brdmenu {BACKGROUND-COLOR: #fff; COLOR: #E39243; }
DIV.blockpost H2 {BACKGROUND-COLOR: #fff; }
#punwrap * { font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #CFD9BE; }
.pun { font-size: 11px !important; }
/*.box {
    width: 500px;
    margin-top: 12px;
    margin-right: -5px;
    margin-bottom: 12px;
    margin-left: 10px;
    border: solid 1px #999;
    color: #000;
    
}    
.inbox {
    width: 530px;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    border: solid 1px #999;
    color: #000;
*/    
}
</style>
<!-- Wordpress Template CSS -->

<!-- Mint 
<script src='/mint/mint.js.php' type='text/javascript' language='javascript'></script> 
 Mint -->

</head>
<body>

<!-- Wordpress Template Header -->
<div class="wrap clearfix">
    
  <div class="header"><strong>Bunpai:</strong> Punbb CMS</div>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<!-- Navigational Menu -->
<div class="topnav" id="nav">
  <ul>
  <li><a href="index.php">home</a></li>
    <li><a href="#">about</a></li>
    <li><a href="forum.php">forum</a></li>
    <li><a href="calendar.php">calendar</a></li>
    <li><a href="gallery.php">gallery</a></li>
    <li><a href="#">contact</a></li>
    <li><a href="classified.php">classified</a></li>
    <li><a href="chatbox.php">chatbox</a></li>
  </ul>
  </div>

    <!-- Wordpress Template Header -->
    <div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="clearer">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>
</div></div>
<!-- Wordpress Template Footer -->
<div class="footer" id="footer">
    <a href="index.php">home</a>  :  
    <a href="#">about</a>  :  
    <a href="forum.php">forum</a>  :  
    <a href="calendar.php">calendar</a>  :  
    <a href="gallery.php">gallery</a>  :  
    <a href="#">contact</a>  :  
    <a href="classified.php">classified</a>  :  
    <a href="chatbox.php">chatbox</a>
    </div>
</td></tr></table>
</div>
</body>
</html>

best thing to do is do the main.tpl

im completely integrating punbb into my css template.
moding files to make it look the way i want to integrate things ..
http://bunpai.com

here some old code from my site.

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

<!-- Wordpress Template CSS -->
<link rel="stylesheet" type="text/css" href="grass_stains.css" media="screen" />

<style type="text/css">
#brdtitle { display: none; }
#brdmenu  { padding-top: 0; }
#punwrap {
    width: 680px;
    text-align: left;
    margin-top: 6px;
    margin-right: 0px;
    margin-bottom: 6px;
    margin-left: 0px;
    padding-right: 2px;
}
DIV.box {BORDER-COLOR: #CFD9BE; }
.pun H2, #brdmenu {BACKGROUND-COLOR: #fff; COLOR: #E39243; }
DIV.blockpost H2 {BACKGROUND-COLOR: #fff; }
#punwrap * { font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; }
DIV.blockpost DIV.box {BORDER-COLOR: #CFD9BE; }
.pun { font-size: 11px !important; }
/*.box {
    width: 500px;
    margin-top: 12px;
    margin-right: -5px;
    margin-bottom: 12px;
    margin-left: 10px;
    border: solid 1px #999;
    color: #000;
    
}    
.inbox {
    width: 530px;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;
    border: solid 1px #999;
    color: #000;
*/    
}
</style>
<!-- Wordpress Template CSS -->

<!-- Mint 
<script src='/mint/mint.js.php' type='text/javascript' language='javascript'></script> 
 Mint -->

</head>
<body>

<!-- Wordpress Template Header -->
<div class="wrap clearfix">
    
  <div class="header"><strong>Bunpai:</strong> Punbb CMS</div>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td align="center">
<!-- Navigational Menu -->
<div class="topnav" id="nav">
  <ul>
  <li><a href="index.php">home</a></li>
    <li><a href="#">about</a></li>
    <li><a href="forum.php">forum</a></li>
    <li><a href="calendar.php">calendar</a></li>
    <li><a href="gallery.php">gallery</a></li>
    <li><a href="#">contact</a></li>
    <li><a href="classified.php">classified</a></li>
    <li><a href="chatbox.php">chatbox</a></li>
  </ul>
  </div>

    <!-- Wordpress Template Header -->
    <div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="clearer">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>
</div></div>
<!-- Wordpress Template Footer -->
<div class="footer" id="footer">
    <a href="index.php">home</a>  :  
    <a href="#">about</a>  :  
    <a href="forum.php">forum</a>  :  
    <a href="calendar.php">calendar</a>  :  
    <a href="gallery.php">gallery</a>  :  
    <a href="#">contact</a>  :  
    <a href="classified.php">classified</a>  :  
    <a href="chatbox.php">chatbox</a>
    </div>
</td></tr></table>
</div>
</body>
</html>

if ya need any of my code holla!

i just started this morning doing the moding..
eci talk is the flashchat

there a mod running around i think.. im working on a site right now.
http://bunpai.com
where i took a simple css template and started to mod punbb into it.
use test/test to log in .. i got flashchat working ..

nickfzx, so all the member register runs good with wordpress and coppermine and punbb?

$newsid = '1'; //This is the forum the news is retrieved from
$newsdisplay = '5'; //This is how many news articles are displayed.

change to

$newsid = '1'; //This is the forum the news is retrieved from
$newsdisplay = '10'; //This is how many news articles are displayed.

1,249

(6 replies, posted in Feature requests)

This is my main.tpl, what should I do sir? Should I erase the <pun_navlinks> and replace by these codes, in which folder should I put the sliced images.

This is my main.tpl, what should I do sir? Should I erase the <pun_navlinks> and replace by these codes, in which folder should I put the sliced images.

<!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>
</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>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>


Should I do it this way sir?


<!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>
</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>
        <html>
<head>
<title>navbar</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Preload Script (navbar.psd) -->
<script type="text/javascript">
<!--

function newImage(arg) {
    if (document.images) {
        rslt = new Image();
        rslt.src = arg;
        return rslt;
    }
}

function changeImages() {
    if (document.images && (preloadFlag == true)) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
            document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
        }
    }
}

var preloadFlag = false;
function preloadImages() {
    if (document.images) {
        home_over = newImage("images/home-over.gif");
        tech_over = newImage("images/tech-over.gif");
        support_over = newImage("images/support-over.gif");
        contact_over = newImage("images/contact-over.gif");
        forum_over = newImage("images/forum-over.gif");
        preloadFlag = true;
    }
}

// -->
</script>
<!-- End Preload Script -->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="preloadImages();">
<!-- ImageReady Slices (navbar.psd) -->
<table id="Table_01" width="760" height="111" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <img src="images/logo3.gif" width="273" height="46" alt=""></td>
        <td colspan="5">
            <img src="images/logo4.gif" width="487" height="46" alt=""></td>
    </tr>
    <tr>
        <td rowspan="2">
            <img src="images/logo.gif" width="273" height="65" alt=""></td>
        <td colspan="5">
            <img src="images/logo2.gif" width="487" height="41" alt=""></td>
    </tr>
    <tr>
        <td>
            <a href="#"
                onmouseover="changeImages('home', 'images/home-over.gif'); return true;"
                onmouseout="changeImages('home', 'images/home.gif'); return true;"
                onmousedown="changeImages('home', 'images/home-over.gif'); return true;"
                onmouseup="changeImages('home', 'images/home-over.gif'); return true;">
                <img name="home" src="images/home.gif" width="60" height="24" border="0" alt=""></a></td>
        <td>
            <a href="#"
                onmouseover="changeImages('tech', 'images/tech-over.gif'); return true;"
                onmouseout="changeImages('tech', 'images/tech.gif'); return true;"
                onmousedown="changeImages('tech', 'images/tech-over.gif'); return true;"
                onmouseup="changeImages('tech', 'images/tech-over.gif'); return true;">
                <img name="tech" src="images/tech.gif" width="139" height="24" border="0" alt=""></a></td>
        <td>
            <a href="#"
                onmouseover="changeImages('support', 'images/support-over.gif'); return true;"
                onmouseout="changeImages('support', 'images/support.gif'); return true;"
                onmousedown="changeImages('support', 'images/support-over.gif'); return true;"
                onmouseup="changeImages('support', 'images/support-over.gif'); return true;">
                <img name="support" src="images/support.gif" width="82" height="24" border="0" alt=""></a></td>
        <td>
            <a href="#"
                onmouseover="changeImages('contact', 'images/contact-over.gif'); return true;"
                onmouseout="changeImages('contact', 'images/contact.gif'); return true;"
                onmousedown="changeImages('contact', 'images/contact-over.gif'); return true;"
                onmouseup="changeImages('contact', 'images/contact-over.gif'); return true;">
                <img name="contact" src="images/contact.gif" width="72" height="24" border="0" alt=""></a></td>
        <td>
            <a href="#"
                onmouseover="changeImages('forum', 'images/forum-over.gif'); return true;"
                onmouseout="changeImages('forum', 'images/forum.gif'); return true;"
                onmousedown="changeImages('forum', 'images/forum-over.gif'); return true;"
                onmouseup="changeImages('forum', 'images/forum-over.gif'); return true;">
                <img name="forum" src="images/forum.gif" width="134" height="24" border="0" alt=""></a></td>
    </tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

Thanks again, your help is highly appreciated. more power guys.

much better elbekko?

how can i put the calendar events on my front page ?