Welcome Guest, Not a member yet? Register   Sign In
Database Model
#21

[eluser]GamingFusion[/eluser]
got it working but the Captcha isn't working
#22

[eluser]GamingFusion[/eluser]
I want the script to check for if a user is logged in or not and if yes display the user data if not the guest data.

The user and guest data is the navbar they can see so the guest would see Register | Login and the user would see something like Profile | Edit Profile | Inbox | Logout

for example heres the code i have in the controller under the index function.


Code:
if ($this->tank_auth->is_logged_in()) {        // logged in
            echo "anchor('auth/edit_prof', 'Edit Profile '); anchor('auth/logout', '| Logout');"
        } else {                // If not logged in
            echo anchor('auth/register', 'Register ');  anchor('auth/login', '| Login');
        }

bow that doesn't display anything how would i make it display what i have there that i want displayed
#23

[eluser]Zack Kitzmiller[/eluser]
[quote author="bargainph" date="1242807447"][quote author="Colin Williams" date="1242805236"]Controllers handle requests.[/quote]

Couldn't have said it better.[/quote]

*clap**clap*




Theme © iAndrew 2016 - Forum software by © MyBB