| | |
Create a PHPBB3 Forum Topic from a C# application.
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 12
Reputation:
Solved Threads: 0
First of all, I have absolutely know knowledge of using C# for communicating with websites. I am under some time constraints so I am trying to crash through it but I getting more lost than anything.
What I have is a windows application that a user can build content files. I want to make it easier for users to share the content on my PHPBB3 forum. So when the user exports the content I want to have an option to automatically create a PHPBB3 forum topic with the content files name as the topic title and description as the post body (saved as strings during the export process). I also want it to add the file as an attachment. The user's forum loggin name and password are also saved in the application as strings.
Can anyone help me?
What I have is a windows application that a user can build content files. I want to make it easier for users to share the content on my PHPBB3 forum. So when the user exports the content I want to have an option to automatically create a PHPBB3 forum topic with the content files name as the topic title and description as the post body (saved as strings during the export process). I also want it to add the file as an attachment. The user's forum loggin name and password are also saved in the application as strings.
- So in a step by step I want the application to do:
- Open up the web browser to the forum and loggin the user if they are not logged in.
- Create a new topic on a specific forum with a saved string used for the post title, and another for the post body.
- Attach the file to the post.
- I don't want the post to automatically submit as I would like the user to be able to edit the post as they want.
Can anyone help me?
•
•
Join Date: Oct 2008
Posts: 12
Reputation:
Solved Threads: 0
I hate bumping threads like this, but I have been looking everywhere and can still not figure out how to accomplish this. I found a similar idea for PHPBB2, but conceptually it went over my head and the code as is doesn't work for PHPBB3. Plus, it doesn't seem to actually open the web page so much as it just sends the post, so the user won't get much of an opportunity to make it adjustments.
Please help me. I am at a complete loss here.
Please help me. I am at a complete loss here.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
You can do and send anything you would over a browser as long as you're prepared to disect it and play around long enough, this includes the login process, redirection etc.
Its not something someone can just hand you an answer for.
However, if you monitor the HTML to/from your site and what would have been your browser everythings possible with time and patience.
However, Im not aware of anything "out of the can" that will interface with phpbb for you, you would need to do all the HTML ground work yourself.
Its not something someone can just hand you an answer for.
However, if you monitor the HTML to/from your site and what would have been your browser everythings possible with time and patience.
However, Im not aware of anything "out of the can" that will interface with phpbb for you, you would need to do all the HTML ground work yourself.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Oct 2008
Posts: 12
Reputation:
Solved Threads: 0
Thanks for the reply. I can understand that pretty well. It seemed like something that wouldn't have a generic do x to get to y answer. However, would you mine pointing out a place to start? With all of the various types of information available in that general vein it has been very difficult for me to simply find a starting point that is more focused. For instance, how would I open the website in a browser, then manipulate that open site through the C# code?
I think that would be the best place to start looking. From there, I can build an understanding of the relationship and begin learning it myself...I hope.
I think that would be the best place to start looking. From there, I can build an understanding of the relationship and begin learning it myself...I hope.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
you dont open it in a browser. You download the page to memory and work through with it. Look at HttpWebRequest and HttpWebResponse
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 7
Have you considered creating a web service for this? You could create one in PHP and simply automate these steps in the web service. All you'd have to do in C# is submit any files or any other data to the service and let it do the rest. I'm not sure how well it's going to play out with users being able to edit posts though. I'm sure you could integrate that in it.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Well then its time to learn 
If you want to write an app that works with your phpbb3, start off with as I suggested and get the pages, and examine what you get back

If you want to write an app that works with your phpbb3, start off with as I suggested and get the pages, and examine what you get back
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Other Threads in the C# Forum
- Previous Thread: Reading word file
- Next Thread: code for validation(asp.net 3.5)
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml






