101

(19 replies, posted in General discussion)

http://www.mozilla.org/products/firefox/buttons/getfirefox_large3.png
Buttons are fun. I added one to the bottom of my PunBB, between the Jump to and the copyright. =)
Then for the heck of it, I added the quotes about Firefox too, since Joel's quote was what first convinced me to switch.

Edit: Screenshot (below)

If anyone wants the details, here's how you can modify your forums to add them:

CSpotkill's Mozilla Firefox Button PunBB Mini-Mod

1. Open footer.php and save a copy as footer.bak in case you make a mistake.

2. Search the file for "Powered by", it should be about three quarters down the page.

3. Copy the following:

<td style="text-align:right">
<a target="_blank" href="http://www.mozilla.org/products/firefox/" 
title="Get Firefox - Web Browsing Redefined">
<img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_large3.png" width="178"
height="60" border="0" alt="Get Firefox"></a>
</td>
<td style="text-align:left">
        <dl id="quotes">
        <dt>?<a target="_blank" href="http://www.mozillazine.org/talkback.html?article=4145">
                ...nothing short of a revelatory experience</a>.?</dt>
        <dd><em>- Maximum PC</em></dd>
        <dt>?<a target="_blank" href="http://forbes.com/infoimaging/2004/02/04/cx_ah_0204tentech.html">
                ...a breath of fresh air... Microsoft should be worried</a>.?</dt>
        <dd><em>- FORBES</em></dd></td>

4. Paste all the above code between the </td> and <td class="puntopright"> which should be located above the "Powered by" text.

5. Save footer.php and test it in Firefox ;)

Note: You may want to disable the Jump To box if your forum titles are very large.

alinear wrote:

The only 'hack' method I could think of that could get your true translucency/alpha channel would be to bring PNG8/24 images exported from Macromedia Fireworks ... and put them in a Flash movie. Then -- only for Internet Explorer and I believe only on PC -- you can embed the flash movie on your page with the background property set to 'transparent'.

To clarify, forget Flash and Fireworks. Just use this workaround provided by Internet Explorer Alpha filters, as explained on HowToCreate.co.uk and first posted somewhere in the discuss section of an alistapart article.

If you're thinking of something like the complexspiral demo, the all CSS approach used will not work in Internet Explorer, as explained on that page. However, using an alpha transparent background image instead of a background transparency CSS property would work around it, with the IE filters explained above.

103

(18 replies, posted in PunBB 1.2 troubleshooting)

Guys, please. RTFM ;)

Specifically, look at the code sample and you'll realise why it doesn't work:

PHP Manual on Include():

If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using a URL (via HTTP or other supported wrapper - see Appendix J for a list of protocols) instead of a local pathname. If the target server interprets the target file as PHP code, variables may be passed to the included file using a URL request string as used with HTTP GET. This is not strictly speaking the same thing as including the file and having it inherit the parent file's variable scope; the script is actually being run on the remote server and the result is then being included into the local script.

Warning
Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if allow_url_fopen is enabled.

<?php

/* This example assumes that www.example.com is configured to parse .php
 * files and not .txt files. Also, 'Works' here means that the variables
 * $foo and $bar are available within the included file. */

// Won't work; file.txt wasn't handled by www.example.com as PHP
include 'http://www.example.com/file.txt?foo=1&bar=2';

// Won't work; looks for a file named 'file.php?foo=1&bar=2' on the
// local filesystem.
include 'file.php?foo=1&bar=2';

// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';

$foo = 1;
$bar = 2;
include 'file.txt';  // Works.
include 'file.php';  // Works.

?> 

Definitely read that entire page, just to make sure you haven't missed anything.

Next time, test it first Rickard! ;)

Spot.

I just noticed something ... Why are you using host.com, Rickard?

I'm being picky here, but you should use example.com instead, that's what it's there for ;)

From inside extern.php:

  Here are some examples using PHP include().

    Show the 15 most recently active topics from all forums:
    include('http://host.com/forums/extern.php?action=active');

    Show the 10 newest topics from forum with ID=5:
    include('http://host.com/forums/extern.php?action=new&show=10&fid=5');

    Show users online:
    include('http://host.com/forums/extern.php?action=online');

    Show board statistics:
    include('http://host.com/forums/extern.php?action=stats');

  Here are some examples using SSI.

    Show the 5 newest topics from forum with ID=11:
    <!--#include virtual="forums/extern.php?action=new&show=5&fid=11" -->

    Show board statistics:
    <!--#include virtual="forums/extern.php?action=stats" -->

  And finally some examples using extern.php to output an RSS 0.91
  feed.

    Output the 15 most recently active topics:
    http://host.com/extern.php?action=active&type=RSS

    Output the 15 newest topics from forum with ID=2:
    http://host.com/extern.php?action=activ … &fid=2

  Below you will find some variables you can edit to tailor the
  scripts behaviour to your needs.

