Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep. 21, 2014, 06:28:10 PM
56609 Posts in 12739 Topics by 19126 Members
Latest Member: orena867
News:
 
The PRADO Community » Prado v3.x » Component Repository » PRADO/Wordpress/BBPress integration v1.0... « previous next »
Pages: [1] Print
Author Topic: PRADO/Wordpress/BBPress integration v1.0...  (Read 18220 times)
javalizard
PRADO v3.x Developer
Junior Member
*****

Karma: 10
Offline Offline

Posts: 37


"Love your code, unconditionally" -Be


View Profile
« on: Sep. 07, 2007, 08:38:14 PM »

Hello everyone,

I've been wanting to share with all you something new and special.  I've needed to use Wordpress Multiuser as blogging software (it's supported and has new releases once in a while and people know how to use it) with PRADO.  Auxiliary is the integration of BBPress too.  Basically, it's a single login system for prado, blogs, and forums.

Here's what it integrates:
  • Users management in PRADO uses Wordpress
  • User roles in PRADO uses Wordpress
  • Permissions and user capabilities in PRADO uses wordpress (more an extension of PRADO)
  • User authentication in prado uses itself (sessions) and wordpress (cookies)
  • initializes most of the Wordpress code libraries (so you get actions and filters!!)
  • includes all the Wordpress plugins
  • (and it's relatively easy to integrate!)

It's a neat little system.  Once it's all set up you can log in and manipulate permissions, roles, capabilities, and users then go over and blog about it and finally check in to what people are talking about in you forum.

The instructions are not for the taint of heart but if you're using PRADO then you should know enough to do this:
0) download and unzip this package
1) download and unzip Wordpress MU into the root of the package
2) create a symolic link to wordpress called 'blogs', like this:
   ln -s wordpress-mu-1.2.4 blogs
3) install Wordpress by going to the blogs directory in your web browser
4) add/change the Wordpress wp-config.php file so that the COOKIEPATH, SITECOOKIEPATH, and
   COOKIE_DOMAIN are these values respectively '/', '/', '.mysite.com'
   (be sure to have a leading period on the domain or the cookies won't work correctly between
      http://www.mysite.com and http://mysite.com)
5) install 2 Wordpress fixes (necessary up to and including version 1.2.4):
   http://wordpress.org/support/topic/131509 -- removing user roles doesn't work
   http://wordpress.org/support/topic/132841 -- having multiple roles doesn't work
6) make sure assets and protected/runtime are writable by the php/webserver process
7) change the path to prado in the index.php file
Cool change the application.xml database connection in three places (wordpress, prado, globalization)
9) (optional) install bbpress with the wordpress extension, change the config file for the three cookie variables above to those same values
10) install the Wordpress plugin (and bbpress plugin) so when the user logs out of
   either of those two packages then the prado session will be destroyed as well
11) go to the site in your browser, fix any bugs and report them back to me on this prado forum thread
12) Log in and add these permissions to the system:
   admin
   admin_super
   can_become_user
   manage_caps
   manage_catalogue
   manage_pages
   manage_perms
   manage_roles
   manage_user_roles
   manage_users


All the best,
Brad

P.S.  I almost feel dirty putting these two popular packages together!

* wordpress-prado.zip (53.76 KB - downloaded 194 times.)
« Last Edit: Sep. 10, 2007, 12:29:09 PM by javalizard » Logged
DaMule
Senior Member
***

Karma: 13
Offline Offline

Posts: 245


Sam Hennessy


View Profile WWW
« Reply #1 on: Sep. 07, 2007, 09:20:35 PM »

Wow, great work javalizard!!!!!

I can't wait to try it.
Logged

teo
PRADO Supporter
Senior Member
*

Karma: 11
Offline Offline

Posts: 197


View Profile WWW
« Reply #2 on: Sep. 08, 2007, 01:59:17 PM »

nice! karma++ =)
Logged
rojaro
Administrator
Platinum Member
*****

Karma: 44
Offline Offline

Posts: 802


PRADO aint no voodoo ...


View Profile WWW
« Reply #3 on: Sep. 10, 2007, 12:11:21 PM »

Nice indeed Smiley
karma++
Logged

A mathematician is a device for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
eirikhm
PRADO v3.x Developer
Platinum Member
*****

Karma: 30
Offline Offline

Posts: 845



View Profile WWW
« Reply #4 on: Sep. 10, 2007, 12:44:57 PM »

Great! Thanks for sharing this with us!


Karma!
Logged

Nancy
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« Reply #5 on: Jun. 25, 2008, 04:03:27 AM »

This is amazing, thanks for sharing.
                                                                                                               
software review
Logged
Pages: [1] Print 
« previous next »
Jump to: