1
libervis
integrating b2evolution and xoops!
  • 2004/10/18 1:31

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Hello

This is not exactly a module request, but more like a proposal and request for help in doing something beneficial not only to me and my site, but to the XOOPS community as well.

I want to integrate b2evolution with XOOPS on a very basic level (at least for the beginning). Now, as i don't have much MySQL and php experience, but i am willing to learn i would like someone that do have that experience and has an idea on how we could do this to join me. I would do as much as i can, and the work will be available to everyone on this site. So, i want us to create a hack that will allow for integration between an excellent blogging system, b2evolution, and XOOPS in a way that will enable users to only register once and be registered at the b2evolution as well. Also, when they log in, they will be logged in both XOOPS and b2evolution.
So this basic user registration and login will be the first goal, but we can go further in developing this solution..

I think, by my humble knowledge, that the two database tables would only be involved in this, evo_users and xoops_users. All we need to do is create a script that will convert the data being written to xoops_users when the user registers or logs in and than written to the evo_users table of b2evolution. Why converted? Because the structures are not the same. So the main job would be making this conversion script.

Now, that's my logic, but i might be wrong in something and besides that, i don't really know how to make such script and how to implement it then and that's why i ask for help by one of you experienced MySQL and php gurus. :)

I am hoping for good response. :)

Thank you very much
Daniel

2
libervis
Re:integrating b2evolution and xoops!
  • 2004/10/18 23:01

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Hmm.. Okay guys and gals.. if nobody is interested in doing this with me (or maybe you don't have time which i understand), i'll try doing it by myself. However, as i am "almost" a MySQL and php noob it should be making as i learn and learning as i make type of thing.

I am now working on much simpler thing, wrapping up a default.php starting page of b2evolution into..
include("mainfile.php");
include(
"header.php");
$xoopsOption['show_rblock'] = 1//0 for no right block
?>
This is where i need to wrap /blogs/default.php
include("footer.php");
?>


of the blogs.php (in XOOPS root) so that when i point the link to http://www.libervis.com/blogs.php it displays the b2evolution starting page wrapped into the XOOPS environment (columns, header, footer).

The purpose of this is to have a page that lists and links to all blogs by our users. I'll modify it's appereance later.

To do this i need to learn about either a php tag or function or html tag to show a page inside a page like this, and if possible avoid using frames.

After i do that, i'll get on to learning the MySQL basics and php, so that i can make that conversion script between xoops_users and evo_users table to integrate the XOOPS and b2evolution on an user-level (registrations and login).

If anyone wants to help, i am always open as it would go much better and faster with a hand of an experienced php and MySQL guy.

So, i'm on my way, i'll keep you posted.. if i really manage to pull this off eventually, you'll be provided with the source codes of the solution (mysql conversion script, wrappings etc.)

Anyway.. i hope i can do it, can i??

EDIT: I forgot to say i am using w3cschools to learn the basics. Feel free to recommend other good and easy php/mysql learning resources. Thank you.


Cya
Daniel

3
Stewdio
Re:integrating b2evolution and xoops!
  • 2004/10/18 23:10

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


I've done successfull "wrapping" of 3rd party script on many occasions. My most succesfull wrap was integrating MoveableType blog into XOOPS.

It takes more then wrapping the index.php, in fact it may not work. You will or very well have to go into your template engine for B2 and wrap the code there.

Experiementation is the key. The major draw back in doing this is that users are not registered on both systems and you will have conflicting style.css issues that will have to be worked out. It's not the easy way to do things, but the rewards are well worth the efforts.

I now try this method with all scripts, although they are not all visible on my site. I have been successful with about 6 rock solid, highly sought after scripts.

I look forward to seeing the results!

4
libervis
Re:integrating b2evolution and xoops!
  • 2004/10/18 23:52

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


What i am doing currently is not a complete integration of the whole b2evolution into xoops, only it's start page "default.php" that lists all blogs.

The primary goal after wrapping that one single php page in a new blogs.php static page would be creating a script that will make it possible for user to only be required to register once and then use both b2evolution and XOOPS with that account.

So, i am just thinking of linking the evo_users (from b2evolution) and xoops_users tables so that their content synchronizes.

That way, whenever someone registers, his information is entered in both tables at the same time thus making it register at both systems. The same way, when the log in, it should be done so that they are logged in to both systems at the same time.

I am not sure, but by my humble logic this should work, what do you think?

Of course, to make the content of two tables with different structures syncronizeable, there should be made some kind of a script that when triggered, converts the data structure from xoops_users table structure to evo_users structure. This script should be automatically be triggered by a login and registration scripts in xoops.

So, by my opinion, this hack should have the registration.php and user.php files modified to trigger the conversion script (php i guess) which will insert the converted data from the xoops_users to evo_users.

Any thoughts?
Daniel

5
libervis
Re:integrating b2evolution and xoops!
  • 2004/10/20 0:12

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Ahh... i can't do it right now.. i just don't have time to invest into this as i have to learn everything from scratch. It's easy to understand the very basics of php, but what i am looking at here seems way beyond it..

And i snooped around a bit and discovered that it would actually be easier to hack the existing worpress module to allow multiple blogs than to integrate the whole new one.. and i am still not fit for that either..

Sorry, but at least for now, i don't think i am doing this.

I'll snoop around however, try to learn more, maybe i get an idea on how to make worpress allow multiple blogs. Anyone has one?

Thanks
Daniel

6
Stewdio
Re:integrating b2evolution and xoops!
  • 2004/10/20 0:27

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Check out this news item that was posted some time ago, I think you will find it very usefull.

Good Luck

7
libervis
Re:integrating b2evolution and xoops!
  • 2004/10/20 0:41

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Thank you stewdio, but i already know about it. I actually have it installed.

It's a great module, but it still doesn't allows multiple blogs so that every user can be assigned a blog like th weblog module that i currently use.

I am looking to replace it as it's a dead project and as well lacks custumization and features. It just displays all blogs in lines, no customization of any kind so it's kind of dull. I have a leader of the OpenOffice.org LANG confederation blogging on my site and there will be more. He already expressed interest in more custumization options and features in the future and thus, i am trying to provide it.

Thanks
Daniel

8
phppp
Re:integrating b2evolution and xoops!
  • 2004/10/20 0:56

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


libervis, nobunobu's wordpress project is not dead.
I am using it for my self.

I am starting to work on "plog", the real multi-user/multi-blog based on php+mySql. Do you have interest?

9
libervis
Re:integrating b2evolution and xoops!
  • 2004/10/20 1:32

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


I haven't reffered to worpress being dead project, but weblog. Sorry if i wans't clear on that.

Yes, plog seems to be nice, i have interest. I would be glad if i could help somehow...

Thanks
Daniel

10
rajendran
Re:integrating b2evolution and xoops!
  • 2004/11/26 8:16

  • rajendran

  • Just popping in

  • Posts: 4

  • Since: 2004/11/24


Hi,

I am having a similar requirement.
Multi-User Blogs, preferably b2Evolution merged into XOOPS in a preliminary manner (probably just ensuring no duplicate registration is necessary, etc).

I am ready to collaborate and help in any way possible.

I have a good team of developers and designers to work some free time on this, and I am a what-they-call "decent" developer myself.

Can someone update on what the latest take on this effort is, so that I don't need to start from the first dig?

Thanks in advance.

Rajendran Dandapani
http://www.jambav.com

Login

Who's Online

385 user(s) are online (275 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits