>>  Site Map >>  Forums >>  General 6x

Forum module - topics in forum:



General 6x - Discussions reagarding any other PHP-Nuke Problems.



User Settings

Is there a way I can place the option for a user Avatar when the user is registering on my site? I have seen it on other sites, but I don't want to use any external modules, etc...

Thanks
Shedrock Very Happy Smile






You'd need to add something like

Code: :
."<tr><td bgcolor='$bgcolor2'><b>"._YOURAVATAR.":</b><br>"._OPTIONAL."</td><td bgcolor='$bgcolor3'>[ <a href=\"modules.php?name=$module_name&amp;op=avatarlist\">"._LIST."</a> ]&nbsp;&nbsp;"
       ."<select name=\"user_avatar\" onChange=\"showimage()\">"
       ."<option value=\"$userinfo[user_avatar]\">$userinfo[user_avatar]</option>";
   $direktori = "modules/Forums/images/avatars/gallery";
   $handle=opendir($direktori);
   while ($file = readdir($handle)) {
       $filelist[] = $file;
   }
   asort($filelist);
   while (list ($key, $file) = each ($filelist)) {
       ereg(".gif|.jpg",$file);
       if ($file == "." || $file == "..") {
      $a=1;
       } else {
      echo "<option value=\"$file\">$file</option>";
       }
   }
   echo "</select>&nbsp;&nbsp;<img src=\"modules/Forums/images/avatars/gallery/$userinfo[user_avatar]\" name=\"avatar\" width=\"32\" height=\"32\" alt=\"\"></td></tr>"


to function new_user in your account/index.php






Have you tried this yet?






Actually I haven't but I will soon. I was just tied up at work and was working on something else for the website. I will let ya know as soon as I do.

Thanks again

Shedrock Very Happy




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS