Thanks it works just fine, the regex aswell wink

I added another error message to the $lang_prof_reg array.

The thing I wanna do is to change so only usernames with [a-z][A-Z] and [0-9] are allowed.

Though my problem now is the register.php, I'm trying to find out where it exits if e.g. the username is already in use.
As I read the register.php now the user will be registered(inserted into the database) even if something is wrong. This is not the case
so if anyone can help, it would be appreciated.

///
Christoffer "Holmen" Holmstedt

Then just wait for 1.3 big_smile

Staline wrote:

Pheraps copy the style's folder in the root folder ?

That would just solve the first error later on with more styles installed will give you similiar errors and you need to add thoose to the root-folder.
I'm playing EVE at the moment but will try to solve the problem tomorrow if not tonight.

btw the navbar links-problem would not be solved with just copying the styles.


--- EDIT ---
I'm in the process of adding "PUN_ROOT" whereever it is needed(currently in header.php), perhaps it's not written to be used like this but I don't know atm.

Ok, I have now successfully got my own index.php and the header, announcement(if set) and footer.php added to my index.php...

To rickard: Perhaps this could be added to the release as standard?

Changes to header.php
 - Added '.PUN_ROOT.' to links on following lines 165, 168, 172(2 links on this line)
 - Removed line 65 and replaced it with: <?php echo '<link rel="stylesheet" type="text/css" href="'.PUN_ROOT.'style/'.$pun_user['style'].'.css" />' ?>
 
Changes to include/functions.php
 - Added '.PUN_ROOT.' to links on following lines 235, 236, 239, 244, 246, 247, 256, 258, 259, 263 - 266
 *BE AWARE* Additional navlinks(added thru options do not need PUN_ROOT because they will have a link relative to server-root *BE AWARE*

I think that were all links that needed a fix, please Rickard if this affects anything else I should be aware of reply here.

///
Christoffer "Holmen" Holmstedt

I'm actually trying to do the exact same thing...
I've installed punBB into "./forums"
and I think I know what the problem is...though I haven't found any solution to it as of yet.

1.
My index.php looks like this:

<?php

//From punBB
define('PUN_ROOT', './forums/');
require PUN_ROOT.'include/common.php';
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);

//From punBB
require PUN_ROOT.'header.php';

//From punBB
require PUN_ROOT.'footer.php';

?>

When I now view page source I noticed that PUN_ROOT doesn't really work. First proof is the link to stylesheet:

<link rel="stylesheet" type="text/css" href="style/Oxygen.css" />

I copied the source to a new page and added the complete link to the stylesheet "forums/style/Oxygen.css"
and that gave me a nice page with styles.

Second thing that doesn't work are thoose links in the navbar..."./forums" isn't added to thoose either.

6

(4 replies, posted in PunBB 1.2 discussion)

Did my part >_<

updated the infobox now with release date of 1.2.6

7

(16 replies, posted in PunBB 1.2 discussion)

Tobi wrote:

But if you want to be sure use target="_self"

Yes, that is what I've been using and that's the reason for not been able to use XHTML strict.
The target attribute is only valid in transitional.

8

(16 replies, posted in PunBB 1.2 discussion)

Paul wrote:

The target attribute is not valid XHTML 1.0 Strict regardless of what form it takes. PunBB does not use the target attribute anywhere. The only links that should open in a new window are the help links which are controlled by javascript.

The normal behaviour of a browser including Firefox is to open links in the same window. If you are getting links opening in a new window then check the options settings.

Ok, thanks.
I'll start working with XHTML strict.

Hi

I was thinking about links. You're using XHTML strict but how do you get links to open in the same window and not in a new one(_blank) that is standard?

I usually go with transitional just to be able to use the HTML attribute "target".

Or is it only my browser(FF) that has got _blank as default?

///
Christoffer "Holmen" Holmstedt