[ABD] Medal System 0.21.0

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Jessica »

smallbreeds wrote:Hello

I made it! :D

I'll post here because someone else needs.

<!-- IF USER_MEDAL_COUNT > 0 --><!-- ENDIF -->

Thanks!
where would I put this? I have used the Medals tab code you created for Tabbed Profiles
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by smallbreeds »

Open the styles/prosilver/template/memberlist_view.html

Find it:

Code: Select all

<li class="" id="medal-panel-tab"><a name="medal" href="#medal" onclick="subPanels('medal-panel'); return false;"><span>{L_MEDAL}</span></a></li>
Replace with:

Code: Select all

<!-- IF USER_MEDAL_COUNT > 0 --><li class="" id="medal-panel-tab"><a name="medal" href="#medal" onclick="subPanels('medal-panel'); return false;"><span>{L_MEDAL}</span></a></li><!-- ENDIF -->
:D
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
tcasey
Registered User
Posts: 8
Joined: Sat Feb 28, 2009 9:29 am

Re: [Beta] Medal System Mod for phpbb3

Post by tcasey »

I've used this mod in the past, but even with a new install I'm having issues with the dynamic images displaying properly. Is there any quick way to remove the overlay feature and instead have an image substitution? I managed to jury rig that on my old forums, but I can't remember how and am not a php guru in any sense of the word.

The overall concept would be the same, but instead of displaying, say, base-2.gif over base.gif, it would simply display base-2.gif. That way I just make my imagesets and upload them in the same manner, but theres no wonky image overlays.

Thanks for your time.

EDIT: I actually managed to find a solution, though it isn't perfect. I'm still having problems with the mod displaying .png files as dynamic images. It works fine as .gif, but not with .png files...

Anyhow, all I did was change the first part of dynamic_image.php

From this:

Code: Select all

// Dynamic Medal Image creation
function create_dynamic_image($baseimg, $extraimg='')
{
	$image  = create_from_extention($baseimg);

	imagecolortransparent($image,imagecolorat($image,0,0));

	if ( file_exists($extraimg) and $extraimg <> '' )
	{
		$insert = create_from_extention($extraimg);

		$image = image_overlap($image, $insert);
		ImageDestroy ($insert);
	}

	Header ('Content-type: image/png');
	ImagePNG ($image);
	//Clean Up
	ImageDestroy ($image);
To this:

Code: Select all

// Dynamic Medal Image creation
function create_dynamic_image($baseimg, $extraimg='')
{
	$image  = create_from_extention($baseimg);

	imagecolortransparent($image,imagecolorat($image,0,0));

	if ( file_exists($extraimg) and $extraimg <> '' )
	{
		$insert = create_from_extention($extraimg);

		$image = image_overlap($image, $insert);
	}

	Header ('Content-type: image/png');
	ImagePNG ($insert);
	//Clean Up
	ImageDestroy ($image);
	ImageDestroy ($insert);
It was rather simple when I finally figured it out... Instead of calling for $image to display, it calls for $insert. Of course, that also involved keeping $insert in the memory, so I moved ImageDestroy down. I left the rest of the file intact, though I'm sure some of it is unnecessary when just calling only for the dynamic image.
Last edited by tcasey on Sat Nov 12, 2011 12:16 am, edited 1 time in total.
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by smallbreeds »

Maybe use a png image as an empty base. :roll:
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
User avatar
KaiTycon
Registered User
Posts: 67
Joined: Sun Jul 31, 2011 10:01 am
Location: India,Tamil Nadu,Chennai
Name: Ashwin Singaravelan.R
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by KaiTycon »

is it working in phpbb 3.0.9?
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by smallbreeds »

Perfectly! :)
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
Romano1
Registered User
Posts: 115
Joined: Sat Nov 06, 2010 8:26 am
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Romano1 »

I don't have many graphic skills, so does anybody now where to find new medals?
User avatar
Histomil
Registered User
Posts: 56
Joined: Tue Oct 25, 2011 3:34 am
Location: Amsterdam
Name: Henk

Re: [Beta] Medal System Mod for phpbb3

Post by Histomil »

He who isnt a star with photoshop ought to use le google search better ... :mrgreen:
(old chinese saying)
Romano1
Registered User
Posts: 115
Joined: Sat Nov 06, 2010 8:26 am
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Romano1 »

Histomil wrote:He who isnt a star with photoshop ought to use le google search better ... :mrgreen:
(old chinese saying)
Let me steel some from you site, thanks. :P
StrikeS
Registered User
Posts: 12
Joined: Sat Apr 12, 2008 11:24 pm

Re: [Beta] Medal System Mod for phpbb3

Post by StrikeS »

Hey all - Have the mod installed and working great. I was curious if anyone had a direct link to the Simple Points Mod that this Medal System Mod works with? All the links I found were dead/abnd.

Thanks!
User avatar
oddfish
Registered User
Posts: 839
Joined: Mon Mar 19, 2007 8:45 pm
Location: Testing 3.1
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by oddfish »

StrikeS : Simple Points has been superseded by Ultimate Points
Will update the Notes in the install to reflect this (next release when needed).

cheers,
oddfish.
Country Flag User Edition Clickable Post Count Link

... another record broken without breaking any records ...
Testing phpBB3.1 dark style based on prosilver ... http://www.oddmods.net
Romano1
Registered User
Posts: 115
Joined: Sat Nov 06, 2010 8:26 am
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Romano1 »

Great mod thank you for your work.

Just one question.
Where can i award a medal to an user, cant find the link, maybe i mised something. :cry:


Edit: maybe is this: i cant find the template/memberlist_view.html in my style to edit and i dint do the edits, is this it?

Edit: never mind it isn the tab.
User avatar
smallbreeds
Registered User
Posts: 193
Joined: Thu May 26, 2011 11:16 pm
Location: São José - SC - Brasil
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by smallbreeds »

what's your style
Cid Lessa - Shih Tzu Forum

Sorry my bad english..
Romano1
Registered User
Posts: 115
Joined: Sat Nov 06, 2010 8:26 am
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Romano1 »

I solved the early question, just coping the file from prosilver to my style.

but now i have another question: where to remove the medal from de user, cant find the link :cry:

edit: i find it ty
Gino
Registered User
Posts: 124
Joined: Sun Mar 21, 2010 2:39 pm
Contact:

Re: [Beta] Medal System Mod for phpbb3

Post by Gino »

thanx 4 developing
Locked

Return to “[3.0.x] Abandoned MODs”