[DEV] Random 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!
Get Involved
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)
bonnp
Registered User
Posts: 29
Joined: Fri Feb 07, 2020 5:59 am
Name: Bonny Prajapati
Contact:

Re: [DEV] Random Topics

Post by bonnp »

this is not working with 3.3.0
User avatar
KaileyT
Community Team Member
Community Team Member
Posts: 2859
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [DEV] Random Topics

Post by KaileyT »

Hello,

I removed the other 2 posts by you. Please don't post 3 times in a span of 20 minutes asking for an update, and it was very unnecessary to full quote the first post just to ask for an update. Everyone here is a volunteer.
Kailey Truscott - Community Team
User avatar
Ali@php
Registered User
Posts: 62
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

Re: [DEV] Random Topics

Post by Ali@php »

**Update (2020/2/3)**: 2.0.0
- Now compatible with phpBB 3.3
- Style improvements
- Do not show soft deleted Topics


Github: https://github.com/alifaraji/randomtopics
Download: https://github.com/alifaraji/randomtopi ... master.zip
User avatar
Meis2M
Translator
Posts: 923
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] Random Topics

Post by Meis2M »

Hey Ali
welcome back :D
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
Midway
Registered User
Posts: 56
Joined: Tue Dec 09, 2014 8:02 pm

Re: [DEV] Random Topics

Post by Midway »

Hi I have this error on index page

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alifaraji/randomtopics/event/listener.php on line 110: Use of undefined constant topic_visibility - assumed 'topic_visibility' (this will throw an Error in a future version of PHP)
User avatar
L&R
Registered User
Posts: 45
Joined: Mon Oct 08, 2018 5:47 am

Re: [DEV] Random Topics

Post by L&R »

Midway wrote:
Fri Mar 06, 2020 11:40 am
Hi I have this error on index page

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alifaraji/randomtopics/event/listener.php on line 110: Use of undefined constant topic_visibility - assumed 'topic_visibility' (this will throw an Error in a future version of PHP)
same when I tested it
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: [DEV] Random Topics

Post by Dr.Death »

Change in: /ext/alifaraji/randomtopics/event/listener.php

Line 110:

Code: Select all

if($row[topic_visibility] != 2) {
to:

Code: Select all

if($row['topic_visibility'] != 2) {
Doc.
Midway
Registered User
Posts: 56
Joined: Tue Dec 09, 2014 8:02 pm

Re: [DEV] Random Topics

Post by Midway »

it's ok now thanks Dr.Death ;)
User avatar
Ali@php
Registered User
Posts: 62
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

Re: [DEV] Random Topics

Post by Ali@php »

L&R wrote:
Fri Mar 06, 2020 11:43 am
Midway wrote:
Fri Mar 06, 2020 11:40 am
Hi I have this error on index page

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/alifaraji/randomtopics/event/listener.php on line 110: Use of undefined constant topic_visibility - assumed 'topic_visibility' (this will throw an Error in a future version of PHP)
same when I tested it
Redownload and install extension again

Or manually edit listener file:
Dr.Death wrote:
Fri Mar 06, 2020 1:54 pm
Change in: /ext/alifaraji/randomtopics/event/listener.php

Line 110:

Code: Select all

if($row[topic_visibility] != 2) {
to:

Code: Select all

if($row['topic_visibility'] != 2) {
Thanks
User avatar
Hippie459MN
Registered User
Posts: 948
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Random Topics

Post by Hippie459MN »

Its working great here but I was wondering, is there a way to limit the age of the topics? My board is 10 years old and all of the random topics being shown at all from like 2010 and 2011 that while still important, I would like to keep the random topics to maybe topics that are maybe no more than 1-2 years old. I dont know if thats possible. I just dont really want people replying to really old topics thinking they are new(er). Other than that, great work!
User avatar
Hippie459MN
Registered User
Posts: 948
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [DEV] Random Topics

Post by Hippie459MN »

Sorry, accidental double post.
Post Reply

Return to “Extensions in Development”