Post your viewtopic.php file.

1,302

(3 replies, posted in PunBB 1.2 discussion)

Apparently that feature, (which is available in some forum softwares), leads to horribly disjointed looking threads, from what I have been told by others.

1,303

(8 replies, posted in PunBB 1.2 discussion)

Susan wrote:

Of course, I don't think this one will work for me anyway will it?  I get this when I run install_mod.php:

You are running a version of PunBB (1.2.15) that this mod does not support. This mod supports PunBB versions: 1.2.3, 1.2.4

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

Where in viewtopic.php are you placing the code?

1,305

(7 replies, posted in General discussion)

Have a look at this thread. It should explain the main parts required for setting up utf-8.

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

1,306

(12 replies, posted in Programming)

quaker wrote:

would this help a little javascipt for delay on redirect?

<script language=javascript>
setTimeout("location.href='[/index.php]'", 45);
</script>

Cheers. I've sorted it via other means, but that one might come in handy at some future point. smile

1,307

(12 replies, posted in Programming)

Smartys wrote:

No wink

Cheers. smile big_smile

1,308

(12 replies, posted in Programming)

Trying to introduce lags through those methods leads to some quirky results. big_smile Ended up just using the sleep function and pausing the script for the delay period. big_smile Will there be any detrimental side effects using that method? (Other than the obvious self inflicted DoS condition if used to excess big_smile)?

Thanks again. smile

1,309

(12 replies, posted in Programming)

Cheers. smile

1,310

(12 replies, posted in Programming)

So I'd need to do something along these lines?

if ($test == $condition)
{
    echo '<meta http-equiv="refresh" content="'.$delay.';URL='.basename($_SERVER['PHP_SELF']).'"/>';
}

Cheers.

1,311

(12 replies, posted in Programming)

An example would be if one is viewing the index and clicks on one of the topic links, to have an if clause at the top of header.php which would go something like:

if ($test == $condition)
{
    header("Location: '.basename($_SERVER['PHP_SELF']).' Refresh: '.$delay.'");
}

so that you would actually end up going to the page you requested, but only after the delay specified.


Cheers. smile

1,312

(12 replies, posted in Programming)

I've got complete and utter mind block on this one, so just wanted to check. smile

In header.php, can you call:

basename($_SERVER['PHP_SELF'])

to capture the destination uri and then use that with the header function to insert a delay and then load the page after the delay, rather than loading it straight away, or does another var or method need to be used?


Cheers,

Matt

1,313

(10 replies, posted in General discussion)

Well, I'm not much use with this one. This is the form line I have in mine, and it works as expected:

<form id="login" method="post" action="<?php echo $forumuri ?>login.php?action=in" onsubmit="return process_form(this)">

1,314

(10 replies, posted in General discussion)

bingiman wrote:

Have I lost you yet.

Completely. big_smile

Shouldn't the form id be login_form rather than the div id?

1,315

(10 replies, posted in General discussion)

That looks like you need to tweak the javascript. I'm naff at js though. big_smile Elbecko might be the one to ask on that subject. smile

1,316

(10 replies, posted in General discussion)

What exactly doesn't work? That is the login/header block, isn't it?

1,317

(10 replies, posted in General discussion)

It's the id that matters. Should work fine without name.

1,318

(3 replies, posted in PunBB 1.2 troubleshooting)

Db access controls are totally separate from PunBB's access controls.

TFD wrote:

User title below your name (overrides rank if they are used). Yours says Senior Member.

Are you allowing users to set them and want to limit them? If so, find the input box for the title, (I would assume in profile.php), and just set a max characters limit on the input box. That's the simplest 'hack'.

Which title(s)?

1,321

(6 replies, posted in PunBB 1.2 show off)

redneck wrote:

Edit: Anyone have any advice about how to remove the light-colored outline from around the header graphic?  I can't find a line to edit in CSS.  I suppose I'll have to add a new line?

I may be incorrect, but try setting:

border: 0;

in the css for the image block.

It makes a change for it not to be me having one of those moments. big_smile

It's working fine on test here, so that must be related to something in your setup.

Download it again and try it now. smile

If you create new files containing your own code only, then the copyright on those is yours. If you create new files containing existing code, with your own code added, then both copyrights should be contained within the script. If I remember correctly, that is. smile