Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2014-07-14 15:24:35

sdousley
New member
Registered: 2014-07-14
Posts: 3

Retrieving latest posts in a forum

Hi

I am looking to get a list of the latest posts from a specific forum (as configured) from within a Laravel app.

What is the best way to achieve this? Is it just a case of creating a regular model, and retreive the posts using standard eloquent methods, or is there some form of package/plugin for laravel 4.2 that I can use for this already?

My laravel setup doesn't have any prefixes on tables, but the fluxbb does (fluxbb_).

If there's any other information that would help, let me know, and I can see what I know. smile

TIA.

Offline

#2 2014-07-14 16:21:24

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 5,718
Website

Re: Retrieving latest posts in a forum

Welcome! smile

We could, of course, add some simple Eloquent models to my auth-fluxbb library. Feel free to open an issue there if you would like to see those.

For now, simply accessing extern.php might help you - see the usage notes at the top of the file.

Please note that this assumes you want to access a FluxBB 1.5 instance from a Laravel app. FluxBB 2.0 - which is built using Laravel - is not quite done yet.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#3 2014-07-14 17:32:24

sdousley
New member
Registered: 2014-07-14
Posts: 3

Re: Retrieving latest posts in a forum

Hey

Something being added to the auth-fluxbb would be awesome.  I thought about posting something there, but thought that as it's not really auth related, it didn't feel like the best place to ask, so thought it would be better to ask here.

You are correct in assuming Fluxbb 1.5, which is the version I'm working on (out of interest, is there any idea, even roughly when 2.X might be out?)

If you want me to put a post onto the auth-fluxbb "issues" I can add something there to "formally" request this be added to auth-fluxbb.

Steve

Offline

#4 2014-07-14 21:30:01

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 5,718
Website

Re: Retrieving latest posts in a forum

Yeah, please add an issue there.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#5 2014-07-15 07:36:43

sdousley
New member
Registered: 2014-07-14
Posts: 3

Re: Retrieving latest posts in a forum

Issue #15 created - feel free to close this off if needed.

Offline

Board footer

Powered by FluxBB 1.5.6