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?

Link to comment
Share on other sites

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>';

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.