[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!
Ideas Centre
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)
User avatar
Ali@php
Registered User
Posts: 62
Joined: Fri Sep 09, 2011 11:17 am
Name: Ali Faraji
Contact:

[DEV] Random Topics

Post by Ali@php »

Extension Name: Random Topics
Author: Ali@php

Extension Description: Displaying random topics
Extension Version: 2.0.0

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

Features:

- Displaying random topics in index page
- Displaying random topics in viewtopic pge
- ACP settings page
- responsive

Screenshots:
Image
Image
Image

Github repository:
https://github.com/alifaraji/randomtopics/

Download:
https://github.com/alifaraji/randomtopi ... master.zip

Installation:
Create new folders inside ext folder: alifaraji/randomtopics
Move content of archive file to alifaraji/randomtopics
Login ACP and enable extension from customise tab
Last edited by Ali@php on Mon Mar 02, 2020 6:11 pm, edited 2 times in total.
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [DEV] Random Topics

Post by noth »

ooooo :D that is looking good!!

GREAT TO SEE :mrgreen:
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] Random Topics

Post by Meis2M »

Very good thanks ali...
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
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Random Topics

Post by Holger »

Last edited by Holger on Thu Nov 13, 2014 11:14 am, edited 1 time in total.
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Random Topics

Post by PayBas »

Be careful. When looking at the code, I think there is no ACL going on at all.

So every topic will be shown to the user. Whether he has permission to view the topic or not. Depending on the sensitivity of the topic, this might be a security problem.
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 »

Holger wrote:Thank you!
Swedish translation
Thanks ;) but download link doesn't work
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 »

PayBas wrote:Be careful. When looking at the code, I think there is no ACL going on at all.

So every topic will be shown to the user. Whether he has permission to view the topic or not. Depending on the sensitivity of the topic, this might be a security problem.
Thanks PayBas, I made some changes to fix that:
https://github.com/alifaraji/randomtopi ... bd01e4a2cd
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Random Topics

Post by Holger »

Ali@php wrote:
Holger wrote:Thank you!
Swedish translation
Thanks ;) but download link doesn't work
Sorry, wrong date, fixed in my post above!
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 »

Holger wrote:
Ali@php wrote:
Holger wrote:Thank you!
Swedish translation
Thanks ;) but download link doesn't work
Sorry, wrong date, fixed in my post above!
Added to package. Thanks :)
User avatar
noth
Registered User
Posts: 2528
Joined: Fri Jan 07, 2005 7:10 pm
Location: North Surrey
Contact:

Re: [DEV] Random Topics

Post by noth »

this is going to be great on the index page :P

but would it be possible for an ACP option to change the title of the block from "Random Topics" to e.g. "Topics of the Day" please?

'Random Topics' is a truthful and accurate description of the block quite obviously, however IMHO calling it something else ... "Topics of the Day", "Administrator's PICK" "Site GOLD" such titles are less accurate, but to me add a gloss to the block that focuses more interest on it, than just "Random Topics" which to me sounds perhaps bland or something like that :x

A really good TITLE for the block chosen with a bit if imagination I think would make a big difference and I know we can FTP/ HTML manually change the title ourselves - yes we can :D
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [DEV] Random Topics

Post by RMcGirr83 »

This mod will only work with MySQL due to the RAND function being used in the select and the query is not being free resulted either.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
Holger
Registered User
Posts: 1883
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [DEV] Random Topics

Post by Holger »

noth wrote:this is going to be great on the index page :P

but would it be possible for an ACP option to change the title of the block from "Random Topics" to e.g. "Topics of the Day" please?

'Random Topics' is a truthful and accurate description of the block quite obviously, however IMHO calling it something else ... "Topics of the Day", "Administrator's PICK" "Site GOLD" such titles are less accurate, but to me add a gloss to the block that focuses more interest on it, than just "Random Topics" which to me sounds perhaps bland or something like that :x

A really good TITLE for the block chosen with a bit if imagination I think would make a big difference and I know we can FTP/ HTML manually change the title ourselves - yes we can :D
Cant you change the title in the lang-file?
caunhocquay
Registered User
Posts: 5
Joined: Tue May 05, 2015 7:47 am

Re: [DEV] Random Topics

Post by caunhocquay »

How can I add author's avatar before topic title? :)
User avatar
ac_roma
Registered User
Posts: 321
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [DEV] Random Topics

Post by ac_roma »

nice and important

thanks ;)
wmdcf
Registered User
Posts: 26
Joined: Sun Jan 11, 2015 2:37 am

Re: [DEV] Random Topics

Post by wmdcf »

Any updates on this? I'm planing to install this on my live board :roll:
Post Reply

Return to “Extensions in Development”