Identifier: core.viewtopic_post_rowset_data
Location: viewtopic.php in the while loop that fills $rowset. Instead of setting $rowset[$row['post_id']] directly, put the row to be added in $rowset_data and then allow listeners to modify that before it is added to $rowset.
Parameters: $rowset_data, $row
Explanation: The existing core.viewtopic_get_post_data event allows extending the query that retrieves data on posts from the database. However, any extra fields I make the query retrieve are conveniently thrown away because only a hardcoded set of fields ends up in the post rowset. If I want to use the extra fields where the template variables are generated, I need to be able to copy the field values from the database row to the rowset. Therefore, I propose to add this core.viewtopic_post_rowset_data event. I will use it in the GSoC karma extension.
[PHP] core.viewtopic_post_rowset_data
These requests for events in core phpBB have been merged into 3.1/Ascraeus and will be available with the next release.
Post Reply
1 post
• Page 1 of 1
Return to “[3.1/Ascraeus] Merged Event Requests”
Jump to
- www.phpbb.com/community/
- General Development Discussion
- phpBB 4.x Development
- ↳ [4.x] Discussion
- ↳ [4.x] Tickets Discussion
- ↳ [4.x] Style Development
- phpBB 3.x Development
- ↳ [3.x] Discussion
- ↳ [3.x] Tickets Discussion
- ↳ [3.x] Style Development
- ↳ [3.x][Archive] RFCs
- ↳ [3.x] Event Requests
- ↳ [3.1/Ascraeus] Merged RFCs
- ↳ [3.1/Ascraeus] Merged Event Requests
- ↳ [3.2/Rhea] Merged RFCs
- ↳ [3.x] Rejected RFCs
- ↳ [3.x] Rejected Event Requests
- Everything Else
- ↳ Chit Chat
- ↳ Testing subforum
- ↳ Subforum
- ↳ A "category" subforum in the Testing subforum
- ↳ A sub-sub-forum
- ↳ Passworded Forum
- ↳ Archive of phpBB related forums
- ↳ phpBB 3.0.x Support
- ↳ phpBB 3.0.x MOD/Style Support
- ↳ EasyMOD for 2.0.x
- ↳ Download EasyMOD
- ↳ Announcements and News
- ↳ General EM Discussion
- ↳ Installing EasyMOD
- ↳ Installing MODs with EasyMOD
- ↳ SQL Parser
- ↳ EMC Discussion
- ↳ Bug Tracker
- ↳ Feature Requests
- ↳ Stable Branch: phpBB "Olympus" 3.0
- ↳ [3.0/Olympus] Discussion
- ↳ [3.0/Olympus] New features discussion
- ↳ [3.0/Olympus] Styling