[Request] Request for raffle extension

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
Post Reply
User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

[Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 12:35 pm

Hi there
Im looking for some raffle extension,but can't find it
and decide to suggest one to request so,is there any way to creat it? :roll: :?:
i want this ext can choose between random numbers when set from 1 to 100 (for example) and it can choose from 1 to 100
Last edited by ivailo95 on Mon Apr 01, 2019 7:39 pm, edited 1 time in total.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 1:45 pm

"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 2:48 pm

how can i test it? :?:

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 5:02 pm

Paste the code into a file called raffle.php, use a good text editor like Notepad++ (Google) Save the file then pop it in the root of your board and browse to it and see what happens. I'm assuming if it works as you require the code could be adapted in to an extension.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 5:20 pm

i will test it on my local board 1st,so if i understand you right my root folder is
C:\xamp3\htdocs\dashboard\phpBB3

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 5:24 pm

Yes, where config.php lives.

Local board is a good plan.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 5:45 pm

Mick wrote:
Mon Apr 01, 2019 5:24 pm
Yes, where config.php lives.

Local board is a good plan.
i did it
what now? :roll:
https://i.imgur.com/z76l2dr.png
https://i.imgur.com/crntMd2.png

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 5:53 pm

Browse to it and see what happens /phpBB3/raffle.php

For some reason your file manager isn't showing file extensions which is a bit disconcerting.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 5:55 pm

Mick wrote:
Mon Apr 01, 2019 5:53 pm
Browse to it and see what happens /phpBB3/raffle.php
ааh i find it
https://i.imgur.com/Dc7lYqv.png
but also see this error

Code: Select all

Fatal error: Uncaught Error: [] operator not supported for strings in C:\xamp3\htdocs\dashboard\phpBB3\raffle.php:82 Stack trace: #0 {main} thrown in C:\xamp3\htdocs\dashboard\phpBB3\raffle.php on line 82
https://i.imgur.com/WATQqA5.png

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 6:04 pm

You could ask the author at github but I don't know if he's supporting it. If somebody is willing to take this on, and it's what you want, they may be able to sort the code out.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
Toxyy
Registered User
Posts: 701
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [Request] Request for raffle extension

Post by Toxyy » Mon Apr 01, 2019 6:17 pm

ivailo95 wrote:
Mon Apr 01, 2019 5:55 pm
Mick wrote:
Mon Apr 01, 2019 5:53 pm
Browse to it and see what happens /phpBB3/raffle.php
ааh i find it
https://i.imgur.com/Dc7lYqv.png
but also see this error
Try changing line 80 from

$inputraffle = '';

to

$inputraffle = [];
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][BETA] Sticky Ad || [3.2][RC] Show User Activity ||
[3.2][DEV] User Delete Topics

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Mon Apr 01, 2019 7:15 pm

:o work it
but it choose only between 2 number..doesn't choose number from 1 to 50 for example
i want some ext (or code as this) which can choose from X number to Y number
for example i set 1 next 50 and it can choose 35 or 25 or 10 or 49 etc..
https://i.imgur.com/QVVCZQM.png
https://i.imgur.com/fuA1xUO.png

1st post update.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21609
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: [Request] Request for raffle extension

Post by Mick » Mon Apr 01, 2019 7:41 pm

You need a random number generator (between 1 & 50) then I think?
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
ivailo95
Registered User
Posts: 782
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: [Request] Request for raffle extension

Post by ivailo95 » Tue Apr 02, 2019 6:40 am

Mick wrote:
Mon Apr 01, 2019 7:41 pm
You need a random number generator (between 1 & 50) then I think?
yes,but not only 1& 50 numbers
smth like random.org

Post Reply

Return to “Extension Requests”