SunQuest
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 25th, 2003, 06:42 AM
DriveCrash DriveCrash is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Kansas
Posts: 2 DriveCrash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Seen it.. Can't do it..

Greetings all,

I am new PhP and MySql. I have my site up and running at URL . It's just a hobby site for a game I play.

Here is what i want to do. I'm useing PhPBB (a very nice forum) What i would like to do is be able to have my users post in a certain area or thread in the PhPBB and have the front site pull that post from the database and post it as news. I've seen it done 1,000 times on other sites (at least i think that is what they are doing)..

I can't seem to find any information on how to do this. I've been trying to learn PhP as fast as i can in order to do this.. but i have figured it out yet.. any idea's on something i can read to learn more on this subject?

Thanks for your time,
DriveCrash

Reply With Quote
  #2  
Old November 30th, 2003, 02:46 AM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l
hopefully somebody there should be able to help you out better than I can.. ..but if not..
find a decent tutorial on MySQL (or whatever database you're using for phpBB) and PHP.

This is another thing that I plan on doing as well.. so if I get it worked out, I'll pass it on to you at that point.
and hey.. if you find out, let me know

Reply With Quote
  #3  
Old November 30th, 2003, 05:03 AM
c444l c444l is offline
contains a pressurised widget
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: NC USA
Posts: 401 c444l User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 41 sec
Reputation Power: 5
Send a message via AIM to c444l Send a message via Yahoo to c444l
okay.. one step closer.. the following sql query will provide the information we need. What this does is return the following information for the 5 most recent posts:

datetime | topic title | post title | poster's username | body text

Quote:
SELECT phpbb_posts.post_time, phpbb_topics.topic_title, phpbb_posts_text.post_subject, phpbb_users.username, phpbb_posts_text.post_text

FROM phpbb_posts, phpbb_posts_text, phpbb_topics, phpbb_users

WHERE phpbb_posts.post_id = phpbb_posts_text.post_id AND phpbb_posts.topic_id = phpbb_topics.topic_id AND phpbb_posts.poster_id = phpbb_users.user_id

ORDER BY phpbb_posts.post_time DESC

LIMIT 0 , 5


I'm sure that there is a cleaner and faster way of doing this, but this works.

Reply With Quote
  #4  
Old November 30th, 2003, 07:43 AM
toyman toyman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 17 toyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Are you sure you are not talking about CMS (content management systems) and stuff like PHPnuke? Go to www.hotscripts.com - -some of the stuff with link up with your php forum software.

Reply With Quote
  #5  
Old December 1st, 2003, 12:20 AM
DriveCrash DriveCrash is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Kansas
Posts: 2 DriveCrash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I looked through the info on PhPBB and yes they have a few mods that kinda work, but this sql query works perfect! Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Seen it.. Can't do it..


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway