[2.0.17] Avatars Secret Gallery

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

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
8
89%
Very Good
1
11%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 9

Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Post by Merlin Sythove » Fri Feb 24, 2006 8:58 am

Hidden group gallery change.

After installing the secret gallery mod, find this in usercp_avatar.php
(Please note that I'm working of my working version, the code will not be exactly the same in your files!!)

Code: Select all

	$s_categories = '<select name="avatar_category">';
	while( list($key) = each($avatar_images) )
	{		
	//START MOD secret avatar gallery - Hide 'HiddenGallery' unless MOD or ADMIN
	if ($userdata['user_level'] > USER || $key != 'HiddenGallery' )
	{
		$selected = ( $key == $category ) ? ' selected="selected"' : '';
		if( count($avatar_images[$key]) )
		{
			$s_categories .= '<option value="' . $key . '"' . $selected . '>' . ucfirst($key) . '</option>';
		}
	}
	// END MOD secret avatar gallery 
	}
	$s_categories .= '</select>';
and replace by this

Code: Select all

	$hidden_mod_gallery = 'HiddenModGallery';
	$hidden_group_gallery = 'Group12Gallery';
	$hidden_group = 12;

	$sql= "SELECT * FROM " . USER_GROUP_TABLE ."
		WHERE group_id = $hidden_group
		AND user_id = " . $userdata['user_id'];
	if (!$result = $db->sql_query($sql))
	{
	 	message_die(GENERAL_MESSAGE, 'Could not get user group', '', __LINE__, __FILE__);
	}  
  $row = $db->sql_fetchrow($result);
  $user_in_hidden_group = $row['group_id'] ? 1 : 0; 
		
  $s_categories = '<select name="avatar_category">';
	while( list($key) = each($avatar_images) )
	{		
	//START MOD secret avatar gallery
		switch ($key)
		{
		case $hidden_mod_gallery:
			$showgallery = ($userdata['user_level'] > USER );
			break;
		case $hidden_group_gallery:
			$showgallery = ($userdata['user_level'] > USER  || $user_in_hidden_group);
			break;
		default:
			$showgallery = 1;
		}
		if ($showgallery)
		{
			$selected = ( $key == $category ) ? ' selected="selected"' : '';
			if( count($avatar_images[$key]) )
			{
				$s_categories .= '<option value="' . $key . '"' . $selected . '>' . ucfirst($key) . '</option>';
			}
		}
	// END MOD Hide_avatar_gallery
	}
	$s_categories .= '</select>';

User avatar
salty78
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 10:14 am

Post by salty78 » Wed Mar 15, 2006 2:14 am

I think the download is corrupted for this mod. I've been having trouble downloading it.
meh

Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Post by Merlin Sythove » Wed Mar 15, 2006 9:33 am

Just tested it, download and unzip is fine.

User avatar
salty78
Registered User
Posts: 63
Joined: Sat Feb 21, 2004 10:14 am

Post by salty78 » Thu Mar 16, 2006 3:14 am

Yeah, I did the same thing after I posted this last night. Safari was being a pain on my mac.
meh

luckylt
Registered User
Posts: 1
Joined: Fri Mar 17, 2006 6:36 pm

Need help for downloading the zip file

Post by luckylt » Fri Mar 17, 2006 6:48 pm

Hello,

I like this mod, and woul like to download the zip file. However, after downloading it, I couldn't unzip it. Therefore, I tried to download on another computer. This time, I could unzip the file, but there was nothing in that folder. Is the file damaged? Can I get a good file from somewhere? Thanks everyone in advance!

LLT
It's better to love someone you can't have, than to have someone you can't love!

CCM-Blue Dragon
Registered User
Posts: 18
Joined: Fri Jun 25, 2004 12:18 am

Post by CCM-Blue Dragon » Sat Apr 22, 2006 7:48 pm

3Di wrote: Thanks Mod Team
Thanks Merlin Sythove

It is the first MOD i got approved.

Enjoy that, guys.

Greets


this zip file is damaged i can't open it can you reupload it or provide a new download link?

User avatar
demilo11
Registered User
Posts: 45
Joined: Thu Nov 03, 2005 2:59 pm

Post by demilo11 » Sun Apr 30, 2006 7:07 pm

Hey I also want to use this mod with "Avatar Select on Register Mod".

Please Help Us to do that! 8)

HoremWeb
Registered User
Posts: 8
Joined: Sun May 07, 2006 4:11 pm
Location: Hungary
Contact:

Post by HoremWeb » Sun May 14, 2006 10:03 am

Hi all,

this is my first post on phpBB fora, so let me thank everybody for this great BB !

Concerning this MOD - I tried to download several times and with different browsers and it says broken zip-file all the time. Could somebody help me please with a different link?

thanks in advance,

HoremWeb


PS. oops, sorry, I see now not i am the first to face this. Take my note as a +.
nn ms.j sAw
(No one born wise) - Ptahhotep, around 2200 B.C.

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Post by Bard » Mon Aug 28, 2006 9:42 am

I have changed this code from

Code: Select all

 if ($userdata['user_level'] != USER || $key != '1SecretGallery' ) 
to

Code: Select all

 if ($userdata['user_level'] == ADMIN || $key != '1SecretGallery' ) 
Works well. I would like for mods to have their own secret galleries. Is there a way for admins to have one secret gallery and the mods to have another?
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Post by Bard » Fri Sep 01, 2006 3:49 pm

Ya know, a secret gallery for mods and a separate one for admins?
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

Aztec Summer
Registered User
Posts: 16
Joined: Wed Aug 02, 2006 5:59 pm
Contact:

Post by Aztec Summer » Fri Sep 01, 2006 4:24 pm

Very nice Mod! No problems installing it. :D

Thanks!

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Post by Bard » Sat Sep 02, 2006 8:01 pm

Bump the adding a second secret gallery idea. One for admins and one for mods.
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Post by Bard » Tue Sep 05, 2006 8:00 am

bump
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
3Di
Former Team Member
Posts: 14088
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Post by 3Di » Thu Sep 07, 2006 4:38 pm

I apologize for the delay but due to personal reasons I can't achieve any request for the next month.

Greets
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

rafearcher
Registered User
Posts: 39
Joined: Sun Nov 26, 2006 12:30 am

Post by rafearcher » Mon Dec 04, 2006 1:07 am

I have a question about the functionality of this MOD.

Before I installed it, when users would go into their profiles and click on “show gallery” to select an avatar, the first named gallery in the list would automatically be selected showing the avatars within it. With this mod, a gallery has to be manually selected upon entering, before an avatar-galleries’ avatars are shown.

Is there a way to mod this mod so that the first avatar gallery in the list (not including the secret one) will automatically be displayed?

Post Reply

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