<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Phorum Support Forums - Phorum Integration</title>
        <description>Need to make Phorum play with your CMS? Want to use Phorums user database for the rest of your site. Discuss those topics with others here.</description>
        <link>https://www.phorum.org/support/list.php?28</link>
        <lastBuildDate>Sat, 11 Jul 2026 18:23:34 -0500</lastBuildDate>
        <generator>Phorum 6.0.0</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,162080,162080#msg-162080</guid>
            <title>Trying to use Sphider Search</title>
            <link>https://www.phorum.org/support/read.php?28,162080,162080#msg-162080</link>
            <description><![CDATA[ I am trying to add a directory named SEARCH and have search for and results appear in index.php where folder loop info appears, but under a totally different name like index2.php. What files do I need to modify?]]></description>
            <dc:creator>ClickRaider</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 01 Aug 2018 04:57:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,161876,161876#msg-161876</guid>
            <title>Add Phorum to Drupal</title>
            <link>https://www.phorum.org/support/read.php?28,161876,161876#msg-161876</link>
            <description><![CDATA[ Hi,<br />
I would like Phorum to integrate to an existing Drupal site...<br />
Is it possible? Now Phorum is runing under its own directory home/Phorum and Drupal in home/Drupal<br />
<br />
Thanks for you help,<br />
Fred]]></description>
            <dc:creator>Fred_O</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 23 Feb 2018 16:33:22 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,53105,161734#msg-161734</guid>
            <title>Re: Howto: Integrate Phorum and Wordpress</title>
            <link>https://www.phorum.org/support/read.php?28,53105,161734#msg-161734</link>
            <description><![CDATA[ Hi,<br />
<br />
anyone still using this Wordpress-Phorum bridge?<br />
<br />
Regards<br />
Oliver]]></description>
            <dc:creator>Oliver Riesen-Mallmann</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Tue, 22 Aug 2017 03:47:42 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,161704,161704#msg-161704</guid>
            <title>[Resoved]Integration dokuwiki</title>
            <link>https://www.phorum.org/support/read.php?28,161704,161704#msg-161704</link>
            <description><![CDATA[ Hello, I have phorum installed in a directory : /forum and Dokuwiki is installing on / directory.<br />
How to put the dokuwiki header, footer and menu on my forum template.<br />
My template phorum is emerald and dokuwiki theme bootstrap.<br />
<br />
Thank]]></description>
            <dc:creator>ghost2b</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sun, 11 Jun 2017 09:58:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,136113,160775#msg-160775</guid>
            <title>Re: Phorum Plug in for Social Engine</title>
            <link>https://www.phorum.org/support/read.php?28,136113,160775#msg-160775</link>
            <description><![CDATA[ i will love to get this up and ruining in my phorum version 5.2.20]]></description>
            <dc:creator>@9japromotions</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 19 Aug 2016 05:56:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,156149,156183#msg-156183</guid>
            <title>Re: how to integrate phorum in joomla</title>
            <link>https://www.phorum.org/support/read.php?28,156149,156183#msg-156183</link>
            <description><![CDATA[ I wouldn&#039;t use Joomla for anything...   [<a href="http://www.joomlaexploit.com/" target="_blank"  rel="nofollow">www.joomlaexploit.com</a>]]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 30 Oct 2015 13:45:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,156149,156182#msg-156182</guid>
            <title>Re: how to integrate phorum in joomla</title>
            <link>https://www.phorum.org/support/read.php?28,156149,156182#msg-156182</link>
            <description><![CDATA[ no body cant help please]]></description>
            <dc:creator>JPFaucon</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 30 Oct 2015 13:26:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,152546,156181#msg-156181</guid>
            <title>Re: Integration with bidding site</title>
            <link>https://www.phorum.org/support/read.php?28,152546,156181#msg-156181</link>
            <description><![CDATA[ I want to integrate this also at my this site- <a href="http://sposamoda.pl" target="_blank"  rel="nofollow">sposamoda.pl</a>.How can I do this?]]></description>
            <dc:creator>lornacroft</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 29 Oct 2015 11:15:44 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,156149,156149#msg-156149</guid>
            <title>how to integrate phorum in joomla</title>
            <link>https://www.phorum.org/support/read.php?28,156149,156149#msg-156149</link>
            <description><![CDATA[ hello is there any way to recover phorum under Kuena joomla.<br />
<br />
thk<br />
<br />
best regard]]></description>
            <dc:creator>JPFaucon</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 05 Oct 2015 13:04:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,155756,155798#msg-155798</guid>
            <title>Re: Cometchat - how to get session?</title>
            <link>https://www.phorum.org/support/read.php?28,155756,155798#msg-155798</link>
            <description><![CDATA[ The guys from cometchat.com sloved the problem. If anyone is interesstet in the files: Please write a PM :-)]]></description>
            <dc:creator>networkinghomer</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sun, 07 Jun 2015 11:21:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,155756,155756#msg-155756</guid>
            <title>Cometchat - how to get session?</title>
            <link>https://www.phorum.org/support/read.php?28,155756,155756#msg-155756</link>
            <description><![CDATA[ Hi,<br />
<br />
to get cometchat in touch with phorum, comtchat must know the name of the usersession (i think):<br />
<br />
I quoted some instructions from <a href="http://www.cometchat.com/documentation/installing-cometchat/custom-coded-site/php-site/" target="_blank"  rel="nofollow">http://www.cometchat.com/documentation/installing-cometchat/custom-coded-site/php-site/</a>:<br />
<br />
[quote=&quot;<br />
<br />
If you have written a simple PHP authentication, then during the authentication, you can specify a session variable like:<br />
<br />
 /* In your own login.php */<br />
/* After you authenticate the user */<br />
$_SESSION[&#039;userid&#039;] = $users[&#039;id&#039;]; // Modify to suit requirements<br />
<br />
Then your getUserID() function will look like:<br />
<br />
function getUserID() {<br />
  $userid = 0; // Return 0 if user is not logged in<br />
<br />
  if (!empty($_SESSION[&#039;userid&#039;])) {<br />
      $userid = $_SESSION[&#039;userid&#039;];<br />
  } <br />
  $userid = intval($userid);<br />
  return $userid;<br />
}<br />
<br />
If you are using a cookie then configure the same using the following function:<br />
<br />
function getUserID() {<br />
  $userid = 0; // Return 0 if user is not logged in<br />
<br />
  if (!empty($_COOKIE[&#039;userid&#039;])) {<br />
	$userid = $_COOKIE[&#039;userid&#039;];<br />
  }<br />
  $userid = intval($userid);<br />
  return $userid;<br />
}<br />
<br />
If you are using a more complex method of authentication like storing the session_hash in the database, then your getUserID() function will look something like:<br />
<br />
function getUserID() {<br />
    $userid = 0; // Return 0 if user is not logged in<br />
    <br />
if (!empty($_COOKIE[&#039;sessionhash&#039;])) {<br />
    $sql = (&quot;select userid from &quot;.TABLE_PREFIX.&quot;session <br />
            where sessionhash = &#039;&quot;.mysql_real_escape_string($_COOKIE[&#039;sessionhash&#039;]).&quot;&#039;&quot;);<br />
	    $query = mysql_query($sql);<br />
	    $session = mysql_fetch_array($query);<br />
	    $userid = $session[&#039;userid&#039;];<br />
    }<br />
   $userid = intval($userid);<br />
   return $userid;<br />
}<br />
<br />
&quot;]<br />
<br />
[/quote]<br />
<br />
Can anybody tel me how to edit the code?<br />
<br />
Cheers,<br />
Homer]]></description>
            <dc:creator>networkinghomer</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 14 May 2015 16:36:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,53105,155374#msg-155374</guid>
            <title>Re: Howto: Integrate Phorum and Wordpress</title>
            <link>https://www.phorum.org/support/read.php?28,53105,155374#msg-155374</link>
            <description><![CDATA[ Do you mind to share? Thank you!]]></description>
            <dc:creator>korsakov</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 12 Sep 2014 01:47:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,53105,155162#msg-155162</guid>
            <title>Re: Howto: Integrate Phorum and Wordpress</title>
            <link>https://www.phorum.org/support/read.php?28,53105,155162#msg-155162</link>
            <description><![CDATA[ I also did quite a long search for a WordPress/Forum integration, and found nothing ... So I hacked up an integration of Phorum into WordPress.]]></description>
            <dc:creator>adeliastansel</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 30 Jun 2014 08:27:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,155071,155081#msg-155081</guid>
            <title>Re: embedding phorum in current design</title>
            <link>https://www.phorum.org/support/read.php?28,155071,155081#msg-155081</link>
            <description><![CDATA[ Thanks for your reply Thomas, i thought that your answer might have been the case.<br />
<br />
I will look into phorum styling and see if i can start making phroum look like my site. I hope that the devs here are still keeping this forum software running, as i understand it phorum is more of a hobby that a full-time job for you guys. So far it is the only php forum that has what i want and runs as quickly as I would like!<br />
<br />
Thanks again]]></description>
            <dc:creator>sferguson203</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sun, 08 Jun 2014 08:24:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,155071,155079#msg-155079</guid>
            <title>Re: embedding phorum in current design</title>
            <link>https://www.phorum.org/support/read.php?28,155071,155079#msg-155079</link>
            <description><![CDATA[ well, that will need *serious* coding, so not just some handholding.<br />
put your layout to the forum and not the forum into your page.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sun, 08 Jun 2014 04:56:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,155071,155071#msg-155071</guid>
            <title>embedding phorum in current design</title>
            <link>https://www.phorum.org/support/read.php?28,155071,155071#msg-155071</link>
            <description><![CDATA[ Firstly, i must apologise i have looked through the forum and found some information regarding embed_phorum, however all information i fear may be out of date and the previously mentioned module isnt available for the latest phorum from what i gather.<br />
<br />
I have a website currently under construction, its file tree looks similar to this:<br />
<pre class="bbcode">
index.php
css/
   &gt;deafult.css
blocks/
   &gt;main.php
   &gt;about.php
   &gt;wiki.php
   &gt;forum.php
img/
forum/
...</pre>
<br />
index.php uses and array to pull in the requested page from the blocks directory and show the contents in a &lt;div&gt; (class=&quot;content&quot; if it makes any difference.) I have four main divs, header, nav, content and footer. What i would really like to acheive is when the user selects the <i>forum</i> hyperlink on index.php for my entire phorum to be pulled into the &lt;div class=&quot;content&quot;&gt; section preserving the rest of my site design.<br />
<br />
phorum is currently installed to /forum , forum.php in the blocks directory currently just has a simple html statement saying &quot;This is the forum page&quot; at the moment, but i presume that I will need to use this to pull in some hacked php to enable my entire phorum to pull through as i would like.<br />
<br />
The problem is im not a coder by any stretch of the imagination, Im not asking someone to directly solve this issue for me and hand it to me, but if someone could possibly take the time to perhaps hold my hand a little and guide me in the right direction i will gladly do my best to understand what i need to do to incorporate this :)<br />
<br />
Thanks for your time reading this, and i look forward to any responses]]></description>
            <dc:creator>sferguson203</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Thu, 05 Jun 2014 16:14:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154892,154896#msg-154896</guid>
            <title>Re: Posts Table</title>
            <link>https://www.phorum.org/support/read.php?28,154892,154896#msg-154896</link>
            <description><![CDATA[ phorum_messages is the table you want]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 20 Jan 2014 23:54:58 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154892,154892#msg-154892</guid>
            <title>Posts Table</title>
            <link>https://www.phorum.org/support/read.php?28,154892,154892#msg-154892</link>
            <description><![CDATA[ I am looking for information on pulling recently posted topics on an external php page outside of Phorum.<br />
<br />
I wanted to display them on our homepage&#039;s sidebar, but can&#039;t seem to find the table or file that they&#039;re stored in.]]></description>
            <dc:creator>punkkmedia</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 20 Jan 2014 19:15:31 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154432,154439#msg-154439</guid>
            <title>Re: How to disable some user functions?</title>
            <link>https://www.phorum.org/support/read.php?28,154432,154439#msg-154439</link>
            <description><![CDATA[ Understood. So this + hiding the links in the template should be enough. I&#039;d prefer not touching the Phorum files but I guess I&#039;ll have to.<br />
<br />
Thanks for the tip!]]></description>
            <dc:creator>remouk</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 12 Oct 2013 06:31:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154432,154434#msg-154434</guid>
            <title>Re: How to disable some user functions?</title>
            <link>https://www.phorum.org/support/read.php?28,154432,154434#msg-154434</link>
            <description><![CDATA[ One idea, given I doubt there is a hook everywhere you would need, would be to put the following near the top of the files that you don&#039;t want your users accessing:<br />
[code=&quot;php&quot;]<br />
phorum_redirect_by_url(phorum_get_url(PHORUM_INDEX_URL));<br />
exit();<br />
[/code]<br />
Add it after the phorum stuff is included but before what you don&#039;t the user accessing.  Then if the user tries to access forbidden stuff, they will just get redirected to the index page.<br />
<br />
Look at the top of <i>profile.php</i> to see how it is done.  HTHs.]]></description>
            <dc:creator>Skinny</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 11 Oct 2013 18:15:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154432,154432#msg-154432</guid>
            <title>How to disable some user functions?</title>
            <link>https://www.phorum.org/support/read.php?28,154432,154432#msg-154432</link>
            <description><![CDATA[ Hi there,<br />
<br />
I&#039;m integrating Phorum with my website. It&#039;s very well done, I easily managed to login from my website and create the user on the fly if needed, etc. Then I disabled registration, login and logout from Phorum, the same way it&#039;s done in the External Auth. plugin.<br />
<br />
But I don&#039;t understand how to disable other things that will mess with the integration: &quot;change password&quot; for example, &quot;change email&quot;, etc. I don&#039;t want the users to change it in Phorum, they should do it in my website.<br />
<br />
Can anyone give me a hint on how to achieve that? Thanks a lot!]]></description>
            <dc:creator>remouk</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 11 Oct 2013 13:13:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154358,154360#msg-154360</guid>
            <title>Re: Users authenticate twice</title>
            <link>https://www.phorum.org/support/read.php?28,154358,154360#msg-154360</link>
            <description><![CDATA[ there is nothing build into phorum which uses the apache ldap external plugin so I guess its a module which you are using. You should contact the module author.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 28 Sep 2013 01:58:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154358,154358#msg-154358</guid>
            <title>Users authenticate twice</title>
            <link>https://www.phorum.org/support/read.php?28,154358,154358#msg-154358</link>
            <description><![CDATA[ Hi<br />
I have integrated Phorum within our site and it authenticates using the apache ldap external plugin.  But for some reason, the user has to enter their credentials twice, one for the site and again for Phorum.  I assume the site is not passing the user information to Phorum. What step am I missing?<br />
<br />
I did a search but could not find a similar problem.  If a thread already exists, please forward it.<br />
<br />
Thanks in advance!]]></description>
            <dc:creator>rbrown</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 27 Sep 2013 22:28:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154319,154321#msg-154321</guid>
            <title>Re: Integration in the general case</title>
            <link>https://www.phorum.org/support/read.php?28,154319,154321#msg-154321</link>
            <description><![CDATA[ On the flip side of this issue, another problem with nearly all open source content generators is their pervasive reliance on codes who make use of embedded templating systems.  *.tpl templates are easy to manipulate if and only if you merely want to tweak the appearance of that particular template include.  But what if you want to move block elements around like musical chairs? And how do you change what a given template include does, when template include statements are peppered throughout external PHP codes like bits of black olives in a spaghetti sauce, from who knows where?<br />
<br />
Templating systems are rumored to make modification easy, when in fact they make it more difficult.  For instance, if Phorum <b>(which is otherwise the best forum software out there)</b> was easy to manipulate graphically, there would now be a host of contemporary-looking skins to make use of. But instead the template library consists of a long list of derivative tables-based looks that change largely by color and border style only.  Trying to modify skins is trickier than writing new plugin codes.  I have my ideas about big-picture directions to go in.  But even without specific alternative suggestions I am firmly convinced templating systems are holding the whole web development picture back.  To a look-and-feel snail&#039;s pace.<br />
<br />
Ok. I&#039;m ready to receive all incoming arrows.  But I do predict in a decade&#039;s time all content production systems will be able to embed all others, and versa visa.  And new look-and-feel skins will be a lot easier to modify than they are today.]]></description>
            <dc:creator>salmobytes</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 18 Sep 2013 15:03:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154319,154319#msg-154319</guid>
            <title>Integration in the general case</title>
            <link>https://www.phorum.org/support/read.php?28,154319,154319#msg-154319</link>
            <description><![CDATA[ Users (including me) have, in the past, wondered why it is so difficult to integrate blogs forums and shopping carts that normally want to be autonomous pages. In other words, why can&#039;t Phorum appear as the contents of a DIV inside some other layout context? Why can&#039;t I put phorum inside my header-navigation-and-main-display pages, without using an IFRAME?<br />
<br />
The answer is complex, but it seems to have  a lot to do with conditional if($x&lt;$y) header(&quot;location: xxx&quot;) else .... switching.  Answers to that question (from Phorum developers) often complain that although that goal is entirely doable, it is far too much work to accomplish, perhaps involving huge amounts of Javascript.<br />
<br />
In a slightly related context someone here did publish the guts of a way to place a Phorum discussion at the foot of every page, on an arbitrary website. I remember the example given, and it worked nicely. But it was painfully difficult to pull off.<br />
<br />
======= <br />
So why don&#039;t software systems like Phorum adhere to an integration API of some kind? If ALL get and post parameters specific to Phorum where named with a unique three character prefix followed by and underscore, it would be a fairly simple problem to write a plugin manager for any enclosing Content Management system.  ?cms_page=whatever&amp;phm_readphp=1234<br />
<br />
<b>Perhaps I&#039;m missing something. Perhaps I&#039;m missing a lot.</b> But I don&#039;t see why an enclosing content management system couldn&#039;t parse a URL like that.  Recognize phm_   refers to a well-known  &quot;plugin&quot; named phorum who wants to make use of a routine named read.php with parameter 1234.  Produce the phm_   output before pushing anything down the internet pipe. Save it as a string and then push it into a block element inside the CMS page and then write to port 80.  If all important content producers followed an established plugin API, then any system could make use of any other.<br />
<br />
Phorum could have a blog attached.  Open Cart could have product category forums.  Etc.]]></description>
            <dc:creator>salmobytes</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Wed, 18 Sep 2013 13:56:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154286,154290#msg-154290</guid>
            <title>Re: Using mod_inherit_authentication_from_session</title>
            <link>https://www.phorum.org/support/read.php?28,154286,154290#msg-154290</link>
            <description><![CDATA[ Thanks Thomas, I will get back to him.]]></description>
            <dc:creator>WordWitch</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 09 Sep 2013 01:29:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154286,154289#msg-154289</guid>
            <title>Re: Using mod_inherit_authentication_from_session</title>
            <link>https://www.phorum.org/support/read.php?28,154286,154289#msg-154289</link>
            <description><![CDATA[ Sorry but that simply needs debugging on your server.<br />
If the WebAssist expert just gave you a module which doesn&#039;t work now he&#039;s in charge to give you something working.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Mon, 09 Sep 2013 01:15:09 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154286,154286#msg-154286</guid>
            <title>Using mod_inherit_authentication_from_session</title>
            <link>https://www.phorum.org/support/read.php?28,154286,154286#msg-154286</link>
            <description><![CDATA[ Hi, I am attempting to use the <i>inherit authentication from session module</i> with a member website. As I have no php knowledge I enlisted the help of the developer of the authentication/cms system I am using (WebAssist/SecurityAssist), who inserted the code he thought should work (see below). Unfortunately it doesn&#039;t - phorum login is now disabled and the session authentication doesn&#039;t follow through. (I can of course reinstate phorum login by disabling the mod).<br />
<br />
<span style="color:#663300">&lt;?php<br />
<br />
/* phorum module info<br />
hook:  user_session_restore|inherit_authentication_from_session<br />
title: Inherit authentication from session<br />
desc:  This module will use session data of a main application to create and authenticate a Phorum user. Note that this module was written as an example and will need work if you want to apply it for your own purposes.<br />
*/<br />
<br />
function inherit_authentication_from_session($session_data)<br />
{<br />
    // Initialize the session data as &quot;not logged in&quot;.<br />
    $session_data[PHORUM_SESSION_LONG_TERM] = FALSE;<br />
    $session_data[PHORUM_SESSION_SHORT_TERM] = FALSE;<br />
<br />
    // Start the PHP session management when it&#039;s not already started.<br />
    if (!session_id()) session_start();<br />
<br />
    // In the main application, the user data is stored in the session.<br />
    // If no user is set, then we are done here.<br />
    if (empty($_SESSION[&#039;userID&#039;])) return $session_data;<br />
<br />
    // Build a Phorum compatible user data array.<br />
    $active_user_data = array(<br />
        &#039;user_id&#039;  =&gt; $_SESSION[&#039;SecurityAssist_id_members&#039;],<br />
        &#039;username&#039; =&gt; $_SESSION[&#039;firstName&#039;] . &quot; &quot; .$_SESSION[&#039;lastName&#039;],<br />
        &#039;password&#039; =&gt; &#039;*NO PASSWORD SET*&#039;, // not needed for regular users<br />
        &#039;email&#039;    =&gt; $_SESSION[&#039;email&#039;], // needed for e-mail notifications<br />
        &#039;admin&#039;    =&gt; 0,<br />
        &#039;active&#039;   =&gt; PHORUM_USER_ACTIVE<br />
    );<br />
<br />
    // Hardcoded: user &quot;Terradon&quot; is admin in phorum<br />
    if ($active_user_data[&#039;username&#039;] == &#039;Terradon&#039;) {<br />
        $active_user_data[&#039;admin&#039;] = 1;<br />
        $active_user_data[&#039;password&#039;] = md5($_SESSION[&#039;password&#039;]);<br />
    }<br />
<br />
    // Load the Phorum api code for various user-related functions.<br />
    include_once &quot;./include/api/user.php&quot;;<br />
<br />
    // Check if a Phorum user exists for the active username.<br />
    $user_id = phorum_api_user_search(&quot;username&quot;, $active_user_data[&#039;username&#039;]);<br />
<br />
    // The user exists in Phorum. Load the existing data.<br />
    if ($user_id) {<br />
        $phorum_user_data = phorum_api_user_get($user_id);<br />
    }<br />
    // The user does not exist. Create a new user.<br />
    else<br />
    {   <br />
        // prevent conflicts with Phorum user_ids by letting Phorum generate<br />
        // its own user_id value.<br />
        $active_user_data[&#039;user_id&#039;] = NULL;<br />
<br />
        $user_id = phorum_api_user_save($active_user_data, PHORUM_FLAG_RAW_PASSWORD);<br />
        $active_user_data[&#039;user_id&#039;] = $user_id;<br />
        $phorum_user_data = $active_user_data;<br />
    }    <br />
<br />
    // If the user is not active, then do not log them in.<br />
    if ($phorum_user_data[&#039;active&#039;] != PHORUM_USER_ACTIVE) {<br />
        return $session_data;<br />
    }<br />
<br />
    // Since we have a simple admin setup (a fixed user), we take care of<br />
    // syncing the admin user by simply always saving data for this user.<br />
    if ($active_user_data[&#039;admin&#039;]) {<br />
        phorum_api_user_save($active_user_data, PHORUM_FLAG_RAW_PASSWORD);<br />
    }<br />
<br />
    // We have a legit user, so set the session info.<br />
    $session_data[PHORUM_SESSION_LONG_TERM] = $user_id;<br />
    $session_data[PHORUM_SESSION_SHORT_TERM] = $user_id;<br />
<br />
    return $session_data;<br />
}</span><br />
<br />
<br />
<br />
In the cookie/session Settings I have:<br />
Use Cookies: Require cookies<br />
Session path:  /<br />
Session domain: <i>empty field</i><br />
<br />
I don&#039;t know if it makes any difference but at this point passwords for the main site login are not encrypted.<br />
<br />
Can anyone give me some pointers please before I re-engage the WebAssist expert?<br />
<br />
Many thanks,<br />
Sylvia]]></description>
            <dc:creator>WordWitch</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sun, 08 Sep 2013 18:32:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154274,154278#msg-154278</guid>
            <title>Re: A different kind of Wordpress Integration?</title>
            <link>https://www.phorum.org/support/read.php?28,154274,154278#msg-154278</link>
            <description><![CDATA[ There is currently no code for that. It can be probably done with a module which needs to be developed though.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Sat, 07 Sep 2013 05:08:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?28,154274,154274#msg-154274</guid>
            <title>A different kind of Wordpress Integration?</title>
            <link>https://www.phorum.org/support/read.php?28,154274,154274#msg-154274</link>
            <description><![CDATA[ Hi guys, i&#039;ve had a search but can&#039;t find anything related to this specifically, only about logging in/registering...<br />
<br />
If I have a wordpress website and phorum, is it possible to feed the latest posts in wordpress to the Phorum page, and then link to them in the forum, without going through and manually linking to them?<br />
<br />
So for example:<br />
<br />
News Headline!<br />
<br />
News Story<br />
<br />
Click here to discuss this on the forum...<br />
<br />
The story is automatically posted to the forum in a different colour font etc to show it&#039;s a news item, and you can then discuss it in the forum?<br />
<br />
Thanks in advance!]]></description>
            <dc:creator>Brummie</dc:creator>
            <category>Phorum Integration</category>
            <pubDate>Fri, 06 Sep 2013 17:00:08 -0500</pubDate>
        </item>
    </channel>
</rss>
