2,826

(93 replies, posted in PunBB 1.2 discussion)

CSpotkill. Several posts ago you indicated that you were not going to use Divs.

2,827

(93 replies, posted in PunBB 1.2 discussion)

I don't understand the reference to tables. Tables are perfectly valid XHTML and comply with all the standards provided they are used in a semantically correct way i.e. for outputting tabular data rather than as a layout framework. There is also no conflict between using tables and CSS. PunBB uses CSS to set the properties for tables. In fact, if you replaced all the tables with divs this would not be correct as much of the output is tabular data from a database and divs are not the sematically correct markup for such output, tables are.

2,828

(4 replies, posted in PunBB 1.2 troubleshooting)

Kennel wrote:

Edit the template files in include/template/. You could add a div around all the forum content. Insert the following after "<body<pun_body>>":

<div style="width: 800px; margin: auto">

And then the following before "</body>

</div>

Only problem is that doesn't work in IE5 because that horrid old browser can't cope with margin:auto so the whole board ends up aligned left. This is the way I do it.

Open the file main.tpl. After the <body> tag put <div id="wrapper">. Go to the end of the file and above the </body> tag put </div>.

Now open the stylesheet. Edit Body so it looks like this

BODY {
background-color: #FFFFFF;
margin: 20px 0px; padding: 0px;
/*Hack to centre board in IE5 - combined with #wrapper below */
text-align: center;
}

Change background-color to whatever is right for your board/style.


Add the following after BODY

#wrapper {
/* Re-Aligns text to left. To be combined with IE centre hack*/
text-align: left;
width: 95%;
margin: 0px auto;
}

Repeat for each of the stylesheets. The end result is your board will have a width of 95% of the screen and be centred. The top and bottom margins are set at 20px. Just adjust width: and margin: to suit. If you want to make the board a fixed width simply set the width: in #wrapper to an appropriate px value instead of a percentage.

There are other ways of doing this but this method is probably the safest and also eliminates some positioning bugs in browsers. If you want to avoid changing the stylesheet then edit main.tpl so it looks like this

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>">
<pun_head>
</head>
<body<pun_body> style="margin: 20px auto; padding: 0px; text-align:center;">
<div style="width: 95%; text-align:left; margin:0px auto;">

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr class="punhead">
        <td class="punhead">
            <span class="puntitle"><pun_title></span><br>
            <pun_desc>
        </td>
    </tr>
    <tr>
        <td class="puncon1">
            <pun_navlinks><br><br>
            <pun_status>
        </td>
    </tr>
</table>

<pun_announcement>

<pun_main>

<pun_footer>
</div>
</body>
</html>

2,829

(20 replies, posted in PunBB 1.2 discussion)

Punperfect (so far) smile - Clean install not upgrade.

The revised and updated skinning guide will be available soon. I will include information for versions 1.01 and 1.1 of PunBB so the old version of the skinning guide can be scrapped completely.

2,830

(87 replies, posted in PunBB 1.2 discussion)

A more useful mod for large sites might be a post filter which is quite a common on other boards. It simply consists of a dropdown menu which enables you to select to view only new posts, one day old posts, one week old posts etc with the default being show all posts. Additionally it could be configured to show only threads where there had been a post within a certain period of time. It shouldn't be too difficult since it is really just a case of a providing a range of database queries which can be selected by the user. The end result is a filtered view of the board rather than having all new posts from several threads and forums in one list.

Latest developments. I decided that trying to come up with a single class which also covered the main navigation was not a good idea so I have come up with a separate system for main navigation.

Take a look here
http://post21.co.uk/forum

I rewrote the function in common.php which generates the navbar and added the appropriate styles to the stylesheet. The navbar can either be configured to look like buttons or like a solid navigation menu. I can be positioned anywhere (with a bit of fiddling) and can even be stacked vertically if required.

Based on code by Jeffrey Zeldman/Listamatic.

Now back to sorting the buttons out.

2,832

(12 replies, posted in PunBB 1.2 discussion)

Kennel wrote:

JoeWesthead wrote:

-I log in, and it says "Logged In Successfully, redirecting...", but then I still won't be logged in. Why?

Isn't that the same as question 3 above?

Couldn't that happen with any browser if you had cookies turned off or if you were using a cookie killer of some kind?

2,833

(87 replies, posted in PunBB 1.2 discussion)

It's Puntastic. It's Punpostponed.

