Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2017, 06:55 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,399
Kyttias is on a distinguished road
Default No more automatic EXP upon viewing pets, please?

Hey guys! Long time no see~! Good news - I quit my retail day job, so I have the summer to work on my site. I'm back to ask questions and seek out some help if anyone's interested in a bit of tinkering.

Is it possible to redesign how pets are viewed so that they do not automatically gain EXP when visited? Instead, I would like a button to be present. I'm aware it adds unnecessary tedium, but I think it would really help my server in the long run.

Right now, a user can open twenty tabs of pets and then automatically close them with built in browser functions without even looking at them (ctrl-click a bunch of links to open up new tabs and then right click the tab nearest to the one you're on and you can "close all tabs to the right" - all of those pets opened would get EXP). If users had to click something on all those pages, it would help slow them down and save my server the strain of loading pages they won't even look at, you know?

So, what I would like to implement is a link that says "Play with {$name}!" and only after clicking it would the pet get EXP. A page refresh would be acceptable.

Other sites do similar but in a more advanced way -- for example, on Pokéfarm, each Pokémon has a favorite flavor of berry, and you need to click on the correct flavor to give the optimum amount of EXP and earn yourself the most currency. (I believe clicking wrong also either counts less towards their events or not at all, I can't recall, it's been years.) This is above and beyond my needs, but other people on Mysidia may be interested in such a feature.

Anyone up to the task?
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #2  
Old 04-18-2017, 07:36 AM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 515
Gender: Unknown/Other
Credits: 21,534
Dinocanid is on a distinguished road
Default

Which version of mysidia script are you using? 1.3.4 has this already (Where your pet only gets EXP after clicking a button.) or at least as far as I know unless it adds EXP for both visiting and clicking and I didn't notice. I don't think I've experienced this on my site.
__________________
Reply With Quote
  #3  
Old 04-18-2017, 08:16 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 128,652
Hall of Famer is on a distinguished road
Default

Well I will definitely consider this for next minor and major releases, it is not very difficult to achieve. All you have to do is to disable adding clicks/exp automatically, add a button 'Click Me' that does this trick.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 04-18-2017, 08:18 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,399
Kyttias is on a distinguished road
Default

I can try turning off EXP gain for all pets. I just want that page to show a button that needs pressing rather than the function automatically running on page load. I believe I've found function in levelup.php.

I'm working on cleaning up the page a bit more (I'm using the pet profile mod, so, its cluttering up everything). I'll return with results, hopefully.
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.

Last edited by Kyttias; 04-18-2017 at 08:28 AM.
Reply With Quote
  #5  
Old 04-18-2017, 09:23 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 128,652
Hall of Famer is on a distinguished road
Default

Yeah, all you have to do is to edit levelup.php page, introduce a form with a 'Click Button', and only give EXP if the user clicks on this 'Click Me' button. It should be pretty easy for someone as skilled as you are.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #6  
Old 04-18-2017, 04:58 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 996
Gender: Male
Credits: 41,252
Abronsyth is on a distinguished road
Default

I know I have seen folks doing this using the mysidia code, but I cannot remember where exactly...it's doable though, for sure, haha.

Last edited by Abronsyth; 04-18-2017 at 05:42 PM.
Reply With Quote
  #7  
Old 04-18-2017, 08:31 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 843
Gender: Unknown/Other
Credits: 36,399
Kyttias is on a distinguished road
Default

I decided it would be a little bit easier to just start a new page from scratch, that way I could have the file names match my site. On the inside, it's still basically the levelup file (which includes the daycare). I'm glad I figured it out, the profile is all working a lot smoother now.

I should have a gif preview of how the new pet profile is working up on my development thread in a few days once I've got my new pet art a little bit more done. For now, there's this:


Off to make dinner now, whee~~ I've worked up quite an appetite!
__________________
Please do not contact me. I cannot offer tech support on any coding I've done prior to 2018.
Reply With Quote
  #8  
Old 04-19-2017, 08:53 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: Somerville
Posts: 4,388
Gender: Male
Credits: 128,652
Hall of Famer is on a distinguished road
Default

Looks nice, glad you figured it out a way.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:52 AM.

Currently Active Users: 204 (1 members and 203 guests)
Threads: 3,951, Posts: 31,453, Members: 15,541
Welcome to our newest members, Wyntrefun.
BER





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636