snoogly wrote:

I am just setting up a board, and I am wondering now if I should host it on its own server. Currently it resides on my general purpose server.

How easy is it to migrate a forum to another server? What are the steps?

Pretty easy - copy the directory, fix the permissions, dump and restore the database...  with a little phpmyadmin, expect no more than an hour or two.


fwiw, have 50 invites...   feel free to e-mail me for one (whoever).

Connorhd wrote:

ok cool well what i've done is instead of given it a whole new section i've added an option to it wink

test version

slick smile

"or have last logged in before them." -> "or have last logged in before then." ?

not sure which is more clear / grammatically correct?


Connorhd wrote:

hey wiseage do you mind if i change it a bit and re-release mine with it in? (i'll give credit to you of course smile)

not at all - hack away - I really only added about 2 dozen lines to your original, credit isn't really nessasary smile

enjoy ~j


(3 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Well, that would work fine.
But if you're using a 1.2.x version, there's an admin plugin for that

Suggestion - adding delete users by last_login was XXX days ago to User Management plugin.

Participation/Implementation -

PLEASE PLEASE PLEASE test on a test database first.  I *think* I did it right, but PLEASE test first.

enjoy ~j

Connorhd wrote:

First of all i fully recommend you make a backup before using this plugin as although I have tested it there could either be problems or you could accidentally delete many of your users.

This mod provides two additional user management functions, user pruning which involves deleting users over a certain number of days old and with less than a number of posts. It also allows you to create users which is useful if you have cloed your forum from new registrations but wish to create users.

If you have any problems, comments, suggestions please tell me wink

Download - updated

Suggestion - adding delete users by last_login was XXX days ago. 

Participation/Implementation -

PLEASE PLEASE PLEASE test on a test database first.  I *think* I did it right, but PLEASE test first.

enjoy ~j


(3 replies, posted in PunBB 1.2 troubleshooting)

Smartys wrote:

Well, that would work fine.
But if you're using a 1.2.x version, there's an admin plugin for that

almost - it will cut users that havn't posted much and are old registrations...  due to my board, there are a lot of posts that are great reading and a much lower number of replies.  the users that have logins but don't post (and do regularly visit) I want to keep. 

So, i'll just go ahead and edit that plugin, extend it a bit, and post an update (probably back to Connorhd) when I'm done.  thanks for the link though - great place to start.



(8 replies, posted in Programming)

cows wrote:

ok i got this

this is only part of code but this is the onl part it is gaging on

$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_search['Downloads'];
$focus_element = array('search', 'keywords');
require PUN_ROOT.'header.php';

<div id="searchform" class="blockform">
<div id="vf" class="blocktable">
    <div class="box">
        <div class="inbox">
            <table cellspacing="0">
                    <th class="tca" scope="col"><p align="left">File</p></th>
                    <th class="tcl" scope="col">Description</th>
                    <td class="tca"><a href="link">test</a></td>
                    <td class="tcl">discription</td>

<div id="brdfooter" class="block">
    <h2><span>Board footer</span></h2>                           

require PUN_ROOT.'footer.php';

and i get this error … ror3jt.png

help please

require PUN_ROOT.'header.php';


require (PUN_ROOT.'header.php');  (same on footer)

might help - without seeing the whole script, and finding out what 'Line 10' is, hard to tell exactally what is up...



(3 replies, posted in PunBB 1.2 troubleshooting)

Hello -

I'm looking to prune my database a bit - here is the scenario

Approximatally 3 or 4 months ago I converted a phpNuke site to PunBB (woohoo).

With it came my 561 users (or so - that's todays count).

Since that time, all but 93 have at least visited back to the site (last_visit no longer set to 0 as it was on all users after the conversion)

I'd like to remove those users (none of them have posted anything, or have any messages waiting)...  I am curious though If i just do a nicely formed DELETE FROM statment (phpmyadmin all the way), am I going to mess up anything internally in punBB? Is this the correct way to do it?  Or does the remove function in the forum do more than this?

thanks much for any insight.


hcgtv wrote:

Thanks Jonathan, will add this to my wiki.

This topic would be a candidate for the integration forum.

If it's cool with you, I can move it over there.

works for me smile

And - part 2:

PHP Applications - punBB
Creatating A Portal Page

Category: PHP Applications - punBB
Level: Intermediate
OS: punBB 1.2.x
Created: 02/24/2005
Author: JTSage (wisesage)

Introduction: A editable example of a portal page.


  For my installation, I choose to run my portal from, and my forum from - All links reflect this.

News Feeds:

  1. Install Rickard's News Generator plugin first, and generate your first set of news. (Instructions are included with the mod)

Portal Index File:

Edit the following closely. is a wonderful HTML learning resource.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" xml:lang="en" >


  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta name="language" content="en-US" />
  <meta name="author" content="author" />
  <meta name="keywords" content="freebsd openbsd netbsd tutorial howto help" />
  <meta name="description" content="FreeBSD Addicts - Your FreeBSD Fix" />
  <meta name="robots" content="all" />


  <link rel="stylesheet" type="text/css" href="forum/style/AddictsDarkGrn.css" />


  <title>Your Title</title>


<div id="punwrap">
<div id="punindex" class="pun">

<div id="brdheader" class="block">
  <div class="box">

    <div id="brdtitle" class="inbox">
      <h1><span>Your Board Name</span></h1>
      <p><span>Board Description</span></p>
    <div id="brdmenu" class="inbox">
      <ul> <!--YOU MUST EDIT THESE-->
        <li id="navextra1"><a href="">Home</a></li>
        <li id="navindex"><a href="forum/index.php">Forum Index</a></li>
        <li id="navsearch"><a href="forum/search.php">Search</a></li>

<div id="idx1" class="blocktable" style="float: left; width: 180px;">
 <div class="newsbox">
  <p style="font-size: 1.3em;">Mission Statement</p>
 <div class="newsbox">
  <p>Some crap</p>
 <div class="newsbox">
  <p>Some more crap</p>

<div id="idx2" class="blocktable" style="margin-left: 190px;">
<h3 style="font-size: 1.5em;">Current News:</h3>
<? include("forum/plugins/AP_News_Generator/news.html") ?>



CSS File Edits:

Add the following to your DEFAULT css theme (referenced above)

DIV.newsbox { 
 border: 1px solid black; 
 background-color: #424242; 
 padding: 1em; 
 margin-bottom: 1.5em; }
DIV.newsbox h3 { 
 font-size: 1.3em; 
 font-weight: bold; 
 font-variant: small-caps; }

That's all there is to it - be sure to re-generate news when you add to the forum that holds your news items!


hcgtv wrote:

Very nicely done, if you get the chance a small how-to would come in handy for those wanting to do the same.

Great idea - part 1 of 2 - this one is to add a header image - the next will be a quickie on how I made the index / news page. (moving these may be appropriate? not entirely sure where they belong though)

PHP Applications - punBB
Adding a Header Image

Category: PHP Applications - punBB
Level: Beginner
OS: punBB 1.2.x
Created: 02/24/2005
Author: JTSage (wisesage)

Introduction: A quick and easy way to add a header image to the stock punBB styles/themes.


  1. Partial knowledge of the syntax of css documents

  2. Working knowledge of editing the files in your punBB installation

  3. A BACKUP of your current punBB style files

  4. A logo / header that you wish to use
    a. Typical sizes run around 450x80px - less than 10K
    b. GIF, JPEG or PNG (8bit) are acceptable choices


  1. Drop you header image file into your punBB installation  (I used PUNROOT/img/example.jpg)

  2. Edit the style file you wish to add (I used PUNROOT/style/Radium.css)
    a. Re-naming the style file is generally a good idea to prevent losing your changes during upgrades

  3. Add the following lines to the style file

#brdtitle { 
  background-image: url(/img/example.jpg); /* Replace with the name of your header image */
  background-repeat: no-repeat; 
  height: 80px; /* The HEIGHT of your header image */
  padding: 0; 
  margin: 0; }
#brdtitle span { display: none; }

4. Upload the new style file and check it out.  There is a reset mod availible to set all user's style selections back to whatever you choose - this may be useful.


Running nearly stock 1.2.1 - with the addition of the new PMS mod and some slight tweaking of the CSS.

Keep up the awsome work Rickard.



(200 replies, posted in General discussion)

Hmm - I'm lookin to drop a few invites.  If anybody needs one, send to jtsage - (at) - gmail - (dot) com.  I have around 45 right now.  Best to e-mail as I forget to check this forum pretty frequently.


(30 replies, posted in Feature requests)

Rickard wrote:

My Firefox sure doesn't fight I can force it into a new tab, but I can't make it not open in a new tab or window.

Yeah, my bad on how I wrote that.  What I meant to say is that sometimes it can be quite a challange to force it into another tab rather than having another window popup.  One of those moments again



(30 replies, posted in Feature requests)

fwiw - many power users that care to have everything open where they absolutly want it have migrated to a tabbed browser.  windows is not exactally the best window manager, and javascript usually fights tabbed browsing pretty hard (god bless you firefox)

just my $0.02

(as for dropping traget="_blank", here here!)



(38 replies, posted in PunBB 1.2 discussion)

SaDiKe wrote:

When used correctly, XHTML is lighter than HTML.

It's suggested to not use table anymore with XHTML for the global display of your site. You should use <div> for blocks(like a cell with HTML), lists(<ul> and <li>) for menus, the headers(h1, h2, h3...) for title and so on...

Of course, XHTML is maybe harder to understand than HTML, but when we know all its advantages, XHTML is better.

Just as an exemple, see at the code of my design here: . If you want, try to do the same thing just with HTML and tables.... I'm sure that you couldn't do lighter!

As a web designer, I use XHTML exclusivly at this point.  But, a few quick points :

XHTML does not equal DIV / Tableless


HTML does not equal INVALID & TABLES

truthfully, anything that can be accomplished in XHTML can be accomplished with nearly the same code in HTML.  the difference is that XHTML is XML, where as HTML is not.

why is this important?  Short answer, for many projects, initially, it really isn't.  It's a choice, the addition of the extra tags and slashes adds a nominal bit of overhead, if any.

BUT. If you have ever taken over a site from another designer, XHTML is wonderful.  Easier to read, because all the nesting MUST be done right for it to be valid.

Also, XHTML has the possibility of adding your own tags, with a custom doctype (so does HTML really, but it's more accepted to do this in XHTML).  things like <newsitem> or <red> could be used (before the semantics nazis sic the dogs on me, note that was a 'could' not 'should')

All that said, XHTML is going to be what people are moving towards, it is the so called 'furture'.

One thing I havn't mentioned is the application/xhtml+xml thing.  Note that as of XHTML 1 (not 1.1), XHTML documents SHOULD be served using this, not MUST.  This dosn't happen until XHTML 1.1 or XHTML 2 (not yet a full standard), and there are a number of PHP solutions to do just this.

I'd be more than happy to answer any specific questions about XHTML vs. HTML as I know em, just keep the followups coming smile

~just one web developers opinion - j