Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

C4G-TK

Thanks for the help, it is easier to change the bg image in that area than it is to change all the awards that are already made!  LOL  So, that sounds like a good enough solution for me!  Less work = More accomplished in a fixed amount of time!

Thanks as always for your help!

-img removed-

LC

Having a little trouble installing this mod.

Here are the errors
2: require(/home/name/site/forum/Packages/temp/./install.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory
File: /home/name/site/forum/Sources/Packages.php
Line: 556
2: copy(/home/name/site/forum/Packages/temp/./award.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory
File: /home/name/site/forum/Sources/Subs-Package.php
Line: 1025

Weird thing is when I check the files, those files are in there (sources) and Chmodded properly.

I'm using SMF 1.1.10

Odd thing is as well that my package directory keeps saying it's not writable but I have that CHMODded to the right permissions. I have other packages installed as well that didn't have this issue. If a listing is needed let me know.
Thanks to anyone who can help.

Skargon

Quote from: Fustrate on August 08, 2009, 01:39:01 PM
Using phpMyAdmin (What is phpMyAdmin?), look for smf_awards, smf_awards_members, and smf_awards_categories. Replace 'smf_' with your db_prefix if you changed it.

If you can't find them, open the mod's zip file and take out install.php. Upload it to your forum's main directory, next to index.php and /Themes/ and /Sources/, and go to it in your browser. That should fix the errors.

If you can't check the DB, just do the second thing :)

I checked my database... I have everything (I think.  I've never used that before)  and I also uploaded and browsed to the install.php.   I still receive the same errors

C4G-TK

I can not get the 2.1.6 mod to parse in on the mod site for 2 RC1 or RC1-1.  I have both selected correctly.  What's up?

-img removed-

Taglar Dreskk

Quick question regarding this mod.  Would it be fairly easy to list the number of awards a member has under their avatar rather than showing mini versions of them?

Reason I ask is because on our forum our members take part in different local and global events in real life and we wanted to use the awards mod to catalog them.  Each person would get a badge for each event they attended.  After some time, the amount of awards could be pretty numerous and I don't want a gigantic column of images.

Would it be possible and what would I need to change to make it so it said "Awards: 5" for example?

Fustrate

LadyChaos - try 755 on CHMOD, if you haven't already. I've never seen that error before, and it really shouldn't be happening (the ./ part is particularly weird)

C4G-TK - it can be parse here instead.

Taglar - you can set how many images are shown, most people like to stick around 6. It won't show a gigantic column unless you set a gigantic number in the settings.

Skargon - drop the awards tables from your database and execute install.php again.
Steven Hoffman
Former Team Member, 2009-2012

LightDiet

#1: Is it possible to change the width of the awards black outlining?? The thing that looks like this:

--Awards--------
|                      |
|                      |
¯¯¯¯¯¯¯¯¯¯¯¯

Mine is just a bit too wide and would like to make it smaller. Maybe let me know where and which file I can edit??

#2: It seems as well that there if a black dot infront of the awards part for some members, how can I get rid of that too??

Also a future suggestion would be to add Post Count-Based awards.

Anyways awesome MOD, working very well for me. Just need that first thing changed :(

Thanks for the help! Sorry if this question was already posted but there are 71 pages in this thread and didn't wanna browse them all :(

Skargon

QuoteSkargon - drop the awards tables from your database and execute install.php again.

Done.   Still doesn't work.  I looked again, and here's what I got.

smf_awards
--ID_AWARD
--ID_AWARDED_MEMBER
--title
--givenDate
--ID_MEMBER
--memberName
--fileName
----Primary - ID_AWARD

smf_awards_catagories
--id_catagory
--category_name
----PRIMARY - id_catagory

smf_awards_members
--uniq_id
--id_award
--id_member
--date_received
--favorite
----PRIMARY - uniq_id
---- UNIQUE id_member, id_award


So I'm thinking my problem is with "SMF_AWARDS".  It's different from the original list you gave me of what should be there:

Quotesmf_awards
-- id_award
-- award_name
-- description
-- time_added
-- filename
-- minifile
-- id_category
---- PRIMARY KEY id_award

C4G-TK

#1408
Fustrate -

Everything seems to be functioning, but have a problem.  I've got 20+ awards.  When I am in Admin > Awards > Main page, I scroll to the bottom of the page to where the page number appears for the awards.  Because it shows 20 per page, I now have two pages.  The problem is that when I click on "2" in order to see the next page of awards, it doesn't go to the next page, but instead goes to the board index even though the url says http://www.channel4gaming.com/c4g/index.php?action=awards;start=20

I am getting one error when that happens.

http://www.channel4gaming.com/c4g/index.php?action=awards;start=20
8: Undefined index: num_chat
File: /var/www/html/c4g/Themes/default/BoardIndex.template.php
Line: 455

Line 455 =

', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];


<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>',
(!empty($modSettings['show_more_stats']) && $context['show_stats']) ? '<br /><a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
</td>
', ($settings['show_latest_member'] && $context['member_limit'] > 1) ?  '<td width="260" valign="middle" class="windowbg2 smalltext">' . implode($context['latest_members_dated'], '<br />') . '</td>' : '', '
</tr>
</table>
</div>
</div>
</div>';
}

// "Users online" - in order of activity.
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['online_users'], '</h4>
<div class="windowbg">
<p class="section">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
</p>
<div class="windowbg2 sectionbody">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];

// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = $context['num_buddies'] . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = $context['num_users_hidden'] . ' ' . $txt['hidden'];

if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';

echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '


I disabled eval and get the same error.  Is this due to flashchat integration or ??

-img removed-

Fustrate

C4G, try upgrading to 2.1.7 using the attached package... if it works, I'll update the one on the mod site. The second error is not part of Awards, so you'll have to see the FlashChat topic about that.

Skargon - none of the column names should be uppercase... what version of the mod are you installing?
Steven Hoffman
Former Team Member, 2009-2012

ExSpirit

At the page, where you add reward to some member you have date of when you gave it. The day and year it set correctly (now) but month is set to January - is there any way to made that month is automaticly set to right month - todays?

Taglar Dreskk

Quote from: Fustrate on August 12, 2009, 09:00:31 PM
Taglar - you can set how many images are shown, most people like to stick around 6. It won't show a gigantic column unless you set a gigantic number in the settings.

I understand.  But is there a way I could tweak the code to show only a number instead of images of the awards under the avatar?  That way if they had 50 awards, it would say Awards: 50.

LightDiet

Quote from: LightDiet on August 13, 2009, 09:33:34 AM
#1: Is it possible to change the width of the awards black outlining?? The thing that looks like this:

--Awards--------
|                      |
|                      |
¯¯¯¯¯¯¯¯¯¯¯¯

Mine is just a bit too wide and would like to make it smaller. Maybe let me know where and which file I can edit??

#2: It seems as well that there if a black dot infront of the awards part for some members, how can I get rid of that too??

Also a future suggestion would be to add Post Count-Based awards.

Anyways awesome MOD, working very well for me. Just need that first thing changed :(

Thanks for the help! Sorry if this question was already posted but there are 71 pages in this thread and didn't wanna browse them all :(

Anything for my problem??

C4G-TK

Quote from: Fustrate on August 13, 2009, 10:36:18 PM
C4G, try upgrading to 2.1.7 using the attached package... if it works, I'll update the one on the mod site. The second error is not part of Awards, so you'll have to see the FlashChat topic about that.

Skargon - none of the column names should be uppercase... what version of the mod are you installing?

If I'm doing an upgrade, do I have to worry about all my awards being wiped out or was that just something that happened when going from SMF1.1.X ??

I have time today to go ahead and move to 1.1.7 version of the mod

-img removed-

Fustrate

2.1.7 won't wipe anything out :)

LightDiet - it might be a CSS thing... could you post a link to your forum, or PM it to me so I can look?

Taglar - yes, it's possible... I'll look to see what needs to be done, and post again. I'll need some files from you to edit, but I can't remember which yet.

ExSpirit - can't believe I forgot that... I'll work on that.
Steven Hoffman
Former Team Member, 2009-2012

C4G-TK

Page two now works!!!!!!!!!!!!!!  I clicked on it and was directed to the 2nd page instead of the index.



But, the favorited awards still only allows one award to be favorited at a time despite having it set at 5 in the settings.

-img removed-

Fustrate

I'll look into that too
Steven Hoffman
Former Team Member, 2009-2012

C4G-TK

I have it set so that there are 6 awards in the post and I have the box checked to enable the user to have more than one favorited award.  I wanted to make sure I had the settings correct.  I can favorite the award and then click another and they switch places.


-img removed-

ExSpirit

There's another thing missing in this mod: "$txt['members']" in language file... At least in latest version for 1.1.*

C4G-TK

Quote from: Fustrate on June 13, 2009, 12:44:31 PM
Quote from: C4G-TK on June 04, 2009, 04:37:41 PM
Hey Fustrate...

How would I go about making the list of users that appears under an award show alphabetically?

I'm trying to figure out how it lists currently.  Is it listed by member number?

Is this an easy change?

I'm on RC1-1 in default
You need to find the query that fetches them, and change the ORDER BY to ORDER BY member_name DESC


Is this in the ManageAwards.php file?

I'm trying to alphabetize the page a user is directed to if they click on an award inside of a post.

-img removed-

Advertisement: