| 1 |
REDAME file for the phpbbPostNode module for Drupal 5.x.
|
| 2 |
|
| 3 |
You must have CURL installed and working properly for this module to work.
|
| 4 |
|
| 5 |
The phpbbPostNode module adds three fields to the node edit/create form.
|
| 6 |
|
| 7 |
The first field allows users to check a box which will add a new topic to a forum that is decided
|
| 8 |
in the configuration settings.
|
| 9 |
|
| 10 |
The second field will either be populated by the result of the autopost code or can be manually
|
| 11 |
entered, if you know the topic ID. This variable can be used in your theme to provide a link to
|
| 12 |
the newly added topic:
|
| 13 |
|
| 14 |
number of their choice
|
| 15 |
on an existing installation of PHPBB
|
| 16 |
|
| 17 |
The administer must supply the url of the existing installation, as well as a username and password
|
| 18 |
of a user that has permissions to login to and post new topics to the forum. They must also provide
|
| 19 |
the forum number to which this new topic will be added.
|
| 20 |
|
| 21 |
The administrator can also decide what the body of the new topic will look like. The module adds a
|
| 22 |
link to the end of the body content that references the node that created it.
|
| 23 |
Example: "To read this article click here" where "here" is the link to the new node
|
| 24 |
|
| 25 |
***** Installation *****
|
| 26 |
1. You must have an installation of phpBB, this has been tested with 2.0.22
|
| 27 |
|
| 28 |
2. Change your settings.php file DB to look like this:
|
| 29 |
$db_url['default'] = 'mysql://drupalDBUser:password@localhost/DrupalDB';
|
| 30 |
$db_prefix = '';
|
| 31 |
$db_url['phpbb'] = 'mysql://phpbbDBUser:password@localhost/phpbbDB';
|
| 32 |
|
| 33 |
3. Create a blank tempfile.tmp file at the root of your drupal directory for cookie storage.
|
| 34 |
This file must be writeable by the server
|
| 35 |
|
| 36 |
4. Copy the module folder to your modules directory and enable the module through the
|
| 37 |
administration panel
|
| 38 |
|
| 39 |
6. Go to the phpbbpostnode config page and set the settings.
|
| 40 |
|
| 41 |
7. You should now see the forum settings on the appropriate node type creation/edit pages
|
| 42 |
|
| 43 |
8. The first submission will not work, the cookie file has to be built first.
|
| 44 |
To remedy this simply check the post to forum box on node creation,
|
| 45 |
then edit the node and check the box again. (You only have to do this once)
|
| 46 |
|
| 47 |
9. The variable that holds the forum topic number(number only) can be accessed via: $node->phpbbPostNode_topic
|
| 48 |
suggested use:
|
| 49 |
<?php if ($node->phpbbPostNode_topic) print '<a href="'.variable_get('phpbbPostNode_url','').'viewtopic.php?t='.$node->phpbbPostNode_topic.'">Discuss this article</a>'; ?>
|