|
|
| Author |
Message |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA
|
Posted: March 9th 2009, 6:06 pm Post subject: [ALPHA] phpBB Fetch All |
|
|
Title: phpBB Fetch All
Description: Display information from phpBB on any page of your website.
Version: 0.0.4
phpBB 3 Version: 3.0.4
Download: phpBB Fetch All 0.0.4
On my phpBB 2 sites, I've long used the phpBB 2 add-on Fetch All to put news posts and recent discussions on the main page of the site. Now that I'm upgrading to phpBB 3, I need a new version, but the official site is gone after a long period of inactivity, so I decided to upgrade it myself. This is my preliminary version, which I'm putting out in hopes of getting some testing/feedback.
Version 0.0.3 Notes:
I've not included very detailed instructions, but users familiar with the old Fetch All can probably figure out how things work from the comments in the php files. An example portal.php is included (note it uses subsilver2 for the theme; that doesn't have to be installed, just uploaded). Better documentation will come in the future.
This is a very early version that is mostly a rewrite of all the core fetching features in the old Fetch All. This version can fetch:
- First or last post from topics by forum id, topic id, or just all topics
- Number of new posts since last visit
- A entire thread by topic id
- New posts since last visit
- Forum structure
- Name of a style being used by a particular user
- General board stats: total posts, topics, and users; newest user; numbers of online users.
- Users, listed by: top posters, a random user, specific groups, online users
- Polls, by forum id or topic id
- Poll voters
Non-fetching features from the phpBB 2 modification, like inserting posts, are not in this version. I may add them in the future. _________________ Fringes of Algo - Phantasy Star Community
TV Blitz Forums - Television Discussion Community
phpBB Smith: Modifications
70+ Listings @ phpBBHacks.com
Last edited by Thoul on March 19th 2009, 12:19 am; edited 2 times in total |
|
| Back to top |
|
 |
Patrick
Admin/Webmaster

Joined: 11 May 2001
Posts: 17279
Location: Harbinger, NC, U.S.A.
|
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA
|
|
| Back to top |
|
 |
Eric Paxton
New User
Joined: 08 Jun 2009
Posts: 2
|
Posted: June 8th 2009, 6:25 am Post subject: |
|
|
| I'm glad someone is finally doing this for 3.0. I do have a problem. This mod is different from the old one in that it seems like it has to be used as a portal. I am wanting to use it like I did the old one. I want to be able to just load up the variables at the start of the page and then just insert the parts of the portal that I want into the page. You can look at my home page ( local675.com ) and see what I'm talking about. I don't see any way to separate all the parts out as it is now. It doesn't help that I'm no coder but I know enough to edit what I have to. |
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA
|
|
| Back to top |
|
 |
Eric Paxton
New User
Joined: 08 Jun 2009
Posts: 2
|
Posted: June 17th 2009, 1:58 am Post subject: |
|
|
| ok, that was my fault for getting in a hurry and not reading through everything. I don't see any code anywhere to display the users personal info. What would the code be for that or am I just missing it? |
|
| Back to top |
|
 |
Quiff Boy
Dedicated User

Joined: 07 Feb 2002
Posts: 531
Location: Manchester, UK
|
Posted: January 25th 2011, 7:44 am Post subject: |
|
|
oooh, now this may be what i'm looking for...
did it ever get beyond "alpha"?  _________________ Heartland - The Sisters Of Mercy Discussion Forums
http://www.myheartland.co.uk |
|
| Back to top |
|
 |
Thoul
VIP

Joined: 30 Jul 2002
Posts: 18040
Location: USA
|
|
| Back to top |
|
 |
Quiff Boy
Dedicated User

Joined: 07 Feb 2002
Posts: 531
Location: Manchester, UK
|
Posted: January 26th 2011, 3:16 am Post subject: |
|
|
cool, thanks.
i'll have a play at upgrading an existing phpbb2/fetchall-powered site using your version and let you know how it goes.
documentation-wise, i'm pretty au-fait with the old version so if it's a direct port i'm sure it will be straightforward.
thanks for the effort you put in porting the script  _________________ Heartland - The Sisters Of Mercy Discussion Forums
http://www.myheartland.co.uk |
|
| Back to top |
|
 |
Quiff Boy
Dedicated User

Joined: 07 Feb 2002
Posts: 531
Location: Manchester, UK
|
Posted: January 26th 2011, 4:35 am Post subject: |
|
|
fab! that seems to work pretty much exactly the same out of the box for my purposes (showing the last 5 posts from a specific forum)
the only thing is it seems to truncate the posts, eg:
using the old phpBB2 version: http://marchviolets.co.uk/index.php
and with phpBB3 version: http://marchviolets.co.uk/index_new.php
i've had a look in the mods/fetchall/common.php and both posts_trim_text_number and posts_trim_text_words are set to 0 (disabled), and just to make sure i've re-set them myself before making the query, eg:
| Code:
|
$fetch->set_cfg('posts_limit', 5);
$fetch->set_cfg('posts_trim_text_number', 0);
$fetch->set_cfg('posts_trim_text_words', 0);
$news = $fetch->fetch_posts(7);
|
where 7 is the id of the forum the posts are pulled from
i realise your updated version of fetch_all was written a while ago, but i wondered if you had any ideas?  _________________ Heartland - The Sisters Of Mercy Discussion Forums
http://www.myheartland.co.uk |
|
| Back to top |
|
 |
|