Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove featured list restriction of 7 days #8

Open
GreenArrowlol opened this issue Aug 8, 2024 · 7 comments
Open

How to remove featured list restriction of 7 days #8

GreenArrowlol opened this issue Aug 8, 2024 · 7 comments

Comments

@GreenArrowlol
Copy link

I noticed that it doesn't let people pay for featured slot unless their server is of 7 days old but that might not be good in some situations.

So please let me know on how to remove this restriction.
image

@tomo54321
Copy link
Owner

Hi,
To remove this you are going to need to go and remove the checks and references to this within the views and controllers.
The ones I have been able to find quickly are:
https://github.com/tomo54321/McServer-List/blob/master/app/Http/Controllers/FeatureController.php#L36
https://github.com/tomo54321/McServer-List/blob/master/resources/views/featured/show.blade.php#L27

@GreenArrowlol
Copy link
Author

Hi, To remove this you are going to need to go and remove the checks and references to this within the views and controllers. The ones I have been able to find quickly are: https://github.com/tomo54321/McServer-List/blob/master/app/Http/Controllers/FeatureController.php#L36 https://github.com/tomo54321/McServer-List/blob/master/resources/views/featured/show.blade.php#L27

What about just reducing the minimum requirement to 1 day?

How to do that?

@tomo54321
Copy link
Owner

This will still involve editing the files sent above to lower the requirement from 1 week (7 days) to 1 day.

@GreenArrowlol
Copy link
Author

GreenArrowlol commented Aug 9, 2024

This will still involve editing the files sent above to lower the requirement from 1 week (7 days) to 1 day.

I see, can you point out the exact value we need to enter there? I see that it says addWeeks(-1)) but not sure about how to make it to a day.

@tomo54321
Copy link
Owner

Yes that the line you need to edit, you are able to manipulate the date however, you choose from there. It is using a Carbon date object, you need to change it to be addDays, here's the section in their docs you'll need to take a look at to change it to a day, week, month or year.

https://carbon.nesbot.com/docs/#api-addsub

@GreenArrowlol
Copy link
Author

Yes that the line you need to edit, you are able to manipulate the date however, you choose from there. It is using a Carbon date object, you need to change it to be addDays, here's the section in their docs you'll need to take a look at to change it to a day, week, month or year.

https://carbon.nesbot.com/docs/#api-addsub

Thanks.

Can I also know how to change this to 1?
image

I tried looking but don't see what to edit.

@GreenArrowlol
Copy link
Author

Yes that the line you need to edit, you are able to manipulate the date however, you choose from there. It is using a Carbon date object, you need to change it to be addDays, here's the section in their docs you'll need to take a look at to change it to a day, week, month or year.
https://carbon.nesbot.com/docs/#api-addsub

Thanks.

Can I also know how to change this to 1? image

I tried looking but don't see what to edit.

Found it
'minsponsordays' => 1, // Minimum days you can sponsor your server for

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants