Logging in for the First Time

Forum
Last Post
Threads / Messages

Rozel

Member
Member
Joined
Jun 26, 2010
Messages
144
Points
0
Mysidian Dollar
7,266
I'm curious if, when the user logs in that they be directed to a certain page. After viewing the page and clicking "Continue" or some kind of button, it would stop popping up every time they started.

For example, I want to have a page for beginners that explains a few basics of how to start and what they should do. It'll have an NPC explaining she gave you some money to buy an adoptable, and then tells you how to acquire more... Pretty much like a good, warm welcome. Then at the bottom of the page it'll say the NPC says something like...

"Alright, bye!" and then you can click a button that says "Continue on to the website" or something. -shrugs-

Any help appreciated :D
 
I am willing to bet this would be easy. In pseudo code, have your pages check a variable, say 'new', and if its 0 or false then redirect to the beginner page, and the beginner page also ads 1 to the 'new' variable or makes it true. now when the pages check variable 'new' it shouldn't redirect. you will also need to add the variable 'new' to the sql table. Now you just need this in php lol.

I took a stab at it, interested in if my idea would work and what else you guys will come up with.
 
umm I believe it is possible to setup redirect page and command, there are lots of solutions you can find from google.
 
I'm not sure about re-directing, but you could edit your lang.php file.

So where it says this -


PHP:
$regsuccess2 = ".  Your account has been created and you have automatically been logged in.  You can now <a href='adopt.php'>Adopt Some Pets</a> or <a href='account.php'>Manage Your Account</a>.";

You could change it to this -

PHP:
$regsuccess2 = ".  Your account has been created and you have automatically been logged in.  You can now <a href='adopt.php'>Adopt Some Pets</a> or <a href='account.php'>Manage Your Account</a>. You could also head over to <a href='pages.php?page=firstlogin'>here</a> to help get you started";

Or you could go about editing it further, if you have HTML knowledge. Y'know, since you're re-directed to here if you register correctly. I think adding further code onto here would be a waste of time.
 
Last edited:
I'm not that good with PHP, I can usually just take it then edit it a bit to my needs but never really one to make up stuff. I can never remember what to type and whatnot... So if anyone could give me more specific code would be helpful.

Also Linkin, you're idea is good, but I was kind of thinking that it would pop up every time you logged in until you pressed a certain button, just to make sure you understood and saw it. Like if you register but then accidently close or miss a few things. Some people just pass by on things like that, while if they had a button to press they might be drawn to read it a bit more :p
 
ill go try and do it, once i did it, ill post it in the mods section.
 
you can do that on the register.php page.when you register,something like welcome XXXX,edit your account or...

you can put a link with "see basics" and add a pet to the database with for owner the newcomer.
 
kitty, didnt u notice i already made this and put it in the mod section, but good :p
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top