And perhaps you should add a small FAQ with any solutions from the Extern.php Problems thread

105

(93 replies, posted in PunBB 1.2 discussion)

Paul wrote:

I must be going blind. I can't see where you are going to get the header row (the blue row in Oxygen) from. Don't you need another list with just the column headers

Forum           Topics Posts    Last Post      Moderators

Yes, I could, but I won't. Instead, to avoid the clutter, I'll take them from different parts of the page: For example the "Forum" is from "Forums:" and Topics/Posts/Last Post/Moderators will be from the first forum entry's invisible headings. ;)

With this method, it would be easy to repeat the heading area, just by using the CSS while giving a clean appearance to Lynx and older Internet Explorer, Netscape and Opera browsers.

Chacmool wrote:

Is it easier to make the whole page "html only" and then add the CSS, or making it part by part as you want it with CSS? (I know it's probably different for different coders, but anyway :))

Yes, everyone has their own way, though personally I find it easier to explore and play when I make it up as I go along, this style is perfect for a website where you have complete creative freedom, like a personal website or blog.

If however you have an idea of what you want, or are re-creating a design, like this, it's far easier to start with the HTML from scratch then work in IDs, Classes, DIVs and SPANs as you style it with CSS. Of course, having the HTML first means you should already have an idea of what you want on the page. If you've no clue, just insert some Lipsum and keep on styling the CSS, perhaps to match a design in Photoshop or Illustrator.

Try both and see what you like. I think you'll find that having the HTML done first will let you code the CSS clearly and efficiently, knowing exactly where problems may occur and creating more elegant code. The extra time invested in creating the HTML will help give you a solid overview of the entire webpage and perhaps even shortcuts to get your work done faster.

I think it's smarter to use HTML first ... I just sometimes get so caught up in an idea that I don't though (like on pages 2-3) ...

106

(93 replies, posted in PunBB 1.2 discussion)

I've worked on some basic text formatting, with relative em units. With this CSS, it will be possible to resize the text and eventually, the entire design, in Internet Explorer for Windows. This is similar to the Elastic Lawn design at CSS Zen Garden.

Here's the styled version: index.html
Here's the original: unstyled.html

Outside of adding the <link> for the stylesheet, I didn't do a thing to the HTML.

Here's all the CSS I needed:

body { font-size: 65%; font-family: Verdana, Arial, Helvetica, sans-serif; margin: 10px }
a { text-decoration: none }

h1, h2, h3, h4, p { margin: 0; font-weight: bold }
h2, h3, p { font-size: 1em; font-weight: normal }
h1 { font-size: 1.45em }
h4 { font-size: 1.2em }
p  { clear: both }

.navigation, .forums, .forums li ul, .forums li ul li ul, ul { list-style-type: none; margin: 0; padding: 0 }
.navigation li { margin: 0; padding: 0 0.6em; height: 1em; float: left; border-right: 1px solid #000 }
.navigation li a { position: relative; top: -0.2em }

It looks rough and it's all left aligned, because my next step is to break apart the .forums as a list and align it as if it were a table. I'll probably use span tags to hide the Topics: and Posts: headings, since when I added more semantically-correct h5 tags, it didn't look as nice in Lynx or IE3. It's not much of a difference anyway.

107

(35 replies, posted in PunBB 1.2 show off)

Bradyn wrote:

Complete and utter geekism.

Thanks, I consider myself a Geek with Style ;)

As for including the forum information, JohnS, read the following, specifically after the bold line.

From inside extern.php:

  INSTRUCTIONS

  This script is used to include information about your board from
  pages outside the forums and to syndicate news about recent
  discussions via RSS. The script can display a list of recent
  discussions (sorted by post time or last post time), a list of
  active users or a collection of general board statistics. The
  script can be called directly via an URL (for RSS), from a PHP
  include command or through the use of Server Side Includes (SSI).

  The scripts behaviour is controlled via variables supplied in the
  URL to the script. The different variables are: action (what to
  output), show (how many topics to display), forum (the ID of the
  forum to poll for topics) and type (output as HTML or RSS). The
  only mandatory variable is action. Possible/default values are:

    action: active (show most recently active topics) (HTML or RSS)
            new (show newest topics) (HTML or RSS)
            online (show users online) (HTML)
            stats (show board statistics) (HTML)

    show:   Any integer value between 1 and 50. This variables is
            ignored for RSS output. The default is 15.

    fid:    A forum ID. If ignored, topics from all guest-readable
            forums will be polled.

    type:   RSS. Anything else means HTML output.

  Here are some examples using PHP include().

    Show the 15 most recently active topics from all forums:
    include('http://host.com/forums/extern.php?action=active');

    Show the 10 newest topics from forum with ID=5:
    include('http://host.com/forums/extern.php?action=new&show=10&fid=5');

    Show users online:
    include('http://host.com/forums/extern.php?action=online');

    Show board statistics:
    include('http://host.com/forums/extern.php?action=stats');

  Here are some examples using SSI.

    Show the 5 newest topics from forum with ID=11:
    <!--#include virtual="forums/extern.php?action=new&show=5&fid=11" -->

    Show board statistics:
    <!--#include virtual="forums/extern.php?action=stats" -->

  And finally some examples using extern.php to output an RSS 0.91
  feed.

    Output the 15 most recently active topics:
    http://host.com/extern.php?action=active&type=RSS

    Output the 15 newest topics from forum with ID=2:
    http://host.com/extern.php?action=activ … &fid=2

  Below you will find some variables you can edit to tailor the
  scripts behaviour to your needs.

108

(93 replies, posted in PunBB 1.2 discussion)

Paul wrote:

Nice. ... I keep adding divs to block bits of the page together to make it easy to use borders and background-color.

Yes, that's the trouble, it's give and take: Should I add extra markup, thereby making the HTML more complex, or work with less markup, thereby making the CSS more complex? ;)

I just changed the encoding to UTF-8 now, to support the name and description of the second International forum listed.

109

(93 replies, posted in PunBB 1.2 discussion)

Okay, I've started fresh, beginning with the basic HTML for the main page.

What do you think?

Where possible, I tried to use the most semantic markup, while also making sure it made sense in Lynx. Compared to the existing page, the new HTML posted above is much easier to understand inside lynx: See for yourself by downloading Linx for Windows.

It still has a lot to go, but I think it's a good start. I haven't forgotten viewtopic either, but I felt like starting fresh on a different page.

Spot / Louis

110

(93 replies, posted in PunBB 1.2 discussion)

Paul wrote:

... if it's a list would that give people the option of having it stepped YABB style
   >your are here
        > now here
             >and even here.

Yes, good point. With the exception of IE, we could even remove the ">"s from the list items and use CSS to give ">"s at the beginning.

111

(35 replies, posted in PunBB 1.2 show off)

Paul Marsland wrote:
Louis wrote:

Ahhh. All the tables and font tags! <faints sound="thud" />

...We will be separating the php from the html in due course ...

No, I meant you should use Web Standards. Also, see this thread.

It's not too big a deal though ;)

112

(17 replies, posted in Feature requests)

Frank H wrote:
Louis wrote:

... The easiest way would be to split the thread and link the two together ...

and to further complicate it you can have a bunch of messages, that belong to the first thread nestled into the later part of the thread ...

I meant to say, "move the related posts to the second topic ... then link the two together ..."

Even with an FAQ topic, it still leaves the original topics cluttered and doesn't allow people to reply with comments, basically defeating the purpose of using forums for a support area. Also, there would not need to be extra overhead maintaining an FAQ topic ...

1. PunBB is on the first page of PHP Discussion Boards at position #9 and 2. it's highly-rated ...

114

(16 replies, posted in Feature requests)

Louis wrote:

Or for topic ACLs, you could create a PunBB-based Weblog or News/Announcements area and let people reply on only some of the topics, where it would make sense to reply. It's a common blog feature to "disable comments".

Edited my post above. Besides, if we're changing much of PunBB for CSS, it would make sense to do larger security related changes around that time as well ;)

115

(16 replies, posted in Feature requests)

I think using an ACL-style of permissions management makes sense, since admins will be used to it.

The reasoning for advanced groupings / ACLs are that suddenly, PunBB can be more than a forum, you could use it for a gaming clan website, where you don't give your clan members moderator status, but they can still view a regularly hidden "Clan members only" forum.

Or for topic ACLs, you could create a PunBB-based Weblog or News/Announcements area and let people reply on only some of the topics, where it would make sense to reply. It's a common blog feature to "disable comments".

Plus, if you didn't trust newer members, instead of giving them full moderator status, you could granularly control the amount you trust them ...

I don't know, maybe I'm just being picky, but I feel something like this is necessary. I can see how using an ACL could make it more complex, sure, but how much would it really slow down PunBB?

116

(16 replies, posted in Feature requests)

Rickard wrote:

... a feature such as topic level access control is out of the question.

Not even as an extension that you can enable inside the Control Panel if you want it? ;)

117

(17 replies, posted in Feature requests)

For discussions, I can understand that -- but what about a Help forum, where you want users to have a clear idea of how to solve any specific problem, yet one problem transforms to another problem, mid-thread. How would anyone else find out about the second problem? The easiest way would be to split the thread and link the two together: then if someone has a problem and needs to look up the second thread they can do so. It just keeps things clean and organized.

118

(16 replies, posted in Feature requests)

(Chacmool`11th) http://www.etek.chalmers.se/~e0mool/pun … Access.png <-- ACL-style?
(Chacmool`11th) http://www.etek.chalmers.se/~e0mool/pun … Groups.png
(Chacmool`11th) http://www.etek.chalmers.se/~e0mool/pun … /Users.png
(Louis-CSpotkill) Access.png: hmm sort of ...
(Louis-CSpotkill) But I was thinking of making it *look* like in my screenshot too. Like having a list-control to select the user/group and the ability to add users/groups to the list-control, then by clicking a user/group it changes the bottom class to reflect the group's permissions.
(Louis-CSpotkill) ... and of having more granular control of the actions users and groups can perform inside that forum/thread ... as opposed to just who can access what forum
(Louis-CSpotkill) As for the Groups.png / Users.png, it's too cluttered and hard to understand ...
(Chacmool`11th) It's not that easy to have it all on one page as in windows (without using java).
(Louis-CSpotkill) Actually, it would be. You just display it all on one page, then use CSS to show-hide the permissions. The Add/Remove groups button would show a popup then reload the page, adding or removing the permissions for whichever user was added/removed.
(Louis-CSpotkill) You *might* need some JavaScript/ECMAScript for the select-name/change-CSS ...
(Chacmool`11th) Don't like popups =)
(Louis-CSpotkill) Not a true popup
(Louis-CSpotkill) a Cancel/OK window of some kind
(Chacmool`11th) Ahh, okay =)
(Louis-CSpotkill) we could even use CSS for it, yet again ;)
(Louis-CSpotkill) CSS is wonderful =D
(Chacmool`11th) True =)
(Chacmool`11th) ...still much to learn though =)

Aren't signatures wonderful? They save me from typing it out each time, anyway. =D

Edit: Wouldn't make sense now. I was joking about off topic posts ;)

Chacmool wrote:

Edit: Every thread seems to end up in some kind of CSS-discussion nowadays ;)

*innocent look* Wasn't me ;)

Chacmool wrote:
Louis wrote:

This new off-topic post I'm writing right now would be another good reason for a Moderate Topic feature ;)

Hehe, after enough times maybe Richard will implement it right away ;D

My thoughts exactly =p

122

(35 replies, posted in PunBB 1.2 show off)

Ahhh. All the tables and font tags! <faints sound="thud" />

This new off-topic post I'm writing right now would be another good reason for a Moderate Topic feature wink

124

(3 replies, posted in PunBB 1.2 troubleshooting)

Rickard wrote:

If you get an error stating that you were referred to a page from an unauthorized source the problem is most certainly one of the following:

1. 'Base URL' in Admin/Options is not correctly set.
2. You are not visiting the forum by navigating to the URL entered in 'Base URL'. You must visit the forum by entering the 'Base URL' in the address bar of your browser. If 'Base URL' is http://a.b.c, you must enter that in the address bar (not http://localhost or http://192.168.0.15).
3. You are browsing the forum through a proxy or firewall of some sort that is stripping HTTP_REFERER from all requests. Norton Personal Firewall is the only one I know of so far that strips HTTP_REFERER by default. Popup/ad stoppers are also known to do this in some cases (most of them don't though).

The error should only occur for moderators and administrators. The reason for the error is that PunBB, upon receiving form data, checks from where the data was submitted and if that page doesn't match 'Base URL' + the name of the correct script, it won't allow it. The check is there for a very good reason, trust me :-)

See http://punbb.org/forums/viewtopic.php?id=2295

This is the wrong forum for support posts. Next time try Troubleshooting, where you'd see "INFO: Bad referer" at the top of the page, the thread I quoted from and linked to above.

But thanks for using PunBB ;)

Louis.

125

(6 replies, posted in General discussion)

Joey wrote:

I'll take my own life now to balance out the system

Ugh. Don't joke about that =D