Member Awards (2.0 Compatible!)

Started by Spuds, September 18, 2006, 03:14:03 PM

Previous topic - Next topic

Kindred

because it is not a problem with the modification... it is a problem with your site.

Quote from: Kindred on August 22, 2012, 06:21:47 PM
doesn't anyone ever bother to read or use search any more?

http://wiki.simplemachines.org/smf/Error_in_mod_installation

this is also explained at least 3 times in nearly EVERY mod thread...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Wayne2224

Quote from: Kindred on August 22, 2012, 05:35:04 PM
looks like your database did not get updated when you installed the mod.
Thats what i was kinda getting from it but i was not sure if it was because the one thing was out of place while installing or what, i will have to try to fix it before installing it and see where i can go from there.

Quote from: SugarD-x on August 22, 2012, 05:55:11 PM
Are you manually installing it, or using the package manager?
I was using the package manager, i dont like to install things manually since i tend to screw things up so much, but when it comes down to adding a little code here or a little code there i can do that, so i may have to try that i guess. Not sure what else i can do.


ODA-865 - Main Site [nofollow]

Kindred

extract and run the database file manually from the mod package
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Stickman Clark

Ok i'm brand new to all this and I'm sure it's a simple fix but I can't figure it out and there's a lot of post to go through regarding this mod.

The forum i'm helping to create is a custom template - mobile_1 smf version 1.1.15

Now the MOD allows me to assign medals to users, BUT only a link appears in the members profile that when you click on displays all their medals, all I want is for one medal to appear under the avatar.

the template does not have a display.template I can only access the index.template and css theme

any help would be great and i'm happy to post up my theme

and here's a link to the forum only one test post is in Ghostbusters hxxp:jooblo.com/forum1/index.php [nonactive]

xIsabel38

Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.

I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.

Will pay through Paypal. Please advise.

-Isa

cep

Quote from: SugarD-x on August 22, 2012, 06:16:30 PM
Quote from: cep on August 22, 2012, 06:08:05 PM
Quote from: Kindred on August 22, 2012, 06:31:57 AM
member awards works fine for 2.0.2

Installation I see an error message.
This can be bad for my forum?


Yes. That will cause errors. The code your forum is looking for is missing. If you can manually adapt the code the mod modifies and THEN install the mod despite the warning, then it should work fine, if done correctly.

I found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.

hcfwesker

Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.

I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.

Will pay through Paypal. Please advise.

-Isa

attach your theme's Display.template.php file.  I'll take a look.  what was the other MOd you installed you say conflicted with this?

Quote from: cep on August 23, 2012, 04:17:49 PMI found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.

If that makes it easier, then go for it.  But SimplePortal may conflict again in Sub.php after Awarda is installed ;)

Just look at the parse page for both MODs on here, and compare what both edits are doing in that edit for Sub.php, and just combine them.  It could be as easy as adding one word like ", awards, " to one line that SimplePortal affected.

Kendrall

Quote from: hcfwesker on August 23, 2012, 05:13:38 PM
Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.

I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.

Will pay through Paypal. Please advise.

-Isa

attach your theme's Display.template.php file.  I'll take a look.  what was the other MOd you installed you say conflicted with this?

Quote from: cep on August 23, 2012, 04:17:49 PMI found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.

If that makes it easier, then go for it.  But SimplePortal may conflict again in Sub.php after Awarda is installed ;)

Just look at the parse page for both MODs on here, and compare what both edits are doing in that edit for Sub.php, and just combine them.  It could be as easy as adding one word like ", awards, " to one line that SimplePortal affected.

Yeah, it's just the one line that needed to be added, but for some reason when I tried doing it this way, my entire forum crashed after uploading it via FTP.  I'm at home now, and managed to repair the damage by removing the offending php script and replacing it with a backup copy.  I'll look into this again, and if I still get the same error I'll be sure to let you know.

xIsabel38

Quote from: hcfwesker on August 23, 2012, 05:13:38 PM
Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.

I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.

Will pay through Paypal. Please advise.

-Isa

attach your theme's Display.template.php file.  I'll take a look.  what was the other MOd you installed you say conflicted with this?

I paid a designer to create a custom posting template in my forum. That is the mod that has messed with the posting display of this one. The awards now only show one award. I am using smaller 32x32 icons instead of banners as the awards and would simply prefer it to show in a side by side format instead of the original top and bottom format. I have attached my Display.Template.php.

As for the profile not showing the awards, I strongly believe it is due to the Ultimate Profile mod I installed. Showing the awards here in the same format as stated above would be nice to have but I can live without it, it's much more important to me to show them in the posts. I have attached my Profile.Template.php.

Please advise if there is anything you can do and if so, how much it will cost. Again, I can pay through Paypal and I'm on AIM under the name, xIsa38 if you'd like to use instant chat.


hcfwesker

#2809
Quote from: xIsabel38 on August 24, 2012, 10:26:00 AMI paid a designer to create a custom posting template in my forum. That is the mod that has messed with the posting display of this one. The awards now only show one award. I am using smaller 32x32 icons instead of banners as the awards and would simply prefer it to show in a side by side format instead of the original top and bottom format. I have attached my Display.Template.php.

As for the profile not showing the awards, I strongly believe it is due to the Ultimate Profile mod I installed. Showing the awards here in the same format as stated above would be nice to have but I can live without it, it's much more important to me to show them in the posts. I have attached my Profile.Template.php.

Please advise if there is anything you can do and if so, how much it will cost. Again, I can pay through Paypal and I'm on AIM under the name, xIsa38 if you'd like to use instant chat.

First thing I just have to ask, have you changed the Awards option in settings to show more than 1 awards?  I visited your site to see how Awards were being displayed and only saw 1 awarded to you, so i couldn't see them being aligned vertically.  This is a code I custom did before the awards were added to signatures as an option, and each MOd update I always revert back to mine cause it's never messed up on mu site and has an extra feature most members appreciate.

The "Awards/Achievements" title of the awards box, can be clicked to view all of that members awards and their descriptions.  And you can change the title header to whatever you want by just editing that phrase in the edit below.

Display.template.php

This is the ORIGINAL code

// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
</li>';
}



This is MY CODE I use ...

               // Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>';
}


See if that works for you, and dont forget to double check the Awards settings for how many awards can be displayed.

As far as displaying on the profile goes, I've tried myself on regular profiles and ultimate profiles in the past, several times ... and just couldn't get them to display ....

UNTIL NOW lol ( seriously, while I was typing the above sentence I figured it out)

same code, just had to change both parts that has $message, to $context , so just add this where you want Awards to display on Profile or Ultimate Profile ;)

               // Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $context['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($context['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>';
}


The Awards in posts and profiles can also be spiced up a bit to match your theme, like your post and profile box color, so it's not just a squared bar around your awards.  You can preview my awards box in my Sig on this page.  http://www.smashdomain.net/index.php?topic=5811.msg115168#msg115168



xIsabel38

Quote from: hcfwesker on August 24, 2012, 03:15:59 PM
First thing I just have to ask, have you changed the Awards option in settings to show more than 1 awards?

Oh crap, you just solved my problem  lol. I feel so embarassed now.

Ok so now I'm showing more than 1. This works perfectly, however after looking at your site, I'm quite jealous. You have them laid out quite beautifully.

I don't feel comfortable enough going into the coding and doing this stuff, do you think I could possibly hire you to do it for me? My theme is not yet done, my designer is currently working an issue between Joomla!, SMF, and MediaWiki but I would like to hire you when it's all done so you can spice it up for me as well, if you're willing, able, interested of course.

N i g h t m a r e

here are some screenshots of what happens of when i try and install,can someone please help? every one else seeims to be getting it accept me :x

Theme In Use: Zone99 By Dzinerstudio

Kindred

Essencegamer....     And your point or problem is what? ???
From those screen shots, it would seem that the mod installed...   And you do no state any problem in your post
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

N i g h t m a r e

haha,sorry i was tired last month and was a bit lost..yeah turns out its installed this time (thank jesus) but i must of deleted all the badges i downloaded to put in there :x

N i g h t m a r e

#2814
is there anyway i can change where the awards show?
like in the picture..i wanna have some type of bar like i made in the image
and show the awards where the "H" is
im willing to try and code it if its necessary

EDIT:

Added image since for some reason it wasn't added before :s

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

N i g h t m a r e

sorry,it didn't add the image that i thought it did,i fixed it

Kindred

I think someone posted instructions on how to move the awards into the signature area rather than the profile area - do a search....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

N i g h t m a r e

Can someone please fix this for me,i messed something up and its telling me i should use my default theme when i try to go to a topic,i dont want to because i did it before and it wouldnt let me change the theme :s

INSTRUCTIONS:
Step 1
Find & REMOVE

// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
</li>';
}



Step 2
Find & REMOVE

// Awards!
echo '
<li><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a></li>';



Step 3

Find
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';


Add AFTER
               // Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>';
}

Kindred

well, the file should be display.template.php, not index.php....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: