Avatar of poster on Index and Viewforum

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Kaqu
Registered User
Posts: 26
Joined: Fri May 15, 2009 7:12 pm

Re: Avatar of poster on Index and Viewforum

Post by Kaqu »

At first I didn't, but when I got the error I changed it. The error stayed the same.
SantoLeardo
Registered User
Posts: 20
Joined: Sun Apr 05, 2009 2:05 pm

Re: Avatar of poster on Index and Viewforum

Post by SantoLeardo »

How to enable this mod???? :?:
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

Kaqu wrote:At first I didn't, but when I got the error I changed it. The error stayed the same.
i am assuming you purged your cache. can you have a look at your database if the fields are actually there?
SantoLeardo wrote:How to enable this mod???? :?:
in the acp, make sure that
Display profile views list:
is set to yes
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
SantoLeardo
Registered User
Posts: 20
Joined: Sun Apr 05, 2009 2:05 pm

Re: Avatar of poster on Index and Viewforum

Post by SantoLeardo »

lefty74 wrote:
SantoLeardo wrote:How to enable this mod???? :?:
in the acp, make sure that
Display profile views list:
is set to yes
Ok tnx,in no avatar is little problem.you have installed univoc avatar andi user "No avatar"Is Big
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

SantoLeardo wrote: Ok tnx,in no avatar is little problem.you have installed univoc avatar andi user "No avatar"Is Big
sorry, i have no idea what you mean
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Kaqu
Registered User
Posts: 26
Joined: Fri May 15, 2009 7:12 pm

Re: Avatar of poster on Index and Viewforum

Post by Kaqu »

Yes I did purge the cache and the fields are in the database... any ideas?
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

Kaqu wrote:Yes I did purge the cache and the fields are in the database... any ideas?
well, it says the field does not exist so how can it be in the database?

i would suggest to delete the fields and re-execute the sql script, there must have been something gone wrong when you either executed the first sql or the one when you had changed the prefix.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
SantoLeardo
Registered User
Posts: 20
Joined: Sun Apr 05, 2009 2:05 pm

Re: Avatar of poster on Index and Viewforum

Post by SantoLeardo »

Example:
Image

Is Big

Normal avatar in small :(

sorry for my english
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

please doublecheck your edits, you must have missed something.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
SantoLeardo
Registered User
Posts: 20
Joined: Sun Apr 05, 2009 2:05 pm

Re: Avatar of poster on Index and Viewforum

Post by SantoLeardo »

lefty74 wrote:please doublecheck your edits, you must have missed something.
All edits? no avatar is mod Univoc Avatar
this is mod affected

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/functions_user.php 

#
#-----[ FIND ]------------------------------------------
#

global $user, $cache, $template; 

#
#-----[ REPLACE WITH ]------------------------------------------
#

global $db, $user, $cache, $template; // $db Avatar Univoci 1.0.0 

#
#-----[ FIND ]------------------------------------------
#

$avatar_list = array();

#
#-----[ BEFORE ADD ]------------------------------------------
#

	// Begin Avatar Univoci 1.0.0
	$my_counter = 0;
    $my_checker = 0;
	$sql = 'SELECT user_avatar
  	 FROM ' . USERS_TABLE . '
 	 WHERE user_avatar_type = 3';
	$result = $db->sql_query($sql);
	$db->sql_freeresult($result);

	while($row = $db->sql_fetchrow($result))
    {
       $my_counter++;
	   $avatar_list = array();
       $my_used_list[$my_counter] = $row['user_avatar'];      
    }
	// End Avatar Univoci 1.0.0 

#
#-----[ FIND ]------------------------------------------
#

					 while (($sub_file = readdir($dp2)) !== false)
					{
						if (preg_match('#^[^&\'"<>]+\.(?:gif|png|jpe?g)$#i', $sub_file))
						{
							$avatar_list[$file][$avatar_row_count][$avatar_col_count] = array(
								'file'		=> "$file/$sub_file",
								'filename'	=> $sub_file,
								'name'		=> ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $sub_file))),
							);
							$avatar_col_count++;
							if ($avatar_col_count == $items_per_column)
							{
								$avatar_row_count++;
								$avatar_col_count = 0;
							}
						}
					} 

#
#-----[ REPLACE WITH ]------------------------------------------
#

					while (($sub_file = readdir($dp2)) !== false)
					{
					
					// Begin Avatar Univoci 1.0.0
					$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)      
				        {
					// End Avatar Univoci 1.0.0
					
						if (preg_match('#^[^&\'"<>]+\.(?:gif|png|jpe?g)$#i', $sub_file))
						{
							$avatar_list[$file][$avatar_row_count][$avatar_col_count] = array(
								'file'		=> "$file/$sub_file",
								'filename'	=> $sub_file,
								'name'		=> ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $sub_file))),
							);
							$avatar_col_count++;
							if ($avatar_col_count == $items_per_column)
							{
								$avatar_row_count++;
								$avatar_col_count = 0;
							}
						}
					}
				} // Avatar Univoci 1.0.0


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Last edited by SantoLeardo on Sun May 17, 2009 9:30 pm, edited 1 time in total.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

sorry, then i still dont understand.

what is univoc avatar?
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
SantoLeardo
Registered User
Posts: 20
Joined: Sun Apr 05, 2009 2:05 pm

Re: Avatar of poster on Index and Viewforum

Post by SantoLeardo »

lefty74 wrote:sorry, then i still dont understand.

what is univoc avatar?

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/functions_user.php 

#
#-----[ FIND ]------------------------------------------
#

global $user, $cache, $template; 

#
#-----[ REPLACE WITH ]------------------------------------------
#

global $db, $user, $cache, $template; // $db Avatar Univoci 1.0.0 

#
#-----[ FIND ]------------------------------------------
#

$avatar_list = array();

#
#-----[ BEFORE ADD ]------------------------------------------
#

	// Begin Avatar Univoci 1.0.0
	$my_counter = 0;
    $my_checker = 0;
	$sql = 'SELECT user_avatar
  	 FROM ' . USERS_TABLE . '
 	 WHERE user_avatar_type = 3';
	$result = $db->sql_query($sql);
	$db->sql_freeresult($result);

	while($row = $db->sql_fetchrow($result))
    {
       $my_counter++;
	   $avatar_list = array();
       $my_used_list[$my_counter] = $row['user_avatar'];      
    }
	// End Avatar Univoci 1.0.0 

#
#-----[ FIND ]------------------------------------------
#

					 while (($sub_file = readdir($dp2)) !== false)
					{
						if (preg_match('#^[^&\'"<>]+\.(?:gif|png|jpe?g)$#i', $sub_file))
						{
							$avatar_list[$file][$avatar_row_count][$avatar_col_count] = array(
								'file'		=> "$file/$sub_file",
								'filename'	=> $sub_file,
								'name'		=> ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $sub_file))),
							);
							$avatar_col_count++;
							if ($avatar_col_count == $items_per_column)
							{
								$avatar_row_count++;
								$avatar_col_count = 0;
							}
						}
					} 

#
#-----[ REPLACE WITH ]------------------------------------------
#

					while (($sub_file = readdir($dp2)) !== false)
					{
					
					// Begin Avatar Univoci 1.0.0
					$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)      
				        {
					// End Avatar Univoci 1.0.0
					
						if (preg_match('#^[^&\'"<>]+\.(?:gif|png|jpe?g)$#i', $sub_file))
						{
							$avatar_list[$file][$avatar_row_count][$avatar_col_count] = array(
								'file'		=> "$file/$sub_file",
								'filename'	=> $sub_file,
								'name'		=> ucfirst(str_replace('_', ' ', preg_replace('#^(.*)\..*$#', '\1', $sub_file))),
							);
							$avatar_col_count++;
							if ($avatar_col_count == $items_per_column)
							{
								$avatar_row_count++;
								$avatar_col_count = 0;
							}
						}
					}
				} // Avatar Univoci 1.0.0


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: Avatar of poster on Index and Viewforum

Post by lefty74 »

never seen that mod, is that from phpbb.com?

anyway, it does not look like its compatible with this mod.
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
Kaqu
Registered User
Posts: 26
Joined: Fri May 15, 2009 7:12 pm

Re: Avatar of poster on Index and Viewforum

Post by Kaqu »

lefty74 wrote:
Kaqu wrote:Yes I did purge the cache and the fields are in the database... any ideas?
well, it says the field does not exist so how can it be in the database?

i would suggest to delete the fields and re-execute the sql script, there must have been something gone wrong when you either executed the first sql or the one when you had changed the prefix.
Mea culpa! I've checked again and saw that 3 fields were missing. Now it works, but there is another problem. I can see the avatars in Firefox, but not in IE7 and IE8. It's probably my own fault again, but have no idea where I can fix this...
You can see the forum here: www.brontes.nl
Kaqu
Registered User
Posts: 26
Joined: Fri May 15, 2009 7:12 pm

Re: Avatar of poster on Index and Viewforum

Post by Kaqu »

Got it! The avatars were too large, so I used your instructions to tweak the size (your answer on a question from mezzer99 in march) and now they also show up in IE.
Thanks for your help lefty74, this is a great mod!!!
Locked

Return to “[3.0.x] MOD Database Releases”