Try doing this:

255: require(PUN_ROOT.'footer.php');

2,402

(8 replies, posted in PunBB 1.2 troubleshooting)

I signed up to your forum... looks promising smile

Make sure you're not commenting out any { or }'s

2,404

(8 replies, posted in PunBB 1.2 troubleshooting)

Normally, yes.

2,405

(8 replies, posted in PunBB 1.2 troubleshooting)

Well yes... You replace the text "Index" by '<img src="yoursrc.gif" width="width" height="height" />'

2,406

(8 replies, posted in PunBB 1.2 troubleshooting)

You could try the language file...

2,407

(3 replies, posted in PunBB 1.2 troubleshooting)

Might have something to do with the width and height being ""...

On a sidenote, what skin are you using? It's sw33t tongue

New release posted, now uses pun_mail() wink

Like... a page that's shown after you log in?
Should be quite easy to do... *wanders off to make it*

The most important part is that you don't delete this in any of PunBB's original pages:

source code wrote:

<?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/

Rickard has allowed you to remove the Copyright showed on the main page, but prefers if it stays wink

PunBB is open-source under GPL, so you can change everything except for the copyright notice in the source code wink

2,412

(4 replies, posted in PunBB 1.2 troubleshooting)

You could try using wildcards in the Base URL... needs some code rewriting tho.

Ask in the french forums... http://www.punbb.fr/

This is something to discuss with the creator of the mod...

As far as I know, I have no specific avatar plugins/mods installed... I made the query, copied the avatar code from viewtopic.php and that was about it tongue

Put it somewhere in your footer, and do this:

<?php
// For the key thingy
echo "<img src=\"".PUN_ROOT."img/".$pun_user['style']."/key.gif\" alt=\"This style's legend.\" />";
?>

Ofcourse have those images somewhere.

This query should do the trick:

SELECT id, username, num_posts, registered, location FROM ".$db->prefix."users WHERE username!='Guest' ORDER BY RAND() LIMIT 1

Tested it, works fine for me...


EDIT:
This code will show what you want:

$query = "SELECT id, username, num_posts, registered, location FROM ".$db->prefix."users WHERE username!='Guest' ORDER BY RAND() LIMIT 1";
$result = $db->query($query) or die(mysql_error());

$data = $db->fetch_assoc($result);

if ($pun_config['o_avatars'] == '1' && $pun_user['show_avatars'] != '0')
        {
            if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$data['id'].'.gif'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$data['id'].'.gif" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$data['id'].'.jpg'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$data['id'].'.jpg" '.$img_size[3].' alt="" />';
            else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$data['id'].'.png'))
                $user_avatar = '<img src="'.$pun_config['o_avatars_dir'].'/'.$data['id'].'.png" '.$img_size[3].' alt="" />';
        }
        else
            $user_avatar = '';

// echo "<br />",$query,"<br /><b>Id: </b>",$data['id'],"<br /><b>Username: </b>",$data['username'],"<br />","<br />";
echo "<br />";
echo "<b>Id:</b> " . $data['id'];
echo "<br />";
echo "<b>Username:</b> " . $data['username'];
echo "<br />";
echo "<b>Posts:</b> " . $data['num_posts'];
echo "<br />";
echo "<b>Registered on:</b> " . $data['registered'];
echo "<br />";
echo "<b>Location:</b> " . $data['location'];
echo "<br />";
// echo "<b>Avatar:</b> <img src=\"img/avatars/" . $data['avatar'] . "\" alt=\"" . $data['avatar'] . "\" />";
echo "<b>Avatar: </b> " . $user_avatar;
echo "<br />";
echo "<br />";
?>

Yes, I know I used die(), it was just for testing some stuff smile

Run the query found in install_mod.php manually.

For 2, in viewforum.php, remove the check to see if the forum is accessible for that specific user.

I'll update a couple of mine if needed.

2,421

(1 replies, posted in Programming)

Add another query to the register script.

Yeah, ok. If I find time today I'll do it, else you'll have to wait until saturday.

On installation, the default is off. But the changing should work, as I tested it plenty of times locally...

Updated to 1.1, includes the indexing feature with an on/off switch smile

Well, just remove the Login link. Search for generate_navlinks in functions.php wink