• Date: Dec 23, 2013
  • Edited: Dec 23, 2013 by Godzilla01


Thank's Alot...but can you/anyone please help me Edit ma func.php and add the code dere...am using pbnl-v2_3 script...thanks:.

Set4ree

Is your code working fine? Can users log in?
And if a user logs in, do you have a place where it shows the members name?

Am asking this because.. If for example your script, admin logs in ...and it shows currently logged in as admin
All you just have to do is....anywhere the word 'admin' or 'owner' or 'members' is showing on the site..just add the img src attribute beside them..no need to add all those codes I wrote.

  • Date: Dec 23, 2013


Ok, here's the code assistance I can come up with
BUT its now left to you to tweak it to suit the rest of your codes.

//for example let's say have a table called 'users'.
// and you have a column called 'level'
// then you store 1 for admin and 0 for normal members.
//After user has logged in succesfully..in your homepage script.
//Add this code
<?php
// fetch information from database
$query ="Select `level` From `users` where `username`='$loggedinuser';
$result = mysql_query($query);
//now remember 1 is admin and 0 is members.
If($result == 0){
Echo "<p><img src="avatar.jpg">normal USER</p>";
}
Elseif($result == 1){
Echo <p><img src="crown.jpg" alt="crown image"> ADMIN</p>
}

Pls note...make sure to change
1.Database table name
2.Column name to the one in your table
3. Img source.

This is my short simple version according to what I understand for what you need

Godzilla01

I love it. Dats wat i wish to help him wit dats y i ask 4 wat differenciate User 4rm Admin in his users table. Kip it up

  • Date: Dec 23, 2013


Ok, here's the code assistance I can come up with
BUT its now left to you to tweak it to suit the rest of your codes.

//for example let's say have a table called 'users'.
// and you have a column called 'level'
// then you store 1 for admin and 0 for normal members.
//After user has logged in succesfully..in your homepage script.
//Add this code
<?php
// fetch information from database
$query ="Select `level` From `users` where `username`='$loggedinuser';
$result = mysql_query($query);
//now remember 1 is admin and 0 is members.
If($result == 0){
Echo "<p><img src="avatar.jpg">normal USER</p>";
}
Elseif($result == 1){
Echo <p><img src="crown.jpg" alt="crown image"> ADMIN</p>
}

Pls note...make sure to change
1.Database table name
2.Column name to the one in your table
3. Img source.

This is my short simple version according to what I understand for what you need

Godzilla01

I love it. Dats wat i wish to help him wit dats y i ask 4 wat differenciate User 4rm Admin in his users table. Kip it up

  • Date: Dec 23, 2013


Okay tanx...but d func.php nko?

Set4ree

If it is working fine, you do not need to edit it,
All you have to do is just add the images beside the names
Admin, member etc.

  • Date: Dec 24, 2013

I don't knw how to do dat...if i do it dere must be an error...4 d past 3 months now no one has been able 2 help me out on dis...please help me..

  • Date: Dec 24, 2013

Well, iv never used pb_nl before..so I guess its for gerard,trustwordi and others...

  • Date: Dec 24, 2013

Okay tanx...but plz help me foward dis topic 2 dem..tanx.....

‹‹12››
Viewing Page 2 of 2 pages