Newsletter
Liste des sujets

Cherche Module pour mon forum

Caloun
Caloun
Niveau 10
28 octobre 2002 à 13:15:32

Voila les gars je cherche le mod qui permet d´avoir pour chacun des membres un avatar différent, cad chaque membre à un avatar differenty

si kk1 la, merci d´avance

g chercher sur leur forum il y est pas, et personne répond à mon topic, alors si kk1 le connais qui me le transmette.

Merci d´avance

Caloun
Caloun
Niveau 10
28 octobre 2002 à 16:24:27

C bon g trouver, merci les gars, hehe : -D

C_susuman
C_susuman
Niveau 9
28 octobre 2002 à 17:12:41

ouais mais dis quand meme ca peut nous interesser !

Caloun
Caloun
Niveau 10
28 octobre 2002 à 19:06:24
    1. ###############################################
    2. ############
    3. Mod Title: Avatar gallery hack
    4. Mod Version: 1.0.0
    5. phpBB Version: 2.0.2
    6. Author: dzidzius - dzidzius@dione.ids.pl (you can find me also at forum www.ForumBest.150.pl, there send all questions)
    7. Description:
    8. Avatar from gallery after chosing it by user automatically disappear from gallery. Thanks
    9. to this hack two users cannot have the same avatar. If user resign from that avatar it will
    10. be shown again in gallery.
    11. Installation Level: easy
    12. Installation Time: 2
    13. Files To Edit:

##

    1. includes\usercp_avatar.php,
    2. Generator: phpBB2 phpBB MODCreator v 1.1
    1. ###############################################
    2. ############
    3. This MOD is released under the GPL License.
    4. Intellectual Property is retained by the MOD Author(s) listed above
    1. ###############################################
    2. ############
    3. For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
    4. latest version of this MOD. Downloading this MOD from other sites could cause malicious code
    5. to enter into your phpBB Forum. As such, phpBB will not offer support for MOD´s not offered
    6. in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
    1. ###############################################
    2. ############
    3. Author Note:

##

    1. ###############################################
    2. ############

##

    1. Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    1. ###############################################
    2. ############

#

  1. -----[ OPEN ]------------------------------------------

#

  1. includes\usercp_avatar.php

#

  1. -----[ FIND ]------------------------------------------

#

  1. $dir = @opendir($board_config[´avatar_gallery_path´]);

#

  1. -----[ BEFORE, ADD ]------------------------------------------

#

$my_counter = 0;
$my_checker = 0;
$sql = "SELECT user_avatar
FROM " . USERS_TABLE . "
WHERE user_avatar_type=3";

if( ! ($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, ´Could not query users´, ´´, __LINE__, __FILE__, $sql);
}

while( $row = $db->sql_fetchrow($result) )
{
$my_counter++;
$my_used_list[$my_counter] = $row[´user_avatar´];
}

$db->sql_freeresult($result);

#

  1. -----[ FIND ]------------------------------------------

#

while( $sub_file = @readdir($sub_dir) )
{
if( preg_match(´/(\.gif$|\.png$|\.jpg|\.jpeg)$/is´, $sub_file) )
{

$avatar_images[$file][$avatar_row_count][$avatar
_col_count] = $file . ´/´ . $sub_file;

$avatar_name[$file][$avatar_row_count][$avatar_c
ol_count] = ucfirst(str_replace("_", " ", preg_replace(´/^(.*)\..*$/´, ´\1´, $sub_file)));

$avatar_col_count++;
if( $avatar_col_count == 5 )
{
$avatar_row_count++;
$avatar_col_count = 0;
}
}
}

#

  1. -----[ REPLACE WITH ]------------------------------------------

#

while( $sub_file = @readdir($sub_dir) )
{
$my_checker = 0;
for ($i = 1; $i<= $my_counter; $i++ )
{
$my_temp = $file . ´/´ . $sub_file;
if ($my_temp == $my_used_list[$i]) $my_checker=1;
if ($my_checker==1) break;
}
if ($my_checker == 0)
{
if( preg_match(´/(\.gif$|\.png$|\.jpg|\.jpeg)$/is´, $sub_file) )
{

$avatar_images[$file][$avatar_row_count][$avata
r_col_count] = $file . ´/´ . $sub_file;

$avatar_name[$file][$avatar_row_count][$avatar_
col_count] = ucfirst(str_replace("_", " ", preg_replace(´/^(.*)\..*$/´, ´\1´, $sub_file)));

$avatar_col_count++;
if( $avatar_col_count == 5 )
{
$avatar_row_count++;
$avatar_col_count = 0;
}
}
}
}

#

  1. -----[ SAVE/CLOSE ALL FILES ]------------------------------------------

#

  1. EoM
Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment