• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Shop system.

Fu Manchu

Sepultra™
Joined
Jan 28, 2011
Messages
439
Reaction score
9
As most people have I do as well have a shop system that can only be viewed by people logged in. I was wondering if someone could help me change the script around a bit to either show people the gift page when not logged in or take them to the login page, And then once logged in redirect them back to the gift page.
 
Last edited:
What behavior?

Edit: I don't know if you where mad at me for asking this. Or if you where actually telling me how to fix this. But nvm I figured it out. I don't know if it was the right way but it's doing what I wanted it to do. :p
 
What behavior?

Edit: I don't know if you where mad at me for asking this. Or if you where actually telling me how to fix this. But nvm I figured it out. I don't know if it was the right way but it's doing what I wanted it to do. :p

i was talking about script behaviour :p:D oops i got it wrong, the other way around probably because i never use maac
 
@cyko lol oh: And What I truly want would be. If the player is not logged into the website. It will send them to a login screen. Once they login redirect them to the shops page.
 
made something like this quite a few times for gesior, but for modernaac it looks like you have to make a redirect (it's actually a proper way) with some $_GET field like ?redirect=/index.php/rest/of/uri/here
 
well I do belive this is where it checks if there logged in or not.

if ($_SESSION['logged'] == 1) so I would assume it needs to be in there some where. :S I really wish I knew wtf I was doing. Hahah this would be so much easier.


maybe an elseif or an else right after that, plus some script lol -.-
 
yesir I do, lessaire helps me out a lot with teamviewer. hahah And explaining is kinda good because I'm not in this for the cash I'm in it for the learning experience. And all the knowledge I know can be obtained from this but if you have msn add me or pm me on here and ill send you the info to connect to me.
 
LOL so me and cykotitan just went to hell and back but once again he get it done. He never fails to amaze me... haha even when it looked like he had hit a dead in -.- Still ended up on top haha. ty much bro
 
this is what happens when someone unexperienced in maac (me!) tries to add some basic functionality to a page

at least i learned a thing or 2 about it
 
Back
Top