View previous topic :: View next topic |
Author |
Message |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Wed Jan 12, 2005 12:07 pm Post subject: [Request] Message board integrated with b2? |
|
|
Hi! Is there any forum or messageboard which can integrate with the b2 usersystem? If not, it should be something to work on... Any ideas or suggestions? I think it would be a great way to actually give members other features... _________________ http://www.licklinux.com |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 898 Location: Oslo, Norway
|
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Wed Jan 12, 2005 11:17 pm Post subject: |
|
|
Yes, but I want one added to my current b2-blog. .. _________________ http://www.licklinux.com |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 898 Location: Oslo, Norway
|
Posted: Thu Jan 13, 2005 12:08 pm Post subject: |
|
|
I have a couple of phpbb2's set up, and blog on the same multi-user site, but I haven't found any hacks that implements/co-runs with b2.
Should be possible, though. At least if you could get the b2userinfo to be joined with the tables for phpbb2 users and mess around with the cookies. _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp! |
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Tue Jan 25, 2005 11:21 pm Post subject: |
|
|
.... I guess it would be possible to set-up a second b2-blog with the same user database as the original and give every user the ability to post in this new blog. Then make categories and create layout like a forum/message-board.
Has anyone tried this? Or suggestions? _________________ http://www.licklinux.com |
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Wed Jan 26, 2005 12:44 pm Post subject: |
|
|
This is how I've done it so far:
Downloaded a new b2 bundle. Renamed every database tables in the b2config except "b2user" to use the exsisting user database in the new blog, and allow users to use both the mainblog and the new "messageblog."
Code: |
$tableposts = 'b2forumposts';
$tableusers = 'b2users';
$tablesettings = 'b2forumsettings';
$tablecategories = 'b2forumcategories';
$tablecomments = 'b2forumcomments';
|
Since I want to use this as a forum/messageboard I also adjusted this setting along with the paths and urls:
Code: |
$new_users_can_blog = 1;
|
Then upload the whole thing into a new folder and run b2install.php.
Everything worked fine, and new users were able to register and post messages. Old users were able to use both blogs with their login.
One problem occured though. The newly registered users are also given permission to post in my main b2-blog, since they automaticly become "level 1". Is there any way to change this?
The solution may be to set the post-permission level in my mainblog higher than level 1. Say level 5. How can I do this? _________________ http://www.licklinux.com |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 898 Location: Oslo, Norway
|
Posted: Wed Jan 26, 2005 1:53 pm Post subject: |
|
|
Ahm..
edit b2-include/menutop.txt? But this has nothing to do with actual posting..
Unless you add
Code: | 8 b2edit.posts.php Edit/Post |
or something like that...
shouldn't your _original_ b2.config set the permissions on your original blog?
allow_new_users = 0 and new_users_can_post = 0 ?? _________________ Sigg3.net - You know you're worth it! | b2 Cafelog Resource Center | Fight my BattleImp! |
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Wed Jan 26, 2005 5:01 pm Post subject: |
|
|
That has no effect...
On my originial blog i have new_users_can_post = 0 BUT since I want to use the same user database on both blogs, new users from the messageblog will automaticly become level 1 users because of new_users_can_post= 1 and have the ability to post in my original blog anyway... Thats why I want to raise the permission level... _________________ http://www.licklinux.com |
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Thu Jan 27, 2005 10:59 pm Post subject: the solution! |
|
|
I figured it out... Simply open b2edit.php and edit all the
Code: |
if ($user_level == 0)
die ("Cheatin' uh ?");
|
to:
Code: |
if ($user_level < 5)
die ("Cheatin' uh ?");
|
and likewise will all the different "cases." _________________ http://www.licklinux.com |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 898 Location: Oslo, Norway
|
|
Back to top |
|
 |
sh0ck
Joined: 02 May 2004 Posts: 52 Location: Norway
|
Posted: Thu Feb 03, 2005 8:27 am Post subject: |
|
|
wait a month and i'll have the journal system up and running... _________________ http://www.licklinux.com |
|
Back to top |
|
 |
Sigg3
Joined: 03 Jul 2003 Posts: 898 Location: Oslo, Norway
|
|
Back to top |
|
 |
|