MyBB Community Forums

Full Version: All postcounts 0?? PLEASE READ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
Thank you very much! This resolved the problem on my converted community...
This can also be fixed by correcting the module code before importing. I'm assuming such a fix will be in the next release?
For instance, the phpBB3 module forums.php has:
function convert_data($data)

	{

		$insert_data = array();

		

		// phpBB 3 Values

		$insert_data['import_fid'] = intval($data['forum_id']);

		$insert_data['name'] = encode_to_utf8($data['forum_name'], "forums", "forums");

		$insert_data['description'] = encode_to_utf8($this->bbcode_parser->convert($data['forum_desc']), "forums", "forums");

		$insert_data['disporder'] = $data['left_id'];

		$insert_data['open'] = int_to_01($data['forum_status']);



		// Are there rules for this forum?

		if($data['forum_rules_link'])

		{

			$insert_data['rules'] = $data['forum_rules_link'];

		}

		else

		{

			$insert_data['rules'] = $data['forum_rules'];

		}

		$insert_data['rulestype'] = 1;



		// We have a category

		if($data['forum_type'] == '0')

		{

			$insert_data['linkto'] = '';

			$insert_data['type'] = 'c';

			$insert_data['import_pid'] = $data['parent_id'];

		}

		// We have a forum

		else

		{

			// Is this a redirect forum?

			$insert_data['linkto'] = '';

			if($data['forum_type'] == '2')

			{

				$insert_data['linkto'] = $data['forum_link'];

			}

			$insert_data['type'] = 'f';

			$insert_data['import_pid'] = $data['parent_id'];

		}

		

		// TODO: last post data?

		

		return $insert_data;

	}

Change that to:
function convert_data($data)

	{

		$insert_data = array();

		

		// phpBB 3 Values

		$insert_data['import_fid'] = intval($data['forum_id']);

		$insert_data['name'] = encode_to_utf8($data['forum_name'], "forums", "forums");

		$insert_data['description'] = encode_to_utf8($this->bbcode_parser->convert($data['forum_desc']), "forums", "forums");

		$insert_data['disporder'] = $data['left_id'];

		$insert_data['open'] = int_to_01($data['forum_status']);

		$insert_data['usepostcounts'] = 1;


		// Are there rules for this forum?

		if($data['forum_rules_link'])

		{

			$insert_data['rules'] = $data['forum_rules_link'];

		}

		else

		{

			$insert_data['rules'] = $data['forum_rules'];

		}

		$insert_data['rulestype'] = 1;



		// We have a category

		if($data['forum_type'] == '0')

		{

			$insert_data['linkto'] = '';

			$insert_data['type'] = 'c';

			$insert_data['import_pid'] = $data['parent_id'];

		}

		// We have a forum

		else

		{

			// Is this a redirect forum?

			$insert_data['linkto'] = '';

			if($data['forum_type'] == '2')

			{

				$insert_data['linkto'] = $data['forum_link'];

			}

			$insert_data['type'] = 'f';

			$insert_data['import_pid'] = $data['parent_id'];

		}

		

		// TODO: last post data?

		

		return $insert_data;

	}

If you look closely you'll see the addition of this line:
$insert_data['usepostcounts'] = 1;
Do not work now !

When I want to make changes in AdminCP post 1 I is! :

Click "Proceed" to continue the Recount and rebuild process.

give out and everything goes all right until ......
Make sure you followed all the instructions properly, it does work if done right.
Now I think it works! Thanks
Hi All!

How do I amke my post count rise after a merge from phpBB? Right now, I am posting and my post count is not increasing, it is very strange, I have no idea how to do the steps above as I am a total n00b to phpMyAdmin, does someone have some n00b steps for me to follow?
There are no simpler steps, this is what you have to do to fix it. Read this for using phpMyAdmin: http://community.mybboard.net/thread-44380.html
Okay, I am still super confused, I do not know what the heck to do...As far as I know I went to phpMyAdmin, set the "usepostcount' value to '1', I set the int and default to '1', as shown below:
[Image: example1.png]

Then I went to cache manager via ACP, and ran the rebuild cache process, then ran the first four rebuild and recounts like said by Mr Rogowski in his tutorial, but still no post counts... Confused

So, I opened cache manager again, and opened forums to view and as shown below, the "usepostcount" is still set at '0'
[Image: example2.png]

What am I doing wrong? I mean, how do I do this correctly:

Run the queries, EDIT, and SET, etc, I really do not know what to do...I even tried posting to see if a members post count will rise, and it doesnt...If i can make our post counts rise after posts then I could just manually set all members post numbers in the ACP, it is not that hard to do it that way.
No you haven't run a query, you've just changed the value for one forum. Don't change the int bit, it doesn't say anywhere to do anything with that. It still says 0 in the cache as you haven't rebuilt the cache like it says to. At the top of the phpMyAdmin page there there's an SQL tab, click that, paste the query from the first post in there. Then rebuild the forums cache in the ACP, then run the recount and rebuild tools.
Oh my goodness, you are a god among men (or a goddess among women), but all I know is I did not know it was that simple mate, thank you...May I recommend that you should be more simplistic in your first post so newbies like me dont have to keep on getting stuck Toungue

Either way, thank you Mr Rogowski, thank you very much Smile
Pages: 1 2 3 4 5