Okay guys, everyone wants to know how to fix the default ordering and view type problem when you have Community Board cb plugin installed. Here's how I fixed it:
NB- you need to have the Fireboard Plugin for CB!
First, make sure you have fixed the language file problem-
if you already have, go to step 4:
1) Create the necessary forum fields for CB using the Fireboard configuration:
Components > Fireboard Forum > Fireboard Configuration > Integration > Community Builder
"Create Community Builder forum profile" Click link
- if you have already changed them in the past, make sure you change them back to the correct values. Here they are again if you need to check:
Name: fbviewtype
Title: _UE_FB_VIEWTYPE_TITLE
Value1: _UE_FB_VIEWTYPE_FLAT
Value2: _UE_FB_VIEWTYPE_THREADED
Name: fbordering
Title: _UE_FB_ORDERING_TITLE
Value1: _UE_FB_ORDERING_OLDEST
Value2: _UE_FB_ORDERING_LATEST
Name: fbsignature
Title: _UE_FB_SIGNATURE
3) Navigate to JOOMLADIRECTORY/components/com_comprofiler/plugin/language/default_language/default_language.php
Add the following code:
| Code: |
DEFINE('_UE_FB_TABTITLE', 'Forum Settings' );
DEFINE('_UE_FB_ORDERING_OLDEST', 'Oldest post first' );
DEFINE('_UE_FB_ORDERING_LATEST', 'Newest post first' );
DEFINE('_UE_FB_ORDERING_TITLE', 'Message Ordering' );
DEFINE('_UE_FB_SIGNATURE', 'Your board signature' );
DEFINE('_UE_FB_VIEWTYPE_FLAT', 'View flat' );
DEFINE('_UE_FB_VIEWTYPE_THREADED', 'View threaded' );
DEFINE('_UE_FB_VIEWTYPE_TITLE', 'Prefered Viewtype' );
DEFINE('_UE_FB_TABDESC', 'General profile options' );
|
Now your field values will all be correct on the front end. If not, you did something wrong! Try again, but watch out you dont create duplicate fields!
Now your language file problem is fixed, we can sort the ordering problem out.
For this I used SQL in PhpMyAdmin.
4) Navigate to your comprofiler table in your Joomla database:
jos_comprofiler
5) Click SQL and enter the following codes and hit 'Go':
| Code: |
ALTER TABLE `jos_comprofiler`
CHANGE `fbordering` `fbordering`
VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '_UE_FB_ORDERING_OLDEST'
|
This changes the default view to Oldest post first.
| Code: |
ALTER TABLE `jos_comprofiler`
CHANGE `fbviewtype` `fbviewtype`
VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT '_UE_FB_VIEWTYPE_FLAT'
|
This changes the default view to flat.
Now whenever a new user signs up, their default views will be Oldest Post First in Flat view. You can alter those defaults if you need to, but they are most common.
6) To change all existing users to the same defaults, navigate to your comprofiler table again, Click on SQL, and enter the following code then hit 'Go':
| Code: |
UPDATE LOW_PRIORITY `jos_comprofiler`
SET `fbviewtype` = '_UE_FB_VIEWTYPE_FLAT',
WHERE 1
|
This will change all users view types to Flat
| Code: |
UPDATE LOW_PRIORITY `jos_comprofiler`
SET `fbordering` = '_UE_FB_ORDERING_OLDEST'
WHERE 1
|
This will change all users view type to Oldest post first.
I hope this all helps! I am very much a novice with all of this sort of stuff, but I am good at solving problems! If this helped you out, post here and let me know! If you have any problems, post here and let me know!
Cheers
Alex
