Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Enable/Disable Daily clicks for the users
i think the daily click is a useful function, but when you have a small site or have limited the daycare to show only some levels or give really small amounts of money for each click... it seems not so needed...
the temporal solution was to increase the number to the amount of current owned adoptables. But someone asked in the chat if there was a way to disable the option... the easy way was to remove the code that gives the error once you reached the limit... but if one day you want to enable the daily click you have to add that code again. So after looking at the code i came with the idea of adding an enable and disable option. first you need to insert a new row in the levels_settings table in the database name: linumber value: disabled should look similar to this: now open your level.php in the admincp folder and search for: public function settings(){ you will add: , 'linumber' after 'user' it should look like this: PHP Code:
look for: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
look for PHP Code:
PHP Code:
|
#2
|
||||
|
||||
Thank you for this!! Can't wait to try it!
|
|
|
What's New? |
What's Hot? |
What's Popular? |