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

SilverLining

Hi there!

This mod seems awesome so I was wondering: can you use it with themes that aren't based on the Core theme? I hope so, I keep having to skip cool mod 'cos they're not based on the theme mine is based on.

proxima


Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

digitalmikey

Hey guys, I ran in to a problem trying to install this mod. I emulate RC4 and try to install but one modification fails:

Find:

),
),
'layout' => array(


Add Before:

'awards' => array(
'label' => $txt['awards'],
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
'permission' => array('manage_awards'),
'subsections' => array(
'main' => array($txt['awards_main']),
'modify' => array($txt['awards_modify']),
'assign' => array($txt['awards_assign']),
'categories' => array($txt['awards_categories']),
'settings' => array($txt['awards_settings']),
),
),


For some reason it can't find that first bit of code. Could someone take a look at my Admin.php and tell me what's wrong? I'd really like to use this mod. Thanks in advance!

Spuds

#2384
Here is the first test version of the updated mod.  I don't recall all of the things that I changed / added but here is a short summary.

0) For 2.0 ONLY
1) Updated screens so they are fully curve, lots of little tweaks due to css changes in the various rc's
2) Fixed several xml errors, again piddly stuff but wanted to clean it up
3) Added in automatic awards based on trigger levels, post count, topic count, time on line, karma, join date, etc.  You can define multiple of each so an auto award and only the max will be assigned to a member.  eg top poster, top 10 posters, top 100 posters ... a member will only get one of those, that being the highest.  A great deal of the auto awards use the cache to limit the impact, calculation those on every page load would be bad, so I've done what I can to minimize any performance impact.
4) Member Group awards, give a group an award, good for badges and the like
5) mass assign awards, multi select from a member group list
6) requestable awards, define an award to be requestable from the member groups
7) new permission level to allow certain members the ability to assign awards but not define them.  This goes hand in hand with the assignable feature of an award (when you create a new award you can define if its assignable or not)
8 ) define award placement on  a per award basis, above/below avatar or with signature.  Also some ability to style those areas with (box, underline, title).
9) lots of little fixes here and there
10) guaranteed to have bugs :)

DO NOT USE THIS ON A PRODUCTION SITE:  I'm looking for folks who have test sites where they can give this a run and let me know what problems they have.  Be interested in sites that currently use the mod and ones that do not so I can make sure there are no errors with the upgrade process.  Again this is for installing on a backup site since I do not know if it breaks any current functionality.  The attached file is password protected, if you want to test then pm me for the password, I'm doing this to prevent folks from installing this without reading what I have said and then ******ing that it broke their site.

removed the file ... maybe I'll get some time to work on it again in the future

hcfwesker

Dam, bro.  you been hard at it.  I'll get this on my test site, and test every angle possible, and report back anything I find.

I love this addition, and hope it works as planned

Quote3) Added in automatic awards based on trigger levels, post count, topic count, time on line, karma, join date, etc.  You can define multiple of each so an auto award and only the max will be assigned to a member.

hcfwesker

Got this error when trying to upload it to the package manager

Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."

Spuds

I suspect that because I have a password on the zip file ... you will need to extract the zip with the password I gave you and then re-zip it to a non protected zip then use that new package to install.

hcfwesker

#2388
I gotcha, now.  Never done a PW zip before, lol. 

But, I have over 40 MODs on my test site, and this installed with NO errors :)

Now, time to test for bugs and other errors.

EDIT::

Getting error logs, and database errors on several pages.  give me a day, and I'll document all that is going on.

One notable error, is when viewing post pages  http://www.brawldomain.com/AASMF2/index.php?topic=44.msg235#new

^ Database error, and a string of text above the banner

This one pops up when selecting to "Assign Award" in the admin panel
Fatal error: Call to undefined function AwardsBuildJavascriptArray() in /home/brawldom/public_html/AASMF2/Sources/AwardsAdmin.php on line 626

hcfwesker

There's a line that gets added to the VERY top of Display.template.php


// 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>';


which causes it to appear on every display page.

I went ahead and removed the updated Package, cause I have other projects I'm working on, and this was limiting alot of pages I could view properly. 


Spuds

fair enough, sorry it was a bomb ... I've removed the update file, perhaps I'll get back to it one of these days.  Probably just update the txt file of the existing mod so it says 2.0 and go work on some other stuff for awhile. 

hcfwesker

Nah, man, don't be so let down.   I was just trying to help to point out the problems ; I didn't think you were expecting this to work on the first run.

I'm really pumped about the new additions, and you go a lot of support from members wanting to see this happen.  just gonna take a few attempts before it's perfected. :)

Sci-Fi_Fan

Hi,

First off, I love this mod so keep up the great work!

I just have one issue when I'm installing it. The following error message is displayed:

Quote
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

And the following:

Quote
2.    Execute Modification    ./Sources/Admin.php    Test failed
1.    Replace    ./Sources/Admin.php    Test failed

If I continue, the awards section is displayed in the member profile but I can't access the admin settings for the mod (which I guess is the file above). Any ideas? Is this a conflict with other mods on the forum (I have a few installed), and if so do you have any idea what kind of mods would interfere with this?

Any help appreciated!
ShadowFleet.org - more than just a Star Trek RPG!

Eudemon

Quote10) guaranteed to have bugs :)

i laughed..

thecoo1est

Okay I have smf 2.0 gold, I installed the mod and had to manually install the admin.php mods and subs.php mods, I have a empty black space between "General" AND "Layout" I assume where the awards are supposed to be, when I hover over it I can see the link its supposed to go to but directs me to admin are feature settings, I assume I missed something or something didnt install right with permission for me to see it, can anyone help with this?

hcfwesker

Quote from: Sci-Fi_Fan on August 06, 2011, 07:19:20 AM


2. Execute Modification ./Sources/Admin.php [color=red]Test failed[/color]
1. Replace ./Sources/Admin.php [color=red]Test failed[/color]


If I continue, the awards section is displayed in the member profile but I can't access the admin settings for the mod (which I guess is the file above). Any ideas? Is this a conflict with other mods on the forum (I have a few installed), and if so do you have any idea what kind of mods would interfere with this?

Any help appreciated!

Parse the MOD, and manually make those edits.  It failed cause another MOD probably added the edits there, so you just have to place the edit around the same position.

Quote from: thecoo1est on August 06, 2011, 11:31:21 PM
Okay I have smf 2.0 gold, I installed the mod and had to manually install the admin.php mods and subs.php mods, I have a empty black space between "General" AND "Layout" I assume where the awards are supposed to be, when I hover over it I can see the link its supposed to go to but directs me to admin are feature settings, I assume I missed something or something didnt install right with permission for me to see it, can anyone help with this?

Parse the MOD and make sure all language file edits were made.  Particularly  languages/Admin.english.php  , or whichever is your default language.


thecoo1est

dammit, any chance I can get a copy of the update that was taken down?

sharks

Quote from: Spuds on August 05, 2011, 08:09:02 PM
fair enough, sorry it was a bomb ... I've removed the update file, perhaps I'll get back to it one of these days.  Probably just update the txt file of the existing mod so it says 2.0 and go work on some other stuff for awhile. 

I use your mod intensively on my SMF 1.1.14 forum and i have a lot of hope and expectation for your mod as it's already very great. :)
I know you can do more, by fixing the bugs and improving other features, so please don't be disheartened and don't worry about at the negative comments. Your mod is installed on more forums around the world than you can think of! Thanks for all your hard work on this mod and i really hope that you can keep improving it for both 1.1.14 and 2.0. If you need any help, i will be happy to do any beta-testing for you before you release the next final version. Feel free to PM me.

Sci-Fi_Fan

Quote from: hcfwesker on August 07, 2011, 01:17:36 AM
Quote from: Sci-Fi_Fan on August 06, 2011, 07:19:20 AM


2. Execute Modification ./Sources/Admin.php [color=red]Test failed[/color]
1. Replace ./Sources/Admin.php [color=red]Test failed[/color]


If I continue, the awards section is displayed in the member profile but I can't access the admin settings for the mod (which I guess is the file above). Any ideas? Is this a conflict with other mods on the forum (I have a few installed), and if so do you have any idea what kind of mods would interfere with this?

Any help appreciated!

Parse the MOD, and manually make those edits.  It failed cause another MOD probably added the edits there, so you just have to place the edit around the same position.

Quote from: thecoo1est on August 06, 2011, 11:31:21 PM
Okay I have smf 2.0 gold, I installed the mod and had to manually install the admin.php mods and subs.php mods, I have a empty black space between "General" AND "Layout" I assume where the awards are supposed to be, when I hover over it I can see the link its supposed to go to but directs me to admin are feature settings, I assume I missed something or something didnt install right with permission for me to see it, can anyone help with this?

Parse the MOD and make sure all language file edits were made.  Particularly  languages/Admin.english.php  , or whichever is your default language.

Thank you so much for the response and sorry to sound like a noob, but how do I do that?
ShadowFleet.org - more than just a Star Trek RPG!

Alex' Manson

go to the mod download page and select the version and click parse .
it will tell you what to do, you will need to manually make the edits if they're not there already.

Advertisement: