[ABD] Medal System MOD for phpBB3

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.
shortbull
Registered User
Posts: 1
Joined: Sun Dec 16, 2007 6:50 pm

Re: [Beta] Medal System MOD for phpBB3

Post by shortbull » Fri Sep 11, 2009 12:16 pm

Hey Gremlinn,

I've got your medal mod working for about a year now and i love it!
But i have one question i would like answered.

Today i started redesigning the user profile sections to my likings. I know some html and css so that isnt the problem.
The problem is that i don't know how to redesign the "medal_memberlist_view.html"
I wanted to make the medals show separate like this:

Image

But i don't know if this is generated with a html file. I only could get to this and then the trail stops.

Code: Select all

{switch_display_medal.details.MEDAL_ISSUE}
Where can i find the script that makes MEDAL_ISSUE?

Or am i following a blind trail and there isnt a easy way to change this?

Help is appreciated. :) Sorry i'm dutch so my english isn't that good anymore

GatorHunter
Registered User
Posts: 26
Joined: Sun Jul 19, 2009 4:24 pm

Re: [Beta] Medal System MOD for phpBB3

Post by GatorHunter » Sat Sep 12, 2009 8:56 pm

I made new Medals for the Medal System, you can download them here

If you would like to add this to the Mod, you have my permission.
www.gatorsgames.com
/Get Gaming/

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [Beta] Medal System MOD for phpBB3

Post by Gremlinn » Mon Sep 14, 2009 1:45 pm

GatorHunter: Those look pretty sharp. If you would like, you could post that on my test site. I would like to keep all the medal packages in one place, makes them a little easier to locate.

shortbull: I think everything you should need is in the included style html you are looking at. The medals.php file is the one that updates template variables. If you take the medal_memberlist_view.html file and re-arrange the contents, then include it as I did, but where you would like it, you should be good to go.

sims8b
Registered User
Posts: 6
Joined: Sat Jun 13, 2009 6:26 pm

Re: [Beta] Medal System MOD for phpBB3

Post by sims8b » Sun Sep 20, 2009 7:43 am

Hello,

This MOD is awesome!! :D
Thank you for share.

One question: Can users approve your nominated medal?
For exemple, if I'm a 'normal user', and I was nominated for a medal, can I approve them to show on my profile?

I didn't find any buttons on user profile with a 'normal account' to approve these medals. I only found the buttom with a ADM account :(

My Board: http://eafusion.net/forum/ (actually, closed for any visitors and registered users)
PS: Sorry for English errors... I'm still learning :oops:
Last edited by sims8b on Sun Sep 20, 2009 7:57 am, edited 1 time in total.

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by madmartyau » Sun Sep 20, 2009 7:55 am

sims8b wrote:Hello,

This MOD is awesome!! :D
Thank you for share.

One question: Can users approve your nominated medal?
For exemple, if I'm a 'normal user', and I was nominated for a medal, can I approve them to show on my profile?

I didn't find any buttons on user profile with a 'normal account' to approve these medals. I only found the buttom with a ADM account :(

My Board: http://eafusion.net/forum/
PS: Sorry for English errors... I'm still learning :oops:
You could give "normal users" the permission to award a medal but then they could award them to anyone.
Call me Grumpy.

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [Beta] Medal System MOD for phpBB3

Post by Gremlinn » Mon Sep 21, 2009 12:56 pm

sims8b: madmartyau is correct. You can set permissions to award medals to anyone or group that you would like using the standard forum permissions tool in the ACP. However, it allows that person or group to award medals to anyone. There is nothing limiting the permission to themselves.

Think of the design of this system as if in a military command. A soldier doesn't put himself in for a medal. It is recommended by others, usually someone up the chain from them. (nominations) Then, the nominations get reviewed by a medal review board or commanders. They then approve or disapprove them. They also have the ability to adjust which medal is awarded and the statement explaining why. I hope that makes sense of my method of thinking on setting this up.

sims8b
Registered User
Posts: 6
Joined: Sat Jun 13, 2009 6:26 pm

Re: [Beta] Medal System MOD for phpBB3

Post by sims8b » Mon Sep 21, 2009 5:21 pm

Ook, I understood :D
Thank you for explain Gremlinn and madmartyau :)

I thought it was necessary to approve the medals individually, but I found the buttom in medals.php to approve all pendding medals. "Problem" solved! :lol:

Again, thank you!

vert5
Registered User
Posts: 8
Joined: Wed May 20, 2009 9:37 am

Re: [Beta] Medal System MOD for phpBB3

Post by vert5 » Sun Sep 27, 2009 11:08 am

hello gremlinn

I have one question. Could I set "Number of Awards per user" to unlimitted ? instead of maximum 99 ?

best regards

Romeo666
Registered User
Posts: 34
Joined: Thu Jul 29, 2004 12:23 pm

Re: [Beta] Medal System MOD for phpBB3

Post by Romeo666 » Tue Sep 29, 2009 12:36 pm

Hi:

Great mod and I am very grateful.

Thank you very much.

I want to do something.

in viewtopic under avatar I want to display the medals as thumbnails and to be clickable to another page which is the main page of the medals and to see the medals in their actual sizes.

I use medals their are not big in size but if they are thumbnails wil be more great and if some one wants to see the actual size just click and he will goes to the main page of the medals to see them ( medals.php ).

I can see in ACP medals that they are thumbnailed, so I want like them to be in viewtopic.php.

Clickable medals to medals.php , I think I can do it, but viewing medals as thumbnails in viewtopic this needs your help.

Thank you

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [Beta] Medal System MOD for phpBB3

Post by Gremlinn » Tue Sep 29, 2009 12:52 pm

vert5: I set a limit on the size of the entry field. You could adjust that in the includes/acp/acp_medals.php file. I am sorry I don't know exactly where at the moment (code is not with me). There will be a limit in the database field, I don't remember what I set that to either. If you don't find it or someone else doesn't point you to it, I will try to remember to get you the information.

Romeo66: You can define a width (and/or height) for each medal in the ACP. In the viewtopic, it will display them at that size.

Romeo666
Registered User
Posts: 34
Joined: Thu Jul 29, 2004 12:23 pm

Re: [Beta] Medal System MOD for phpBB3

Post by Romeo666 » Tue Sep 29, 2009 2:11 pm

I tried what you said before it did not work, it worked in viewprofile.

I did something using the frontpage as put the width and height also I put href clickable image to the medal.php.
<!-- BEGIN medal_col -->
<a target="_blank" href="{U_MEDALS}">
<img src="{postrow.medal.medal_row.medal_col.MEDAL_IMAGE}" border="0" alt="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" title="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" width="36" height="60" /></a>
<!-- END medal_col -->
<!-- END medal_row -->
It did the trick I want.
Can I continu using these changes??

black001
Registered User
Posts: 23
Joined: Sun Jan 08, 2006 7:51 pm
Location: Montreal
Contact:

Re: [Beta] Medal System MOD for phpBB3

Post by black001 » Thu Oct 01, 2009 8:28 pm

I just upgraded from 0.9.8 to 0.10.3 and found a bug - on viewtopic only the base medal image is shown. For example, if I have 2 medals it shows device.gif instead device-2.gif although device-2.gif still shows correctly on my profile.

I think the problem is here:

Code: Select all

$cluster = '-' . $medal['count'] ;
$device_image = substr_replace($image,$cluster, -4) . substr($image, -4) ;
if ( file_exists($device_image) )
{
	$image = $device_image ;
}
$image = $phpbb_root_path . 'images/medals/' . $image ;
It should be changed to:

Code: Select all

$cluster = '-' . $medal['count'] ;
$device_image = substr_replace($image,$cluster, -4) . substr($image, -4) ;
if ( file_exists($phpbb_root_path . 'images/medals/' . $device_image) )
{
	$image = $device_image ;
}
$image = $phpbb_root_path . 'images/medals/' . $image ;

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [Beta] Medal System MOD for phpBB3

Post by Gremlinn » Fri Oct 02, 2009 12:28 pm

That might be. Let me go through the code and verify. Good catch.

-tribe-
Registered User
Posts: 144
Joined: Thu Jan 31, 2008 4:06 pm

Re: [Beta] Medal System MOD for phpBB3

Post by -tribe- » Fri Oct 02, 2009 2:47 pm

how do i know what version i am running?

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [Beta] Medal System MOD for phpBB3

Post by Gremlinn » Mon Oct 05, 2009 1:01 pm

Check in the config table. There is a medals_mod_version entry.

Locked

Return to “[3.0.x] Abandoned MODs”