phpBB forum and site integration
Posted: Fri Feb 02, 2007 5:19 am
Hi David,
I am not sure with solution for more complicated problem.
I want add following feature for my site pages (I use Perl+mySql for page generation):
There will be the button "Discuss this article" at the end of each article.
This button keeps simply link if topic exist (/viewtopic.php?t=topic_ID).
The main problem is to create new topic and transfer there the article title and id.
1. The 1-st way is to insert rows into phpBB tables from my perl routines, namely into:
topics (insert article title);
posts and posts_text (insert "The discussion of article Article_Title");
and others tables.
But there is a lot of problem on this way:
Identification of user_id and session_id, user permissions, etc.
So to escape phpBB simulation at perl I hope on the 2-nd way.
2. I should to transfer to posting.php module article title and article id.
And posting.php has to fill in fields subject and message with predefined values.
So solution could be consist of following posting.php modifications:
a) to expand input params list to accept these two values
or b) get these values through temporal mySql table
c) initialize values obtained for subject and message fields
d) set relation of my article with new topic (in mysite_Article_Table or phpBB_topic nomatter) when user had succesfully sent new topic. It needs for future article views with link assigned to existing topic.
I hope on your help.
Are there analogous mods?
What way is more preferrable on your sight?
Are changes a-d) concerned above restricted by posting.php module only? Or changes will be more wide?
Thanx.
I am not sure with solution for more complicated problem.
I want add following feature for my site pages (I use Perl+mySql for page generation):
There will be the button "Discuss this article" at the end of each article.
This button keeps simply link if topic exist (/viewtopic.php?t=topic_ID).
The main problem is to create new topic and transfer there the article title and id.
1. The 1-st way is to insert rows into phpBB tables from my perl routines, namely into:
topics (insert article title);
posts and posts_text (insert "The discussion of article Article_Title");
and others tables.
But there is a lot of problem on this way:
Identification of user_id and session_id, user permissions, etc.
So to escape phpBB simulation at perl I hope on the 2-nd way.
2. I should to transfer to posting.php module article title and article id.
And posting.php has to fill in fields subject and message with predefined values.
So solution could be consist of following posting.php modifications:
a) to expand input params list to accept these two values
or b) get these values through temporal mySql table
c) initialize values obtained for subject and message fields
d) set relation of my article with new topic (in mysite_Article_Table or phpBB_topic nomatter) when user had succesfully sent new topic. It needs for future article views with link assigned to existing topic.
I hope on your help.
Are there analogous mods?
What way is more preferrable on your sight?
Are changes a-d) concerned above restricted by posting.php module only? Or changes will be more wide?
Thanx.