Kennel wrote:
[Maybe I should add a CSS class to links that are usually buttons in other forums?

Maybe on the "Post new topic" and "Post reply" links so they could be styled to stand out more from general links. Otherwise I think I would leave things as they are.

Kennel wrote:

I really like it and I can imagine a lot of people will install such a "mod".

I wasn't sure whether to label this as modding or skinning. In the end I decided it came under the category of skinning because it is purely cosmetic. I will post the stylesheet alterations and some instructions as soon  as v1.1 is  released.

JoeWesthead wrote:

Not bad smile

Colours are...for an acquired taste, but as a concept its good

The colours are irrelevant, its only a test. The idea is that everbody can modify the colours, sizes borders etc to suit their own board.

I am been playing around with the stylesheet trying to come up with some buttons for PunBB just using CSS, no graphics. The aim was to come up with a class which could be attached to an <a> tag , would accomodate different font sizes and different numbers of characters. That was the easy bit. The hard bit was getting it to look similar in all browsers (anybody still using IE5 should be shot - its a real dog).

If you are interested, take a look at
http://www.post21.co.uk/forum
Could you make sure you hit the link to the first forum as there are a couple of additional styles on the next page.

I have been able to test in IE5(win), IE5.5(win), IE6(win), Opera 7, Mozilla 1.4 and Firebird 0.7. I anybody out there is using IE5(Mac) would they please have a look. Similarly, anybody using Linux. The only reasonably modern browser which I know is likely to have problems is Opera 6.

If people are interested in this sort of thing I will post the stylesheet changes and instructions. The buttons can be styled to have a 3D effect and mimic push buttons.

2,838

(87 replies, posted in PunBB 1.2 discussion)

Let him get some sleep. Poor guy has an instruction manual to write in 39 different languages smile

chacmool wrote:

Don't forget to set PUN_DONT_UPDATE_COOKIE when you login from a page "outside" punbb. Otherwise the new-posts-thing wont work.

If I do that will the login still work with people who don't have an existing cookie?

2,840

(7 replies, posted in Feature requests)

Would it not be better to assign a class e.g. .punspacer to the <table> tag then you could control all aspects of the spacer, table tr td,  via the stylsheet.

I am looking to build an integrated site which will include PunBB and where other parts of the site will also require users to be logged in. I was thinking of simply using PunBB's membership system which would be linked from the front page of the site and would return users to whichever page they had come from. Other parts of the site restricted to members would then simply check for the PunBB cookie. Would that work or is it too simplistic. Is there a better way of doing it?

2,842

(10 replies, posted in PunBB 1.2 discussion)

I am getting this error message though the page displays OK

Parse error: parse error, expecting `')'' in /www/root/punres/include/common.php on line 26

[EDIT]

Forget it, it seems to have gone now.

Cricket = a group of middle class English guys failing to hit/throw/catch a ball with any measureable degree of accuracy.

2,844

(2 replies, posted in PunBB 1.2 troubleshooting)

Are your users deleting their cookies between visits. I just had a feeling that the last visit information is in the cookie. I could be wrong though.

It's not asking you for the database prefix, its asking for the database name. According to the code you posted you seem to have left this blank.

Meilad wrote:

cmon cmon some help please smile

What do you expect, most people here are in Europe and its 3am smile Just your luck that the only insomniac around can't answer your question.

OK. Now I'm awake. Don't you have to specify the name of the database you are trying to connect to? E.g. $MYSQL_DATABASE = 'mypunbb'; or whatever.

2,847

(23 replies, posted in PunBB 1.2 discussion)

As long as the stuff in brackets stays together then it will look OK. I was worried you could end up with

Long post title going on here [New
posts ] [1 2 3]

2,848

(23 replies, posted in PunBB 1.2 discussion)

Looking good. Option 4 in reverse if I'm not mistaken. One question now you have it set up; does it wrap to the next line neatly?

2,849

(23 replies, posted in PunBB 1.2 discussion)

Kennel wrote:

ps21: Displaying the number of new posts in each forum would involve running one extra query per forum (or maybe just one extra all together). I'm not sure such a feature warrants the performance hit it can incur.

Good point. I tend to look at design first and code second. This explains why I am always dissapointed with something I have designed on my local machine when I see it running on a remote server. Mind you I have seen plenty of commercial scripts where the designers fell into the same trap.

2,850

(23 replies, posted in PunBB 1.2 discussion)

JoeWesthead wrote:
I think using the graphic is the best idea. Just put the hover-over text in to say what clicking the link does.

Actually, I think I agree but for some reason our host and designer in chief doesn't so I was trying to come up with an alternative.

P.S. Joe, in anticipation of you replying to this, congratulations on achieving Senior Member status smile