![]() |
Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
Interesting! I will try to answer what I can!
Quote:
PHP Code:
Quote:
PHP Code:
Quote:
levelup.php - click() PHP Code:
Quote:
Since this will take a few lines, I'd move the code you already have in assignTemplateVars() to a separate private function but in the same file and call that function somewhere inside assignTemplateVars(). This is just for organization though, separating big functions into smaller ones makes the code more readable (Code Refactoring - Method Extraction) I'd also use && instead of 'and' xD Number 5, you can create a new settings page just for those or add those settings to an existing page too. Add the fields you want (range of days? bonuses?) to a form then after submiting it update the database with those values If it gets to a point where you want to define many different bonuses (money, clicks, discounts...), maybe create a new table just for those bonuses? Number 6, I can't really help with sorry :/
__________________
![]() ![]() ![]() asp.net stole my soul. Last edited by IntoRain; 11-12-2014 at 05:11 AM. |
Tags |
bonus, clicks, community, interaction, mod |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The community here is brilliant! | CallumCharlton | Newcomer Center | 3 | 03-11-2015 10:29 AM |
Opinions on Progress | RoconzaArt | Art Gallery | 9 | 01-20-2011 10:38 PM |
Which is best open source community software? | chriskrich878 | Other Chat | 3 | 11-23-2010 09:06 PM |
Still a work in Progress | MyBBSkinz | Adoptables Sites Showcase | 7 | 08-31-2008 08:13 AM |
Urm Yeah mybb community forums | Ajof | Other Chat | 5 | 06-29-2008 04:12 PM |
What's New? |
What's Hot? |
What's Popular? |