1,251

(11 replies, posted in Feature requests)

Yup, that works as well (I just tested out the CSS idea and it works)

No, there are no templates in the sense you're thinking of. If you're talking about just replacing the link in the navlinks, that's include/functions.php, in the generate_navlinks function. If you're talking about replacing the link elsewhere (eg: viewtopic.php), that's within those files most likely.

In the files where they exist...? I'm not sure what you mean

1,254

(11 replies, posted in Feature requests)

Anas wrote:

Also imagine some kind of compatibility between punbb and mailman (GNU mailing list) - the idea is: providing two ways to send and receive posts/messages: web browser, and mail client.

Sounds like a wonderful extension, but certainly not a feature for the core

Anas wrote:

And one more thing: since smiles are allowed unlike the main punbb principles, I think it might be a idea good to replace "online/offline" texts in member-profile pane with a blink-maroon-gif for "online" and a gray-png for "offline".

I'm not exactly sure what you mean by "unlike the main punbb principles"
However, the online/offline texts can be determined via CSS I believe: if you want to have a style that replaces them, you're certainly free to smile

Good luck to whoever wants to try this, such a mod would touch every single URL in every single file. tongue

Edit: So, either you'll have a mod where you're editing lots of lines in every file, or you'll have a mod like one I just saw where you're running preg_replace over the contents of the entire page once for each URL you want to rewrite.

Delete profile.php, replace all references to it with references to your page?

Yeah, the wildcard is what you use to search for parts of words. If there's no wildcard, you're searching for the exact word. Makes sense wink
Moved to PunBB Discussion

1,258

(11 replies, posted in Feature requests)

Anas wrote:

What kind of statistics? An extension could do this nicely and let you customize exactly what data you want to see

Something like: Visitors: (# online/ # total) - Members: (# online / # total) - Alexa Rank: #

You can already see guests online on the front page (and I don't see where you can come up with a "total" for that).
Same with number of users online (although there you can get a total).
Alexa rank is completely useless tongue
So yes, that would be better off as an extension

Anas wrote:

UTF-8 and Tahoma are better for non-Latin characters.

Example?

Anas wrote:

LTR attribute is necessary to prevent inheriting RTL attribute in RTL pages, since filname, username & password are usually LTR texts.

I think that's something that can be left up to each forum administrator. wink

Look in header.php where the links are added, there is a reference to index.php

There is no PHP variable, the assumption of 1=Guest is used in various places in the code.
foxmask: Just changing the ID in the database does nothing but break the forum.
You would probably find it easier to assign your user a new ID wink

Paying for it does not give your friend the right to redistribute it, nor does it give you the right to redistribute it wink

1,262

(15 replies, posted in Programming)

Yes. You could also just have the equivalent of disp_position wink

1,263

(15 replies, posted in Programming)

OK
So, lets say you have a downloads table. It has an ID, a name, maybe filesize, number of downloads, etc.
Then you would create a download_uris table. That would have at least two columns, one being the ID of the download in the downloads table and the other being the URI.

1,264

(6 replies, posted in Programming)

I removed that image from your signature, it was way too tall wink

1,265

(15 replies, posted in Programming)

The second option, but with a table set up so that you add a new row for each one, not a new column if you start exceeding a certain number tongue

Quick jump        Yes    No  Enable the quick jump (jump to forum) drop list.
It's in admin options

You have base URL in the wrong place, it should be at the beginning of the src

1,268

(9 replies, posted in General discussion)

LIMIT '.$min.', '.$max

Just confirmed that it's still spitting out firstname, not username.

I don't think you did, because it looks like I'm getting the same value for form_user as I did. Then again, it's hard to know on your forum what the value of username is versus email versus firstname.

I'm going to pretend I didn't just notice that you removed the copyright from the code itself, which is illegal smile
The issue, as you guessed, is that you're mixing the username and the email. In the form, this line is wrong:

<input type="hidden" name="form_user" value="<? echo (!$pun_user['is_guest']) ? pun_htmlspecialchars($pun_user['firstname']) : 'Guest'; ?>" />

you shouldn't be using firstname, but username.

Paste a copy of your post.php?

If you linked to your site, it might be easier for someone to tell where the problem is? wink

1,274

(4 replies, posted in Programming)

http://dev.mysql.com/doc/refman/5.0/en/join.html

#

If there is no matching row for the right table in the ON or USING part in a LEFT JOIN, a row with all columns set to NULL is used for the right table. You can use this fact to find rows in a table that have no counterpart in another table:

SELECT left_tbl.*
  FROM left_tbl LEFT JOIN right_tbl ON left_tbl.id = right_tbl.id
  WHERE right_tbl.id IS NULL;

This example finds all rows in left_tbl with an id value that is not present in right_tbl (that is, all rows in left_tbl with no corresponding row in right_tbl). This assumes that right_tbl.id is declared NOT NULL. See Section 6.2.8, ?LEFT JOIN and RIGHT JOIN Optimization?.

That's the major difference

1,275

(1 replies, posted in PunBB 1.2 discussion)

You're entering the wrong username/password for your MySQL database. Talk to your host if you don't know what the correct details are.