HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocPortal 2.1 WowBB driver

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#11043 (In Topic #2445)
Avatar

ocPortal 2.1 WowBB driver

Attached is the WowBB driver for ocPortal 2.1.

You will need to replace your /sources/users.php with the attached, modified version, and upload wowbb.php to /sources/forum/.

To convert an existing installation to use your newly installed WowBB driver, you will need to edit info.php:
  • Change "forum_type" to "wowbb"
  • Change "board_path" to the path for your forums (as seen in your FTP client)
  • Change "board_prefix" to the URL for your forums (as seen in your browser)
  • Change the "*_table_prefix" value's name to "wowbb_table_prefix", and its value to the table prefix for WowBB's database tables
  • Change "user_cookie" to "wowbb|0"
  • Change "pass_cookie" to "wowbb|1"
  • Change "db_forums", "db_forums_host", "db_forums_user", and "db_forums_pass" to their respective values concerning your WowBB database

Attachment
» Download: users.php (17 Kb, 107 downloads so far)


Attachment
» Download: wowbb.php (18 Kb, 103 downloads so far)

Back to the top
 
Posted
Rating:
#12163

Non-joined user

has anyone had experience using WowBB w/OcPortal?  Care to comment?  Can anyone compare it to InVision and other Forum software?  Thanks!
Back to the top
 
Posted
Rating:
#12174
Avatar

Well-settled

Yes, I do; I'm the one who commissioned the driver and I'm currently doing work on my site as well as some experimenting.  What would you like to know?

-Aaron / PoliticalVoice

"Some mornings it just doesn't seem worth it to gnaw through the leather straps." - Emo Phillips

"Really don't mind if you sit this one out. My word's but a whisper, your deafness a SHOUT. I may make you feel, but I can't make you think." - From the album Thick as a Brick by Jethro Tull (written by Ian Anderson)
Back to the top
 
Posted
Rating:
#12252

Non-joined user

Thank you for creating this driver.

I'm new with all this and I have a couple questions about the changes that need to be made in the info.php file.

1. I don't have "board_prefix" listed as an option to change. Could it be named something else?

2. **Change the "*_table_prefix" value's name to "wowbb_table_prefix", and its value to the table prefix for WowBB's database tables**

I have this listed twice in my info.php.

The first one is on line 11 and says "table_prefix".
The second one is on line 26 and says "ocf_table_prefix"

Which one do I change, or do I change both?

Thank you in advance for any input you have.
Back to the top
 
Posted
Rating:
#12254
Avatar

By this I'm assuming that you chose to install with no forum when you installed ocPortal.

1. You'll have to create the entry; copy the following code to near the bottom of info.php (create a line before the "?>"):

Code

$SITE_INFO['board_prefix']='http://localhost/ocPortal/2.1/forums';

Change the value in single quotation marks to the path at which your copy of WowBB is installed. (i.e. If you enter " http://example.com/forums" in your browser to visit your copy of WowBB, replace the current value with that.)

2. You should change the "ocf_table_prefix" entry on line 26 to "wowbb_table_prefix", and its value to that which you entered when installing WowBB for the table prefix.

:)

Back to the top
 
Posted
Rating:
#12255

Non-joined user

Thank you Philip for your quick response.

Yes, I did install with the 'No Forum' option.

I did what you said and I no longer get the error message. Thank you.

Real quick:

Since I installed it with the "No Forum' option selected, is there anything else I should change/add/modify to prevent future errors?

Thanks again.



Last edit: by Guest
Back to the top
 
Posted
Rating:
#12256
Avatar

As long as you've followed all the instructions, and have WowBB and ocPortal installed properly, I can't see why you should get any more errors. ;)

Back to the top
 
Posted
Rating:
#12264

Non-joined user

Thank you for your help.

I am getting some more error messages that maybe you could help me out with, or point me in the right direction.

I am getting this error message on the right side of our OCPortal home page.

Notice: Undefined index: points_gained_given in /home/vision7/public_html/oc/sources/points.php on line 27

Notice: Undefined index: points_gained_rating in /home/vision7/public_html/oc/sources/points.php on line 28

Notice: Undefined index: points_gained_voting in /home/vision7/public_html/oc/sources/points.php on line 29

Notice: Undefined index: points_used in /home/vision7/public_html/oc/sources/points.php on line 49


And i am also getting this error on the admin page, inside 'Configuration' 'Site Settings'. Even if i don't change a single setting and just click 'Proceed' at the bottom. The next page has this error at the very top (Above Header)-

Notice: Undefined index: sites in /home/vision7/public_html/oc/admincentre/pages/modules/admin
_config.php on line 211
Fail: UPDATE wowbb_users SET ocp_sites=', ocPortal-?' WHERE (user_id=1)


And this below the header

An error has occurred
Unfortunately a query has failed [UPDATE wowbb_users SET ocp_sites=', ocPortal-?' WHERE (user_id=1) ] [Unknown column 'ocp_sites' in 'field list']


with a list of Stack Traces following it.

Any input on how to fix this or where i can go to figure it out would be greatly appreciated.

Thank in advance

Back to the top
 
Posted
Rating:
#12265
Avatar

Ah. To fix this it would be best if you just reinstalled ocPortal, choosing the WowBB option for the forum driver. Before you do this, you must make sure that the two replacement files are in-place.

Back to the top
 
Posted
Rating:
#12266

Non-joined user

Initially i did the automatic install and it didn't have an option for WOWBB.

So, do i need to uninstall everything, download the files from OCPortal, and do a manual install?

I don't want to keep bugging you, but would you mind clarifying exactly what i should do to make sure that i install it properly with the WOWBB driver

I really appreciate all the feedback and help you've given me.
Back to the top
 
Posted
Rating:
#12267
Avatar

To install with the option of installing to WowBB, you will need to use the manual install; unpack and upload all the files as detailed in the manual install instructions, then overwrite the /sources/users.php file with the one above, and upload the /sources/forum/wowbb.php file. Once you've done that, run through the manual installer, selecting WowBB as the forum-of-choice, and enter all the details. Once you've completed the installer, ocPortal should be fully integrated with WowBB, and you shouldn't have to edit info.php as you otherwise would. :)

Back to the top
 
Posted
Rating:
#12268

Non-joined user

I can't thank you enough Philip.

Everything works great now.

 :thumbs:
Back to the top
 
Posted
Rating:
#12274
Avatar

Happy to help. :D
We hope ocPortal provides all you need. :)

Back to the top
 
Posted
Rating:
#12581
Avatar



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.