1

(25 replies, posted in PunBB 1.2 troubleshooting)

By the way, does it exist any converters that convert PunBB to a other system? I haven't found it. So when someone install punBB, it's [b]impossible[/i] to change later?

2

(25 replies, posted in PunBB 1.2 troubleshooting)

I need to get the intergration, it's a must for the new site. If I manage to intergrate phpBB succesfully with Mambo, I will do it - even if I can't convert from PunBB and keep all members. Converting from phpBB to PunBB was easy, so if intergratoin with Mambo and PunBB is done sometime, I will come back.

3

(25 replies, posted in PunBB 1.2 troubleshooting)

I used to have a normal site in html, without portal-system. I did not update it in a couple of months, and it sort of died. Now I want to update the site with new stuff to increase acitivity and interest. Content managers also is better, because they have more functions. I found Mambo, and it is very flexible, the best cms I've ever tried. Intergration is very important, so members don't have to register both at the site and the forum. The forum will also gain more members when people register at the site to get acces to downloads, special articles, etc.
The problem is, I'm not very good at intergrating or fixing php-things myself. I tried alone to intergrate punBB with Mambo, but I had huge problems - then I found out that phpBB was easier to intergrate, and more people had done a Mambo->PhpBB.

I don't want something like Simpleboard, actually I hate it. PunBB is my favorite, but phpBB is also good.

erissiva: I looked for a IPB convertor, but did not find anything. Do you got a link?

I am starting to give this up. My last way out might be to re-install the forum (and say good-bye to all posts and members) and then intergrate with Mambo.

I have looked at other cms's too, but Mambo is my favorite. I think it's great, and I would like to continue using it.

Right now, my plan is to convert to phpBB and get the intergration done (it is said to be pretty easy, and more people have already done it), then if someone get the PunBB->Mambo done, I will switch back to PunBB.

This forum is great, and I'll stick around even if I change to phpBB, because I am using it on a other site.

hcgtv: The link to my mambo site is www.spilldev.net/index.php (The design is horrible right now, I am learning css/div for the first time tongue)

Thanks a lot for help!

4

(25 replies, posted in PunBB 1.2 troubleshooting)

I don't have time to wait anymore. The new version of my site has been delayed in weeks now.
The phpBB-people did not have any converters. I don't have a clue about what to do now - exept re-installing my forum and loose all members and posts... But there is a converter from phpBB to PunBB, would it be that hard to just.. make the opposite something? Ehh. Is it hard to make a converter? I have no ideas.. I'm stuck. Please help if you know what to do!

5

(25 replies, posted in PunBB 1.2 troubleshooting)

hcgtv wrote:

Andorin, what CMS are you going to use?

Mambo Open Source.

6

(25 replies, posted in PunBB 1.2 troubleshooting)

What? Can't I change from PunBB? Am I bound to use PunBB forever?
What should I do?

I will still use PunBB, but not on this site. I need to change to phpBB to make the intergration. But is it impossible to convert to phpBB from PunBB?

Suggestions are very welcome.

7

(25 replies, posted in PunBB 1.2 troubleshooting)

I have used PunBB for a time now, and it was great. Now I'm updating my site with a content manager system, and it was too difficult to intergrate with PunBB. I've heard that phpBB was a lot easier to intergrate, so I will have to convert from PunBB to phpBB. My question is - can I use the converter in the download-page to convert from punBB, or just to punBB? What should I do? Thanks.

Sorry for bumping again, but I'm near giving this up. I might have to use SMF or PhpBB instead of PunBB, and that would be horrible. Can't anyone here answer post #16?

9

(5 replies, posted in PunBB 1.2 show off)

The design was good, but you have way too many sub-forums. Try combining some of the categories, it will also increase the activity on your board. You should not add that many sub-forums until it is necessary (if members ask for it).

Now both Mambo and PunBB is installed in the same database, and with the right prefix.
What would be the next step? When somebody register at the page, they should register at the forum at the same time. But I don't where in the code (and which code) to make that. Suggestions? Anyone?

Andoring? D=

Anyway, I forgot to change the mySQL name in the config.php, that's why it wouldn't work. I am stupid, oh yeah.
The forum is working fine now in the new database, now all I have left is the registration and login.

Nooo. I renamed all tables to "punbb_name", and changed the prefix to punbb_ in config.php

I get this error message when opening the forum:

An error was encountered
Error: Unable to fetch user information.


What does that mean? What could be wrong?

13

(2 replies, posted in Archive)

Er overhodet ikke sikker, men du kan jo prøve å kopiere for eksempel 'Name'-feltet, bare endre verdiene og navnene til det du vil.

14

(48 replies, posted in Feature requests)

I hope this thread has not been made before...

Anyway, all links in posts in the new version will always open in the current browser window. That's not always good, because you will kind of get out of the forum. It has been a little problem when using PunBB for me, because I'm used to just close the window with the link after I've seen it.
Is it possible to make all links users post in threads, open up in a new browser window? How?

15

(4 replies, posted in PunBB 1.2 show off)

Maybe a little too small, but very nice colors and style. And as Connorhd said, the post icons does not match with the rest of the style.
Nice work.

I'm not sure, but I will start with editing registration.php in Mambo, right? So that when a user register on the site, he will also be registered in the forum?

Here is the "registration.php" in Mambo:



<?php
/**
* @version $Id: registration.php,v 1.19 2004/09/22 00:12:41 prazgod Exp $
* @package Mambo_4.5.1
* @copyright (C) 2000 - 2004 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/

/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

$task = mosGetParam( $_REQUEST, 'task', "" );
require_once( $mainframe->getPath( 'front_html' ) );

switch( $task ) {
    case "lostPassword":
    lostPassForm( $option );
    break;

    case "sendNewPass":
    sendNewPass( $option );
    break;

    case "register":
    registerForm( $option, $mosConfig_useractivation );
    break;

    case "saveRegistration":
    saveRegistration( $option );
    break;

    case "activate":
    activate( $option );
    break;
}

function lostPassForm( $option ) {
  global $mainframe;
  $mainframe->SetPageTitle(_PROMPT_PASSWORD);
    HTML_registration::lostPassForm($option);
}

function sendNewPass( $option ) {
    global $database, $Itemid;
    global $mosConfig_live_site, $mosConfig_sitename;

    $_live_site = $mosConfig_live_site;
    $_sitename = $mosConfig_sitename;

    // ensure no malicous sql gets past
    $checkusername = trim( mosGetParam( $_POST, 'checkusername', '') );
    $checkusername = $database->getEscaped( $checkusername );
    $confirmEmail = trim( mosGetParam( $_POST, 'confirmEmail', '') );
    $confirmEmail = $database->getEscaped( $confirmEmail );

    $database->setQuery( "SELECT id FROM #__users"
    . "\nWHERE username='$checkusername' AND email='$confirmEmail'"
    );

    if (!($user_id = $database->loadResult()) || !$checkusername || !$confirmEmail) {
        mosRedirect( "index.php?option=$option&task=lostPassword&mosmsg="._ERROR_PASS );
    }

    $database->setQuery( "SELECT name, email FROM #__users"
    . "\n WHERE usertype='superadministrator'" );
    $rows = $database->loadObjectList();
    foreach ($rows AS $row) {
        $adminName = $row->name;
        $adminEmail = $row->email;
    }

    $newpass = mosMakePassword();
    $message = _NEWPASS_MSG;
    eval ("\$message = \"$message\";");
    $subject = _NEWPASS_SUB;
    eval ("\$subject = \"$subject\";");

    mosMail($mosConfig_mailfrom, $mosConfig_fromname, $confirmEmail, $subject, $message);

    $newpass = md5( $newpass );
    $sql = "UPDATE #__users SET password='$newpass' WHERE id='$user_id'";
    $database->setQuery( $sql );
    if (!$database->query()) {
        die("SQL error" . $database->stderr(true));
    }

    mosRedirect( "index.php?Itemid=$Itemid&mosmsg="._NEWPASS_SENT );
}

function registerForm( $option, $useractivation ) {
    global $mainframe, $database, $my, $acl;

    if (!$mainframe->getCfg( 'allowUserRegistration' )) {
        mosNotAuth();
        return;
    }


  $mainframe->SetPageTitle(_REGISTER_TITLE);
    HTML_registration::registerForm($option, $useractivation);
}

function saveRegistration( $option ) {
    global $database, $my, $acl;
    global $mosConfig_sitename, $mosConfig_live_site, $mosConfig_useractivation, $mosConfig_allowUserRegistration;
    global $mosConfig_mailfrom, $mosConfig_fromname, $mosConfig_mailfrom, $mosConfig_fromname;

    if ($mosConfig_allowUserRegistration=="0") {
        mosNotAuth();
        return;
    }

    $row = new mosUser( $database );

    if (!$row->bind( $_POST, "usertype" )) {
        echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
        exit();
    }

    mosMakeHtmlSafe($row);

    $row->id = 0;
    $row->usertype = '';
    $row->gid = $acl->get_group_id('Registered','ARO');

    if ($mosConfig_useractivation=="1") {
        $row->activation = md5( mosMakePassword() );
        $row->block = "1";
    }

    if (!$row->check()) {
        echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
        exit();
    }

    $pwd = $row->password;
    $row->password = md5( $row->password );
    $row->registerDate = date("Y-m-d H:i:s");

    if (!$row->store()) {
        echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
        exit();
    }
    $row->checkin();

    $name = $row->name;
    $email = $row->email;
    $username = $row->username;

    $subject = sprintf (_SEND_SUB, $name, $mosConfig_sitename);
    $subject = html_entity_decode($subject, ENT_QUOTES);
    if ($mosConfig_useractivation=="1"){
        $message = sprintf (_USEND_MSG_ACTIVATE, $name, $mosConfig_sitename, $mosConfig_live_site."/index.php?option=com_registration&task=activate&activation=".$row->activation, $mosConfig_live_site, $username, $pwd);
    } else {
        $message = sprintf (_USEND_MSG, $name, $mosConfig_sitename, $mosConfig_live_site);
    }

    $message = html_entity_decode($message, ENT_QUOTES);
    // Send email to user
    if ($mosConfig_mailfrom != "" && $mosConfig_fromname != "") {
        $adminName2 = $mosConfig_fromname;
        $adminEmail2 = $mosConfig_mailfrom;
    } else {
        $database->setQuery( "SELECT name, email FROM #__users"
        ."\n WHERE usertype='superadministrator'" );
        $rows = $database->loadObjectList();
        $row2 = $rows[0];
        $adminName2 = $row2->name;
        $adminEmail2 = $row2->email;
    }

    mosMail($adminEmail2, $adminName2, $email, $subject, $message);

    // Send notification to all administrators
    $subject2 = sprintf (_SEND_SUB, $name, $mosConfig_sitename);
    $message2 = sprintf (_ASEND_MSG, $adminName2, $mosConfig_sitename, $row->name, $email, $username);
    $subject2 = html_entity_decode($subject2, ENT_QUOTES);
    $message2 = html_entity_decode($message2, ENT_QUOTES);

    // get superadministrators id
    $admins = $acl->get_group_objects( 25, 'ARO' );

    foreach ( $admins['users'] AS $id ) {
        $database->setQuery( "SELECT email, sendEmail FROM #__users"
            ."\n WHERE id='$id'" );
        $rows = $database->loadObjectList();

        $row = $rows[0];

        if ($row->sendEmail) {
            mosMail($adminEmail2, $adminName2, $row->email, $subject2, $message2);
        }
    }

    if ( $mosConfig_useractivation == "1" ){
        echo _REG_COMPLETE_ACTIVATE;
    } else {
        echo _REG_COMPLETE;
    }

}

function activate( $option ) {
    global $database;

    $activation = trim( mosGetParam( $_REQUEST, 'activation', '') );

    $database->setQuery( "SELECT id FROM #__users"
    ."\n WHERE activation='$activation' AND block='1'" );
    $result = $database->loadResult();

    if ($result) {
        $database->setQuery( "UPDATE #__users SET block='0', activation='' WHERE activation='$activation' AND block='1'" );
        if (!$database->query()) {
            echo "SQL error" . $database->stderr(true);
        }
        echo _REG_ACTIVATE_COMPLETE;
    } else {
        echo _REG_ACTIVATE_NOT_FOUND;
    }
}

function is_email($email){
    $rBool=false;

    if(preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $email)){
        $rBool=true;
    }
    return $rBool;
}
?>



Where should I edit?

After that, do I have to re-install either the forum or the site? Or can I keep both sites and edit prefix through phpMyAdmin? If i understood right, I should first go to the PunBB-database and change

users
posts
topics

to

punbb_users
punbb_posts
punbb_topics

with all tables?



And after that, I go to config.php in PunBB and change the table-information so it matches?

I'm no master in this, so it would be very nice if anyone could correct me and help me further.

Okay. Today I am going to try it. I hope I won't destroy anything! D=
But hey, can't I backup the forum before I start? Can't find it in the admin-area...where?
So this is what I will do:

1. Go to phpMyAdmin and change the forum database to the same name as the mambo-database.
2. Find the config.php-file of the forum and edit $db_prefix = 'punbb_'; to $db_prefix = 'mambo_'; (I think I called the Mambo-site database that)
3. ...

Okay, is this right? Am I doing something wrong? I am really anxeious to do something wrong and loose all members. Can anyone please make a list of what to do to make it right? Step by step? I was a little confused of all posts here..  I really appreciate help! Thanks a lot folks! smile

D9r wrote:

First, you'd need both punBB and Mambo in the same database.  Use the prefix option when installing the forum and cms, and the tables will look something like this:

Will I have to re-install both Mambo and the forum? Does that mean that I have to loose all members and posts in the forum, and all content at the homepage? Can I make a complete backup of PunBB, then re-install the forum with prefix as you said, then use the backup to get all members back? If I do as you say, would it work then?

I'll try, but I can't loose all members and posts in the forum, like starting all over again..

It would be GREAT if anyone could help on this, and tell if it is possible.
I am running a PunBB forum installed for itself in a mySQL database called punbb.

It was a part of a site i had, which was only using normal html. For a short time ago, I went over to a content manager called Mambo (www.mamboserver.com) I installed Mambo in a new mySQL called mambo.
Now visitors can register on the site, but there is one problem. The members on the site, and the members on the forum is different. I want it like this: When a member register on the site, it will also be a member in the forum. I mean like putting the site and forum together..
The site is new, and I can delete members or the whole site if necessary - but I want to keep the forum, it has got many members...

What should I do? Does anyone know, or have tried Mambo before? Can't I just reinstall Mambo in the same mySQL-database as PunBB? Or what? What is suggested?

I have heard rumours that I will have to delete the forum, and to make Mambo work together with a forum, I need a special forum that Mambo supports. One of them is 'Simple Machines'. To be honest, I like PunBB better than all other forums in the world. I would hate to go over to Simple Machines... if I have to, is there a converter to Simple Machines? Is there any other converters than Chacmoals?

Please give me suggestions and help, I really appreciate it! Please tell me if anything is unclear, if I described bad somewhere (my english is not very good).

20

(5 replies, posted in PunBB 1.2 show off)

Thanks. I know, it's a little dark. Beause some of the outer borders in topics disappeared. If anyone could improve the css and post here, that would be great! wink

21

(7 replies, posted in PunBB 1.2 troubleshooting)

When will 1.2 language files come?
Anyway, how do I translate myself?

22

(5 replies, posted in PunBB 1.2 show off)

Hey.
I made this PunBB template for version 1.2.
What do you think? It's a blue one, and it should be nice to look at and easy to read.

www.spilldev.net/forum

23

(7 replies, posted in PunBB 1.2 troubleshooting)

Thanks. smile
Is it possible to use images, if I want? Replace the color codes with image?
And what about language?

I am currently using version 1.2 PunBB, and it's working fine. But there is some strange things about images. I still have the old 1.1.5 img folder, with the old PunBB-images. But where are the new images that is shown on the standard 1.2 templates? I want to upload my own 1.2-images to use in my own css-skin. Where do I upload? Right now, the forum is using standard Oxygen images to mark a new post has come (i used the oxygen css to create my new template), and when there are no new posts, it shows just a white square (which does not match with my blue forum).

You can have a look here: www.spilldev.net/forum

I have no idea what's wrong. It would be nice if anyone could tell me where I shall upload my images, and which files to edit to make it right.

Oh, btw, can I use the norwegian language file from 1.1.5 on my 1.2? Do I install like before?

I was making a new skin for a PunBB 1.2 forum, and it worked fine with the colors, exept for the background. I mean the background color of the page, not the tables, the page. Where in the css-file do I make the background color? Is it in the skin_cs.css?