PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 10th, 2002, 07:35 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 17
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
news system /w phpbb

i have an existing news system which i would like to integrate with phpbb. whenever i post a new news item i would like it to auto-create a forum thread in a news section with the news content on it as well.

any help would be appreciated.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #2  
Old November 10th, 2002, 09:01 AM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to Lindset Send a message via AIM to Lindset
shouldn't be that difficult.. study the database.. all you need to add is an extra insert

I'll try to look into the layout of the phpBB database, I'll post back here

edit: err, I'm having problems downloading phpBB from sourceforge
__________________
Best Regards,
Håvard Lindset

Last edited by Lindset : November 10th, 2002 at 09:19 AM.

Reply With Quote
  #3  
Old November 10th, 2002, 09:42 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 17
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
been looking through source... can't find the INSERT query they use for adding a new thread. i tried to use Find but only found Inserts for polls...

Reply With Quote
  #4  
Old November 10th, 2002, 10:29 AM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to Lindset Send a message via AIM to Lindset
all right, I could now download it (must have been some problems over at sourceforge earlier)... these are the two tables you're looking for:

Code:
# --------------------------------------------------------
#
# Table structure for table 'phpbb_posts'
#
CREATE TABLE phpbb_posts (
   post_id mediumint(8) UNSIGNED NOT NULL auto_increment,
   topic_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
   forum_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
   poster_id mediumint(8) DEFAULT '0' NOT NULL,
   post_time int(11) DEFAULT '0' NOT NULL,
   poster_ip char(8) NOT NULL, 
   post_username varchar(25), 
   enable_bbcode tinyint(1) DEFAULT '1' NOT NULL,
   enable_html tinyint(1) DEFAULT '0' NOT NULL,
   enable_smilies tinyint(1) DEFAULT '1' NOT NULL,
   enable_sig tinyint(1) DEFAULT '1' NOT NULL, 
   post_edit_time int(11),
   post_edit_count smallint(5) UNSIGNED DEFAULT '0' NOT NULL,
   PRIMARY KEY (post_id),
   KEY forum_id (forum_id),
   KEY topic_id (topic_id),
   KEY poster_id (poster_id), 
   KEY post_time (post_time)
);


# --------------------------------------------------------
#
# Table structure for table 'phpbb_posts_text'
#
CREATE TABLE phpbb_posts_text (
   post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
   bbcode_uid char(10) NOT NULL,
   post_subject char(60),
   post_text text,
   PRIMARY KEY (post_id)
);


I haven't got that much experience with phpBB, but all you have to do now is to make the forum you want to have the posts in, and find out what forum id and topic id it has.. the post_id will be assigned automatically (auto_increment), and to insert the actual text, you can use "SELECT LAST_INSERT_ID()" to fetch the post_id

err, hope that helps you

Reply With Quote
  #5  
Old November 10th, 2002, 10:29 AM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 16
doesn't phpbb have the ability to export a forum post to a flat text file? If so,...Just setup an announcements forum,...lock it down so only you can post in it,....then include that exported text file in your news page

Reply With Quote
  #6  
Old November 10th, 2002, 04:28 PM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 17
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
how is the phpbb_posts linked with the phpbb_posts_texts?

Reply With Quote
  #7  
Old November 10th, 2002, 04:43 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Quote:
Originally posted by wAr-AnGeL
how is the phpbb_posts linked with the phpbb_posts_texts?


the post_id in phpbb_posts_text should be the id of the entry in phpbb_posts.. try and see if this works

PHP Code:
 mysql_query("INSERT INTO phpbb_posts
(topic_id, forum_id, poster_id, post_time, poster_ip, post_username)
VALUES (1, 1, 1, ' . time() . ', '0.0.0.0', 'your_username')"
);

mysql_query("INSERT INTO phpbb_posts_text
(post_id, post_subject, post_text)
VALUES (LAST_INSERT_ID(), 'News Discussion: 
$news_title', '$news_text')"); 


just replace the topic_id, forum_id, poster_id and post_username with the correct value...

Reply With Quote
  #8  
Old November 29th, 2008, 05:06 AM
Neftleseet Neftleseet is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Location: USA
Posts: 2 Neftleseet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 30 sec
Reputation Power: 0
Send a message via ICQ to Neftleseet
Hi. I repeatedly be familiar with this forum. This is the head culture unequivocal to ask a query. How numberless in this forum are references progressive behind, knavish users? Can I depute all the communication that there is?

Reply With Quote
  #9  
Old December 1st, 2008, 08:02 PM
Neftleseet Neftleseet is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Location: USA
Posts: 2 Neftleseet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 30 sec
Reputation Power: 0
Send a message via ICQ to Neftleseet
Hi. I on numerous occasions scan this forum. This is the oldest period unequivocal to ask a topic. How multifarious in this forum are references progressive behind, artful users? Can I depute all the facts that there is?

Reply With Quote
  #10  
Old May 5th, 2009, 08:36 AM
chievitte chievitte is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Location: Benin
Posts: 1 chievitte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 23 sec
Reputation Power: 0
Send a message via ICQ to chievitte
New Release - Star Wars on Blu-Ray?

Sorry may be not here... but.Yesterday i heard from my friend about new release of Star Wars on Blu Ray...is Somebody else heard about this release something?Thank you.

Reply With Quote
  #11  
Old May 20th, 2009, 08:35 AM
Scentbeed Scentbeed is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2009
Location: Bosnia and Herzegovina
Posts: 1 Scentbeed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 21 sec
Reputation Power: 0
Send a message via ICQ to Scentbeed
How do you protects from swine flue?

Sorry moderator but it's very importatnt as i think...How do you protects from swine flue?

Reply With Quote
  #12  
Old June 9th, 2009, 11:46 PM
Ronletaindill Ronletaindill is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Location: Switzerland
Posts: 2 Ronletaindill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 19 h 31 m 7 sec
Reputation Power: 0
Send a message via ICQ to Ronletaindill
Buy Cheap Cialis. Buy Cialis Without Prescription Online. Order Cialis No Prescription.

Message

Reply With Quote
  #13  
Old July 29th, 2009, 03:42 PM
WeerPsycleWar WeerPsycleWar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Location: Mongolia
Posts: 1 WeerPsycleWar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 25 sec
Reputation Power: 0
Send a message via ICQ to WeerPsycleWar
100-Best-Nature-Full-HD-Wallpapers-1920x1080p URLURLURL
Code:
 http://hotfile.com/dl/7542399/ea3a860/100-Best-Nature-Full-HD-Wallpapers-1920x1080p.rar.html 

Reply With Quote
  #14  
Old September 25th, 2010, 11:34 AM
Roorrycon Roorrycon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Posts: 1 Roorrycon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 56 m 33 sec
Reputation Power: 0
–. На нашем сайте вы сможете бесплатно и без регистрации скачать программы, игры, темы, программы для официальный для теперь доступен вышел в. Русская версия содержит скачать. Скачать бесплатно программы добавлен на моем компьютере.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > news system /w phpbb


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap