[campsite-dev] Campsite/Phorum integration
  • We are about to finish the improvements to the Campsite/Phorum
    connection. This is a list of new features regarding user management
    between them, please do questions, comments or give us your opinion
    about it, thanks.

    Facts:

    - When registering a new user through Phorum, only the Phorum user
    requested is created. Campsite does not know anything about this
    phorum user.

    - When registering/creating a Campsite user (aka subscriber, in this
    case), a Phorum user is created at the same time too with the same
    username/password/email and it is activated by default. This way, the
    new user can post either article comments (at Campsite frontend) or
    plain forums messages (at Phorum).

    - When changing either email or password through Campsite by a user
    with privileges to do this, changes are automatically replicated in
    Phorum, and viceversa.

    - When deleting a user through Campsite, the corresponding Phorum user
    is deleted too.

    - When deleting user(s) through Phorum, only the Phorum user(s) are deleted.


    Mugur, Paul, where the user upgrade script should be placed?


    --
    /holman
  • 9 Comments sorted by
  • > Mugur, Paul, where the user upgrade script should be placed?
    All upgrade scripts are in implementation/database/upgrade. In this case (2.6.2) you'll have to
    put the upgrade scripts in upgrade/2.6.1 since they'll do the upgrade from 2.6.1.

    Mugur

    --- Holman Romero wrote:
    > We are about to finish the improvements to the Campsite/Phorum
    > connection. This is a list of new features regarding user management
    > between them, please do questions, comments or give us your opinion
    > about it, thanks.
    >
    > Facts:
    >
    > - When registering a new user through Phorum, only the Phorum user
    > requested is created. Campsite does not know anything about this
    > phorum user.
    >
    > - When registering/creating a Campsite user (aka subscriber, in this
    > case), a Phorum user is created at the same time too with the same
    > username/password/email and it is activated by default. This way, the
    > new user can post either article comments (at Campsite frontend) or
    > plain forums messages (at Phorum).
    >
    > - When changing either email or password through Campsite by a user
    > with privileges to do this, changes are automatically replicated in
    > Phorum, and viceversa.
    >
    > - When deleting a user through Campsite, the corresponding Phorum user
    > is deleted too.
    >
    > - When deleting user(s) through Phorum, only the Phorum user(s) are deleted.
    >
    >
    > Mugur, Paul, where the user upgrade script should be placed?
    >
    >
    > --
    > /holman
    >


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • Hi Holman -

    This is great stuff. One question comes to mind: what about existing
    users? The upgrade script should probably add existing users to the phorum.

    - Paul



    On 9/16/06, Holman Romero wrote:
    >
    > We are about to finish the improvements to the Campsite/Phorum
    > connection. This is a list of new features regarding user management
    > between them, please do questions, comments or give us your opinion
    > about it, thanks.
    >
    > Facts:
    >
    > - When registering a new user through Phorum, only the Phorum user
    > requested is created. Campsite does not know anything about this
    > phorum user.
    >
    > - When registering/creating a Campsite user (aka subscriber, in this
    > case), a Phorum user is created at the same time too with the same
    > username/password/email and it is activated by default. This way, the
    > new user can post either article comments (at Campsite frontend) or
    > plain forums messages (at Phorum).
    >
    > - When changing either email or password through Campsite by a user
    > with privileges to do this, changes are automatically replicated in
    > Phorum, and viceversa.
    >
    > - When deleting a user through Campsite, the corresponding Phorum user
    > is deleted too.
    >
    > - When deleting user(s) through Phorum, only the Phorum user(s) are
    > deleted.
    >
    >
    > Mugur, Paul, where the user upgrade script should be placed?
    >
    >
    > --
    > /holman
    >
  • --- Paul Baranowski wrote:
    > This is great stuff. One question comes to mind: what about existing
    > users? The upgrade script should probably add existing users to the phorum.
    Yes, he will write an upgrade script to change the db structure and create corresponding phorum
    users, I already talked to Holman on messanger.

    Mugur

    > - Paul
    >
    > On 9/16/06, Holman Romero wrote:
    > >
    > > We are about to finish the improvements to the Campsite/Phorum
    > > connection. This is a list of new features regarding user management
    > > between them, please do questions, comments or give us your opinion
    > > about it, thanks.
    > >
    > > Facts:
    > >
    > > - When registering a new user through Phorum, only the Phorum user
    > > requested is created. Campsite does not know anything about this
    > > phorum user.
    > >
    > > - When registering/creating a Campsite user (aka subscriber, in this
    > > case), a Phorum user is created at the same time too with the same
    > > username/password/email and it is activated by default. This way, the
    > > new user can post either article comments (at Campsite frontend) or
    > > plain forums messages (at Phorum).
    > >
    > > - When changing either email or password through Campsite by a user
    > > with privileges to do this, changes are automatically replicated in
    > > Phorum, and viceversa.
    > >
    > > - When deleting a user through Campsite, the corresponding Phorum user
    > > is deleted too.
    > >
    > > - When deleting user(s) through Phorum, only the Phorum user(s) are
    > > deleted.
    > >
    > >
    > > Mugur, Paul, where the user upgrade script should be placed?
    > >
    > >
    > > --
    > > /holman
    > >
    >


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • --- Mugur Rus wrote:
    > Yes, he will write an upgrade script to change the db structure and create corresponding phorum
    > users, I already talked to Holman on messanger.
    Besides the great work he already did Smile

    Mugur

    > > On 9/16/06, Holman Romero wrote:
    > > >
    > > > We are about to finish the improvements to the Campsite/Phorum
    > > > connection. This is a list of new features regarding user management
    > > > between them, please do questions, comments or give us your opinion
    > > > about it, thanks.
    > > >
    > > > Facts:
    > > >
    > > > - When registering a new user through Phorum, only the Phorum user
    > > > requested is created. Campsite does not know anything about this
    > > > phorum user.
    > > >
    > > > - When registering/creating a Campsite user (aka subscriber, in this
    > > > case), a Phorum user is created at the same time too with the same
    > > > username/password/email and it is activated by default. This way, the
    > > > new user can post either article comments (at Campsite frontend) or
    > > > plain forums messages (at Phorum).
    > > >
    > > > - When changing either email or password through Campsite by a user
    > > > with privileges to do this, changes are automatically replicated in
    > > > Phorum, and viceversa.
    > > >
    > > > - When deleting a user through Campsite, the corresponding Phorum user
    > > > is deleted too.
    > > >
    > > > - When deleting user(s) through Phorum, only the Phorum user(s) are
    > > > deleted.
    > > >
    > > >
    > > > Mugur, Paul, where the user upgrade script should be placed?
    > > >
    > > >
    > > > --
    > > > /holman
    > > >
    > >
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
    >


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • i just commited the Campsite/Phorum connection stuff.

    you need to follow these indications in order to get Campsite and
    Phorum running side-by-side with the new features:

    1- rename or, even better, copy
    implementation/management/include/phorum/include/db/config.php.sample
    to implementation/management/include/phorum/include/db/config.php
    and change the db config values to fit your installation.

    NOTE: this first step should be skipped if you already has phorum
    installed and running well.

    2- edit implementation/management/include/phorum/portable/phorum_settings.php
    to fit your installation. variables to be set are $PHORUM_DIR and
    $PHORUM_ALT_DBCONFIG

    3- create three symlinks at the html public directory like this:

    $ cd /path/to/your/campsite/html/publicdir/
    $ ln -s /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum.php
    phorum.php
    $ ln -s /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_admin.php
    phorum_admin.php
    $ ln -s /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_settings.php
    phorum_settings.php

    that is all. i know that we need to create the symlinks automatically
    at installation time but let us do it so, so far.

    you can access to phorum by going to:
    // phorum public pages
    http://your.campsite.url/phorum.php
    // phorum administration
    http://your.campsite.url/phorum_admin.php

    try actions:

    - create Campsite subscribers and see whether they are created at
    Phorum, try to login to Phorum and post
    - update either or both email or/and password for a user through
    Campsite, it should take effect at Phorum.
    - delelte user(s) from Campsite, see what is happening at Phorum, and viceversa
    - just play more...

    and give us your valuable feedback, thanks.



    On 9/17/06, Mugur Rus wrote:
    > --- Mugur Rus wrote:
    > > Yes, he will write an upgrade script to change the db structure and create corresponding phorum
    > > users, I already talked to Holman on messanger.
    > Besides the great work he already did Smile
    >
    > Mugur
    >

    --
    /holman
  • Hi Holman,

    Please apply the same changes to the trunk.

    Mugur

    --- Holman Romero wrote:
    > i just commited the Campsite/Phorum connection stuff.
    >
    > you need to follow these indications in order to get Campsite and
    > Phorum running side-by-side with the new features:
    >
    > 1- rename or, even better, copy
    > implementation/management/include/phorum/include/db/config.php.sample
    > to implementation/management/include/phorum/include/db/config.php
    > and change the db config values to fit your installation.
    >
    > NOTE: this first step should be skipped if you already has phorum
    > installed and running well.
    >
    > 2- edit implementation/management/include/phorum/portable/phorum_settings.php
    > to fit your installation. variables to be set are $PHORUM_DIR and
    > $PHORUM_ALT_DBCONFIG
    >
    > 3- create three symlinks at the html public directory like this:
    >
    > $ cd /path/to/your/campsite/html/publicdir/
    > $ ln -s
    > /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum.php
    > phorum.php
    > $ ln -s
    >
    /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_admin.php
    > phorum_admin.php
    > $ ln -s
    >
    /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_settings.php
    > phorum_settings.php
    >
    > that is all. i know that we need to create the symlinks automatically
    > at installation time but let us do it so, so far.
    >
    > you can access to phorum by going to:
    > // phorum public pages
    > http://your.campsite.url/phorum.php
    > // phorum administration
    > http://your.campsite.url/phorum_admin.php
    >
    > try actions:
    >
    > - create Campsite subscribers and see whether they are created at
    > Phorum, try to login to Phorum and post
    > - update either or both email or/and password for a user through
    > Campsite, it should take effect at Phorum.
    > - delelte user(s) from Campsite, see what is happening at Phorum, and viceversa
    > - just play more...
    >
    > and give us your valuable feedback, thanks.
    >
    >
    >
    > On 9/17/06, Mugur Rus wrote:
    > > --- Mugur Rus wrote:
    > > > Yes, he will write an upgrade script to change the db structure and create corresponding
    > phorum
    > > > users, I already talked to Holman on messanger.
    > > Besides the great work he already did Smile
    > >
    > > Mugur
    > >
    >
    > --
    > /holman
    >


    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • a couple of questions to clarify how campsite/phorum integration should work:

    think of a user registering through phorum. it will be a only phorum
    user. should he be able to look at article comments/posts in phorum
    and post to it even when it is not a campsite subscriber?

    then, what to do in that case?
    - don't show him/her forum threads linked to campsite articles? show
    - show him/her threads but dont let him/her post to them?

    the implementation that i commited allows a non-campsite subscriber
    post comments to threads linked to articles through phorum.

    i talked to Mugur about this, he told me that we could _hide_ article
    threads to only phorum users in phorum and empower to campsite
    subscribers to post through phorum (as it already does).

    let me know your thoughts on this. thanks.


    /holman


    On 9/18/06, Mugur Rus wrote:
    > Hi Holman,
    >
    > Please apply the same changes to the trunk.
    >
    > Mugur
    >
    > --- Holman Romero wrote:
    > > i just commited the Campsite/Phorum connection stuff.
    > >
    > > you need to follow these indications in order to get Campsite and
    > > Phorum running side-by-side with the new features:
    > >
    > > 1- rename or, even better, copy
    > > implementation/management/include/phorum/include/db/config.php.sample
    > > to implementation/management/include/phorum/include/db/config.php
    > > and change the db config values to fit your installation.
    > >
    > > NOTE: this first step should be skipped if you already has phorum
    > > installed and running well.
    > >
    > > 2- edit implementation/management/include/phorum/portable/phorum_settings.php
    > > to fit your installation. variables to be set are $PHORUM_DIR and
    > > $PHORUM_ALT_DBCONFIG
    > >
    > > 3- create three symlinks at the html public directory like this:
    > >
    > > $ cd /path/to/your/campsite/html/publicdir/
    > > $ ln -s
    > > /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum.php
    > > phorum.php
    > > $ ln -s
    > >
    > /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_admin.php
    > > phorum_admin.php
    > > $ ln -s
    > >
    > /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_settings.php
    > > phorum_settings.php
    > >
    > > that is all. i know that we need to create the symlinks automatically
    > > at installation time but let us do it so, so far.
    > >
    > > you can access to phorum by going to:
    > > // phorum public pages
    > > http://your.campsite.url/phorum.php
    > > // phorum administration
    > > http://your.campsite.url/phorum_admin.php
    > >
    > > try actions:
    > >
    > > - create Campsite subscribers and see whether they are created at
    > > Phorum, try to login to Phorum and post
    > > - update either or both email or/and password for a user through
    > > Campsite, it should take effect at Phorum.
    > > - delelte user(s) from Campsite, see what is happening at Phorum, and viceversa
    > > - just play more...
    > >
    > > and give us your valuable feedback, thanks.
    > >
    > >
    > >
    > > On 9/17/06, Mugur Rus wrote:
    > > > --- Mugur Rus wrote:
    > > > > Yes, he will write an upgrade script to change the db structure and create corresponding
    > > phorum
    > > > > users, I already talked to Holman on messanger.
    > > > Besides the great work he already did Smile
    > > >
    > > > Mugur
    > > >
    > >
    > > --
    > > /holman
    > >
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam? Yahoo! Mail has the best spam protection around
    > http://mail.yahoo.com
    >


    --
    /holman
  •  Here are some quick answers:a couple of questions to clarify how campsite/phorum integration should work:think of a user registering through phorum. it will be a only phorumuser. should he be able to look at article comments/posts in phorumand post to it even when it is not a campsite subscriber?ST: as long as phorum-only user's comments can be subject to moderation, or even better if it is possible to differentiate between phorum-only and campsite subscribers regarding moderation (e.g. campsite subscribers can post without moderation, phorum users can't -- or whatever combination of the two), I have no problem them looking or posting at the campsite-generated threads.then, what to do in that case?- don't show him/her forum threads linked to campsite articles? show- show him/her threads but dont let him/her post to themST: I think there is no need to hide anything, unless someone doesn't want to use the combination of commenting and phorum (there are some unenlightened beings among us, i suppose Wink, then hiding may be useful (i.e. you could use the phorum engine to drive the comments, without really showing them to the phorum-only fanatics). the implementation that i commited allows a non-campsite subscriberpost comments to threads linked to articles through phorum. ST: I think this should do the trick for now. I'd like to hear more from the MOW people and other implementers.On 9/18/06, Mugur Rus <mugur1973@yahoo.com> wrote:> Hi Holman,>> Please apply the same changes to the trunk.>> Mugur>> --- Holman Romero <holman.romero@gmail.com> wrote:> > i just commited the Campsite/Phorum connection stuff.> >> > you need to follow these indications in order to get Campsite and> > Phorum running side-by-side with the new features:> >> > 1- rename or, even better, copy> > implementation/management/include/phorum/include/db/config.php.sample> > to  implementation/management/include/phorum/include/db/config.php> > and change the db config values to fit your installation.> >> > NOTE: this first step should be skipped if you already has phorum> > installed and running well.> >> > 2- edit implementation/management/include/phorum/portable/phorum_settings.php> >  to fit your installation.  variables to be set are $PHORUM_DIR and> > $PHORUM_ALT_DBCONFIG> >> > 3- create three symlinks at the html public directory like this:> >> > $ cd  /path/to/your/campsite/html/publicdir/> > $ ln  -s> > /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum.php> >  phorum.php> > $ ln -s> >> /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_admin.php> >  phorum_admin.php> > $ ln -s> >> /path/to/your/campsite/installdir/implementation/management/include/phorum/portable/phorum_settings.php> >  phorum_settings.php> >> > that is all.  i know that we need to create the symlinks automatically> > at installation time but let us do it so, so far.> >> > you can access to phorum by going to:> > // phorum public pages> > http://your.campsite.url/phorum.php> > // phorum administration> > http://your.campsite.url/phorum_admin.php> >> > try actions:> >> > - create Campsite subscribers and see whether they are created at> > Phorum, try to login to Phorum and post> > - update either or both email or/and password for a user through> > Campsite, it should take effect at Phorum.> > - delelte user(s) from Campsite, see what is happening at Phorum, and viceversa> > - just play more...> >> > and give us your valuable feedback, thanks.> >> >> >> > On 9/17/06, Mugur Rus <mugur1973@yahoo.com> wrote:> > > --- Mugur Rus <mugur1973@yahoo.com> wrote:> > > > Yes, he will write an upgrade script to change the db structure and create corresponding> > phorum> > > > users, I already talked to Holman on messanger.> > > Besides the great work he already did :)> > >> > > Mugur> > >> >> > --> > /holman> >>>> __________________________________________________> Do You Yahoo!?> Tired of spam?  Yahoo! Mail has the best spam protection around> http://mail.yahoo.com>--/holman
  • Holman Romero wrote:
    > a couple of questions to clarify how campsite/phorum integration
    > should work:
    >
    > think of a user registering through phorum. it will be a only phorum
    > user. should he be able to look at article comments/posts in phorum
    > and post to it even when it is not a campsite subscriber?
    Yes, this is fine. Their permissions can be controlled through the
    Phorum interface - what you implemented is fine.

    >
    > then, what to do in that case?
    > - don't show him/her forum threads linked to campsite articles? show
    They should be able to see the Campsite threads.

    > - show him/her threads but dont let him/her post to them?
    General posting permissions will be controlled through Phorum - as you
    implemented this, it's fine.

    > the implementation that i commited allows a non-campsite subscriber
    > post comments to threads linked to articles through phorum.
    Great - sounds like it is done!

    - Paul