Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2011, 08:23 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 26,315
PTGigi
Default Prevent Refresh

Okay so I wasn't sure if this was a question or a suggestion so I'll throw it out.


I'm in the middle of coding something and REALLY need a way to disable refreshing, basically I don't want cheaters. (because I have a page that gives you an adoptable but I do not want you to get it twice through refresh, I suppose this could also be added to the 'congrats you've adopted ___" page but really I'd like it if someone could help out XD

I assume there isn't an exact way to do this since it involves messing with people's browsers. But is it possible to make a pop-up message when you hit F5 or refresh appear and say 'refreshing disabled' or whatnot? Or somehow make a way to remove the given adoptable if you refresh the page?

Anymore ideas or suggestions or anyone know of a way to do this? O.o Javascript will also work though all my Google searching only disheartened me (apparently this technique is mainly used by scam and porn sites T_T)

EDIT: Mrf, just thought of something else.

Is it possible (I've been trying but failing) to make some sort of variable that adds up as you visit the page? Sorta like the log-in attempts on forums?
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic

Last edited by PTGigi; 01-27-2011 at 08:32 PM.
Reply With Quote
  #2  
Old 01-27-2011, 10:38 PM
HIddenPanda's Avatar
HIddenPanda HIddenPanda is offline
I Am... Da Sheep
 
Join Date: Jul 2010
Posts: 52
Gender: Male
Credits: 5,339
HIddenPanda
Default

Well, about the refresh thing... It's pretty much impossible (as of what i've read on it) and For the attempts thing... use a session or a cookie... (cookies you can clear/edit so I suggest using a session) There easier then they look... mostly
__________________
dasheep.tk
Reply With Quote
  #3  
Old 01-28-2011, 02:10 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,876
fadillzzz is an unknown quantity at this point
Default

Yep! The best way is to use session..
Reply With Quote
  #4  
Old 01-28-2011, 08:36 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,138
Hall of Famer is on a distinguished road
Default

Yeah, you will have to use sessions. They are rather complicated to implement though, ask a PHP coder for help if you want to.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 01-28-2011, 10:07 AM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 26,315
PTGigi
Default

Alright thanks guys :D *goes to learn about session* X3
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #6  
Old 01-28-2011, 10:21 AM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,352
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Another possibility is using a redirect. It takes you away from the page that you don't want to be refreshed immediately, and even if you back up it should still redirect you. Then again Javascript can be disabled so... ^.^ You'd have to have some pretty dedicated cheaters. But Sessions work too, they're just more complex.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #7  
Old 01-28-2011, 10:26 AM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 26,315
PTGigi
Default

I was thinking about that XD Lol I'm probably over thinking this as well XD I don't know how many users think 'refesh!' XD But thanks anyway guys :D I'll probably end up doing the redirect (since I was planning on that for another page anyway )
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #8  
Old 01-28-2011, 11:28 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,876
fadillzzz is an unknown quantity at this point
Default

If you're worried that the users have javascript disabled, then use the PHP header function to do the redirection
and session isn't really that hard to implement actually...
Reply With Quote
  #9  
Old 01-28-2011, 11:38 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,138
Hall of Famer is on a distinguished road
Default

Sounds really interesting, maybe it will work for my fishing system too. ^^
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #10  
Old 01-28-2011, 04:12 PM
HIddenPanda's Avatar
HIddenPanda HIddenPanda is offline
I Am... Da Sheep
 
Join Date: Jul 2010
Posts: 52
Gender: Male
Credits: 5,339
HIddenPanda
Default

yes fadillz is right you can simply use

header("Location: page.php");
__________________
dasheep.tk
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't login, errors prevent it RandomFrog Questions and Supports 7 10-04-2014 10:23 PM
Breeding/Refresh Issue SilverDragonTears Questions and Supports 13 01-05-2012 08:57 PM
Prevent people making multiple accounts kisazeky Addons/Mods Graveyard 6 04-24-2009 01:44 AM


All times are GMT -5. The time now is 12:31 PM.

Currently Active Users: 9821 (0 members and 9821 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


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