[CDB] Recent Topics

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [BETA] Recent Topics

Post by aduh »

PayBas wrote:
aduh wrote:Is it possible on 3.1 to add Recent Topics to the NV Newspage extension like on 3.0.12 mod ?
http://2012apocalypse.pl/newspage.php
(Ostatnio na forum)
At the moment it's not. But I'll look into it to see if I can add it in the future.
any update about this ?
User avatar
Mauron
Registered User
Posts: 342
Joined: Wed Jul 16, 2014 11:25 am

PR

Post by Mauron »

PR for Italian translation.
saiyedsabahat
Registered User
Posts: 5
Joined: Wed Jan 14, 2015 12:17 pm

Re: [BETA] Recent Topics

Post by saiyedsabahat »

Hey paybas,

First of all thanks for this MOD, but I have a question. How do I make the Recent Topics only show the 5 most recent topics i.e. without the option of going to the second page of Recent Topics?

Regards.
FomenkoAndrey
Registered User
Posts: 367
Joined: Thu Aug 19, 2010 10:44 am

Re: [BETA] Recent Topics

Post by FomenkoAndrey »

First of this is not MOD, this is EXT
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 4579
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [BETA] Recent Topics

Post by kasimi »

saiyedsabahat wrote:How do I make the Recent Topics only show the 5 most recent topics i.e. without the option of going to the second page of Recent Topics?
ACP » Extensions » Recent Topics Configuration:
  • Recent topics: 5
  • Recent topics pages: 1
Thanks for the EXT, Paybas. :D
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [BETA] Recent Topics

Post by PayBas »

aduh wrote:
PayBas wrote:
aduh wrote:Is it possible on 3.1 to add Recent Topics to the NV Newspage extension like on 3.0.12 mod ?
http://2012apocalypse.pl/newspage.php
(Ostatnio na forum)
At the moment it's not. But I'll look into it to see if I can add it in the future.
any update about this ?
I got it working. But it requires you to edit the NV Newspage extension, because it currently has no core events and no template events.

I've notified the author: https://github.com/nickvergessen/phpbb- ... /issues/85
User avatar
Kirk_Fitzgerald
Registered User
Posts: 255
Joined: Mon Nov 06, 2006 7:10 am
Location: England, UK
Name: Kirk
Contact:

Re: [BETA] Recent Topics

Post by Kirk_Fitzgerald »

No problems here chap, just wanted to say this extension is awesome and is working perfectly on my site, thank you for taking the huge amounts of time it takes to make these extensions PayBas, very much appreciated. :D
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [BETA] Recent Topics

Post by 2600 »

Will try this ext out with your PBtech theme.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 8901
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [BETA] Recent Topics

Post by Raul [ThE KuKa] »

John connor wrote:Will try this ext out with your PBtech theme.
Works perfectly with PBTech style. ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [BETA] Recent Topics

Post by aduh »

PayBas wrote:
aduh wrote:
PayBas wrote:
aduh wrote:Is it possible on 3.1 to add Recent Topics to the NV Newspage extension like on 3.0.12 mod ?
http://2012apocalypse.pl/newspage.php
(Ostatnio na forum)
At the moment it's not. But I'll look into it to see if I can add it in the future.
any update about this ?
I got it working. But it requires you to edit the NV Newspage extension, because it currently has no core events and no template events.

I've notified the author: https://github.com/nickvergessen/phpbb- ... /issues/85
can you share ?
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [BETA] Recent Topics

Post by 2600 »

Feature request. So far this EXT works well on my board version 3.1.2. I think it would be great to have a exclude option for forums rather than topics.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
wmdcf
Registered User
Posts: 26
Joined: Sun Jan 11, 2015 2:37 am

Re: [BETA] Recent Topics

Post by wmdcf »

PayBas wrote:
aduh wrote:
PayBas wrote:
aduh wrote:Is it possible on 3.1 to add Recent Topics to the NV Newspage extension like on 3.0.12 mod ?
http://2012apocalypse.pl/newspage.php
(Ostatnio na forum)
At the moment it's not. But I'll look into it to see if I can add it in the future.
any update about this ?
I got it working. But it requires you to edit the NV Newspage extension, because it currently has no core events and no template events.

I've notified the author: https://github.com/nickvergessen/phpbb- ... /issues/85
PayBas, Im using you mod on my live board more than a 2 weeks without having any issue at the moment.
(refer http://lankaequityforum.com )

btw, Is it possible to view recent topics in forum pages other than home page? OR as a side panel?
Thanks in advance.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5284
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: [BETA] Recent Topics

Post by MattF »

rxu wrote:
PayBas wrote:But if this really is a problem, I'll look into changing their names, or making some kind of ACP switch to disable them.
That would be nice. Not to mention about the general extension validation policy which requires vendor prefixing so that template events should be named like <!-- EVENT vendor_extension_custom_event --> (just for the notice).
The solution to this is simple and does not require namespacing phpBB template events being re-used in an extension. The solution is for rxu to perform on their extension, not for PayBas to apply to Recent Topics:

Using phpBB syntax, just use the event to include template files designed around the loop var name you expect (note the template event in this case is used in multiple places in phpBB with different loop var names already on viewforum and searchresults pages):
https://github.com/VSEphpbb/topicprevie ... ppend.html

If using TWIG, it gets even better because you can use a single template file that is included for all possible loop vars expected in the main template event.

So for example in thanks for posts topiclist_row_append.html:

Code: Select all

{% if topicrow %} // if you want to use the topicrow loop var
    {% set myloopname = topicrow %}
    {% include 'mytemplate.html' %}
{% endif %}

{% if searchresults %} // if you want to use the searchresults loop var
    {% set myloopname = searchresults %}
    {% include 'mytemplate.html' %}
{% endif %}

{% if thanksforposts %} // if you have your own loop var
    {% set myloopname = thanksforposts %}
    {% include 'mytemplate.html' %}
{% endif %}

{% if recent_topics %} // if you want to work with recent topics
    {% set myloopname = recent_topics %}
    {% include 'mytemplate.html' %}
{% endif %}

 
Then just create mytemplate.html with your code in it and use myloopname for the loop var instead of topicrow or searchresults, etc... This way you can control how your extension interacts with Recent Topics, or have it not interact with recent topics at all. And Recent Topics does not have to change anything.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [BETA] Recent Topics

Post by PayBas »

John connor wrote:Feature request. So far this EXT works well on my board version 3.1.2. I think it would be great to have a exclude option for forums rather than topics.
Just edit the forums in the ACP. There is a setting for each forum whether to include it in RT or not.
wmdcf wrote:btw, Is it possible to view recent topics in forum pages other than home page? OR as a side panel?
Thanks in advance.
It's currently not possible to view it on other pages. If you want it as a sidebar, you would need to use a style that supports that (like PBTech or PBWoW3).
aduh wrote:
PayBas wrote:I got it working. But it requires you to edit the NV Newspage extension, because it currently has no core events and no template events.

I've notified the author: https://github.com/nickvergessen/phpbb- ... /issues/85
can you share ?
Well you could try this. On this line https://github.com/nickvergessen/phpbb- ... e.php#L162
Add: extract($this->dispatcher->trigger_event('nickvergessen.newspage.test'));

On this line https://github.com/nickvergessen/phpbb- ... dy.html#L4
Add: <!-- EVENT nickvergessen_newspage_before -->

On this line https://github.com/PayBas/RecentTopics/ ... er.php#L43
Add: 'nickvergessen.newspage.test' => 'display_rt',

Add a new file at ext/paybas/recenttopics/styles/all/template/event/nickvergessen_newspage_before.html
Containing:

Code: Select all

<!-- IF RECENT_TOPICS_DISPLAY and recent_topics_included neq true --><!-- INCLUDE recent_topics_body.html --><!-- DEFINE recent_topics_included = true --><!-- ENDIF -->
VSE wrote:If using TWIG, it gets even better because you can use a single template file that is included for all possible loop vars expected in the main template event.
Indeed.
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [BETA] Recent Topics

Post by 2600 »

PayBas wrote:
John connor wrote:Feature request. So far this EXT works well on my board version 3.1.2. I think it would be great to have a exclude option for forums rather than topics.
Just edit the forums in the ACP. There is a setting for each forum whether to include it in RT or not.
Okay, great I'll check that out.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
Locked

Return to “Extensions in Development”