I don't understand what you mean.
Have you got an url to show?
Which default langage do you use in your forum?

Ludo,

there are several different solution.
The simple to do is that:
open common.php in your langage pack.
Look for index. Put whatever you want instead. Homepage for example.

Ludo,

203

(22 replies, posted in PunBB 1.2 show off)

Paul wrote:

Looks fine at 1280px. There is no reason why it shouldn't work perfectly now at any resolution and even when the news items are very short or the images very large.

smile

204

(22 replies, posted in PunBB 1.2 show off)

Ok,
So, I did what Paul notices me.
My screen can't go more that 1024 X 768. somebody with higher to tell me if it now goes good?

Ludo,

205

(22 replies, posted in PunBB 1.2 show off)

when you say max width, you mean more than 1024X768 ?

Ludo,

206

(22 replies, posted in PunBB 1.2 show off)

I tried 1024X768, 800X600, IE, FF
All is working good.
But, I think what Connorhd said can be the right problem. With a ad blocker, it can have effect on the page. I go on thinking it's quite strange wink.

Ludo,

207

(8 replies, posted in PunBB 1.2 discussion)

Paul wrote:

Does this make it clearer

Yes it makes. I've solved my problem. The colour code I was looking for was F1F1F1.
I thank you Paul.

Ludo,

208

(22 replies, posted in PunBB 1.2 show off)

Rickard wrote:

These images. I'm using Firefox 1.0.3.

It's really strange. I'm also using FF 1.0.3 and I do not have the same result. Huumm... It's difficult for me to solve a problem I do not see.

Ludo,

209

(8 replies, posted in PunBB 1.2 discussion)

I think it's 'inbox' isn't it?

Ludo,

210

(8 replies, posted in PunBB 1.2 discussion)

OK.
And for example, could you give me the color used by the footer with oxygen? with lithium? and with sulfur?

Ludo,

211

(8 replies, posted in PunBB 1.2 discussion)

Hi,

I just noticed that 1.7 only exists in cobalt_cs.css, mercury_cs.css and radium_cs.css
It does not exist in other styles. Why?
I have a very small customisation problem and I am wondering if it's not due to it.
Indeed, I noticed that in my pages, what I thought to be white is not really.
I explain:
On http://www.pluriservices.net , with oxygen style for example, I put for google ads a white background. This has made me noticed that the box where the ad is is not really white. It's a little bit darker. I want it to be the same color but do not find in the css.

Don't know if I really well explained...

Ludo,

212

(22 replies, posted in PunBB 1.2 show off)

Rickard wrote:

I would have a look at it in Firefox though. There are some problems with the images.

Which images? On which pages? With which version of firefox?

Ludo,

213

(22 replies, posted in PunBB 1.2 show off)

Bengus wrote:

Can you write a step-trough how you did it? smile

I could if what Connorhd suggested does not satisfy you.
As Connorhd is used to saying, I'm quite lazy. But if it's needed, I'll do it.

Ludo,

214

(22 replies, posted in PunBB 1.2 show off)

Hi,

It took me a lot of time but it's now finished.
Thanks to Rickard who created punbb, to Connorhd who helped me with the use of css, I'm proud to show you the new version of pluriservices which is now compatible with firefox smile (the former version had difficulties...)
See here: http://www.pluriservices.net

I hope you'll like it,

Ludo,

215

(18 replies, posted in PunBB 1.2 troubleshooting)

I finally solved the problem alone.
I just get rid off the last return;
I hope this will not cause any security problem.

Ludo,

216

(18 replies, posted in PunBB 1.2 troubleshooting)

To sum up, the code I use is this one:

<?php

$_GET['action'] = 'active';
$_GET['show'] = 10;
$_GET['nfid'] = 11;

// The maximum number of topics that will be displayed
$show_max_topics = 60;

// The length at which topic subjects will be truncated (for HTML output)
$max_subject_length = 28;

// DO NOT EDIT ANYTHING BELOW THIS LINE! (unless you know what you are doing)

// Make sure we (guests) have permission to read the forums
$result = $db->query('SELECT g_read_board FROM '.$db->prefix.'groups WHERE g_id=3') or error('Unable to fetch group info', 

__FILE__, __LINE__, $db->error());
if ($db->result($result) == '0')
    exit('No permission');


// Attempt to load the common language file
@include PUN_ROOT.'lang/'.$pun_config['o_default_lang'].'/common.php';
if (!isset($lang_common))
    exit('There is no valid language pack \''.$pun_config['o_default_lang'].'\' installed. Please reinstall a language of 

that name.');

if (!isset($_GET['action']))
    exit('No parameters supplied. See extern.php for instructions.');


//
// Converts the CDATA end sequence ]]> into ]]>
//
function escape_cdata($str)
{
    return str_replace(']]>', ']]>', $str);
}


//
// Show recent discussions
//
if ($_GET['action'] == 'active' || $_GET['action'] == 'new')
{
    $order_by = ($_GET['action'] == 'active') ? 't.last_post' : 't.posted';
    $forum_sql = '';

    // Was any specific forum ID's supplied?
    if (isset($_GET['fid']) && $_GET['fid'] != '')
    {
        $fids = explode(',', trim($_GET['fid']));
        $fids = array_map('intval', $fids);

        if (!empty($fids))
            $forum_sql = ' AND f.id IN('.implode(',', $fids).')';
    }

    // Any forum ID's to exclude?
    if (isset($_GET['nfid']) && $_GET['nfid'] != '')
    {
        $nfids = explode(',', trim($_GET['nfid']));
        $nfids = array_map('intval', $nfids);

        if (!empty($nfids))
            $forum_sql = ' AND f.id NOT IN('.implode(',', $nfids).')';
    }

    // Should we output this as RSS?
    if (isset($_GET['type']) && strtoupper($_GET['type']) == 'RSS')
    {
        $rss_description = ($_GET['action'] == 'active') ? $lang_common['RSS Desc Active'] : $lang_common['RSS Desc 

New'];
        $url_action = ($_GET['action'] == 'active') ? '&action=new' : '';

        // Send XML/no cache headers
        header('Content-Type: text/xml');
        header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');

        // It's time for some syndication!
        echo '<?xml version="1.0" encoding="'.$lang_common['lang_encoding'].'"?>'."\r\n";
        echo '<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" 

"http://my.netscape.com/publish/formats/rss-0.91.dtd">'."\r\n";
        echo '<rss version="0.91">'."\r\n";
        echo '<channel>'."\r\n";
        echo "\t".'<title>'.pun_htmlspecialchars($pun_config['o_board_title']).'</title>'."\r\n";
        echo "\t".'<link>'.$pun_config['o_base_url'].'/</link>'."\r\n";
        echo "\t".'<description>'.pun_htmlspecialchars($rss_description.' 

'.$pun_config['o_board_title']).'</description>'."\r\n";
        echo "\t".'<language>en-us</language>'."\r\n";

        // Fetch 15 topics
        $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post, f.id AS fid, f.forum_name FROM 

'.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS 

fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS 

NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT 15') or error('Unable to fetch topic list', __FILE__, __LINE__, 

$db->error());

        while ($cur_topic = $db->fetch_assoc($result))
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['subject'] = censor_words($cur_topic['subject']);

            echo "\t".'<item>'."\r\n";
            echo "\t\t".'<title>'.pun_htmlspecialchars($cur_topic['subject']).'</title>'."\r\n";
            echo 

"\t\t".'<link>'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].$url_action.'</link>'."\r\n";
            echo "\t\t".'<description><![CDATA['.escape_cdata($lang_common['Forum'].': <a 

href="'.$pun_config['o_base_url'].'/viewforum.php?id='.$cur_topic['fid'].'">'.$cur_topic['forum_name'].'</a><br 

/>'."\r\n".$lang_common['Author'].': '.$cur_topic['poster'].'<br />'."\r\n".$lang_common['Posted'].': '.date('r', 

$cur_topic['posted']).'<br />'."\r\n".$lang_common['Last post'].': '.date('r', 

$cur_topic['last_post'])).']]></description>'."\r\n";
            echo "\t".'</item>'."\r\n";
        }

        echo '</channel>'."\r\n";
        echo '</rss>';
    }


    // Output regular HTML
    else
    {
        $show = isset($_GET['show']) ? intval($_GET['show']) : 15;
        if ($show < 1 || $show > 50)
            $show = 15;

        // Fetch $show topics
        $result = $db->query('SELECT t.id, t.subject FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums 

AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE 

(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT '.$show) or 

error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

        while ($cur_topic = $db->fetch_assoc($result))
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['subject'] = censor_words($cur_topic['subject']);

            if (pun_strlen($cur_topic['subject']) > $max_subject_length)
                $subject_truncated = pun_htmlspecialchars(trim(substr($cur_topic['subject'], 0, 

($max_subject_length-5)))).' …';
            else
                $subject_truncated = pun_htmlspecialchars($cur_topic['subject']);

            echo '<li><a 

href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" 

title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.$subject_truncated.'</a></li>'."\n";
        }
    }

    return;
}


else
    exit('Bad request');




?>

This code seems not to allow anything to be displayed after.
I remember I had a similary problem. I told Rickard that exit; should be replaced by return; which was done.
But now, I really do not see where the problem comes from.

Ludo,

217

(18 replies, posted in PunBB 1.2 troubleshooting)

I put that before extern's code:
$_GET['action'] = 'active';
$_GET['show'] = 10;
$_GET['nfid'] = 11;

So now, recents discussions are displayed.
The only problem I got is that all the code after extern is not displayed. A problem with return; ?

Ludo,

218

(18 replies, posted in PunBB 1.2 troubleshooting)

I finally solved error problem.
Now, extern.php is in my page.
It tells me:
No parameters supplied. See extern.php for instructions.

What do I have to modify to manually put parameters in extern.php



Ludo,

219

(18 replies, posted in PunBB 1.2 troubleshooting)

functions.php was already required. So, I deleted one.
Now I got a new error, but I do not find how to solve it:

Fatal error: Cannot redeclare class dblayer in /home/ju37853/forum/include/dblayer/mysql.php on line 32

Ludo,

220

(18 replies, posted in PunBB 1.2 troubleshooting)

Ok, so now, I only got one error with that code in my page:

<?php
// The maximum number of topics that will be displayed
$show_max_topics = 60;

// The length at which topic subjects will be truncated (for HTML output)
$max_subject_length = 25;

// DO NOT EDIT ANYTHING BELOW THIS LINE! (unless you know what you are doing)


@include PUN_ROOT.'config.php';

// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
    exit('The file \'config.php\' doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');


// Disable error reporting for uninitialized variables
error_reporting(E_ALL);

// Turn off magic_quotes_runtime
set_magic_quotes_runtime(0);


// Load the functions script
require PUN_ROOT.'include/functions.php';

// Load DB abstraction layer and try to connect
require PUN_ROOT.'include/dblayer/common_db.php';

// Get the forum config
$result = $db->query('SELECT * FROM '.$db->prefix.'config') or error('Unable to fetch forum config', __FILE__, __LINE__, 

$db->error());
while ($cur_config_item = $db->fetch_row($result))
    $pun_config[$cur_config_item[0]] = $cur_config_item[1];

// Make sure we (guests) have permission to read the forums
$result = $db->query('SELECT g_read_board FROM '.$db->prefix.'groups WHERE g_id=3') or error('Unable to fetch group info', 

__FILE__, __LINE__, $db->error());
if ($db->result($result) == '0')
    exit('No permission');


// Attempt to load the common language file
@include PUN_ROOT.'lang/'.$pun_config['o_default_lang'].'/common.php';
if (!isset($lang_common))
    exit('There is no valid language pack \''.$pun_config['o_default_lang'].'\' installed. Please reinstall a language of 

that name.');

if (!isset($_GET['action']))
    exit('No parameters supplied. See extern.php for instructions.');


//
// Converts the CDATA end sequence ]]> into ]]>
//
function escape_cdata($str)
{
    return str_replace(']]>', ']]>', $str);
}


//
// Show recent discussions
//
if ($_GET['action'] == 'active' || $_GET['action'] == 'new')
{
    $order_by = ($_GET['action'] == 'active') ? 't.last_post' : 't.posted';
    $forum_sql = '';

    // Was any specific forum ID's supplied?
    if (isset($_GET['fid']) && $_GET['fid'] != '')
    {
        $fids = explode(',', trim($_GET['fid']));
        $fids = array_map('intval', $fids);

        if (!empty($fids))
            $forum_sql = ' AND f.id IN('.implode(',', $fids).')';
    }

    // Any forum ID's to exclude?
    if (isset($_GET['nfid']) && $_GET['nfid'] != '')
    {
        $nfids = explode(',', trim($_GET['nfid']));
        $nfids = array_map('intval', $nfids);

        if (!empty($nfids))
            $forum_sql = ' AND f.id NOT IN('.implode(',', $nfids).')';
    }

    // Should we output this as RSS?
    if (isset($_GET['type']) && strtoupper($_GET['type']) == 'RSS')
    {
        $rss_description = ($_GET['action'] == 'active') ? $lang_common['RSS Desc Active'] : $lang_common['RSS Desc 

New'];
        $url_action = ($_GET['action'] == 'active') ? '&action=new' : '';

        // Send XML/no cache headers
        header('Content-Type: text/xml');
        header('Expires: '.gmdate('D, d M Y H:i:s').' GMT');
        header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
        header('Pragma: public');

        // It's time for some syndication!
        echo '<?xml version="1.0" encoding="'.$lang_common['lang_encoding'].'"?>'."\r\n";
        echo '<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" 

"http://my.netscape.com/publish/formats/rss-0.91.dtd">'."\r\n";
        echo '<rss version="0.91">'."\r\n";
        echo '<channel>'."\r\n";
        echo "\t".'<title>'.pun_htmlspecialchars($pun_config['o_board_title']).'</title>'."\r\n";
        echo "\t".'<link>'.$pun_config['o_base_url'].'/</link>'."\r\n";
        echo "\t".'<description>'.pun_htmlspecialchars($rss_description.' 

'.$pun_config['o_board_title']).'</description>'."\r\n";
        echo "\t".'<language>en-us</language>'."\r\n";

        // Fetch 15 topics
        $result = $db->query('SELECT t.id, t.poster, t.subject, t.posted, t.last_post, f.id AS fid, f.forum_name FROM 

'.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS 

fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS 

NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT 15') or error('Unable to fetch topic list', __FILE__, __LINE__, 

$db->error());

        while ($cur_topic = $db->fetch_assoc($result))
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['subject'] = censor_words($cur_topic['subject']);

            echo "\t".'<item>'."\r\n";
            echo "\t\t".'<title>'.pun_htmlspecialchars($cur_topic['subject']).'</title>'."\r\n";
            echo 

"\t\t".'<link>'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].$url_action.'</link>'."\r\n";
            echo "\t\t".'<description><![CDATA['.escape_cdata($lang_common['Forum'].': <a 

href="'.$pun_config['o_base_url'].'/viewforum.php?id='.$cur_topic['fid'].'">'.$cur_topic['forum_name'].'</a><br 

/>'."\r\n".$lang_common['Author'].': '.$cur_topic['poster'].'<br />'."\r\n".$lang_common['Posted'].': '.date('r', 

$cur_topic['posted']).'<br />'."\r\n".$lang_common['Last post'].': '.date('r', 

$cur_topic['last_post'])).']]></description>'."\r\n";
            echo "\t".'</item>'."\r\n";
        }

        echo '</channel>'."\r\n";
        echo '</rss>';
    }


    // Output regular HTML
    else
    {
        $show = isset($_GET['show']) ? intval($_GET['show']) : 15;
        if ($show < 1 || $show > 50)
            $show = 15;

        // Fetch $show topics
        $result = $db->query('SELECT t.id, t.subject FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums 

AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE 

(fp.read_forum IS NULL OR fp.read_forum=1) AND t.moved_to IS NULL'.$forum_sql.' ORDER BY '.$order_by.' DESC LIMIT '.$show) or 

error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());

        while ($cur_topic = $db->fetch_assoc($result))
        {
            if ($pun_config['o_censoring'] == '1')
                $cur_topic['subject'] = censor_words($cur_topic['subject']);

            if (pun_strlen($cur_topic['subject']) > $max_subject_length)
                $subject_truncated = pun_htmlspecialchars(trim(substr($cur_topic['subject'], 0, 

($max_subject_length-5)))).' …';
            else
                $subject_truncated = pun_htmlspecialchars($cur_topic['subject']);

            echo '<li><a 

href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" 

title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.$subject_truncated.'</a></li>'."\n";
        }
    }

    return;
}

else
    exit('Bad request');
?>

The error I got:

Fatal error: Cannot redeclare check_cookie() (previously declared in /home/ju37853/forum/include/functions.php:28) in /home/ju37853/forum/include/functions.php on line 28

I have to modify anything else?

Ludo,

Patrik wrote:

http://community.webzine.se/ (its in swedish tough).

Does it use the miniportal?

Ludo,

I'm still working on it. I'll show you when I have finished. But the style I will use is the same as mypunbb.com
You also got the miniportal made by Connorhd

Ludo,

223

(18 replies, posted in PunBB 1.2 troubleshooting)

and there is not any alternative solution?

Ludo,

224

(18 replies, posted in PunBB 1.2 troubleshooting)

The first problem is solved with the code you gave me. You were absolutely right.
Now I only got two errors:

Notice: Constant PUN_ROOT already defined in /home/ju37853/forum/extern.php on line 111

Fatal error: Cannot redeclare check_cookie() (previously declared in /home/ju37853/forum/include/functions.php:28) in /home/ju37853/forum/include/functions.php on line 28

common is called only once. Pun_root is alos called once at the top of the page.
I mean, I just use the code given in this thread:

<?php

define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1); 

define('PUN_ROOT','forum/');
require ($_SERVER['HTTP_RACINE'] . '/forum/include/common.php');

if (!defined('PUN'))
    exit('config.php doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');

if ($pun_user['is_guest'])
    {
        $style = $pun_config['o_default_style'];
    } else {
        $style = $pun_user["style"];
    }
?>

and

<link rel="stylesheet" type="text/css" href="http://www.pluriservices.net/forum/style/<?php echo $style ?>.css">

Is there a solution?

Ludo, wink

225

(18 replies, posted in PunBB 1.2 troubleshooting)

In fact, the problem seem to be linked to the call function:

<?php
$ancien_get_action = $_GET['action'];
$ancien_get_show = $_GET['show'];
$_GET['action'] = 'active';
$_GET['show'] = 8;
include($_SERVER['HTTP_RACINE'] . '/forum/extern.php');
$_GET['action'] = $ancien_get_action;
$_GET['show'] = $ancien_get_show;
?>

Really any idea?

Ludo,