Page 133 of 157

Re: [Beta] Medal System MOD for phpBB3

Posted: Fri Sep 11, 2009 12:16 pm
by shortbull
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

Re: [Beta] Medal System MOD for phpBB3

Posted: Sat Sep 12, 2009 8:56 pm
by GatorHunter
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.

Re: [Beta] Medal System MOD for phpBB3

Posted: Mon Sep 14, 2009 1:45 pm
by Gremlinn
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.

Re: [Beta] Medal System MOD for phpBB3

Posted: Sun Sep 20, 2009 7:43 am
by sims8b
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:

Re: [Beta] Medal System MOD for phpBB3

Posted: Sun Sep 20, 2009 7:55 am
by madmartyau
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.

Re: [Beta] Medal System MOD for phpBB3

Posted: Mon Sep 21, 2009 12:56 pm
by Gremlinn
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.

Re: [Beta] Medal System MOD for phpBB3

Posted: Mon Sep 21, 2009 5:21 pm
by sims8b
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!

Re: [Beta] Medal System MOD for phpBB3

Posted: Sun Sep 27, 2009 11:08 am
by vert5
hello gremlinn

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

best regards

Re: [Beta] Medal System MOD for phpBB3

Posted: Tue Sep 29, 2009 12:36 pm
by Romeo666
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

Re: [Beta] Medal System MOD for phpBB3

Posted: Tue Sep 29, 2009 12:52 pm
by Gremlinn
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.

Re: [Beta] Medal System MOD for phpBB3

Posted: Tue Sep 29, 2009 2:11 pm
by Romeo666
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??

Re: [Beta] Medal System MOD for phpBB3

Posted: Thu Oct 01, 2009 8:28 pm
by black001
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 ;

Re: [Beta] Medal System MOD for phpBB3

Posted: Fri Oct 02, 2009 12:28 pm
by Gremlinn
That might be. Let me go through the code and verify. Good catch.

Re: [Beta] Medal System MOD for phpBB3

Posted: Fri Oct 02, 2009 2:47 pm
by -tribe-
how do i know what version i am running?

Re: [Beta] Medal System MOD for phpBB3

Posted: Mon Oct 05, 2009 1:01 pm
by Gremlinn
Check in the config table. There is a medals_mod_version entry.