Show Categories
190
5
morg posted Jun 19 '15 at 8:40 am

I've recently installed Codoforum for a website, but when viewed from Firefox, there are several issues regarding styling. I.e. the placeholders in the input fields on the registration and login pages remain blank (showing two empty fields): 5583c73f3991f.png

Are there any plans to fix this and support Firefox browsers in future updates?

recent by morg  ·  Jun 20 '15 at 9:29 am
157
5
Bumble posted Jun 8 '15 at 8:14 pm

Hi,

Can you kindly help me achieve the following:

• I was wondering how I could copy the index page to a different folder such as /news/.

I then plan on assigning that to a specific category, change the html and css so it looks like a news page. (I don't need help with this part).

• I'd like to assign the /news/ page as the index page and not the /forum/ itself.

So when a member goes to www.website.com it will go directly to the news page. This will let me keep the latest Posts on the /forum/ directory.

If you have an easier way around this that would help. Any advice would be greatly appreciated!

396
1

Frchat v10.0

If I change the mysql port to anything other than default, and freichat will not install. It returns

"Failed to connect to your database ERROR: database connection failed ERROR: SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it."

Switching mysql back to the default port, and freichat will installagain.... problem is... I don't use the default ports.

Help?

bug
732
5
KopjeKoffie posted Jan 4 '15 at 8:17 pm

I have created an import file to import my old forum from the phpbb3 system. That database is on the same server.
I created this file and saved it at /sys/CODOF/Importer/Drivers/

file named phpbb3.php:
corrected code:

<?php

/*
 * @CODOLICENSE
 */

namespace CODOF\Importer\Drivers;

/**
 * 
 * SMF uses concept of boards . 
 * They have boards -> categories -> topics -> posts
 * 
 * But codoforum has categories -> topics -> posts 
 * 
 * We have seen from the tables that all topics and posts of SMF are linked 
 * with their boards . 
 * 
 * So, we will treat boards of SMF as categories of codoforum . We will not
 * concern ourselves with categories of SMF . 
 * 
 */

class phpbb3 {

    public $max_rows = 100;

    /**
     * Mention whether your posts table contain topic message as a post or not ?
     * 
     * If it is set to true , make sure the query in get_posts() below returns
     * messages of all topics too
     * 
     * Note: Importer runs faster when posts table has the message of topics
     *       but sadly not all forum systems are the same :(
     * @var type 
     */    
    public $post_has_topic = true;


    private $db;    
    public function __construct($db) {

        $this->db = $db;
    }

    /**
     * Table prefix 
     * @var type 
     */    
    public function set_prefix($prefix) {

        define('DBPRE', $prefix);
    }


    /**
     * 
     * Selects 
     * category id          -> cat_id
     * category name        -> cat_name
     * category description -> cat_description
     * category order       -> cat_order
     * category parent id   -> cat_pid 
     * @return type
     */
    public function get_cats() {

        $qry = "SELECT b.forum_id AS cat_id, b.forum_name AS cat_name, b.forum_desc AS cat_description,
                    b.left_id AS cat_order, b.parent_id AS cat_pid
                    FROM  ".DBPRE."forums AS b WHERE b.forum_type=1";

        $res = $this->db->query($qry);
        return $res->fetchAll();
    }

    /**
     * 
     * Selects
     * topic id           -> topic_id
     * topic title        -> title
     * category id        -> cat_id
     * topic created time -> topic_created
     * topic updated time -> topic_updated
     * last post id       -> last_post_id    [optional]
     * last post uid      -> last_post_uid   [optional]
     * last post name     -> last_post_name  [optional]
     * last post time     -> last_post_time  [optional] 
     * user id who creaed -> uid
     * post message       -> message [Must be selected when $post_has_topic=false Otherwise OPTIONAL]
     * post id            -> post_id [Must be selected when $post_has_topic=true  Otherwise OPTIONAL]
     * @param type $start
     * @return type
     */
    public function get_topics($start) {


        $qry = "SELECT t.topic_id AS topic_id, t.topic_title AS title,t.forum_id AS cat_id,t.topic_time AS topic_created,
                t.topic_last_post_time AS topic_updated, t.topic_poster AS uid, t.topic_first_post_id AS post_id,
                p.post_text AS message
                 FROM ".DBPRE."topics AS t 
                 INNER JOIN ".DBPRE."posts AS p ON p.topic_id=t.topic_first_post_id
                 LIMIT $this->max_rows OFFSET $start";

        $res = $this->db->query($qry);
        $result = $res->fetchAll(\PDO::FETCH_ASSOC);

        return $result;
    }

    /**
     * 
     * Selects
     * category id        -> cat_id
     * topic id           -> topic_id
     * post id            -> post_id
     * user id            -> uid
     * post message       -> message
     * post created time  -> post_created
     * post modified time -> post_modified
     * @param type $start
     * @return type
     */
    public function get_posts($start) {

        $qry = "SELECT t.forum_id AS cat_id, p.topic_id AS topic_id, p.poster_id AS uid,
                p.post_id AS post_id,p.post_text AS message, p.post_time AS post_created,
                p.post_time AS post_modified
                FROM ".DBPRE."posts AS p
                INNER JOIN ".DBPRE."topics as t ON t.topic_id=p.topic_id
                LIMIT $this->max_rows OFFSET $start";

        $res = $this->db->query($qry);
        $result = $res->fetchAll(\PDO::FETCH_ASSOC);

        return $result;

    }

    /**
     * Selects
     * user id              -> uid
     * username             -> username
     * nickname             -> name
     * password             -> pass
     * email                -> mail
     * forum signature      -> signature
     * user created time    -> created
     * user last login time -> last_access
     * user status          -> status
     * user avatar url      -> avatar
     * user role id         -> rid [OPTIONAL]
     * @param type $start
     * @return type
     */
    public function get_users($start) {

        $qry = "SELECT u.user_id AS id, u.username AS username, u.username AS name, u.user_password AS pass,
                 u.user_email AS mail, u.user_sig AS signature, u.user_regdate AS created,
                 u.user_lastvisit AS last_access, 
                 CASE WHEN u.user_rank='yes' THEN 0 ELSE 1 END AS user_status,               
                 u.user_avatar AS avatar
                FROM ".DBPRE."users AS u
                LIMIT $this->max_rows OFFSET $start";

        $res = $this->db->query($qry);
        $result = $res->fetchAll(\PDO::FETCH_ASSOC);
        //var_dump($result);
        return $result;
    }


    /**
     * Get the userid by email
     * This is used pre-import to check if admin account email address
     * given is correct or not
     * 
     * @param type $mail
     */
    public function get_user_by_mail($mail) {

        $qry = "SELECT user_id AS uid FROM ".DBPRE."users WHERE user_email=? ";

        $obj = $this->db->prepare($qry);

        $obj->execute(array($mail));
        $res = $obj->fetch();

        if (!empty($res)) {

            return $res['uid'];
        }

        return false;
    }

}

When I run it on my server at System/Importer I can select phpbb3. My error message is:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydomain.phpbb3_USERS' doesn't exist' in ...

I edited all fields to correspond the fields for phpbb3 and table phpbb3_USERS does exist.

By the way, my old demo categories from the installation of Codoforum are gone now so that went well.

What am I missing here?

recent by Ben4fi  ·  Jun 15 '15 at 10:41 pm
197
0
chocogizmo posted Jun 12 '15 at 7:07 pm

Hey there! I"m in the process of starting a mybb forum, and was looking for a good chat system and freichat seemed like the best option. I managed to install it and get it working however I'm having a little trouble with the user integration method. (and btw I understand that there's already a thread like this but it really didn't have n answer and I couldn't find anything else, so I hope I"m not spamming or anything xP)

My issue is that the article in the documentation section provides different coding then the "example code" that I"m supposed to modify and I'm not sure which one to use? I assume that when it means the user id it means the id of the user I intend to login with but when I put it in as sess=1 (which is the uid) it says it doesn't recognize it. Also I tink I'm doing something wrong because I usually get an error that says that there's an unexpected code ending.

Anyway I'd love to get this working because using the user integration is a lot more secure and safety for my users is really important..

ANyway thanks in advance for any help I really appreciate it.... if you need any screen shots of what's going on I'll be happy to provide. ^^

164
1
Bruce Bates posted Jun 9 '15 at 8:20 pm

I have freichat installed and working perfectly. Guests can access just fine, logged in members works just fine.... but my server logs are filled with the following errors:

[09-Jun-2015 19:00:58 GMT] PHP Fatal error:  Call to a member function fetchAll() on a non-object in ~/freichat/server/freichat.php on line 785

[09-Jun-2015 19:00:58 GMT] PHP Notice:  Undefined index: 55472057982b1usr_ses_id in ~/freichat/server/freichat.php on line 81

[09-Jun-2015 19:00:58 GMT] PHP Notice:  Undefined index: 55472057982b1usr_name in ~/freichat/server/freichat.php on line 82

[09-Jun-2015 19:00:58 GMT] PHP Notice:  Undefined index: 55472057982b1is_guest in ~/freichat/server/freichat.php on line 278

These logs appear over and over and over with or without guest mode enabled.

I am using the custom server driver on freichat v 10.0

I have searched the forums but everytime this problem seems to arise the fix ends up being not displayed as admin seems to request server access and manually fixes it.

I CANNOT offer server access. Can anyone help me fix this error?

677
15

Hello,

While testing with the free install we’re finding some sort of bug, that makes the chat doesn’t work properly.

When we’re trying to chat at the big chat, we aren’t able to find the textbox to write your message in. There’s no textbox and no cursor. I’ve attached a printscreen from the chatbox to show you what I mean.

551314096a593.png

When one of us was alone in a channel there was somehow a textbox, but when there are more people it was gone. And there was only one person who experienced this. I also have a printscreen of what you see when you are alone in the chat.

551337c176cf1.png

We were thinking about purchasing the chat, but if we can’t make it work it’s not usefull to buy it anyways. So please help us as soon as you can.

We also made a testaccount. The login files are as followed:
Username: Dummy
Password: Welkom01

Greetings
ZweinsteinOnline team.
www.zweinsteinonline.nl

recent by starek4  ·  Jun 9 '15 at 11:58 pm
118
1

Hi i find a error also in this forum when you create a new topic
5575cc5a6973c.png

to solve change in this file

            $sticky = $_POST['sticky'] === "true" ? 'yes' : 'no';
            $frontpage = $_POST['frontpage'] === "true" ? 'yes' : 'no';

with:


            $sticky = isset($_POST['sticky']) && $_POST['sticky'] === "true" ? 'yes' : 'no';
            $frontpage = isset($_POST['frontpage']) && $_POST['frontpage'] === "true" ? 'yes' : 'no';
recent by admin  ·  Jun 8 '15 at 7:00 pm
92
2

I was messing around with the code and I realized that dropdowns stopped working when I go into a category or a topic.

Example Home:
5573d0703b3fe.png

Example Category:
5573d08226c72.png

I have no idea what I did.. and I can't seem to fix it. @adesh Are you able to help me fix this?

Also, codoLike stopped working..
And on mobile the slide out menu doesn't work..

EDIT: I just reinstalled it...

recent by typad1  ·  Jun 8 '15 at 4:03 pm
225
5
nguoianphu posted Jun 6 '15 at 2:32 pm

Hi all,

I've just upgraded codoforum from v3.2.1 to v3.3. I'd like to discuss something.

The importer

I followed this guideline: https://codoforum.com/documentation/upgrading
It uses the Importer in the Admin Control Panel.

It just keeps your: smile

  • Topics
  • Posts
  • Users

And we lost these: smile

  • Categories
  • Blocks
  • Mail templates
  • Pages
  • Roles (user groups)
  • Configurations: Site name, site descriptions, SMTP mail configuration, Captcha code

I think we should improve the upgrade tool. smile

recent by nguoianphu  ·  Jun 8 '15 at 3:18 pm
Categories
Actions
Hide topic messages
Enable infinite scrolling
All posts under this topic will be deleted ?
Previous
Next
With selected deselect topics
Pending draft ... Click to resume editing
Discard draft