Right, so you are actually referring to the 'Guests online:' part at the bottom of the forum? They're not logged in, they are merely logged in the online list. If you have disabled guest viewing of the board, all they will see is one of the no access messages. (Can't remember which one offhand). Simple way to test is to try viewing your forum as a guest. smile

If it's something else you're referring to, is there any chance you could post the link to your forum?

1,202

(4 replies, posted in PunBB 1.2 discussion)

Cron just runs a specified command/script at a designated time/day. You need to create a script to check the posted time in the topics table and close the topic if it is older than your designated cutoff period. How you do it depends on what scripting language you prefer to use.

I'm not quite certain of what you are meaning.

..but, I thought the *nix chaps on here might appreciate this one. big_smile Just noticed this in someone's mailing list sig:

Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"

To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

1,205

(4 replies, posted in PunBB 1.2 discussion)

Cron job.

I'd suggest you stop using a version of PunBB which has been intentionally crippled. Btw, each user id should be unique. You should alter the group id, not user id.

Smartys wrote:

What do you think redundant means? tongue

big_smile big_smile

I just personally think it seems neater to keep xml-style with xml and standard style with html, rather than same for both. smile

Smartys wrote:

Remove the xml-stylesheet stuff, it's redundant

It's not redundant. It's merely a case of one or the other. The xml-stylesheet is the preferred method for XML, if I remember correctly?

Dwedit: With regards to stylesheets, you need to make sure everything in your stylesheets is in lowercase, btw.

1,209

(11 replies, posted in General discussion)

Well, now you can make a start on the html then. big_smile

http://validator.w3.org/check?uri=http% … mp;group=0

1,210

(11 replies, posted in General discussion)

Gotipe wrote:

OK. Figured that Firefox maybe want the CSS to be a bit more exact than IE, everything clearly typed.

That's not needing it more exact, merely correct. Unless you code everything, (styles and html included), cleanly and correctly, you will be forever chasing your own tail with self inflicted problems.

I'll say it again. Run your code through the W3C validator, (it has one for CSS too), or via FF with the plugin, and clean up your code. Until you've done that, you've no idea what you can expect to see, or how the browser will interpret it.

You need to alter the code for serving your stylesheet too. For xml, the stylesheet declaration needs to be like so. (The doctype declaration is there so you can see what your first three lines should look like). Obviously, the encoding type is dependant upon what you have set.

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="./style/default.css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

I might add, serving it up as Xhtml1.1 will require a decent amount of work on the code, especially if you have installed any mods. The XML parser in the browser, (IE exempted), will throw an error on even the slightest typo, omission or html error, so unless you want to spend a good while going through the code, I'd suggest you stick to text/html. You will also need to make sure that everything printed to screen is html encoded if the output may contain any entities.

As to how a vanilla install of PunBB would fare, I honestly can't say, but a modded install will give you plenty of grief getting it ready. big_smile

1,212

(19 replies, posted in General discussion)

You have no quotes around ran.php. It needs to be:

<img src="ran.php" alt="Captcha image" /><br />

Btw, I've just added the alt description for the accessibility side of things. If you're running it through an XML parser, everything needs to be absolutely spot bollock. The slightest error or omission will be punished by the parser big style. big_smile

1,213

(5 replies, posted in General discussion)

Give the second login box an id of login0, or remove the id. It's only used for the auto focus/select, if I remember correctly.

1,214

(11 replies, posted in General discussion)

Install FireFox and then install the validator plugin, and use that to validate your html. For starters, you have two <html> tags.

1,215

(16 replies, posted in General discussion)

Here's the files with the changes. The frame.diff file lists the two extra columns/fields needed in the db, as well as the changes to admin_options and profile.php required, plus a couple of lang file additions. The db query in that file just has this difference: u.object_links, so adding that to the existing query in profile.php is all that is needed on the query bit.

The parser file, it's all the bits between these two lines that are the new additions:

//-----------------Frame mod additions start----------------//

//------------------Frame mod additions end-----------------//


With the user perms, to make it default to on for everyone except guest users, just run this:

UPDATE punbb_users SET object_links=1 WHERE username!='Guest';

Obviously, change the punbb_ prefix if yours is different. big_smile


I've removed the Iframe switch, with IE being capable of using object, but if anyone wants that adding back, let me know and I'll post the additional code.

Quote nesting works in a rudimentary fashion, but does the job for the time being. Could do with a proper regex setup on that, but works generally fine as is.

Btw, the frame will only be shown via viewtopic.php, so any portal/frontpage/index mods won't have a frame plastered in their news/info column.


Let me know what you think, and if anyone finds a problem I might have missed. smile


Edit: Adding the link to the files might help. big_smile

http://outgoing.bauchan.org/unix/frame_mod/

You should have been more specific with your question. big_smile

Change this line in that code above:

if ($cur_post['g_id'] == PUN_ADMIN)

to:

if ($cur_post['poster_id'] == '[your user_id]')

Try that one. smile Change poster_id for username if you want to work on the username instead of the user_id.

1,217

(1 replies, posted in PunBB 1.2 troubleshooting)

The message function in include/functions.php.

Try this. Find:

$user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts'];

Change to:

if ($cur_post['g_id'] == PUN_ADMIN)
{
        $user_info[] = '<dd>'.$lang_common['Posts'].': [Your text here]';
}
else
{
        $user_info[] = '<dd>'.$lang_common['Posts'].': '.$cur_post['num_posts'];
}

1,219

(16 replies, posted in General discussion)

Btw, when I pop the code up for this, (I've done a diff of profile.php and listed the other changes except for the parser in that file), will it be okay if I just pop the full copy of my parser file up, for you to grab the bits you need from it? Saves having to write up a list of changes to the parser. big_smile

1,220

(1 replies, posted in Programming)

Looks like it may be one of IE's 'security', (really resisting a manic chuckle here), big_smile settings to blame.

1,221

(8 replies, posted in PunBB 1.2 show off)

Like the colours. Looks nice. smile

1,222

(16 replies, posted in General discussion)

Steven, you're running IE? Any chance I could ask a small favour? smile I believe I've found why IE doesn't show the sites in object tags. It's one of it's 'security' settings. In Tools -> Security settings -> Miscellaneous, could you enable the option:

Access data sources across domains

and see if they are visible from your end then?


Cheers, smile

Matt

1,223

(1 replies, posted in PunBB 1.2 troubleshooting)

larryg wrote:

Is it possible that the server clock is affecting this setting?

Yup.

1,224

(1 replies, posted in Programming)

Could anyone shed any light on what's causing the difference in these two scenarios.

http://forums.bauchan.org/testforum/viewtopic.php?id=3

That local, (to the server), site link at the bottom of that thread displays in IE fine within the object tags, yet the links above, (which are links to this forum, again in object tags), don't. Is this yet another IE quirk, or am I missing something?


Cheers,

Matt

1,225

(16 replies, posted in General discussion)

Partially sorted the quote scenario too.

http://forums.bauchan.org/testforum/viewtopic.php?id=3

Only scenario that doesn't work yet is where one quotes a post with a [frame] tag then puts a [frame] tag in the post with the quote. Both links are stripped at the moment.