Jump to content

Raffles System

Featured Replies

  • Author

You can't edit CSS in IPS 4.7.0 anymore, AFAIK, so you would need to add your changes to the custom.css.

  • Replies 717
  • Views 50.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • That's a bug in your app... The extensions class name is Image and you're using Images  in view.php \IPS\Output::i()->metaTags['og:image'] = \IPS\File::get( 'raffles_Images', $this->raf

  • Adriano Faria
    Adriano Faria

    I've made a change today.. probably will fix it because it handles currencies (default or member language/currency). Try it yourself. Open applications\raffles\modules\front\raffles\view.php and find:

  • Adriano Faria
    Adriano Faria

    No, that doesn't work like that and I can't reproduce. In images:       If you haven't filled the price in one specific currency, user won't be able t

Posted Images

Just now, Adriano Faria said:

You can't edit CSS in IPS 4.7.0 anymore, AFAIK, so you would need to add your changes to the custom.css.

I thought I wasn't going mad then. Do I copy and paste your code below into this place so it overrides whats already there?

Could contain: File, Webpage, Page, Text

 

.sosRafflesPrizesCell{
    background: #000;
    border-radius: 5px;
    min-height: 68px;
    padding: 10px;
    position: relative;
}

Its okay @Adriano Faria, I think thats the place! I'll work on it as its a global setting so will need to work for light and dark themes but its enough for now! Thanks for your help so far 🙂

  • Author

It's enough to add only what you want to change, like:

.sosRafflesPrizesCell{
  	background: #000;
	color: yellow;
}

You don't need to repeat the other lines, unless you want to change them.

  • 2 weeks later...
  • Author
4 hours ago, ADKGamers said:

Could contain: Text, Page

I'm getting this error when the giveaway winners are posted in the discussion topic:

https://www.adkgamers.com/forums/topic/85-giveawayrandom-games-giveaway/

It happens on both the default Invision Theme and the theme that we use on the site. 

Are you using latest version? I remember to have this reported before and have fixed it.

3 hours ago, Adriano Faria said:

Are you using latest version? I remember to have this reported before and have fixed it.

Yeah it's showing that I'm on 1.6.7

Could contain: Text, Page, Paper

8 minutes ago, Adriano Faria said:

Ok, will make some tests.

Thank you! 🙂

  • Author
16 hours ago, ADKGamers said:

Could contain: Text, Page

I'm getting this error when the giveaway winners are posted in the discussion topic:

https://www.adkgamers.com/forums/topic/85-giveawayrandom-games-giveaway/

It happens on both the default Invision Theme and the theme that we use on the site. 

Can't reproduce. Just created a raffle and expired it... seems ok to me:

S8qdTO5.png

 

Go to your ACP -> Customization -> edit your template -> Raffles -> front -> view and see if the template raffleWinners is edited; the REVERT button will be visible if it is. Click in the button to get the right version.

If it isn't, provide more details by posting the log entry of this error.

23 hours ago, Adriano Faria said:

Can't reproduce. Just created a raffle and expired it... seems ok to me:

S8qdTO5.png

 

Go to your ACP -> Customization -> edit your template -> Raffles -> front -> view and see if the template raffleWinners is edited; the REVERT button will be visible if it is. Click in the button to get the right version.

If it isn't, provide more details by posting the log entry of this error.

The REVERT button was not available to click on. I believe this is the error log:


 

#0 /home/XXXXXXXXX/system/Application/Module.php(154): IPS\_Dispatcher::i()
#1 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(18229): IPS\Application\_Module::get('core', 'members')
#2 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->userPhoto(Object(IPS\Member), 'medium')
#3 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(6787): IPS\Theme\_SandboxedTemplate->__call('userPhoto', Array)
#4 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->winnerRow(Object(IPS\raffles\Raffle), Object(IPS\Member), Array, 1)
#5 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(2839): IPS\Theme\_SandboxedTemplate->__call('winnerRow', Array)
#6 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->raffleWinners(2, Array)
#7 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(866): IPS\Theme\_SandboxedTemplate->__call('raffleWinners', Array)
#8 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_submit->updateTopicWithWinners(2, 'giveaway', Array)
#9 /home/XXXXXXXXX/applications/raffles/tasks/Winners.php(158): IPS\Theme\_SandboxedTemplate->__call('updateTopicWith...', Array)
#10 /home/XXXXXXXXX/applications/raffles/tasks/Winners.php(96): IPS\raffles\tasks\_Winners->updateTopicWithResult(Object(IPS\raffles\Raffle), Array)
#11 /home/XXXXXXXXX/system/Task/Task.php(274): IPS\raffles\tasks\_Winners->execute()
#12 /home/XXXXXXXXX/system/Task/Task.php(237): IPS\_Task->run()
#13 /home/XXXXXXXXX/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog()
#14 {main}

 

  • Author

Giveaway, right? My test was a raffle... I'll try with a giveaway.

  • Author
20 minutes ago, ADKGamers said:

The REVERT button was not available to click on. I believe this is the error log:


 

#0 /home/XXXXXXXXX/system/Application/Module.php(154): IPS\_Dispatcher::i()
#1 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(18229): IPS\Application\_Module::get('core', 'members')
#2 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->userPhoto(Object(IPS\Member), 'medium')
#3 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(6787): IPS\Theme\_SandboxedTemplate->__call('userPhoto', Array)
#4 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->winnerRow(Object(IPS\raffles\Raffle), Object(IPS\Member), Array, 1)
#5 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(2839): IPS\Theme\_SandboxedTemplate->__call('winnerRow', Array)
#6 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_view->raffleWinners(2, Array)
#7 /home/XXXXXXXXX/system/Theme/Theme.php(885) : eval()'d code(866): IPS\Theme\_SandboxedTemplate->__call('raffleWinners', Array)
#8 /home/XXXXXXXXX/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_raffles_front_submit->updateTopicWithWinners(2, 'giveaway', Array)
#9 /home/XXXXXXXXX/applications/raffles/tasks/Winners.php(158): IPS\Theme\_SandboxedTemplate->__call('updateTopicWith...', Array)
#10 /home/XXXXXXXXX/applications/raffles/tasks/Winners.php(96): IPS\raffles\tasks\_Winners->updateTopicWithResult(Object(IPS\raffles\Raffle), Array)
#11 /home/XXXXXXXXX/system/Task/Task.php(274): IPS\raffles\tasks\_Winners->execute()
#12 /home/XXXXXXXXX/system/Task/Task.php(237): IPS\_Task->run()
#13 /home/XXXXXXXXX/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog()
#14 {main}

Sorry, still no issues here:

You probably have corrupted data or something.

Is this happening in ALL raffles/giveaways, including a new one? If I create one there right now, will happen?

Send your board URL and an unrestricted ACP account. I'll create one and will test.

16 hours ago, Adriano Faria said:

Sorry, still no issues here:

You probably have corrupted data or something.

Is this happening in ALL raffles/giveaways, including a new one? If I create one there right now, will happen?

Send your board URL and an unrestricted ACP account. I'll create one and will test.

Yeah, I even created a new one yesterday with only 1 prize and it still occurred.  I'll get you that information. 

  • Author
22 hours ago, ADKGamers said:

Yeah, I even created a new one yesterday with only 1 prize and it still occurred.  I'll get you that information. 

Thank you. I have identified a situation where this can happen. You board is fixed:

k7sG0kV.png

The fix isn't retroactive as post content is text. I have edited the dates in this giveaway and run it again.

Will update the marketplace file.

Tks.

  • 2 weeks later...

why don't we add support for Raffle Balance its self? so each customer buys ticket and prize will be raffled on winners but balance USD or LTC or BTC or whatever to the winners? would be brilliant

Edited by Bakako

  • 4 weeks later...

Hello, I had a draw running for about 5 days, strangely no one entered it. Only then did someone message me saying that they can not take a ticket.

I have created a new test draw, checked the user permissions and the test account I used should be able to enter, but the same, the button is red saying that they can not participate. 

I have the latest forum software and running PHP 8.x, not sure why it isn't working as user permissions appear to be correct and prize added etc. Is this a known issue, any idea how to fix it so that I can start some prize draws again?

Many thanks!

  • Author
4 minutes ago, ekforum said:

I have created a new test draw, checked the user permissions and the test account I used should be able to enter, but the same, the button is red saying that they can not participate. 

Click in the red button and a popup will show up with the reason.

3 minutes ago, Adriano Faria said:

Click in the red button and a popup will show up with the reason.

Could contain: Page, Text

However, that is incorrect, as I am using a test account in the member group. So should be able to enter.

I also ran a draw for about week, with 0 participants, as they were unable to enter also, despite correct user group.

Could contain: Chart, Plot, Page, Text
 

  • Author

Well, I didn't change that specific area for years...Actually I don't even remember having changed that so I would bet in something in your board.

Send a message with an unrestricted admin account and URL. I'll take a look when I'm able to.

  • Author
7 minutes ago, ekforum said:

Could contain: Page, Text
 

Also, check the permission for these groups in the category:

QcIqsQT.png

This message only appears in the user group can't participate due to lack of permission.

9 minutes ago, Adriano Faria said:

Also, check the permission for these groups in the category:

QcIqsQT.png

This message only appears in the user group can't participate due to lack of permission.

Yes, you are absolutely correct, it was that. So complete user error, 🙈 thank you so much for helping!

What does the 'review raffles' column relate to? Is it a review system (same like in the forum store of products) that members can leave reviews of the draw, if enabled? Or or has a different meaning?

  • Author
6 minutes ago, ekforum said:

What does the 'review raffles' column relate to? Is it a review system (same like in the forum store of products) that members can leave reviews of the draw, if enabled? Or or has a different meaning?

Yes, to enable the Reviews system in the raffle/giveaway:

SaD0GPH.png

Currently, anyone can review but I guess it's a good idea to have the option to allow reviews from those who have participated in the raffle/giveaway.

When you click on 'all participants' it shows the members who have joined.

Could contain: Page, Text, Logo

The join date under the member is incorrect:

Could contain: Text
But time stamps pop the forum seem to be fine, just that bit. 

Recently Browsing 0

  • No registered users viewing this page.