Display recent topics on custom page - Recent Topics
Display recent topics on custom page
- Stoker 4.0
- Registered User
- Posts: 1487
- Joined: Sun Feb 13, 2011 1:33 pm
- Location: Funen, Denmark
- Name: Ulrik Christensen
- Contact:
- Stoker 4.0
- Registered User
- Posts: 1487
- Joined: Sun Feb 13, 2011 1:33 pm
- Location: Funen, Denmark
- Name: Ulrik Christensen
- Contact:
Re: Display recent topics on custom page
-
- Registered User
- Posts: 21
- Joined: Mon Nov 03, 2014 12:50 am
- Contact:
Re: Display recent topics on custom page
-
- Registered User
- Posts: 8
- Joined: Wed Mar 25, 2015 8:42 am
- Contact:
Re: Display recent topics on custom page
-
- Registered User
- Posts: 2
- Joined: Sat Apr 02, 2016 8:06 pm
- Contact:
Re: Display recent topics on custom page
1. Add to your listener these lines:
- for class:
Code: Select all
/* @var recenttopics */
protected $rt_functions;
/** @var \phpbb\config\config */
protected $config;
/** @var string phpEx */
protected $request;
Code: Select all
\paybas\recenttopics\core\recenttopics $functions, \phpbb\config\config $config,\phpbb\request\request $request
Code: Select all
$this->rt_functions = $functions;
$this->config = $config;
$this->request = $request;
Code: Select all
'core.page_header' => 'add_page_header_link',
Code: Select all
public function page_header_after($event)
{
$mainpath = $this->request->server('PATH_INFO');
if($mainpath === '/(your path)' && isset($this->config['rt_index']) && $this->config['rt_index'])
{
$this->rt_functions->display_recent_topics();
}
}
- '@paybas.recenttopics.functions'
- '@config'
- '@request'
3. Add to your template this code:
Code: Select all
<!-- INCLUDE @paybas_recenttopics/recent_topics_body_topbottom.html -->
WARNING! If recent topics extension doesn't installed, then forum send an error and ALL extension will disable! Need install recent topics extension install first, and then your custom extension!
-
- Registered User
- Posts: 271
- Joined: Thu Jun 07, 2007 9:46 pm
- Contact:
Re: Display recent topics on custom page
-
- Registered User
- Posts: 413
- Joined: Sun Mar 05, 2017 7:31 pm
- Contact:
Re: Display recent topics on custom page
- add your custom page template an EVENT where you need insert this extension. Example:
Code: Select all
<!-- EVENT custom_plugin_place -->
- edit this html, place your code what you want, but add author link to INCLUDE section like this:
Code: Select all
<div id="recenttopicsbottom">
<!-- INCLUDE @paybas_recenttopics/recent_topics_body_topbottom.html -->
</div>
That's all! Test it!
-
- Registered User
- Posts: 271
- Joined: Thu Jun 07, 2007 9:46 pm
- Contact:
Re: Display recent topics on custom page
I've been trying both methods listed above, however I can't get the topic list to display.
Basically, I'm trying to get the recent topic side list to appear within a specific div location on my forum.
-
- Registered User
- Posts: 3
- Joined: Sun Jul 31, 2016 11:57 pm
- Contact:
Re: Display recent topics on custom page
Anything further happened with this option yet.
THX
-
- Registered User
- Posts: 55
- Joined: Fri Nov 06, 2015 1:55 pm
- Contact:
Re: Display recent topics on custom page
can view all recent topics on a special page /app.php/rt (as of 2.2.7)
and again:
Recent topics has a custom page, you can acess it via /app.php/rt.
Other than that, the embed code below is put in the event index_body_markforums_after.html
<div id="recenttopicstop">
{% INCLUDE 'recent_topics_body_topbottom.html' %}
</div>
Can anyone tell me how to make the above information work? How do I access it via /app.php.rt
Or - what does the second entry mean - how and where do I put that code - and if I have to ask that question, is this something I am better off not trying?
-
- Registered User
- Posts: 4
- Joined: Thu Apr 06, 2017 12:46 am
- Contact:
Re: Display recent topics on custom page
morbidmama wrote:The dev lists the use of a custom page with the following phrase:
can view all recent topics on a special page /app.php/rt (as of 2.2.7)
and again:
Recent topics has a custom page, you can acess it via /app.php/rt.
Other than that, the embed code below is put in the event index_body_markforums_after.html
<div id="recenttopicstop">
{% INCLUDE 'recent_topics_body_topbottom.html' %}
</div>
Can anyone tell me how to make the above information work? How do I access it via /app.php.rt
Or - what does the second entry mean - how and where do I put that code - and if I have to ask that question, is this something I am better off not trying?
First, enable Recent Topics to show on index
Then, type url: YOURFORUMurl/app.php/rt
Example: https://www.phpbb.com/app.php/rt
- Kami-sama
- Registered User
- Posts: 137
- Joined: Sat May 26, 2018 3:07 pm
- Contact:
Re: Display recent topics on custom page
I've tried this but I just get a box saying "RT_NO_TOPICS".mykee wrote:I found a simpliest solution too:
- add your custom page template an EVENT where you need insert this extension. Example:- create an event html, name like this: custom_plugin_place.htmlCode: Select all
<!-- EVENT custom_plugin_place -->
- edit this html, place your code what you want, but add author link to INCLUDE section like this:- after save html, copy this to ext/paybas/recenttopics/styles/all/template/event folderCode: Select all
<div id="recenttopicsbottom"> <!-- INCLUDE @paybas_recenttopics/recent_topics_body_topbottom.html --> </div>
That's all! Test it!
Any idea what I'm doing wrong? Sorry, I'm really new to this.
- Dabony
- Registered User
- Posts: 10
- Joined: Tue Oct 01, 2019 3:15 am
- Name: Emily Figgins
- Contact:
Re: Display recent topics on custom page
You could try this option. I've taken the Recent Topics extension and hacked it - not pretty - and created a second little extension to pop a link in the header to show a visible link to a list of recent topics on their own page - visible on mobile and desktop. Follow the instructions to edit the extension 'boardtalk/link' and pop in the URL for your forum.Dabony wrote:
I've tried this but I just get a box saying "RT_NO_TOPICS".
Any idea what I'm doing wrong? Sorry, I'm really new to this.
Hope it helps.
Download: http://boardtalk.org/forum/viewtopic.php?f=6&t=16425
Demo =
Username: Tester
Password: 1234567
- Boardtalk.net
- Registered User
- Posts: 1243
- Joined: Fri Jun 05, 2009 8:12 pm
- Location: Ireland
- Name: Colette
- Contact:
Re: Display recent topics on custom page
This is excellent. It works great. But for some reason, Guests can't see the link or the list of latest topics via app.php/rt.Boardtalk.net wrote: You could try this option. I've taken the Recent Topics extension and hacked it - not pretty - and created a second little extension to pop a link in the header to show a visible link to a list of recent topics on their own page - visible on mobile and desktop. Follow the instructions to edit the extension 'boardtalk/link' and pop in the URL for your forum.
Hope it helps.
Download: http://boardtalk.org/forum/viewtopic.php?f=6&t=16425
Demo =
Username: Tester
Password: 1234567
I checked the configuration and made sure to select that option. But to no avail. Anyway if that doesn't work, I still like this a great deal. Excellent Job, my friend.
Maybe the query should be updated to list only the topics to which the user has access. That would not leave Guests out of the cold.
-
- Registered User
- Posts: 131
- Joined: Sat Nov 24, 2018 7:48 pm
- Contact: