Page 1 of 1

[Request] Request for raffle extension

Posted: Mon Apr 01, 2019 12:35 pm
by ivailo95
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

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 1:45 pm
by Mick

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 2:48 pm
by ivailo95
how can i test it? :?:

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 5:02 pm
by Mick
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.

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 5:20 pm
by ivailo95
i will test it on my local board 1st,so if i understand you right my root folder is
C:\xamp3\htdocs\dashboard\phpBB3

Re: [Request] Request for raffle extension

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

Local board is a good plan.

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 5:45 pm
by ivailo95
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

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 5:53 pm
by Mick
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.

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 5:55 pm
by ivailo95
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

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 6:04 pm
by Mick
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.

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 6:17 pm
by Toxyy
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 = [];

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 7:15 pm
by ivailo95
: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.

Re: [Request] Request for raffle extension

Posted: Mon Apr 01, 2019 7:41 pm
by Mick
You need a random number generator (between 1 & 50) then I think?

Re: [Request] Request for raffle extension

Posted: Tue Apr 02, 2019 6:40 am
by ivailo95
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