Jump to content
xisto Community
Sign in to follow this  
OutOfOrder

[script Request] The "no Avatar" Option No Avatar Script Please

Recommended Posts

Well, it would be something anong the lines of, it would check the users details from a database, and use some code like this:

if (row['avatar'] == "none"){print (" Whatever HTML code is used to show the Na avatar symbol you want ");} else {print ('<img src="');print ("$row['avatar']");print ('" alt="user avatar" />');}
It would just check to see if there was a database entry to see if the user has uploaded an avatar, and the location of it, then ouputs an image tag for the avatar if there is one, and a No avatar image if there isnt...
Edited by minimcmonkey (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.