unclassified newsboard integration

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
unknown

unclassified newsboard integration

Post by unknown »

Greetings All.
Has anyone integrated the Unclassified Newsboard forum (UNB) with CMS MS? It's really a great
forum and I'd hate to have to use anything else. If not, are there any good tut's or other information
that'd help me accomplish this task, and maybe make a module from my experience that I can
share here. So others could do the same? I've done quite alot of searching in the forum here,
but haven't found anything solid. Most of the external links return 404/ not found. :(

Thanks for all your time and consideration, and thanks for all your work on CMS MS.
Last edited by unknown on Wed Nov 07, 2007 9:16 pm, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

OK. No one has jumped on this topic. So I'll assume the worst, and venture into this cold.
I realize that there are some informations regarding the integration of SMF with CMSMS.
SMF is one of my favorites, as is PunBB. But they (in my humble opinion) are not nearly
as nice as Unclassified NewsBoard ( http://newsboard.unclassified.de/ ). Further, I do not
care for the current integration strategy here at cmsmadesimple.org. my complaint - when
ever my log on runs out while posting to a topic, the SMF/CMSMS prompts me to log back on
(as it should) but gets complete amnesia. In other words; After logging back on, it returns me
to the editor, but the editor is completely blank. It doesn't know what article I was
responding to, nor does it retain any of the information I had in my reply. :( Sheesh... I guess
Smarty ain't so Smart. :P
Anyway, I realize that the integration is still probably being polished. But I still favor Unclassified
NewsBoard and hope I can overcome any short comings I've encountered here. :)

So, for the benefit of others that might be attempting a similar scenario, I'm going to use this
thread as a sort of "note pad" and jot down all my thoughts and actions here - a sort of "Blog",
if you will.

So, by all means, should you/anyone have any thoughts suggestions, ... do feel free to
"chime in" - please.

Best wishes.
Last edited by unknown on Wed Nov 07, 2007 11:25 pm, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

OK.
First steps:
Given that both CMSMS and UNB use MySQL to store data. I'm going to Dump both DB's and find
commonalities and discover the best way to share User Data. I used a prefix when installing UNB
but didn't when installing CMSMS. I'm thinking that I should have thought about all this before
installing either of them. 'cause I think the prefix could have been a good strategy in sharing
data. Oh well. :-[
Anyway, for onlookers, my install layout is this:
CMSMS - / ( root dir of host - http://hostmane.domain.tld/ )
UNB - subdir of CMSMS - /unb - ( http://hostname.domain.tld/unb )

Server : Apache 1.3.x
PHP : 4.4.x
mod_rewrite - working perfectly for UNB - CMSMS doesn't seem to support mod_rewrite
MySQL : 4.1.x
OS : UNIX (*BSD)

Well, I'll leave it here and report back after dumping both DB's.....
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: unclassified newsboard integration

Post by calguy1000 »

You're assuming that there's an integration strategy between SMF and CMS.  There isn't one.

We have not modified SMF or CMS..... unless creating an SMF theme that 'looks like' www.cmsmadesimple.org counts.

SMF afaik is not smarty powered, and even if it was, smarty is a templating package, it has little to do with cookies, sessions, and all that other funky stuff.

You've tried to slam three packages (SMF, smarty, and CMS) whilst only showing your lack of experience and/or knowledge. 

It's often better to ask questions first, as well as do a few searches in the forum to figure things out before commenting like this.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
unknown

Re: unclassified newsboard integration

Post by unknown »

Hello, and thank you for your reply.
I'm afraid you've misunderstood me. I was not attempting to slam anything at all.
I regret that this was your interpretation. Frankly, in regard to SMF/CMSMS I was only
sharing my experience, and my perception of the interaction of the individual
components that make up the package. As for my "lack of knowledge" Indeed
While I do posses a fair amount of knowledge where internet related applications,
and associated languages are concerned; I am only just now experimenting with CMSMS.
Which is what this thread (and I believed this forum) are all about. No? As for my crack
about smarty; I believed that the caching properties and control where that's concerned
would/could somehow retain the data I was creating when the session "timed out".
Maybe I'm wrong, I hadn't spent that much thought on it. It was only intended as a comical
crack. Not a personal attack against you. Hell, I don't even know you. Why would I assert
anything against you?!
Really. I don't have any idea why you would choose to direct such strong words in my
direction. My sole purpose in starting this thread has been in an effort to make a positive
contribution to CMSMS and it's current (and future) users. Anything that I share that may
appear to be negative in regards to CMSMS is 1) Only an experience that I am having that
is contrary to what I might have expected. 2) and more importantly; Is not ever directed
as a personal attack against you or anyone else involved with the project.

I sincerely hope my intent has become clearer. If I have crossed any boundries, by all
means, please let me know.

Thank you for all your time and consideration in these matters.

P.S.
For the record, I indicated that I liked three products:
SMF is one of my favorites, as is PunBB. But they (in my humble opinion) are not nearly
as nice as Unclassified NewsBoard
:)
Last edited by unknown on Thu Nov 08, 2007 2:21 am, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

OK. Now that I've had a bit of time to play with both of them living under the same root folder.
I've discovered some real advantages to choosing UNB as a Forum to use with CMSMS.
UNB was designed with the knowledge that it would likely be used in conjunction with a
web site that has a front/home page other than the Forum (UNB). It gives you the
option to choose a main page, and if you choose this option, it creates a button
on the far left (beginning) of the main menu that says "main page". Given that UNB has
been installed as a sub directory of CMSMS. All I needed to do was choose / as
the main page, and I'm dumped into CMSMS. :)
Now, I've dumped both DB's
Initially, I'm looking to get UNB to search the USER entries from CMSMS to see if a user
exists, and if so, if they're already logged on, or not. If the user doesn't already exist and
is attempting to log on/register, they get dumped to the CMSMS logon/registration page.
This means 2 things 1) There needs to be session sharing, and 2) they need to share
the same data pool (DB). So, rather than start with session integration, I'm going to look
at the DB's and see what needs to be done to get them to share information (matching/
mapping fields).

Here, I'm going to to the phpbbx (http://dev.cmsmadesimple.org/projects/phpbbx),
and PunBB / Protected Pages (http://dev.cmsmadesimple.org/projects/punbb) projects,
and examine the source for inspiration. :)
Last edited by unknown on Thu Nov 08, 2007 3:24 am, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

unknown wrote: Here, I'm going to to the phpbbx (http://dev.cmsmadesimple.org/projects/phpbbx),
and PunBB / Protected Pages (http://dev.cmsmadesimple.org/projects/punbb) projects,
and examine the source for inspiration. :)

OK. Both of these do help reduce some of the investigative work I would have otherwise needed
to do.
But after doing some other investigation, it appears that the Front End Users module:
http://dev.cmsmadesimple.org/projects/frontendusers
may provide the (or some of the) hooks necessary to accomplish my goal faster.
phpbbx: http://dev.cmsmadesimple.org/projects/phpbbx is also tied to this module.
The Self Registration module: http://dev.cmsmadesimple.org/projects/selfreg may also
provide some help here.

Looking at all these now...
cyberman

Re: unclassified newsboard integration

Post by cyberman »

unknown wrote: mod_rewrite - working perfectly for UNB - CMSMS doesn't seem to support mod_rewrite
Please make a look at config.php - there you will found an option to enable mod_rewrite for CMSms :).
unknown

Re: unclassified newsboard integration

Post by unknown »

cyberman, thank you very much for your reply. :)
cyberman wrote: Please make a look at config.php - there you will found an option to enable mod_rewrite for CMSms :).
Yes, I've investigated that. But I'm afraid I still wasn't able to get mod_rewrite to work.
I've read everything I could find on the subject for CMSMS (wiki, forum search, etc...).
But none of the instructions worked. I probably have more than 200 lines in the httpd.conf
file for other web services that use mod_rewrite, and they all work perfect. It's just CMSMS
I'm having trouble with. I haven't given up yet. Just haven't found the answer.

Thanks again for taking the time to respond. I appreciate it. :)
unknown

Re: unclassified newsboard integration

Post by unknown »

Well,
In the short run phpBBx has turned out to be great for prototyping. I've managed to model a plugin
closely related to it's design. On the down side, it has dependencies on  the
Front End Users module (http://dev.cmsmadesimple.org/projects/frontendusers).
It's not that the Front End Users module is bad, or anything. It's just that it adds another layer
of complexity. Which for this projects final intended purposes, strays from it's final intended
direction. So in the final aftermath, it may well be that I end up producing 2 different options:
the plugin I've all but finished now,
and something more closely resembling PunBB / Protected Pages
(http://dev.cmsmadesimple.org/projects/punbb).

Well, that's where it stands at this moment.
I'll be posting the plugin here pretty soon. :)


Last edited by unknown on Fri Nov 09, 2007 6:11 pm, edited 1 time in total.
streever

Re: unclassified newsboard integration

Post by streever »

Hey Unknown,

great job jumping in and starting on this!

I assume you decided not to go the route of converting UNB into a module?

that seems the easiest way. So the user management is all just part of FEUs--which lets people register etc via CMSMS and integrates that all into the CMS--and having UNB use the SAME database as CMSMS, so that all the data can be pulled into ANY page/application.

Does that make sense to you? Maybe that is what you are already doing, or there is a reason not to that I am not thinking of, but I think that sounds the easiest LONG TERM and seems the best way...
unknown

Re: unclassified newsboard integration

Post by unknown »

Hello streever.
Thanks for the "props". :)
I'm not sure I follow you exactly. What I've done thus far, is to create a plugin that meerly needs to be
dropped into the "/plugins/" folder. It's just one simple (sort of) file. But in order to use it, FEU must
be installed. Cause the hooks in the plugin are tied to those provided by FEU. All that's needed after
that, is to use the following in any page:

Code: Select all


{unbadd tablepref="cmsms_unb_" dir="unb"}

But this strays from my original intentions. Which are actually more closely modeled after
PunBB / Protected Pages.

Does this make any better sense?
How does this differ from your thoughts (assuming they do)?
unknown

Re: unclassified newsboard integration

Post by unknown »

OK, Looks like I've got to do some more x-referencing.  :(
I thought I pretty much had it. But, I just discoovered I have alot more options (globals) available
in UNB than I originally thought. This is both good and bad. It's great to have, in the big picture
(flexibility/robustness). But for the present scheme, I'm going to have to add alot more lines of
code to use the file I'm working with now. Might also need to install a copy of phpBB to shorten
the length of detective work I'm doing with this file. In the big picture with the one I'm working
with now, I wish I had more background with FEU. That'd surely have been a big help -
Hey calguy1000, are you listening? :)

Hell.If I had more background with CMSMS, it'd be a big help.  :)

OK, break time over. Back to work...


Last edited by unknown on Sat Nov 10, 2007 12:37 am, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

OK. The results are in!

After a tremendous amount of R&D, and way too many hours without sleep. I've finally
decided to go with the approach sjs (Samuel Goldstein) did with PunBB / Protected Pages.
I spent quite alot of time with the phpBBX TAG based plugin that helps integrate phpBB2
into CMSMS. But it also has dependencies on Frontend Users. Which, unfortunately
increases the overall complexity by:
  • Requiring the installation of another module
  • and, while FEU does add additional functionality to managing users, it duplicates much of the functionality already available in the User Admin panel
  • which makes user management more complex than required/necessary for this project
Of course much of this is moot, if you already have, or intend to install/use FEU. But, I wanted this
to be as generic and simple as possible for the end user. This will better insure it's stability, and
usability for the end user/ administrator. So ultimately, this needs to be as "stand-alone" as possible.
Dependencies should be limited to CMSMS & UNB. I can/should incorporate any user management
requirements into this module. Not require the end user/admin to get & figure out how to use
yet something else. :)

I also considered an approach using nuSOAP. As described here. I liked this approach better than
FEU, because (as most already know) nuSOAP is already a part of CMSMS. I also haven't completely
given up on this approach. As using this type of approach would allow me to incorporate any forum
into CMSMS. So, when done with my current choice of directions. I'll come back to this. :)

I like almost everything about the way sjs went about creating the PunBB /Protected pages module.
But I wasn't keen on the forum living in the Modules directory. I suppose this isn't necessarily a real big
deal. But I was hoping to ultimately keep the forum installed in it's native fashion. Using this (my) app-
roach also seems to make it less complicated for the CMSMS admin, in laying out their content. So I
can easily accomplish this by using sjs's current installer, then use the built-in powers that PHP
provide fp to pack the finished install and move the newly created archive and unpack
it into the CMSMS root folder. Of cource I'll be doing alot of work rewriting the install procedure
and so-forth. So that the forum installation recognizes it's final resting place. :)

I'll also be adding and subtracting from sjs's current module to better lend the final product to
allow upgrading both the forum and CMSMS itself. This will include packing up (archiving/backing up)
the forum prior to upgrading the forum. This probably isn't very necessary, as almost any data will be
living in the DB anyway - which of course, everyone backs up on a regular basis - right?

But diong it this way clears the path for the newer version of the forum and adds another layer of
comfort for the CMSMS admin. :)

Well, I have more to add here. But while all of my progress is still fairly fresh in my mind. I should get
back to this project in hopes of getting a final working product soon. :)

edit
I should also add; Incorporating links to the forum will be as simple as adding a TAG to your menu/menu
template, or anywhere else you wish a link to be available.
/edit

@sjs If your watching, would you please add anything you think might help in propelling this?
Also, if you're OK with it, would you be opposed to my maintaining/changing your PunBB / Protected Pages
module to reflect my described approach? I've noticed in some of your threads about it, that you've been
fairly tied up lately. Thanks in advance for your input, and all the work you've already shared.



Last edited by unknown on Sun Nov 11, 2007 6:58 pm, edited 1 time in total.
unknown

Re: unclassified newsboard integration

Post by unknown »

Status report and ET:
  • All UNB variables present and accounted for - DONE
  • Full documentation of said variables - almost complete
    (this will be invaluable information for greater integration further down the road.)
ET:
At this pace, I anticipate making a "dry run" installation tomorrow. :)

If all goes well, I'll post an alpha for testing tomorrow.



Locked

Return to “Modules/Add-Ons”