ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

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 January 18th, 2005, 02:48 PM
Drooling Dog Drooling Dog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Salt Lake City, UT
Posts: 59 Drooling Dog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 37 sec
Reputation Power: 4
Integrating ColdFusion with phpBB?

Has anyone here attempted any degree of integration between phpBB and ColdFusion?

I have phpBB installed, and I'd like (CF) apps on the same server, that I'd like to share the phpBB login with. So basically I need CF to recognize whether or not the user is logged in, and what their username (or ID) is.

Any thoughts on where to start?

Any thoughts on whether or not CF can do anything with these, or where to begin my quest?

Thanks.

Reply With Quote
  #2  
Old January 19th, 2005, 11:11 AM
Drooling Dog Drooling Dog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Salt Lake City, UT
Posts: 59 Drooling Dog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 37 sec
Reputation Power: 4
Never mind. I got the help I needed.

- Scott
Web Design Forums

Reply With Quote
  #3  
Old January 19th, 2005, 11:46 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,655 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 13 h 29 m 20 sec
Reputation Power: 53
What did you do? I'm curious. One approach might be to use web services.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old January 19th, 2005, 11:56 AM
Drooling Dog Drooling Dog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Salt Lake City, UT
Posts: 59 Drooling Dog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 40 m 37 sec
Reputation Power: 4
I can't take credit for it. I got the answer from someone on a CF forum.

The cookie: phpbb2mysql_sid contains the session ID.

So to get the login status and display a username, you'd do something like:

Code:
<cfquery datasource="dsn" name="getsession">
SELECT *
FROM prefix_sessions, prefix_users
WHERE (session_id = '#cookie.phpbb2mysql_sid#') and (sesionduserid = userid)
</cfquery>

<cfif getsession.recordcount lt 1>
You must Login to Procede
<cfabort>
<cfelse>
<cfset getsession.username = session.username>
<cfset getsession.userid = session.userid>
</cfif>


The only problem is that if someone uses auto-login on the forum, they'll have to visit a forum page first to enable that session variable. I'm thinking of trying to incorporate a small iFrame to the "home" page that loads the smallest forum page I can find.

Disclaimer: I haven't tried ANY of this yet, but I can't see why it wouldn't work.

*fingers crossed*

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Integrating ColdFusion with phpBB?


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 1 hosted by Hostway