News:

Wondering if this will always be free?  See why free is better.

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

SgtMic

Does not work. Nothing but database errors, forums stop working. I don't recommend dropping the existing tables route.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Fustrate

Did you create the tables manually?
Steven Hoffman
Former Team Member, 2009-2012

!wooha

Quote from: JayBachatero on December 22, 2007, 04:18:24 AM
Run this query.


ALTER TABLE smf_awards
ADD COLUMN awardName VARCHAR(80) NOT NULL DEFAULT ''


^ this has to be one of the sloppiest mods I've ever seen, no wonder it was abandoned by it's creator!
It's successor ("Frustrate") may be apply named, hopefully he saw fit to do a complete rewrite.

Frankly, I'm surprised it was ever approved at all!

60 pages of correspondence on a mod may be less a measure of it's popularity than a measure of its inadequacy

Fustrate

If you knew the history of this mod, you'd know it was put together for a friend of his, and never meant to see the light of day in such a public form. I recently did an entire rewrite of the 2.0 version of this mod, but haven't gotten around to rewriting the 1.1.x version. It'll get here as soon as it gets here.

Oh, and coding conventions change over time. What was thought to be good code two years ago is usually seen as a mess today. Heh, I'd show you an early version of my reputation system mod if I could find it, and you (and I) would say the exact same thing about it.
Steven Hoffman
Former Team Member, 2009-2012

!wooha

lol

no worries!

glad you saw to do a complete rewrite...what a nightmare! (daymare?) :D

I really wouldnt worry about 1.1x though...let the past take care of itself..

you should probably get a fresh everything for the new version, new name, new thread,etc?

Fustrate

nah, I'd rather keep everything in one spot, because I do have to support those using the old versions too (which isn't very often, but it does happen).

Good news was that I got to add a few new features along the way that I had been wanting to put in for a long time... so it wasn't too much of a nightmare :)
Steven Hoffman
Former Team Member, 2009-2012

SgtMic

Quote from: Fustrate on March 15, 2009, 12:50:58 PM
Did you create the tables manually?

I created them by installing the mod.
Then I deleted them and imported the "old" ones.
What happens is when you click on a topic in the forum, you get a similar error to what I posted earlier.
Basically errors with tables.
The only way to get the forums to work again is uninstall the mod.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Fustrate

I can't quite fix this until I know why it won't create the tables. Do you have a link to where they Treasury creator said something about it?
Steven Hoffman
Former Team Member, 2009-2012

SuperTongue

Erm, I'm not trying to pop in here, but is there any way to have the badges show up under a person's avatar and such in each of their posts along with in their profile as seen here

Fustrate

Steven Hoffman
Former Team Member, 2009-2012

SgtMic

Quote from: Fustrate on March 15, 2009, 07:54:39 PM
I can't quite fix this until I know why it won't create the tables. Do you have a link to where they Treasury creator said something about it?

Go here and talk to Resourcez.
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

mummyk

Hi

We're using 2.0 Beta 3.1 Public, on threads/posts made by members, awards are showing that have been deleted by Admins previously, yet when you look on the member's profile, those awards aren't there?
Anyone have any ideas why? (please!)

I'm a total novice with all of this, so go easy on me please! :)

Fustrate

Can you go into your database and check (db_prefix)awards to see if they still exist there? If they do, delete them from that table, and delete any rows in (db_prefix)awards_members that have that award's id as id_award. Also delete the file from your awards folder.
Steven Hoffman
Former Team Member, 2009-2012

mummyk

OK, thanks, I'll see if I can find that!  :-[

I may be gone some time......
:)

SgtMic

So, if I delete the 3 existing tables, install the mod and let it create new tables, it installs fine.
But, it only creates 2 tables, awards and awards_categories.
So after installing, I imported the "old" awards_members table and deleted the members that were in there.
So far seems to work and no errors.

1 question, how can I make the box smaller/ narrower?
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

SgtMic

#1135
Take back the no errors part. :)

Receiving 2 specific errors for every member.


http://thesquadbay.com/forums/index.php?/topic,2900.msg30063.html
Apply Filter: Only show the errors with the same message
8: Undefined index: height
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/Display.template.php (main sub template - eval?)
Line: 317

http://thesquadbay.com/forums/index.php?/topic,2900.msg30063.html
Apply Filter: Only show the errors with the same message
8: Undefined index: width
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/Display.template.php (main sub template - eval?)
Line: 317


Lines 305-323 of the display.template.php

// 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'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}

echo '
</fieldset>
</li>';
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

aED

You can check your awards table and see if the fields width and height are named in lowercase letters the last time I got those errors, I checked my db and found out that some fields have names in uppercase.

Fustrate

get rid of the hieght and width parts. They don't exist anymore.
Steven Hoffman
Former Team Member, 2009-2012

MMcGrad2

Definately make this 2.0 RC1 PLEASE!

SgtMic

My awards table has no height or width fields. It has a total of 7 fields.

Here is what I get when I add/modify in aqdmin.

http://thesquadbay.com/forums/index.php?action=admin;area=awards;sa=assign;ad5c3de8e8=ab62ced010b29ea1f0c184cd3cf0715f
Apply Filter: Only show the errors with the same message
8: Undefined index: to_value
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/ManageAwards.template.php (assign sub template - eval?)
Line: 236
There is nothing more deadly than a US Marine and his rifle.
A close second is a US Marine and his K-BAR.
2/5 Fox Co.  (BlackHearts)
FAST Co. 5th Plt. (FIDO)

Advertisement: