There's a JavaScript error on the User list page here (http://punbb.org/forums/userlist.php).

Firefox's JavaScript Console returns...
Error: document.getElementById("userlist") has no properties

The onload event in the body tag is looking for id="userlist", but the username input doesn't have a defined id attribute.

52

(8 replies, posted in PunBB 1.2 discussion)

I'm going to make a JavaScript add-on that manages this for PunBB 1.2. It will be a something that people can add to PunBB's main template if they like. I should be able to start on it after Dec. 20th. Other people have discussed similar ideas under the New message indicators topic.

53

(8 replies, posted in PunBB 1.2 show off)

That's a good site. I was curious enough to read for a bit - using Google's translator...
http://www.fantasya.net (via Google)

54

(35 replies, posted in Feature requests)

Paul wrote:

I don't think there is a copy on public view but that is the only change which is relevant to what you are doing.

I'd really need to see the full markup of the pages before I could make a working version of the script.

If an instance of this updated beta were public, just briefly, I could save static copies of the needed pages and work with them instead of a live forum. If someone is up for this, feel free to IM me--if not, I can wait.

55

(35 replies, posted in Feature requests)

Paul wrote:

That should make life easier...

Yes it does. Does anyone have this new version running where I can take a look at it?

56

(35 replies, posted in Feature requests)

I'd be interesting in working on this--it might be a week or so before I get to it (I'm pretty busy right now).

I've been looking at the 1.2 beta that Connor has up (http://66.98.138.31/~connorhd/pun1.2beta/index.php). PunBB doesn't have to add any extra id attributes because JavaScript can extract them from the href of the post links (<a href="post.php?tid=4">) on the viewtopic pages.

57

(35 replies, posted in Feature requests)

I just took a look at 1.2's markup... It's technically possible to implement this entirely in JavaScript. PunBB doesn't have to add any additional id attributes.

58

(35 replies, posted in Feature requests)

Paul wrote:

Could you adapt your idea just to switch the classes?

Yes, in this case PunBB would have to add an id attribute to the inew div tags. Then, the JavaScript would take a list of these tags and apply something like the following in a loop...
inewArray[i].className = 'inormal';

This would immediately switch the appearance in the browser--no extra tricks or additional page loads. The only change to PunBB's php files would be the addition of id attributes for each inew-div. The javascript call could be added to main.tpl.

59

(35 replies, posted in Feature requests)

This could be done on a session basis with JavaScript. It would be very similar to how it works now but with a slight change.

In version 1.1.5, the unread image is sent to the browser like this...
<img src="img/Oxygen_new.png" width="16" height="16" alt="">

But, when Pun prints these img tags, it could add the topic id as an attribute like this...
<img src="img/Oxygen_new.png" width="16" height="16" alt="" id="Topic5281">
(PunBB would have to add "Topic" or "Forum" because ID's can't start with numbers)

A JavaScript could then look for these, and note when a topic or all of the topics in a forum have been visited this session. If a topic was visited, the img with the matching id attribute could be set to theImgTag.style.display='none' with the JavaScript.

This would turn off the new-message images for the topics and forums as you read them. And when you close the browser, the browser would automatically clear the session cookie.

I know PunBB 1.2 is in feature freeze right now. So just consider this post to be purely academic for now.

60

(99 replies, posted in General discussion)

mi wrote:
ShawnBrown wrote:

Maybe he is a professional mac salesman smile

Nope. I am in the publishing business...

I thought it might be something like that.

I've gone from pro-mac/apple back in the '80s to anti-mac in the '90s and now I'm neutral.

I was, unfortunately, working tech-support for my university in the '90s when macs were just awful (at least if you were providing tech-support for IBM-compatibles and more than one type of mac).

Keep in mind this is from a tech-support perspective: If Apple had gone out of business back then I think they would've deserved it. Most machines had a different version of the OS and each of these OSs had a different collection of patches of varying quality and reliability--and we had no auto-upgrade via the network back then. Macs either ate up a disproportionate amount of the service department's time or they were dumped to the back of a long list and fixed when things were slow. And most of us working there couldn't help but feel annoyed when a mac-cultist client would preach to us about how their mac was inherently better than an IBM-compatible as we fixed their glitchy, buggy computer (this was the exception, of course, but it only took a handful of times to become memorable).

The most hated things to support were (in order): Packard Bells, newer network printers on Windows3.1x machines, Macs, IBM PS2's, and one particular model of Compaq.

I left university--and the tech-support job--just after Apple almost went bankrupt, got financial assistance from Microsoft instead, and then cleaned their act up by releasing OS X and the newer machines.

61

(99 replies, posted in General discussion)

snapsolutions wrote:

mi .... did you ever consider salesman position as a proffesional career? ...

Maybe he is a professional mac salesman smile

62

(99 replies, posted in Programming)

I'd have to agree with the Notepad2 and Notepad++ comments. They're both very similar (lots of language support, lean program size, syntax highlighting, free) and both seem do a good job.

Notepad++ offers collapsing display and multi-document interface (with tabs to jump between documents), and more options than Notepad2.

Notepad2 doesn't have as many features but I think it has slightly cleaner/simpler look. I also prefer the default PHP syntax color scheme of Notepad2 but you can, of course, change these in both programs.

63

(21 replies, posted in Feature requests)

analogue wrote:

...Or should I keep customizing my punBB to remove those nasty "_blank"s ? big_smile

I finally finished the update of my new windows JavaScript. It's context-sensitive and creates (or removes) new window options on the fly. I have it running on this site...
http://independenceave.org/forum/viewtopic.php?id=10
(on the left, below the menu: "External links use new windows: yes/no".

The script can also be used to suppress PunBB 1.1.5's new window links or add standards-compliant ones to PunBB 1.2 or 1.1.5 with a single line in the template.

If anyone wants to use this script, let me know and I'll post it. I think I'm going to release it as GNU LGPL.

64

(21 replies, posted in Feature requests)

analogue wrote:

Because it forces you to open the link in a new window.

With a normal link the way it was intended, when I click a link, the page appears in the same window, and I have *the choice* to open it in a new window, but I'm not forced to it.

Rickard wrote:

analogue: target="_blank" is gone forever in 1.2.

I remember from an earlier discussion that Pun v1.2 was going to use javascript to implement new window links instead of target="_blank".

Most of the new-window javascripts I've seen, give a corrupt URL if you try to explicitly open them in new windows (e.g. with a context menu:open-in-new-window). And they don't give you a choice.

The discussion was a while ago though... maybe this issue was taken care of differently? Is there an admin option to turn new window links on?

(I'm interested in this because I'm finishing a new version of the javascript I use to automatically set external links to open in new windows.)

65

(8 replies, posted in Programming)

There's a Mozilla bug report mentioning it...

Serialization of

        margin-top: 0px;
        margin-left: 0px;
        padding-top: 0px;
        padding-left: 0px;

results in

        margin-top: 0px;
    margin-left-value: 0px;
    margin-left-ltr-source: physical;
    margin-left-rtl-source: physical;
    padding-top: 0px;
    padding-left-value: 0px;
    padding-left-ltr-source: physical;
    padding-left-rtl-source: physical;

https://bugzilla.mozilla.org/show_bug.cgi?id=241234

66

(254 replies, posted in PunBB 1.2 discussion)

Paul wrote:

...Shawnbrown solution meant adding an extra wrapper div which wasn' needed.

Sorry about that. I was speaking theoretically about using a wrapper. (My host charges me extra for additional MySQL databases so I haven't installed 1.2b or looked at the output.)

Paul wrote:

Why would truncating the breadcrumbs be a problem. People have already seen the full topic title in viewforum so they know what they are looking at.

True. I'm not saying it'd be a major problem (extern.php does it simply enough). I just like the idea of limiting the topic subjects in the first place for a few reasons...

1. Yes the users will have already read the full post subject, but if--on the off chance--they did need to refer to it again, it seems awkward to make the user back out of the topic then enter it in again.

2. Limiting maxlength instead of truncating will let users know exactly how their post will appear when people are reading it. Which will prevent "Looking for Assistance" from turning into "Looking for Ass..." (if truncated to 15 chars).

Of course, manually setting the maxlength attribute in the php file is easy enough.

68

(254 replies, posted in PunBB 1.2 discussion)

Paul wrote:

It does have a wrapping div (actually 2 though I'm going to change that) which is in the template...

Ah, I was only concerned if the wrapping div was to be generated from within the PHP code instead of from the template. Having it in the template negates all my concern.

Paul wrote:

BTW: You couldn't make the wrapper a span as you suggested. You can't nest block level elements inside an inline element.

Quite right... forgot about that.

69

(254 replies, posted in PunBB 1.2 discussion)

Madoor wrote:

...I would find it useful if you named the tables etc instead of just setting borders on every table on the homepage.

It shouldn't be hard to correct for this without changes to any of Pun's .php files. You can just add a few lines to the template to get around the problem--putting the forum inside a <span class="punbbcontent"> or <div class="punbbcontent"> tag.

Then in the CSS, you could define ".punbbcontent table { }" instead of just "table{ }".

I'd hate to see the entire forum nested in a single div-tag in the release version's PHP output... it would prevent administrators from customizing/tweaking the position of the separate elements (menu, login status, footer, etc.).

I just realized that doing this might not be a good idea. Truncating the topic display could get annoying if it cuts out the most meaningful parts of the subject. People wise to this would be careful when they were typing the subject to begin with. And if you had forgotten, but wanted to know exactly what the post title was, you'd have to back out of the forum to read the full topic title.

I guess it would be better to put a limit on how long the post titles can be in the first place. The best way to get this effect would be to make an Admin:Option to set the maxlength attribute of the subject input.

Right now it's hard coded to maxlength="70".

Maybe it could default to a max of 70 and have a minimum of about 10.

71

(4 replies, posted in General discussion)

I've changed the title to... "Warrior Knights of Iraq (????? ??? ??????)"
I like knight for the English and emir for the Arabic.

72

(4 replies, posted in General discussion)

Hey, I like that last one: "Warrior Emirs of Iraq/????? ??? ??????" Thanks!

zaher wrote:

...if there is bad in this game...

Oh, please don't worry. The original game is simply an old board-game from 1985. It's like a game of Risk with political rules added on top.

Here's a summary of it from http://www.boardgamegeek.com/game/1143
"Warrior Knights is at its essence a tactical wargame .... players use armies to conquer cities .... Cities provide income .... the Assembly where players vote on .... titles and appointments .... and other offices which give the holder additional troops, or for concessions which create additional income .... As in any game of this nature, alliances are forged and broken between players in order to further goals until one player emerges victorious."

Here are some pics of the original game by Games Workshop
http://www.boardgamegeek.com/image/34434
http://www.boardgamegeek.com/image/19342

The Iraqi version is just a portfolio piece for my online gallery. My sister helped me with the Arabic on it (she's a Mid-Eastern Studies student). But she didn't know what to name it.

Thanks Again!

This is an for an Admin:Options addition...

The idea would be to let administrators allow full topic names in the navigation bar or give them an option to truncate the topic names to a chosen number of characters.

For example:
Allowing full names... (the way it works now)
PunBB.org Forums » Feature requests » Topic Name Truncate Option for Administrators

And truncated topic names... (set to truncate at 15 characters)
PunBB.org Forums » Feature requests » Topic Name Trun...

74

(4 replies, posted in General discussion)

I'm wondering if anyone can help me with an Arabic language question. (Zaher?) I think I need a different title for a gameboard on one of my web pages. Right now it says "????? ??????" but I'd like to have more appropriate title--I get hits from lots of Saudi web users but they're usually looking for a proper map of Iraq, not my game board.

The board is a remake of a game called "Warrior Knights". It's a game of medieval politics where each player is a medieval lord who raises armies and makes economic and political enemies and allies (the game is very heavy into politics--pretty interesting actually). Anyway...

Could someone post an appropriate Arabic title meaning "Warrior Knights of Iraq", "Warrior Lords of Iraq" or something like that?

Here's the game board I'm referring to...
http://www.shawnbrown.com/portfolio/iraq.html

The following JavaScript line should bust out of a frame as well...

top.location.replace(unescape(window.location.pathname));