Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display topic prefixes on topic listings (viewforum, search results, bookmarks, subscriptions, etc.) #4

Open
imkingdavid opened this issue Dec 1, 2013 · 2 comments
Assignees
Milestone

Comments

@imkingdavid
Copy link
Owner

This is pending the addition of template events (and potentially PHP events, depending on which page it's going into) for the core.

@ghost ghost assigned imkingdavid Dec 1, 2013
@Galixte Galixte mentioned this issue Sep 2, 2015
@goztow
Copy link

goztow commented Jan 6, 2016

Hello imkingdavid. Huge thanks for your modification, which I'm testing. I findone of the most lacking features is indeed that it doesn't show up on search results, most importantly on the "search new posts" page.

I spent the evening looking for a solution, but though I was a decent modder in phpbb 3.0, I must admit I don't really have the time to learn how to write extensions properly. I do some modification on existing ones, for small issues.

Here's what I found so far... in listener.php, it seems possible to me to add a function to modify the topic data before it is assigned to the template via core.search_modify_tpl_ary (which is linked to search.php). The documentation states you can modify attachments, folder_alt, folder_img, posts_unapproved, replies, row, show_results, topic_deleted, topic_title, topic_type, topic_unapproved, tpl_ary, u_mcp_queue, unread_topic, view_topic_url, zebra

The topic_title and tpl_ary seem interesting for our purpose. I tried writing the function myself, based on some other extensions I've looked up but for some reason I can't manage to make it work :(.

Alternatively, you could add your own entry which could then show up in the search results via topiclist_row_prepend.html, an event that's also included in the search results.

I hope this info helps you out, I'm afraid I don't know how to make it completely work myself otherwise I'd just have given you the code :).

Cheers!

@goztow
Copy link

goztow commented Jan 8, 2016

I posted the solution to the search page on the phpbb forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants