(1 replies, posted in PunBB 1.2 troubleshooting)


I managed to delete my database  today (don´t ask). But I have a backupfile of it so it should not be a problem.
However when I do the SQL Query I get the following message:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DROP TABLE IF EXISTS `categories`' at line 12

Please help anyone


Never mind.

While editing the forum I managed to overwrite common.php in the root folder with the one from from the language folder.

Quite embarresing  roll

Uploaded the right common.php to root and everything is ok smile

Hello. I suddenly got this error when trying accessing my forum:

Fatal error: Call to undefined function: pun_htmlspecialchars() in /hsphere/local/home/webtask/gufs.eterya.com/index.php on line 8

Have no idea why this happend.
Here´s the code wich the error referres to:

define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / Hjem';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/topic.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
require PUN_ROOT.'lang/'.$pun_user['language'].'/forum.php'; 

Anybody know?

Edit: I just found that I posted this under PunBB 1.3. My version is 1.2


(9 replies, posted in PunBB 1.2 troubleshooting)

MattF wrote:

The scripts are now working as they should. It's up to you to alter the config settings and CSS until you get things setup, working and looking how you want.

Yes it works outside the PunBB. I really don´t know how or what to alter in the config file to make this work. The Visuallightbox has it´s own folder with the scripts an CSS-file. Do you think that pasting the CSS code into the base.css could have any effect on this?

The irony is that I bought the software to save time roll


(9 replies, posted in PunBB 1.2 troubleshooting)

Yes. But the shaded frame around the pictures in the lightbox is suposed to be a trancparent png. The transparency is just not happening. Allso the animation is not as smooth as it should be.

Check out this link to see the difference:http://eterya.com/gallery/index.html


(9 replies, posted in PunBB 1.2 troubleshooting)

Thanks for your reply.

I tryed your suggestion but got the same result...
Not sure if I put in the right place though.


(9 replies, posted in PunBB 1.2 troubleshooting)

Thanks for the reply.

Heres the gallery page:

define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

<div class="block">
    <h2><span>Galleri 1</span></h2>
    <div class="box">
        <div class="inbox_2">
