1,801

(34 replies, posted in PunBB 1.2 troubleshooting)

You seem to have some problems, but it looks fine yes. Try chmodding your images folder to 777.

If you want, I'll write the plugin, since I ave nothing better to do. Find me on MSN or IRC (#punbb channel on quakenet).

1,802

(34 replies, posted in PunBB 1.2 troubleshooting)

Yes, very.

1,803

(34 replies, posted in PunBB 1.2 troubleshooting)

You might want to take a look here: http://be2.php.net/manual/en/features.file-upload.php

1,804

(34 replies, posted in PunBB 1.2 troubleshooting)

Try changing

for($c=2; $c<=(count($images)-1); $c++){

to

for($c=2; $c<=count($images); $c++){

and see if it works smile

1,805

(34 replies, posted in PunBB 1.2 troubleshooting)

It's odd, the code you posted there shouldn't give any errors. Check if there are any spaces before your <?php tag.

1,806

(34 replies, posted in PunBB 1.2 troubleshooting)

Simple, don't make calls to header() if something is already outputted.

The italian language might give some problems. But I don't think so, as I checked every language file and it gave no errors.

1,808

(8 replies, posted in General discussion)

lol, now really, how stupid big_smile

1,809

(11 replies, posted in General discussion)

http://dev.punbb.org/timeline?from=07%2 … mp;wiki=on

1,810

(8 replies, posted in General discussion)

lol tongue

updated smile Forgot that =/

Oh, and how on earth did you un-admin yourself if you can't use phpMyAdmin?

Do you know what your user id is? (I guess it'll be 1) Then paste this code in a php file on your forum root:

<?php
define('PUN_ROOT', './');
include "includes/common.php";
$userid = 2;
$db->query("UPDATE ".$db->prefix."users" SET group_id=1 WHERE id=".$userid);
echo "User with id ".$userid." has been made administrator.";
?>

1,813

(16 replies, posted in General discussion)

There's this giant clickable image "Download now" on the right. I suggest you click it tongue

Just add this:

else
$user_avatar = '<img src="'.$avatardir.'/noavvy.png" alt="" border="1" />';

*in a burns voice*
Excellent big_smile

Try this:
Find ~line 922-927 in profile.php:

// View or edit?
if ($pun_user['id'] != $id &&
    ($pun_user['g_id'] > PUN_MOD ||
    ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_edit_users'] == '0') ||
    ($pun_user['g_id'] == PUN_MOD && $user['g_id'] < PUN_GUEST)))
{

Add after:

header('Location: <yourpagecomeshere>.php');

Maybe it's best to just check against $lang_login as was done for $lang_register, like this:

if($pun_user['is_guest'] && !isset($lang_register) && !isset($lang_login))
header('Location: login.php');

Else you wouldn't really be able to login... (yes, you can slap me)

Hrmmm... Try changing == to !=

Yes, post that code in a file called AP_PM_Monitoring.php, and it should work.

1,820

(3 replies, posted in PunBB 1.2 discussion)

PunBB has less features in its standard installation, but if far more secure and faster than phpBB.
I think that kinda sums it up =/

I'm not so sure about this one, but it might work:

if($pun_user['is_guest'] && !isset($lang_register) && ($page_title == pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_login['Request pass']))

Hrmm... didn't think of that tongue Maybe this will work (just a wild guess, but might work by looking at the code smile)

if($pun_user['is_guest'] && !isset($lang_register))
header('Location: login.php');

At the top in header.php, after common.php is loaded, put this:

if($pun_user['is_guest'])
header('Location: login.php');

I think that should do...

1,824

(16 replies, posted in General discussion)

Oops, I see what you mean tongue I'll correct that, although it makes not much of a difference really.

1,825

(5 replies, posted in PunBB 1.2 troubleshooting)

The problem is you use the div with id "left" inside another box with id "left". The left-box is for the whole sidebar on the left, not for each element smile