Jump to content

Where do I put images for the Avatar Gallery?


squires

Recommended Posts

We just got done setting up our forums, and have all the appropriate options turned to yes to allow the user to upload/link to an avatar as well as size constraints on it. We also have an option for the user to choose one of our avatars from the avatar gallery, but it's currently empty. How to I put images in there to use?

Put all the images you want to be in the drop/list menu in a database table called `board_avatars`, and insert all the images into a directory, and their names in the database table Board_avatars/

 

edit:

 

<?php
          echo '<select name ="default_avatars">';
while($row = mysql_fetch_array(mysql_query("SELECT * FROM `board_avatars` ")){


         echo '<option value ="'.$row['filename'].'">'.$row['filename'].'</option>';



}
echo '</select>';

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.