<!--Start Page Content-->
                <!-- Start VisualLightBox.com HEAD section -->
                <link rel="stylesheet" href="engine/css/lightbox.css" type="text/css" media="screen" />
        <script src="engine/js/prototype.js" type="text/javascript"></script>
        <script src="engine/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
        <script src="engine/js/lightbox.js" type="text/javascript"></script>

            .gallery {
            .gallery a {
            .gallery a:hover {
            .gallery a img {
            .gallery a#vlightbox{display:none}
        <!-- End VisualLightBox.com HEAD section -->
    <body bgcolor=#d9d6c3 >
    <!-- Start VisualLightBox.com BODY section -->    
    <div class="gallery">
        <a href="./data/images/amalilucia2008010.jpg" rel="lightbox[sample]" title="amali lucia 2008 010"><img src="./data/thumbnails/amalilucia2008010.png" /></a>
    <a href="./data/images/amalilucia2008015.jpg" rel="lightbox[sample]" title="amali lucia 2008 015"><img src="./data/thumbnails/amalilucia2008015.png" /></a>
    <a href="./data/images/amalilucia2008016.jpg" rel="lightbox[sample]" title="amali lucia 2008 016"><img src="./data/thumbnails/amalilucia2008016.png" /></a>
    <a href="./data/images/amalilucia2008036.jpg" rel="lightbox[sample]" title="amali lucia 2008 036"><img src="./data/thumbnails/amalilucia2008036.png" /></a>
    <a href="./data/images/amalilucia2008001.jpg" rel="lightbox[sample]" title="amali lucia 2008 001"><img src="./data/thumbnails/amalilucia2008001.png" /></a>
    <a href="./data/images/amalilucia2008007.jpg" rel="lightbox[sample]" title="amali lucia 2008 007"><img src="./data/thumbnails/amalilucia2008007.png" /></a>
    <a href="./data/images/amalilucia2008008.jpg" rel="lightbox[sample]" title="amali lucia 2008 008"><img src="./data/thumbnails/amalilucia2008008.png" /></a>
    <a href="./data/images/amalilucia2008009.jpg" rel="lightbox[sample]" title="amali lucia 2008 009"><img src="./data/thumbnails/amalilucia2008009.png" /></a>

    <!--[if lte IE 6]><script src="engine/js/pngfix_vlb.js" type="text/javascript"></script><![endif]-->
    <a id="vlightbox" href="http://visuallightbox.com/">Photo Album Maker by VisualLightbox.com</a>
    <!-- End VisualLightBox.com BODY section -->
<!-- End Page Content -->
require PUN_ROOT.'footer.php';

Here´s the link to the gallery: www.gufs.eterya.com/gallery_1.php


(3 replies, posted in PunBB 1.2 troubleshooting)

Thanks :-)


(9 replies, posted in PunBB 1.2 troubleshooting)

Hello all.
I recently installed the Visual LightBox sofware to save som time. That did not happend...
This software generates lightbox photoalbun fast and easy. Allso for online use.
However, I ham having a hell of a time making it work for BunBB. My only hope is that someone else bought the same software and figured out what I am unable to. Contacted their suport but so far nothing.

The problem is as follows:
When I upload this for a site for itselfe (strait HTML and not PunBB) it works. Incorporated with PunBB the transparent png background turns white and the whole thing is far from smooth.

Here´s a link to what i meen:

So if anyone can help me with this I´d be most greatful



(3 replies, posted in PunBB 1.2 troubleshooting)

I have a PunBB installation with a norwegian translation. However there are a couple of places not covered by the language file. It´s in the view topic page.
Can anyone tell me where I go in my installation to translate this?




(2 replies, posted in PunBB 1.2 troubleshooting)

I removed what had to do with timezone. But never mind. I copied all the files from the root of another forum I have and pasted them into this one and it´s working again.

However, still no confirmation e-mail gets sendt during registration.



(2 replies, posted in PunBB 1.2 troubleshooting)

I just installed PunBB v.1,2. I have done some editing and and ended up with a problem.
For some reason I cannot access the profile page. I resently edited this file to remove timezone. However, I uploaded the the original profile.php and the problem is still there. The message I get is:
An error was encountered - Error: Invalid Member ID.
I am logged in as administrator by the way.

I allso have a problem with registering as I dont recieve a confirmation e-mail.

Please help.



(6 replies, posted in PunBB 1.2 troubleshooting)

Thanks smile


(6 replies, posted in PunBB 1.2 troubleshooting)

I believe this is what generates the topics and date/time.
This is a section of index.php.

// Fetch $show 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 t.forum_id=f.id WHERE f.id='.$fid.' AND t.moved_to IS NULL ORDER BY '.$order_by.' DESC') or error('Unable to fetch topic list', __FILE__, __LINE__, $db->error());
    $show_count = 0;
    if ( !$db->num_rows($result) ) return $output;
    while ( ($show_count < $show) && ($cur_topic = $db->fetch_assoc($result)) ) {
        $temp = '';
        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 = trim(substr($cur_topic['subject'], 0, ($max_subject_length-5))).' ...';
            $subject_truncated = $cur_topic['subject'];
        $newsheading = '<a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.pun_htmlspecialchars($subject_truncated).'</a> - <em>Postet av '.$cur_topic['poster'].' kl. '.date('H:i', $cur_topic['Postet']).'</em><br>';
        // Group posts by date    
        $thisdate = date('l, d F Y', $cur_topic['postet']);
        if ($thisdate != $saveddate) 
            if ($saveddate)
                $temp .= "</div></div>";
            $temp .= '<div class="block"><h2><span>'.$thisdate.'</span></h2><div class="box"><div class="inbox"><p>';
            $saveddate = $thisdate;
        else {
            $temp .= '<div class="inbox"><p>';
        $temp .= $newsheading.'</p><p>';
        $id = $cur_topic['id'];
        $msg = $db->query('SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM '.$db_prefix.'posts WHERE topic_id='.$id.' LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
            if ( !$db->num_rows($msg) ) continue;
        $cur_post = $db->fetch_assoc($msg);
        // Display first paragraph only (comment out next four lines to turn off)
        if ($truncate == 1)
        $paragraph = preg_split("/s*n+/", $cur_post['message']);
            if (isset($paragraph[1])) {
                $cur_post['message'] = $paragraph[0] . "...";
        $cur_post['message'] = parse_message($cur_post['message'], 0);
        $temp .= $cur_post['message'];
        $temp .= "</p></div>";
        if (isset($output)) {
            $output .= $temp;
        else {
            $output = $temp;

Do you see anything wrong here.
Date and time works for the rest of the forum.



(6 replies, posted in PunBB 1.2 troubleshooting)

Not sure what code to post. Is it functions.php*? I believe I stumbeld over something there once.

About days. Exactly what I mean smile
However, it´s Mandag. I think Måndag swedish wink



(6 replies, posted in PunBB 1.2 troubleshooting)

I installed the miniportal mod.
Cool mod but I see a problem.
Follow this link to see what I mean.

Under the lorum ipsum generated text there´s a box showing the most recent posts.
Now... I did not post these the year I was born wink

The header date says Thursday, 01 January 1970 nomatter what.
Beside the title it says 01.00. This is allso wrong.

Can someone help me with this? If so, I´d like to be able to generate the days in norwegian.


Solved the problem by setting the chmod to 02777.

I read in another forum that someone has a problem with installing AP Attacmentd mod. So do I.
I get the same exact message. Unnable to copy .htaccess to new sub directory. I´ve set the chmod to 777 on that directory. But the new directory created by the installation changes back to 750 after trying to set it 777. The thing is that the attachment directory stays at 777.

I allso found out that my host has safe mode ON as a global setting and that it can´t be changed.
Does this mean that I can´t use this mod?

Anyone who can help me please?