LittleFang Posted October 16, 2019 Posted October 16, 2019 Thank you! Yes, let me post it: Error: ErrorException: template_store_missing in /home/tarotforum/public_html/system/Theme/Theme.php:825 Stack trace: #0 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(6993): IPS\_Theme->getTemplate('profile', 'core') #1 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->winnerRow(Object(IPS\raffles\Raffle), Object(IPS\Member), Array, 1) #2 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(2787): IPS\Theme\_SandboxedTemplate->__call('winnerRow', Array) #3 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->raffleWinners(2, Array) #4 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(840): IPS\Theme\_SandboxedTemplate->__call('raffleWinners', Array) #5 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_submit->updateTopicWithWinners(2, 'giveaway', Array) #6 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(834): IPS\Theme\_SandboxedTemplate->__call('updateTopicWith...', Array) #7 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(817): IPS\raffles\modules\admin\raffles\_raffles->updateTopicWithResult(Object(IPS\raffles\Raffle), Array) #8 /home/tarotforum/public_html/system/Dispatcher/Controller.php(85): IPS\raffles\modules\admin\raffles\_raffles->pickWinner() #9 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(26): IPS\Dispatcher\_Controller->execute() #10 /home/tarotforum/public_html/system/Dispatcher/Dispatcher.php(152): IPS\raffles\modules\admin\raffles\_raffles->execute() #11 /home/tarotforum/public_html/admin/index.php(14): IPS\_Dispatcher->run() #12 {main} in /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php:65 Stack trace: #0 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(2787): IPS\Theme\_SandboxedTemplate->__call('winnerRow', Array) #1 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->raffleWinners(2, Array) #2 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(840): IPS\Theme\_SandboxedTemplate->__call('raffleWinners', Array) #3 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_submit->updateTopicWithWinners(2, 'giveaway', Array) #4 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(834): IPS\Theme\_SandboxedTemplate->__call('updateTopicWith...', Array) #5 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(817): IPS\raffles\modules\admin\raffles\_raffles->updateTopicWithResult(Object(IPS\raffles\Raffle), Array) #6 /home/tarotforum/public_html/system/Dispatcher/Controller.php(85): IPS\raffles\modules\admin\raffles\_raffles->pickWinner() #7 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(26): IPS\Dispatcher\_Controller->execute() #8 /home/tarotforum/public_html/system/Dispatcher/Dispatcher.php(152): IPS\raffles\modules\admin\raffles\_raffles->execute() #9 /home/tarotforum/public_html/admin/index.php(14): IPS\_Dispatcher->run() #10 {main} #0 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(Error), 'template_error') #1 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(2787): IPS\Theme\_SandboxedTemplate->__call('winnerRow', Array) #2 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->raffleWinners(2, Array) #3 /home/tarotforum/public_html/system/Theme/Theme.php(847) : eval()'d code(840): IPS\Theme\_SandboxedTemplate->__call('raffleWinners', Array) #4 /home/tarotforum/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_submit->updateTopicWithWinners(2, 'giveaway', Array) #5 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(834): IPS\Theme\_SandboxedTemplate->__call('updateTopicWith...', Array) #6 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(817): IPS\raffles\modules\admin\raffles\_raffles->updateTopicWithResult(Object(IPS\raffles\Raffle), Array) #7 /home/tarotforum/public_html/system/Dispatcher/Controller.php(85): IPS\raffles\modules\admin\raffles\_raffles->pickWinner() #8 /home/tarotforum/public_html/applications/raffles/modules/admin/raffles/raffles.php(26): IPS\Dispatcher\_Controller->execute() #9 /home/tarotforum/public_html/system/Dispatcher/Dispatcher.php(152): IPS\raffles\modules\admin\raffles\_raffles->execute() #10 /home/tarotforum/public_html/admin/index.php(14): IPS\_Dispatcher->run() #11 {main}
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 Tks. I’ll take a look within next hour and will send you a PM if I need to access your site to see what’s happening there.
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 53 minutes ago, LittleFang said: I got this error though: [[Template raffles/front/view/winnerRow is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] You got this in the topic, right? It'ok on the raffle view. Can you confirm it?
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 That's pretty weird. 🤷♂️ On it.
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 57 minutes ago, LittleFang said: Yes that is correct! Was it just a test? It's fixed but as it is a post content, once is done, there's no way to redo. If it was just a test, I'll release a new version now. Otherwise, will have to waste some time to make a routine to rebuild the post.
LittleFang Posted October 16, 2019 Posted October 16, 2019 It was just a test, yes. Didn't want to do an official raffle until I knew how to work it. 🙂
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 Nice... Will update the file soon. 🙂
Adriano Faria Posted October 16, 2019 Author Posted October 16, 2019 18 minutes ago, LittleFang said: It was just a test, yes. Didn't want to do an official raffle until I knew how to work it. 🙂 Sent you a version via PM. Please test and reply. 👍
LittleFang Posted October 16, 2019 Posted October 16, 2019 The prior issue was fixed, it's displaying winners perfectly now. Thank you! ❤️ Will continue testing it out, it's a great system. Adriano Faria 1
Adriano Faria Posted October 17, 2019 Author Posted October 17, 2019 What's New in Version 1.3.4: Fix issue in generated topic (post where winners are displayed) Delete unused templates
LittleFang Posted November 1, 2019 Posted November 1, 2019 Is there a way to remove the medal images off of the prizes? Also, is there a setting I'm missing to have only one winner who can pick between the prizes? I have 5 listed, is it going to choose 5 winners and screw me over? Heh
Adriano Faria Posted November 1, 2019 Author Posted November 1, 2019 (edited) 3 hours ago, LittleFang said: Is there a way to remove the medal images off of the prizes? You will have to edit a template. 3 hours ago, LittleFang said: Also, is there a setting I'm missing to have only one winner who can pick between the prizes? I have 5 listed, is it going to choose 5 winners and screw me over? Heh Not sure I follow so I’ll reply in two ways: 1: If you have 5 prizes then 5 different winners will be obviously chosen. 2: If you have 5 prizes then wants to pick only 1 and leave 4 there, NO. It isn’t an option and it won’t be. The raffle has a expire date and all winners are picked in that date; not before, not after. Edited November 1, 2019 by Adriano Faria
Adriano Faria Posted November 1, 2019 Author Posted November 1, 2019 (edited) — removed — Edited November 1, 2019 by Adriano Faria
LittleFang Posted November 1, 2019 Posted November 1, 2019 Darn, I suppose I should offer that as a suggestion, I didn't realize it didn't do that before.
Zdeněk Tůma Posted November 1, 2019 Posted November 1, 2019 Hi, i add custom fields on some raffles and i want use specific field in template i find this code in template {{foreach $cfields as $k => $v}} <li class="ipsDataItem"> <span class="ipsDataItem_generic ipsDataItem_size3"><strong>{lang="raffles_{$k}"}</strong></span> <span class="ipsDataItem_generic">{$v|raw}</span> </li> {{endforeach}} but i want only show one specific a try {$cfields[1]['value']|raw} , {$cfields[1]['value']} but not work... please help
Adriano Faria Posted November 2, 2019 Author Posted November 2, 2019 (edited) 19 hours ago, Zdeněk Tůma said: please help Not tested: {{$fields = $raffle->customFields();}} {$fields[1]['value']} Edited November 2, 2019 by Adriano Faria
Adriano Faria Posted November 2, 2019 Author Posted November 2, 2019 21 hours ago, Zdeněk Tůma said: please help 1 hour ago, Adriano Faria said: Not tested Now tested: {{$fields = $raffle->customFields();}} {$fields['field_1']} Change the 1 by the ID of the extra field. Zdeněk Tůma 1
Zdeněk Tůma Posted November 2, 2019 Posted November 2, 2019 thx next question can I in template get ticket info per ticket (too tickets from same user) i want make this layout
Adriano Faria Posted November 2, 2019 Author Posted November 2, 2019 Sorry, support does not include customizations. You're free to do it but you're on your own.
Giray Posted December 8, 2019 Posted December 8, 2019 Hi Adriano. Tried to read through the forum, but not sure... Can a raffle be 'cancelled' if a minimum number of sold tickets is not reached? I would, of course, explain the minimum condition in the rules and refund everyone if we don't reach the minimum. I assume that if someone organizes a raffle, the payment still goes to the forum and then we have to forward the payment, or can the organizer put in their info and get paid directly? This is minor, because I can do it manually, but I'd like to give tickets to those who reach a certain number of converted invitations. 5 people register, you get a ticket. For now the two apps don't talk, right? Last: in the case of a giveaway, can a member receive more than one entry? I'd like to give them a ticket every time they reach a given number of invitations, or posts, or whatever. Thanks!! Jim
Adriano Faria Posted December 9, 2019 Author Posted December 9, 2019 2 hours ago, Giray said: Can a raffle be 'cancelled' if a minimum number of sold tickets is not reached? I would, of course, explain the minimum condition in the rules and refund everyone if we don't reach the minimum. No. Once someone pays for the ticket, the money is charged and you would need to make a manual refund. That’s how Commerce works. 2 hours ago, Giray said: I assume that if someone organizes a raffle, the payment still goes to the forum and then we have to forward the payment, or can the organizer put in their info and get paid directly? Nope. Money goes to the raffles submitter but Commerce always Treat it as account credit. User will have to request withdraw to receive the money in their PayPal, etc. Again, that’s how Commerce works. 2 hours ago, Giray said: This is minor, because I can do it manually, but I'd like to give tickets to those who reach a certain number of converted invitations. 5 people register, you get a ticket. For now the two apps don't talk, right? Yes, there’s no integration between them but it can be easily done in a future version. 2 hours ago, Giray said: Last: in the case of a giveaway, can a member receive more than one entry? I'd like to give them a ticket every time they reach a given number of invitations, or posts, or whatever. No, only one ticket per giveaway; this is to guarantee everyone has same odds in giveaways. Only in raffles you can purchase more than one. Giray 1
Giray Posted December 9, 2019 Posted December 9, 2019 19 hours ago, Adriano Faria said: No, only one ticket per giveaway; this is to guarantee everyone has same odds in giveaways. Only in raffles you can purchase more than one. Thanks Adriano. Follow up. Can a raffle ticket be $0 or does it have to be greater? I assume Admins can be submitters? Thanks Jim
Adriano Faria Posted December 9, 2019 Author Posted December 9, 2019 1: No. Free raffle = giveaway. 2: Sure. Categories permissions like any other app. 👍 Giray 1
Vahvel.net OÜ Posted December 10, 2019 Posted December 10, 2019 Interesting, is there some language strings missing from the counter? Days,hours,minutes,seconds?
Recommended Posts