Integrate Phorum into my main website ?
Posted by computerwiz
Integrate Phorum into my main website ? May 21, 2009 09:08AM |
Registered: 16 years ago Posts: 2 |
Hi,
I am relatively new to php but have learnt allot since i starting learning PHP. Althou i am no where neer expert still.
I have built a dynamic website using full css, some html and php. the webpage height auto adjusts to content etc
I have a registration system that i built myself so would not need to use the one that phorum uses. althou the tables to register with phorum such as username, email password etc i allready have on my registration system.
I want to know how i go about disabling the phorum registration and using my own only and how i add the forum to my actual webpage.
I want it so the forum sits on my webpage template. As i already have the fields phorum uses to register users and login etc i am wondering if i just add the table that add posts etc but not the registration fields.
My website template just uses two includes top.inc and footer.inc so maybe i only need to add this to a phorum file?
any help, advice etc much appreciated.
Thank you
computerwiz.
Edited 2 time(s). Last edit at 05/21/2009 11:22AM by computerwiz.
I am relatively new to php but have learnt allot since i starting learning PHP. Althou i am no where neer expert still.
I have built a dynamic website using full css, some html and php. the webpage height auto adjusts to content etc
I have a registration system that i built myself so would not need to use the one that phorum uses. althou the tables to register with phorum such as username, email password etc i allready have on my registration system.
I want to know how i go about disabling the phorum registration and using my own only and how i add the forum to my actual webpage.
I want it so the forum sits on my webpage template. As i already have the fields phorum uses to register users and login etc i am wondering if i just add the table that add posts etc but not the registration fields.
My website template just uses two includes top.inc and footer.inc so maybe i only need to add this to a phorum file?
any help, advice etc much appreciated.
Thank you
computerwiz.
Edited 2 time(s). Last edit at 05/21/2009 11:22AM by computerwiz.
Re: Integrate Phorum into my main website ? May 21, 2009 12:36PM |
Registered: 20 years ago Posts: 340 |
You just have to add the top and bottom info for your pages to the header.tpl and footer.tpl files (templates). User names need to be unique.
The phorum user table is used for more than just registration. The only way to bypass it would be to put symbolic links to your tables and add the appropriate fields. A real pain to keep up to date and something a beginner would have difficulty to get working (and maybe rewriting the database layer or at least the user api's). The easiest method would probably use the phorum registration and login and then use a custom check for being logged in on your system. [www.phorum.org]
External authentication:
[www.phorum.org]
[www.phorum.org]
[www.phorum.org]
The phorum user table is used for more than just registration. The only way to bypass it would be to put symbolic links to your tables and add the appropriate fields. A real pain to keep up to date and something a beginner would have difficulty to get working (and maybe rewriting the database layer or at least the user api's). The easiest method would probably use the phorum registration and login and then use a custom check for being logged in on your system. [www.phorum.org]
External authentication:
[www.phorum.org]
[www.phorum.org]
[www.phorum.org]
Re: Integrate Phorum into my main website ? May 21, 2009 07:10PM |
Registered: 16 years ago Posts: 2 |
May 22, 2009 06:22AM |
Admin Registered: 20 years ago Posts: 8,532 |
Beware that there are elements in the header.tpl that you do need to make Phorum work correctly. So you cannot simply replace header.tpl with an include for your top.inc. Some things that you need to have in there are the {HEAD_TAGS} and the redirect code. You might also want to make use of the titles and descriptions that Phorum sets.
You could add some code for this to your top.inc. The template vars are in $PHORUM['DATA'], so you could check if $PHORUM['DATA']['HEAD_TAGS'] is set and print that variable inside your <head> section if it is. The same can be done for the redirects.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
You could add some code for this to your top.inc. The template vars are in $PHORUM['DATA'], so you could check if $PHORUM['DATA']['HEAD_TAGS'] is set and print that variable inside your <head> section if it is. The same can be done for the redirects.
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.