2,676

(5 replies, posted in PunBB 1.2 discussion)

Open up the stylesheets (oxygen.css, sulfur.css etc). Wherever you see font or font-size with 10px 11px etc just increase it to whatever you want. Remember you should do it for all the style sheets.

I think you'll find that most people do it the other way round i.e. they use PunBB's membership system to create a site wide login system. That way you can login to PunBB from anywhere on your site and use it to protect parts of your site. I haven't seen anything that will do what you want.

2,678

(14 replies, posted in PunBB 1.2 discussion)

Nice except your forum is giving me the brush off

An error was encountered
File: /home/cactuz/forum/viewtopic.php
Line: 242

PunBB reported: Unable to fetch post info
Database reported: Unknown column 'u.active' in 'field list' (Errno: 1054)

2,679

(23 replies, posted in PunBB 1.2 troubleshooting)

One thing I noticed, and I don't know if it means anything. DOT produces a cookie which is @forum.dutcholsentwins.com. Is this treated as the same domain as @dutcholsentwins.com. The reason I ask is that PunBB's cookie is @punbb.org even though the url is forums.punbb.org.

I think he means that PunBB will be integrated into web pages that are already protected by the sites own membership system. That being the case anybody who gets to PunBB must already be a member of the site so PunBB should automatically treat them as logged in members or admins as appropriate.

As for the skins, just delete the unwanted .css files and the skins are gone.

The forum root directory is the folder where you put the PunBB files. Lets say for example the directory you are serving your web pages from is C:\apache\www. You would access this in your browser by typing http://localhost. To install punbb you would create a subdirectory for example C:\apache\www\myforum. After you unzip PunBB you should see a folder "upload". Copy all the files and folders from upload to C:\apache\www\myforum. This is now your PunBb root directory. To run the install script you just open your browser and type http://localhost/myforum/install.php.

The above instructions do of course have to be modified if you are running IIS rather than Apache or of course if you are running Linux but I'm sure you get the idea. You also have to create an empty mysql database before running install. You can call the database anything you like. PunBB will create all the necessary tables for you during the install.

2,682

(27 replies, posted in PunBB 1.2 troubleshooting)

I tried and failed to do this with PHP v4.32. Someone told me that parameters couldn't be passed to include files like this because the "?action=active" part just gets treated as part of the filename which results in the same errors being experienced here.

Slightly off topic but related, heres the table structure for footer.php minus the nested table (php removed)

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr>
        <td class="puncon2 puntop">
            (dropdown forum jump)
        </td>
        <td class="puncon2 puntopright">
            Powered by <a target="_blank" href="http://punbb.org/">PunBB</a><br>
            Version: <?php echo $pun_config['o_cur_version'] ?><br>
            © Copyright 2002-2004 Rickard Andersson
        </td>
    </tr>
</table>

Exactly the same thing can be done with the user options box at the bottom of index.php.

One table, two columns and the inner table gone.

<table class="punmain" cellspacing="1" cellpadding="4">
    <tr class="punhead">
        <td class="punhead" style="width: 185px; white-space: nowrap"><?php echo $lang_common['Author'] ?></td>
        <td class="punhead" style="white-space: nowrap">
            <div style="width: 20%; float:left"><?php echo $lang_common['Message'] ?></div>
            <div style="float:left"><?php echo $lang_common['Pages'].': '.$pages ?></div>
        </td>
    </tr>
</table>

I don't run into this problem too often because I tend to use an altered version of PunBB which doesn't use cellpadding or cellspacing for borders. It also doesn't use styling on the <tr> tags which are mostly redundant and has only 1 nested table. It does however use a lot of multiple classes on the same element though that is actaully supported by all modern browsers.

In this case if you put the background colour on TD.punhead you can eliminate TR.punhead alltogether. Or, if you realy want to start optimizing things then there are always descendant selectors. Put an id on the TR tag of puntableheader, remover all references to punhead, declare a selector TR#puntableheader td {} with the background and colour settings to suit. You can now remove all references to punhead from the table header <tr> and <td> tags on all pages, replace punheadcent with puncent and delete class TD.punheadcent.

Just out of interest would the new sqlite functionality be of particular interest to this kind of setup. I have it mind that somebody with their own machine can always install the latest version of php and not have to bother with mysql. If they use IIS then that only leaves php to install.

2,686

(20 replies, posted in Feature requests)

azh wrote:

Paul: i use subscription like bookmarks for useful topics

I never thought of doing that. If thats how people are using subscribtions then being able to produce a quick list showing all of them starts to look like a very useful feature.

2,687

(20 replies, posted in Feature requests)

Rickard wrote:

Paul: I kind of like that idea. However, I'm not sure adding the link to the page footer is such a good idea.

I don't suppose it would matter where the link went. The idea was basically to use the existing search functionality so the only extra code would be the query which generates the results. The other obvious place for it as azh suggested would be under the "Show all posts" item in the profile.

No. You are right. Stay tuned I think I may have the answer.

[EDIT]

Tried and failed. The only way to do it with no extra styles is to put punhead in both.

If it were upto me I would have "Pages" the same colour as "Message" in which case the inner table could be eliminated altogether. Incidentally, "Pages" is virtually invisible in the sulfar style, at least to my old eyes.

2,689

(20 replies, posted in Feature requests)

I have to own up, I don't use subscriptions; I just like trying to come up with easy solutions for what to me are hypothetical problems (also known as stirring). In fact I don't use Avatars, smilies or signatures either. A case for PunBB-- maybe.

2,690

(23 replies, posted in PunBB 1.2 troubleshooting)

Could this have anything to do with there being two forums installed for different languages sharing a common membership and presumably a common cookie?

I have just checked my cookie_domain on my own PC and on a remote server. In both cases my settings are the same as yours.

2,691

(8 replies, posted in Programming)

Rickard wrote:

Yes, the body tag should be:

<body> <pun_body>>

Have you not just made the same error as Weccop? main.tpl has it as <body<pun_body>>

2,692

(20 replies, posted in Feature requests)

azh wrote:
Paul wrote:

A primitive solution but couldn't you just add a "Show subscribed" search. You could then jump from the search result page to a subscribed topic, unsubscribe and then jump back to the search results page. Not a true management system but at least you get a list of all subscribed topics as an aid to memory and navigation. If you couple this with an unsubscribe all option that should make life a little easier

wow, really good idea...
one field in profile, like "Show all posts"

I was thinking more of an extra link "Show your subscribtions at the foot of the page after the "Show your posts" link. The unscribe all function could just be a button added to the search results page which only shows up when viewing suscriptions.

2,693

(8 replies, posted in Programming)

If you look at the first version the body tag is marked up incorrectly. You have <body><pun_body>>. Surely it should be <body <pun_body>>
In other words you had <pun_body> outside the <body> tag rather than inside it. I don't know whether or not that would cause the problem. Even though the second version works, does the first field on pages using forms have focus?

2,694

(20 replies, posted in Feature requests)

A primitive solution but couldn't you just add a "Show subscribed" search. You could then jump from the search result page to a subscribed topic, unsubscribe and then jump back to the search results page. Not a true management system but at least you get a list of all subscribed topics as an aid to memory and navigation. If you couple this with an unsubscribe all option that should make life a little easier

2,695

(23 replies, posted in PunBB 1.2 troubleshooting)

Don't you have to join strings to variables i.e. you can't just dump a variable in the middle of a string.

("hello, ".$cur_user['username'].", welcome to our fourms!");

My code is probably wrong but I think that is the problem and somebody will no doubt correct my coding efforts.

[EDIT]

Rickard must have replied while I was composing this. At least it's nice to know I got the code right.

Even better tonight was the woman who received an item of furtniture as an inheritance without having a clue what she was getting. It was valued at £100,000.00

Great minds clearly think alike. In my case I am cloning the new IPB2 alpha and trying to stick to just CSS plus a couple of hacks to main.tpl.

2,698

(39 replies, posted in General discussion)

And the advanced tab extension so you get close buttons on individual tabs etc.

MarcB: If you want to toggle the history pane on and off like IE then just customise the toolbar to include the history button.

2,699

(8 replies, posted in PunBB 1.2 troubleshooting)

Won't those methods add the link to the navbar. I thought basalphenaar wanted to add a home link to the far right of the header like on this board.

2,700

(39 replies, posted in General discussion)

Take a look
http://www.post21.co.uk/punfire.gif