News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

protonxl

i have SMF 1.1.5, with default theme.




bump, any1? (read 2 posts above.. i only have 1 error)..

LordHogFred

Any heads up on if/when this will support 1.1.5?
I'm setting up a new forum and this mod looks awesome.
Chz :),

Krysia

Quote from: LordHogFred on July 02, 2008, 08:50:23 AM
Any heads up on if/when this will support 1.1.5?
I'm setting up a new forum and this mod looks awesome.
Chz :),
I use 1.1.5 and haven't had any problems with this mod after I upgraded from the previous SMF, if that helps. :)



LordHogFred

Quote from: Krysia on July 02, 2008, 06:31:12 PM
Quote from: LordHogFred on July 02, 2008, 08:50:23 AM
Any heads up on if/when this will support 1.1.5?
I'm setting up a new forum and this mod looks awesome.
Chz :),
I use 1.1.5 and haven't had any problems with this mod after I upgraded from the previous SMF, if that helps. :)

I keep getting an error in the Profile.php regarding the awards field whenever I try and use the mod.
:S

KiLLuMiNaTi-7-

#644
Yep same here.

QuoteFatal error: Cannot redeclare awards() (previously declared in /website/Sources/Profile.php:2913) in /website/Sources/Profile.php on line 3072

I have the custom profile mod installed. Running 1.1.5

EDIT: I tried  uninstalling it, it came up with no errors. Clicked uninstall. Now when i goto profile i get a error. I look in the profile.php and notice that it hasn't even been installed. I don't know what to do.

EDIT AGAIN: Its saying theres a error in line 2510 in load.php. But there is no line 2510. It goes up to 2322

KiLLuMiNaTi-7-

#645
Thew. I looked at all the files which the mod installed and removed the code. All fixed now  :D

Could anyone help in why there is a error in profie.php when you install. I really need this mod.

Heres my mods:

Custom BBCode 2.00
Ad Managment 2.3
Country Flags    1.0.1
Redirection Boards    2.01
Custom Profile Field Mod    3.17
Admin Modification Menu Section 1.0.2
Board News 1.0
Custom Action Mod    2.04
SMF Staff Page 1.6
Global Announcements 1.0
RemovePM 1.1.4
Member Color Link 2.1.6
MCLegendII.2    2.0

Running 1.1.5. When i instal it says:

Fatal error: Cannot redeclare awards() (previously declared in /website/Sources/Profile.php:2913) in /website/Sources/Profile.php on line 3072

I think line 3072 was this "function awards($memID)"


Ok fixed now. All i did was install it then unistalled it, now it works. Thats right i uninstalled it and it now works. I think it most have been conflicting with my other mods.



LordHogFred

This mod has (apparently) installed fine on my 1.1.5 board however when I go to the awards profile section I get the following error:
Unknown column 'aw.awardName' in 'field list'
File: /xxxxxxx/xxxxx/xxxxx/xxxxxx/forum/Sources/Profile.php
Line: 2923


This is the offending section of my Profile.php
// Load the awards
$awardsSelect = db_query("
SELECT
aw.ID_AWARD, aw.awardName, aw.gameName, aw.filename, aw.width, aw.height,
am.ID_MEMBER, am.dateReceived, am.favorite
FROM {$db_prefix}awards AS aw
LEFT JOIN {$db_prefix}awards_members AS am ON (am.ID_AWARD = aw.ID_AWARD)
WHERE am.ID_MEMBER = $memID
ORDER BY am.favorite DESC, am.dateReceived DESC
LIMIT $context[start], $maxAwards", __FILE__, __LINE__);


Any ideas?

Thanks :),

DOOM666

ok i have add this mos and i works. i put it were the Sig's would go so i was wondering if there is a way to make i break after let say 5 awards in would start a new line or put it by category

mercadia

I am running a 1.1.15 version of forum and installed this via the package manager. The install appeared to have worked and can see the icon on forum posts to view awards page but am unable to find how to add awards or create awards. The add award link at end of install takes me too a blank page with a blank tab. Any idea what I need to do ?

Fustrate

#649
Quote from: LordHogFred on July 06, 2008, 04:09:45 PM
This mod has (apparently) installed fine on my 1.1.5 board however when I go to the awards profile section I get the following error:
Unknown column 'aw.awardName' in 'field list'
File: /xxxxxxx/xxxxx/xxxxx/xxxxxx/forum/Sources/Profile.php
Line: 2923


This is the offending section of my Profile.php
// Load the awards
$awardsSelect = db_query("
SELECT
aw.ID_AWARD, aw.awardName, aw.gameName, aw.filename, aw.width, aw.height,
am.ID_MEMBER, am.dateReceived, am.favorite
FROM {$db_prefix}awards AS aw
LEFT JOIN {$db_prefix}awards_members AS am ON (am.ID_AWARD = aw.ID_AWARD)
WHERE am.ID_MEMBER = $memID
ORDER BY am.favorite DESC, am.dateReceived DESC
LIMIT $context[start], $maxAwards", __FILE__, __LINE__);


Any ideas?

Thanks :),

Check your database - it might not have installed all of the tables (specifically, the 'awards' table)

Quote from: mercadia on July 17, 2008, 02:16:04 PM
I am running a 1.1.15 version of forum and installed this via the package manager. The install appeared to have worked and can see the icon on forum posts to view awards page but am unable to find how to add awards or create awards. The add award link at end of install takes me too a blank page with a blank tab. Any idea what I need to do ?

Does the page you see have any input boxes? If so, check to see if /Themes/default/languages/ManageAwards.english.php is there. If your forum is using utf-8, make a copy of ManageAwards.english.php and name it ManageAwards.english-utf8.php
Steven Hoffman
Former Team Member, 2009-2012

DistantJ

Quote from: mercadia on July 17, 2008, 02:16:04 PM
I am running a 1.1.15 version of forum and installed this via the package manager. The install appeared to have worked and can see the icon on forum posts to view awards page but am unable to find how to add awards or create awards. The add award link at end of install takes me too a blank page with a blank tab. Any idea what I need to do ?

Check your permissions, you need to give people permissions to give awards.

d58e7

Is there anyway to print out a table with the user's awards directly on the first page of the user's profile or to make awards appear with the ultimate profile mod?

ArkServer

very awesome mod :) i've installed the old one but didn't knew there was a new one out. *updating it now*

mercadia

Quote from: DistantJ on July 19, 2008, 11:51:00 AM
Quote from: mercadia on July 17, 2008, 02:16:04 PM
I am running a 1.1.15 version of forum and installed this via the package manager. The install appeared to have worked and can see the icon on forum posts to view awards page but am unable to find how to add awards or create awards. The add award link at end of install takes me too a blank page with a blank tab. Any idea what I need to do ?

Check your permissions, you need to give people permissions to give awards.

I am an administrator so should have all permissions including this ?

Fustrate

Can you post a picture of the blank page you see?
Steven Hoffman
Former Team Member, 2009-2012

mercadia

I have sussed it out now thnks for all help :)

Gryphoune

I have been through this whole thread and tried every fix given regarding getting this installed on 1.1.5 including running the queries manually. It will not install properly. I get sql syntax errors I get the no awardName in field list error. Every person that has posted this error on this tread has virtually been ignored so I must assume that the support for mod is non-existent and will go back to Simple Awards that actually installs and works.

SMF 1.1.5
MySQL 5.0.45
PHP  4.4.7

Mods:
SMF Gallery
Treasury
RSS Feed Poster

DOOM666

Quote from: DOOM666 on July 06, 2008, 04:23:56 PM
ok i have add this mos and i works. i put it were the Sig's would go so i was wondering if there is a way to make i break after let say 5 awards in would start a new line or put it by category

Fustrate

Quote from: Gryphoune on July 20, 2008, 04:00:21 AM
I have been through this whole thread and tried every fix given regarding getting this installed on 1.1.5 including running the queries manually. It will not install properly. I get sql syntax errors I get the no awardName in field list error. Every person that has posted this error on this tread has virtually been ignored so I must assume that the support for mod is non-existent and will go back to Simple Awards that actually installs and works.

SMF 1.1.5
MySQL 5.0.45
PHP  4.4.7

Mods:
SMF Gallery
Treasury
RSS Feed Poster

JayBachatero no longer supports this mod, and sometime this week I will be taking over. He just needs to have the Customizations team change it over from his name to my name.

Quote from: DOOM666 on July 20, 2008, 03:47:22 PM
Quote from: DOOM666 on July 06, 2008, 04:23:56 PM
ok i have add this mos and i works. i put it were the Sig's would go so i was wondering if there is a way to make i break after let say 5 awards in would start a new line or put it by category

Can you show me what code is in the signature area? I don't have a backup of that specific change, so I can just edit what you already have.
Steven Hoffman
Former Team Member, 2009-2012

DOOM666

#659
this is the code that i put under the sig part.

// Show the fav award
                if (isset($context['awards'][$message['member']['id']]))
{
                       echo '
                                                                 <div style="overflow: auto; width: 100%;">';
                 foreach ($context['awards'][$message['member']['id']] as $badge)
                           echo '
                                                                          ', $badge;
                 echo '
                                                                           </div><br />';
}


Advertisement: