[Template] topiclist_row_append / prepend

These requests for events in core phpBB have been merged into 3.1/Ascraeus and will be available with the next release.
Post Reply
User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

[Template] topiclist_row_append / prepend

Post by MattF »

Identifier: topiclist_row_prepend

Prosilver Location (if applicable): In search_results.html around line 65, after <div class="list-inner">
Subsilver Location (if applicable): In search_results.html around line 37, after <td class="row1">

Prosilver Location (if applicable): In viewforum_body.html around line 146, after <div class="list-inner">
Subsilver Location (if applicable): In viewforum_body.html around line 42, after <td class="row1">
Subsilver Location (if applicable): In viewforum_body.html around line 207, after <td class="row1">

Explanation: So extensions can add content into the topic rows of search results (viewed as topics) and view topics pages (inside the elements containing topic titles)

Identifier: topiclist_row_append

Prosilver Location (if applicable): In search_results.html around line 86, before </div></dt>
Subsilver Location (if applicable): In search_results.html around line 62, before </td>

Prosilver Location (if applicable): In viewforum_body.html around line 167, before </div></dt>
Subsilver Location (if applicable): In viewforum_body.html around line 66, before </td>
Subsilver Location (if applicable): In viewforum_body.html around line 231, before </td>

Explanation: So extensions can add content into the topic rows of search results (viewed as topics) and view topics pages (inside the elements containing topic titles)

Possible uses include topic preview extension
Last edited by MattF on Fri Jul 19, 2013 10:53 pm, edited 4 times in total.
Has an irascible disposition.

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [Template] topiclist_row_append / prepend

Post by Arty »

Those locations don't make sense.

First entry would allow to insert whole row inside existing row in prosilver, but in subsilver2 it would allow to insert code only inside one table cell.

If you want to add whole row, in prosilver it should be added before <li>, in subsilver2 before <tr>, so basically right after <!-- BEGIN searchresults -->. Similar _append event should be added before <!-- END searchresults -->

If you want to add content inside element that has topic title, you do have correct event for subsilver2, but for prosilver it should be after <div class="list-inner">. Matching _append event is correct for subsilver2 (line 62), but for prosilver should be before </div></dt>

User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: [Template] topiclist_row_append / prepend

Post by MattF »

You are right. These should be inserting inside the elements that contain the topic titles.

They have been adjusted in the original post.
Has an irascible disposition.

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: [Template] topiclist_row_append / prepend

Post by imkingdavid »

Apparently this has been added https://github.com/phpbb/phpbb/blob/dev ... .html#L147

Moving to merged forum
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

Post Reply