FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Porting FUDforum
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Porting FUDforum [message #25339] Tue, 07 June 2005 13:07 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
What kind of things would one need to consider when porting FUDforum to another system, e.g., a CMS?

I assume the most vital thing would be having fud look at the session information of the cms rather than of fud. I become confused when I think of how a user would modify their forum information. I am sure there are other concerns.

Any thoughts on this?
Re: Porting FUDforum [message #25342 is a reply to message #25339] Tue, 07 June 2005 13:31 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, single-signon is they key part of the integration, you also must choose one app to be the "primary", let's say the CMS. Then disable any forum functionality that may end up modifying data supplied from the primary data source.

FUDforum Core Developer
Re: Porting FUDforum [message #25343 is a reply to message #25342] Tue, 07 June 2005 13:32 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Thanks. I am looking at index.php to start and I seems like a larger project than I was expecting. Can you drop a few hints as to how this might be done? Perhaps there are some tutorials or other such documention on this that isn't showing up in google for me?
Re: Porting FUDforum [message #25344 is a reply to message #25343] Tue, 07 June 2005 13:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Use the source Smile (one clue, index.php is a compiled file, so you probably want to start at index.php.t).

FUDforum Core Developer
Re: Porting FUDforum [message #25345 is a reply to message #25344] Tue, 07 June 2005 13:36 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Sigh... tell me that wasn't a star wars reference...
Re: Porting FUDforum [message #25347 is a reply to message #25345] Tue, 07 June 2005 13:43 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
The other thing would be the theme. I would need to modify the template in such a way that it doesn't mess up the structural integrity of the cms's template. I would most likely need to disable the header information and the css, and then provide fud specific replacement css in the cms css. Or something... Smile
Re: Porting FUDforum [message #25349 is a reply to message #25347] Tue, 07 June 2005 13:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, CSS and header all are contained without header.tmpl, so you can simply strip those out. But bare in mind that FUDforum layout depends on CSS, so you'll probably need to port @ least some parts of the forum.css.tmpl back in.

FUDforum Core Developer
Re: Porting FUDforum [message #25350 is a reply to message #25349] Tue, 07 June 2005 13:46 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Right, I was thinking of using the classes and descriptors and such. I don't think the template is going to be an issue for me as that is all I have been doing for the last four weeks.

[Updated on: Tue, 07 June 2005 13:47]

Report message to a moderator

Re: Porting FUDforum [message #25352 is a reply to message #25350] Tue, 07 June 2005 13:54 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
I am guessing anything with "ses" in it is a good indication of something I might need to change, e.g., ses_*
Re: Porting FUDforum [message #25355 is a reply to message #25352] Tue, 07 June 2005 14:29 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
This is a pain in the arse... I did find a few things that I might use as a temporary work-around. forum_login.php and fudapi.inc.php. However, fudapi doesn't have methods for creating accounts. I would much rather have fud check the session of the cms for a valid logon or something. Then the next issue would be to create accounts within fud database for new cms users, or to change fud to look at the user table of the cms and simply add all the extra stuff that is missing from the cms by default, e.g., IM, URL, et cetera.
Re: Porting FUDforum [message #25362 is a reply to message #25355] Tue, 07 June 2005 16:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is method for creating user accounts inside scripts_common.inc, found inside the include directory.

FUDforum Core Developer
Re: Porting FUDforum [message #26122 is a reply to message #25362] Tue, 05 July 2005 17:37 Go to previous messageGo to next message
willy is currently offline  willy   Hungary
Messages: 24
Registered: March 2005
Karma: 0
Junior Member
But create option require fud_user_reg class. fud_user_reg defined in user_reg.inc (theme based from src).
In future FUDAPI will not contains user deletion/creation/sync functions?
Re: Porting FUDforum [message #26124 is a reply to message #26122] Tue, 05 July 2005 17:43 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
At the present time fudapi script fudapi.inc.php does not offer user delete/update function. These are available from scripts_common.inc (update) or usersinc.t (which gets compiled into include/theme/default/users.inc) via add_user() and sync_user() methods.

I will probably add functions to FUDAPI to implement those two in the near future.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to order by locked status first, date secondly?
Next Topic: Compatibility problem with OSX using AOL?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 02:40:17 GMT 2024

Total time taken to generate the page: 0.02722 seconds