News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Irythros

#1320
I'm having 2 problems.

1)
After I assign an award to a member, in my error log I see this:
http://wwww.xxx.com/forum/index.php?action=awards;sa=viewassigned;id=2
8: Undefined index: members
File: C:\wamp\www\forum\Themes\default\ManageAwards.template.php (view_assigned sub template - eval?)
Line: 286


2)
I see nothing for awards on profile pages.  I am running a custom theme but the only custom files are the following:
BoardIndex.template.php
Display.template.php
index.php
index.template.php
MessageIndex.template.php

Incase there is something in the admin panel for it, all I see is the 'Awards' link in the admin panel under the category 'Forum'.  In it I see sub-categories of 'Main' / 'Add' / 'Assign' / 'Categories' / 'Settings'
The settings panel shows nothing for displaying or not in profile.
I have checked '/Default/Profile.Template.php' and it does have the awards code in there.
The link doesnt show up on the default template either.

Awards on posting works though.

Fustrate

Thanks :) Uploading v1.1.1 right now, fixes both of those errors.
Steven Hoffman
Former Team Member, 2009-2012

Irythros

#1322
Now getting this:


forum/index.php?action=awards;sa=modify
8: Undefined variable: boarddir
File: C:\wamp\www\forum\Sources\ManageAwards.php
Line: 218

forum/index.php?action=awards;sa=modify
8: Undefined variable: boarddir
File: C:\wamp\www\forum\Sources\ManageAwards.php
Line: 220



Haven't looked at the file yet, about to head out.

Fustrate

line 163, add $boarddir to the end

global $context, $scripturl, $txt, $modSettings, $settings, $db_prefix, $boarddir;

I'm not going to release another patch to fix it, but it's fixed in the current package (still v1.1.1).
Steven Hoffman
Former Team Member, 2009-2012

Irythros

Quote from: Fustrate on July 03, 2009, 11:36:56 AM
line 163, add $boarddir to the end

global $context, $scripturl, $txt, $modSettings, $settings, $db_prefix, $boarddir;

I'm not going to release another patch to fix it, but it's fixed in the current package (still v1.1.1).

O.o?
I just installed 1.1.1 to fix the other problems.

Yup.  Just checked.  From the 1.1.1 zip:

function AwardsModify(){
global $context, $scripturl, $txt, $modSettings, $settings, $db_prefix;

Fustrate

I uploaded the new one about a minute after I wrote that message :P sorry 'bout that...
Steven Hoffman
Former Team Member, 2009-2012

Chaos Dragon

I have 2.0RC1-1 and I uploaded your awards system, both of them and when when I go to browse packages to install them, I did up load one at a time, there is no Apply mod link.
It states that it is 1.1.9, 2.0RC1 and 2.0RC1-1 compatible. I was thinking about just manually installing, but I can't even get into the parse. It says that this mod is not compatible with this version.
Any Ideas why this is?
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

Fustrate

There should be a link or box in the lower right of the package listing, to emulate a version. Remove the -1 at the end and it should install
Steven Hoffman
Former Team Member, 2009-2012

Chaos Dragon

Quote from: Fustrate on July 04, 2009, 02:36:37 AM
There should be a link or box in the lower right of the package listing, to emulate a version. Remove the -1 at the end and it should install

Not exactly sure what you mean by link or box in lower right corner of package display...If you mean the parse (manual instructions for SMF) I used it and neither 2.0RC1, nor 2.0RC1-1 are compatible, but I can see the parse for 1.1.9. Also I tried both packages and both give me this when I try to install......
Install Actions
Installations actions for "Member Awards":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

C4G-TK

@Chaos Dragon:

If you want a manual install instructions...

From the mod site:  http://custom.simplemachines.org/mods/index.php?mod=475

...the top package is for SMF2.0. (memberawards_2-0_2-1-6.zip)  It won't parse for RC1~1, but it will parse for RC1.  Make sure you've checked THIS package to parse and have also changed the dropdown to show 2.0 RC1 before trying to parse!   ;D


Be sure to do the edits AND the required directory moves at the bottom of the parse, too!!!



The other package that is below the 2.0 version which is (memberawards_1-1_1-1-1.zip) is for 1.1.X, so if you are using 2.0, it won't parse for it... which means you shouldn't be using that one on your forum and is why you won't get any parse information.

-img removed-

Chaos Dragon

Ok No problem...So I just go ahead and manually install and not bother at all trying to use the package manager since 2-0 will not work......
I will try that out and see how it goes a bit later.....
Thanks for the help!!!
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

C4G-TK

Or, you can do what Fustrate said to do....

If you are using SMF 2.0:

-Go to ADMIN CENTER
-Go to PACKAGES
-Go to BROWSE PACKAGES and at the bottom of the block that lists the mods you have installed, there will be a word/link that says "ADVANCED" on the right side.  Click on this word and it will show the advanced options.
-Where it says EMULATE VERSION, change the version to SMF 2.0 RC1 by deleting the "-1" and hit APPLY.

-Then, go to DOWNLOAD PACKAGES
-Browse to select the package to upload and go from there with the package.

-img removed-

C4G-TK

#1332
@Fustrate

I know I've gone throught this previously.  I have Member Awards version 2.1.6 installed on my forum which is the most updated package for 2.0 RC1~1.  I'm still getting that error in Modifications.english.php inside this code:

### Awards
// Used by: Errors
$txt['cannot_manage_awards'] = 'You aren\'t allowed to manage awards.';

// Used by: Help
$helptxt['awards'] = 'This area allows you to manage, assign, and categorize awards, as well as change a few settings.';

// Used by: ManagePermissions
$txt['permissionname_manage_awards'] = 'Manage Awards';
$txt['permissionhelp_manage_awards'] = 'This will allow users add, edit and assign new awards';

// Used by: Multiple Areas
$txt['awards'] = 'Awards';
$txt['awards_view_album'] = 'View member\'s badge album.';
$txt['awards_main'] = 'Main';
$txt['awards_modify'] = 'Add/Modify';
$txt['awards_assign'] = 'Assign';
$txt['awards_categories'] = 'Categories';
$txt['awards_settings'] = 'Settings';
$txt['whoallow_awards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';

// Used by: Profile
$txt['showAwards'] = 'Show Awards';
### End Awards


The line in question that it says is pulling the error is: $txt['whoallow_awards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';

Now, I know there was a fix that I did previously, but am not sure what exactly it was because I'm confusing myself by going back and reading my previous posts in this thread.  What exactly was I supposed to add to this file?  (and where?)

-img removed-

MATTEK

When I apply the mod I get one test failed. Is it ok to go ahead and install?
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

C4G-TK

@ Fustrate

Actually, I am still getting that error posted one post ago if you could help me out with that.   I've compared my current version of the file with another forum where I'm not getting an error, so don't see what I should change.  Thanks


@ MATTEK

You can continue with the install and then manually edit that failed edit.  Remember which edit it was and which file it is and then go to the package parser and perform it yourself.

-img removed-

Fustrate

C4G-TK: add
global $scripturl;
somewhere before that line
Steven Hoffman
Former Team Member, 2009-2012

MATTEK

Quote from: C4G-TK on July 06, 2009, 05:10:29 PM


@ MATTEK

You can continue with the install and then manually edit that failed edit.  Remember which edit it was and which file it is and then go to the package parser and perform it yourself.

I have no idea how to do that kind of stuff.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

#1337
Quote from: C4G-TK on July 06, 2009, 05:10:29 PM
@ MATTEK

You can continue with the install and then manually edit that failed edit.  Remember which edit it was and which file it is and then go to the package parser and perform it yourself.

I have no idea how to do that kind of stuff yet. I'd need step by step instructions
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

Ok. HELP! This is what failed

Quote7. Execute Modification .Sources/Subs.php Test failed
  1. Replace .Sources/Subs.php Test failed

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

C4G-TK

1st - What version of SMF are you using?

2nd - Are you using the default theme?

-img removed-

Advertisement: