Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=475)
Notice: Development for SMF 1.1.x has ceased. Only compatibility and security fixes will be released.
Member Awards v2.2.3
By: JBlaze
Former Author: Fustrate
Original Author: JayBachatero
IntroductionA system where members can be given awards to display in their profile and posts.
Features
- This mod allows users with the permission to upload images that will serve as rewards.
- These images can be assigned a name as well as from what they were earned (Ex. Contest, or the name of a game)
- The image and the details assigned with the image are stored and can then be assigned to members.
- Awards can be uploaded, assigned, and viewed in the admin panel.
- The same image can be assigned to multiple members.
- Once assigned, the member can view his/her album, as well as others.
- They will be able to select their favorite image, as well as see who else has earned that award.
- Those with correct permissions can edit the image and information assigned to that image, as well as completely delete it.
- And more!
SupportPlease use the modification thread for support with this modification. Personal messages for support are discouraged.
Languageso English
o English UTF-8
If you have any translations for any other languages, I would be grateful if you would send them to me via PM or in the Mods topic.
Changelog> Comment
+ Addition
- Error/bug fix
Version 2.2.3, November 8th, 2010! Minor bugfixes
Version 2.2.2, November 4th, 2010> Compatibility update for 2.0 RC4
Version 2.2.1, May 29th, 2010- Fixed profile awards view bug. (Thanks to C4G-TK)
- Fixed assign error for members with less than 3 characters.
Version 2.2 May 11th, 2010> Mod taken over by JBlaze
- Fixed pagination error in profile
- Fixed auto-suggest feature in admin
- Fixed other small errors
+ Rewrote admin and profile templates to be more "curvy"
Version 2.1.7 August 23rd, 2009> This is the first "landmark" release. The upgrades were getting too big, so you'll now need to update to 2.1.6 before updating any further.
- Fixed admin area pagination bug
- Can now favorite multiple awards (finally!)
+ Added an "Awards List" in the member profile
Ive been working with this mod since Friday, and its flawless now :) I love it and Jay did an amazing job at it. You guys will love this :)
Awesome! Can't wait to try it out
Hey littleone how about some screenshots? Since you have your page full of awards already :P.
hi,
I like the idea of this mod a lot, and so installed it to try it on my test setup, which is a clean install of SMF 1.1 RC3, all seemed fine as I tested the different aspects of it, then I came across this error.
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY realName ASC' at line 4
File: C:\xampp\htdocs\SMFRC3\Sources\ManageAwards.php
Line: 635
This error only ocurs when the regular members is selected by itself, if any other group is selected with it then there is no error.
DrDom try this file.
hi jay,
Thanks for the speedy reply, i have tried the attached file, and now have this error
Database Error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY realName ASC' at line 4
File: C:\xampp\htdocs\SMFRC3\Sources\ManageAwards.php
Line: 638
It looks like the same error but a different line number.
also if this helps, I am using
MySQL 4.1.14
PHP Version 5.0.5
Apache/2.0.54
My mistake. Silly me. I just added something that it would sitll cause the error. The problem is taht if you only have registered memebrs selected is a different query and the post value is unset so it's empty since it only one was selected. I added a check to see if it was NOT empty but ended up doing if it was empty. :-[
hi jay,
perfect, it now works a treat, thank you for the speedy replies, and keep up the great work, its much appreciated.
regards
Ok good. I just updated the mod to 1.0.1. Keep testing.:P
hi Jay,
MEMBER AWARDS
In Select Membergroups, if you select "Moderator", click next to continue, select an image,
under the image where it says "select Members" it's empty, no moderators names show up, obviously if I then click next to continue it displays this,
An Error Has Occurred!
You must select a member and/or award in order to continue
The same applies if a group is selected that has no members, so i was wondering, if it was possible to put a check in place to test if there are members in the group, and if no members , then dont display that group for selection.
Regards
Umm do you have moderators though?
EDIT: Since this is not a big bug I'll leave this for when something major shows up. Or do oyu have members in the moderator group and it's not showing on the page?
hi Jay,
Quote from: Jay The Code Monkey on September 18, 2006, 07:54:01 PM
Umm do you have moderators though?
yes i put moderators in place for the testing.
regards
So they are not showing up? Moderators or global moderators?
hi Jay,
Moderators do not show up, Global Moderators do show up
Regards
Meh here you go. I should've used the same stuff from manage news >_<.
hi jay,
That seems to have cured it, at least thats got a few bugs sorted, and as its now 3:14 am here in the UK, i'm now going to get some sleep.
Regards
Alright thanks for reporting these bugs. I'll update the mod later this week and wait for other reports.
i know this may be a silly and worthless question...but any chance of making this work for rc2? i have so many mods and code hacks to my borad that it is just not feasible to upgrade to rc3
Quote from: TechnoDragon on September 19, 2006, 01:27:01 AM
i know this may be a silly and worthless question...but any chance of making this work for rc2? i have so many mods and code hacks to my borad that it is just not feasible to upgrade to rc3
I am facing the same problem too. Anyway, could someone post up the screenie for this mod please ?
Thanks :)
Sorry but I can't backport it to RC3. If you want and dont need UTF-8 support you can find where i use $func['htmlspecialchars'] and change it to htmlspecialchars. Do that for anything that has $func on it.
I would love to see some screen shots for this. Can members give awards to other members? Are the awards albums linked from their profile or do the awards show in their profile?
Members that have the permission to manage awards can give other members awards. The album is on a separate page on the member's profile.
Quote from: chinclub on September 19, 2006, 09:02:46 AM
I would love to see some screen shots for this. Can members give awards to other members? Are the awards albums linked from their profile or do the awards show in their profile?
Othe members with the permissions can give others awards. A special "Awards" page is created with can be accessed from the profile or from the icon that is below the avator in posts.
Here are some screenshots... sorry it took me so long. (Keep in mind my "titles" are a little different because mine is a custom version. So anyplace you see "Badge" just replace that with "Award")
Admin Main Panel (the icons u see above each image do the following respectively: Edit Badge, Delete, Assign, View Assign):
http://img126.imageshack.us/img126/6702/1qq0.png
The Admin Add Page (where u upload and name your awards):
http://img90.imageshack.us/img90/3020/1au3.png
The Admin Assign page (after you select which membergroup):
http://img95.imageshack.us/img95/6318/1df4.png
You can select individual members or assign the badge to all in the group, as well as select the datePage in Profile(my colums are set at two, but you can set them for whatever you want in your settings on your admin panel):
http://img152.imageshack.us/img152/2834/1ec3.png
What the members see when they click on a badge in their album. It show the name of all the other members who have earned it:
http://img64.imageshack.us/img64/7518/1tb9.png
Quote from: Jay The Code Monkey on September 19, 2006, 08:50:15 AM
Sorry but I can't backport it to RC3. If you want and dont need UTF-8 support you can find where i use $func['htmlspecialchars'] and change it to htmlspecialchars. Do that for anything that has $func on it.
Is that all that is needed to make it work properly in rc2 is remove the $func?
Quote from: TechnoDragon on September 19, 2006, 09:29:47 AM
Quote from: Jay The Code Monkey on September 19, 2006, 08:50:15 AM
Sorry but I can't backport it to RC3. If you want and dont need UTF-8 support you can find where i use $func['htmlspecialchars'] and change it to htmlspecialchars. Do that for anything that has $func on it.
Is that all that is needed to make it work properly in rc2 is remove the $func?
Yea for the most part I think so. Change from $func['functionname']( to functionname(
Thanks for the screenshots littleone. I'll add these to the mod later.
removing that made it work...Thank you!
Every time I try to upload a new award pic it changes my root html directory to 777 which closes my site instantly.
Umm that sounds more resonable than you giving a negative review saying that it chmods the whole site to 777. What does your host allow? 755?
In ManageAwards.php
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0777);
Change to
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0755);
Dear Jay you said "I'll update the mod later this week" .. So shall we wait for the new updates in mod or set it up now? Isn't there any problem in mod now right?
Umm I'll do an update package tomorrow.
Oka,I'll be looking for it...
installed and worked fine , thanks
how can i display badges in their post ? maybe below username or signature :) like smfarcade , can display cups
Actually that would be kinda nice...not neccesarily all of them, but their favorite one they have chosen
I'll look into displaying the badge on under the post when I have time.
Quote from: Jay The Code Monkey on September 19, 2006, 08:01:51 PM
Umm that sounds more resonable than you giving a negative review saying that it chmods the whole site to 777. What does your host allow? 755?
In ManageAwards.php
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0777);
Change to
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0755);
I had this problem also, and this
has fixed it, thanks!
.
Jay, what you listed here works much better thank you. Will it be a part of the future updates of your mod then?
Quote from: Jay The Code Monkey on September 19, 2006, 08:01:51 PM
Umm that sounds more resonable than you giving a negative review saying that it chmods the whole site to 777. What does your host allow? 755?
In ManageAwards.php
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0777);
Change to
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0755);
Can we just enter the user names we want to assign the award to instead of the checkboxes? I have a large number of members on my site and that's a painful way of doing it for me.
Also, where do we set the allowed file types for the award or what are they?
Yes I'll make the change above but it will be 777 not 755. I might add an option for it though.
No there is no way to enter usernames. It never came to me to search for members since this is a custom mod for Littleone. I did the mod according to his needs.
Quote from: Jay The Code Monkey on September 21, 2006, 09:48:00 AM
Yes I'll make the change above but it will be 777 not 755. I might add an option for it though.
No there is no way to enter usernames. It never came to me to search for members since this is a custom mod for Littleone. I did the mod according to his needs.
My suggestion would be to assign the members u are awarding awards to, to a special member group, that way they are easier to find. I have almost 4200 members and it would be a pain to dig for them, so I had them added to special member group where there are only 60 or so members that regularly get awarded stuff. I do my "awards" on a weekly bases and have upwards of 140 to 160 awards to award. Most of them are duplicate awards to the same members so its easier for the check boxes, then it was for a search and add for each individual one ;)
Can we list all of the members who have the award(s)? I mean can we put a link in main menu like "Members and Awards"? So every member can see the them and their awards in a page.
Quote from: Emrak on September 21, 2006, 06:30:24 PM
Can we list all of the members who have the award(s)? I mean can we put a link in main menu like "Members and Awards"? So every member can see the them and their awards in a page.
Every member gets a page added to their profile. So any member can see this page with the awards on it of any other person.
You can also click on the award image, and it will display who all has won that same award in a list. see the screenshots posted on the mod page.
Quote from: littleone on September 21, 2006, 08:09:26 PM
Every member gets a page added to their profile. So any member can see this page with the awards on it of any other person.
You can also click on the award image, and it will display who all has won that same award in a list. see the screenshots posted on the mod page.
Yea, when we click the award image, it displays who all has won that
same award.. But how can we display winners of
different games in a page? If possible let the single page displays all winners of all games. Can we do that?
No you can't do that. You can do a query to do it though.
Quote from: Emrak on September 21, 2006, 08:29:35 PM
Quote from: littleone on September 21, 2006, 08:09:26 PM
Every member gets a page added to their profile. So any member can see this page with the awards on it of any other person.
You can also click on the award image, and it will display who all has won that same award in a list. see the screenshots posted on the mod page.
Yea, when we click the award image, it displays who all has won that same award.. But how can we display winners of different games in a page? If possible let the single page displays all winners of all games. Can we do that?
In most cases this would be bad. I for one have almost 250 active awards many of which are awarded 30 or 40 times, so imagine what that would do. Post 250 badges, with many having 30 or 40 names, it be one long useless page to scroll through. You can also however, find the badge in your admin panel and do a view assigned on it. But ur members cant. ;)
well it looked great so I installed it, installed fine, went to the admin of it, and tried to add an award w/o a picture but it wouldnt let me. So found a png file 100x100 and added it and hit upload. Next thing that happens is an internal server error. I start panicing, but am now confused since I use a wrapped forum with my joomla! cms install and it is displaying perfectly.???
http://www.joejoomla.com/forum/ is where the error is.
http://www.joejoomla.com/index.php?option=com_smf&Itemid=76 is the wrapped forums that display fine!!!
I deleted the package via the wrapped forums but still getting the error.
Anything else I can try...
Also I had noticed that I was using 1.01 so i went to 1.02. Deleted 1.01 and installed 1.02 via the wrapped forums, 1.02 installed fine and even showed the award I was trying to upload in the 1.01 unwrapped forum. the unwrapped forum is still hosed and SMF repair options cant seem to find anything wrong.
Does your host allow CHMOD 777?
i have other files at 777 and also directories at the same that seem to work. I will rewrite the file to see. But why would it work in the wrapped format and not the standalone? Also where is the manage awards file.
is the forum_directory/awards folder supposed to have a few files in it? All that was there was the png I had tried to upload
Yes it's supposed to have the files that you upload there.
Check the permissions for SMF. I'm not sure if you can browse the forum directly with the bridge.
just did a test install of 1.2 in the wrapped forum, I uploaded it, and Applied it.
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Profile.php Test successful
3. Execute Modification ./Sources/Who.php Test successful
4. Execute Modification ./Sources/Admin.php Test successful
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
12. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/images/award.gif
17. Create Tree ./awards
18. Execute Code install.php
I check the awards folder and there is nothing in it after installing the package. it says both it and the database changes were successful
Ok when you install it, it's supposed to be empty When you add an award that file that you upload goes there.
so any idea why the internal server error?
Check the permission of the forum dir. Change it to 755.
ok it was 777, so i changed it to 755 works now....Im pretty sure it was working under 777, but oh well. Thanks so much!
Also change ManageAwards.php to be 755 also. The code to look for is on page one of this topic.
By the way why can not we give the same award to a same member twice or etc.. ? I want to give a award to a member twice, three times etc in different times but i can't.. Every time i have to upload a new award with the same picture, same game name and award name to give a member.
This is not. It was designed that way.
Quote from: Emrak on September 22, 2006, 05:26:31 PM
By the way why can not we give the same award to a same member twice or etc.. ? I want to give a award to a member twice, three times etc in different times but i can't.. Every time i have to upload a new award with the same picture, same game name and award name to give a member.
That would be correct. Thats the only option. I purposely asked Jay to write it so that you couldnt duplicate it, because I wanted to avoid doubling awards. I am using them slightly differently though and can see why you would want to reward something multiple times. Sorry :(
The change to allow this shouldn't be too hard.
Might be in the next versiyon i hope.. Because i need it, it can be as a admin option that we can select or adjust.
I can give you the changes to make. I'll post them tonight.
It could be interesting to be show in the posts.... near the signature:
Winner of Soccer Award
Winner of Basket award
or at the very least a small image of their favorite award maybe?
Quote from: dracomiconia on September 26, 2006, 02:07:22 AM
It could be interesting to be show in the posts.... near the signature:
Winner of Soccer Award
Winner of Basket award
well again this would have to be a permission, as I wouldnt want that since some of my members have well over 200 awards. So that wouldnt work.
Quote from: TechnoDragon on September 26, 2006, 02:11:35 AM
or at the very least a small image of their favorite award maybe?
This could become an issue, if the image is 400x400, and ur shrink that down, it wouldnt be recognizible. Even for me my awards are 96x60 and I wouldnt want them to show full size and any shrinking of that would distort them to much to serve a purpose. I guess it would work on a per case bases, but not sure if it would really be worth all the effort.
Like Jay said it was a custom mod that he made for me per my needs, that I said he could release public, so I am not to sure how much change he would really make or wanna make to a public release version.
I agree with littleone on this one. Doing it just clutters up the page.
Well i do know that it would be a simple change to the display template to show their favorite award...and I can agree with not adding it to the overall mod, but I don't suppose you could figure out the code that would need placing to call and show their favorite?
I have picked specific images that have been resized (all of them) to a size no bigger than allowed for avatars on my forum so I would just like to add whatever code needed to show their favorite award.
Basically a mod to the mod that I will hand code on my own...I am just not good enough with PHP to come up with the code by myself!
I'll see if I post something when I get a chance.
Awesome! Thank You!
Well.... it could be something like:
Image of award (2)
Well it looks like Juan did this mod for a specific purpose for Littleone. He released it to the public but instead of calling it "Littleone's very specific mod" he called it "Awards Mod" so either he increase the scope of his mod or someone should take it over and add some of the features we've been asking for. As well as fixing some things that were seemingly broken like the 777 on the public_html dir.
(edit: changed "are seemingly broken" to "were seemingly broken")
How about I don't do sht? I stated before the problem about CHMOD 777. It's not my problem if you are on a crappy as host that doesn't allow that. I also updated the mod to only CHMOD the AWARDS dir if not writeable. This mod NEVER CHMODed the public_html dir. If you don't want to use the mod then don't. I'm getting tired of your whining.
Why don't you follow up on the last few posts and get up to date. I did state that when I get time I was going to give a how to on some of the things that were requested.
Everyfeature that was added to the mod was thought out carefully not to have impact on the server and not clutter things up. If you want a mod that will clutter things up and hit the server then you are looking at the wrong mod and mod developer. I take pride in my work and what ever I release represents me. If you don't like it then so be it. Find someone else that will make such a mod for you.
Quote from: chadk on September 27, 2006, 01:50:51 PM
Well it looks like Juan did this mod for a specific purpose for Littleone. He released it to the public but instead of calling it "Littleone's very specific mod" he called it "Awards Mod" so either he increase the scope of his mod or someone should take it over and add some of the features we've been asking for. As well as fixing some things that are seemingly broken like the 777 on the public_html dir.
Rather than start a flame war...why don't you show gratitude that he even released it?
Personally I have been waiting patiently for someone to release a mod like this and the fact that littleone was gracious enough to let juan release this mod to share with everyone is phenomenal. Mods like this take hours if not days or weeks to write and to give it out free for everyone is extremely giving. Instead of spewing mean things why not try asking nicely...I Did and got a response that he would porbably post the edits needed to do what I wanted to do...again more than he should have ever been expected to do.
I for one want to thank Juan and Littleone for beneficially giving this mod so everyone could enjoy it and even if he never posts the code that I requested I am more than happy with the mod the way it is and my members are enjoying it immensly!
Damn, I thought I was flippin DEFENDING HIM! What the hell.. All I'm saying is if people want something that does something OTHER than what Littleone wanted, then someone should take THIS MOD and CHANGE IT to do that. I was agreeing with him not flaming him. You guys need to take a pill and realize how difficult it is to convey emotion in black in white text like this on a forum where people may not want to take 20 minutes and write a very carefully thought out message and instead, spend 2 minutes typing things the way they fall.
Juan: Your mod chmodded the public_html directory to 777 when an award was added which is a slight security risk and has nothing to do with the quality of the host. It did it and it shouldn't do that. I'm not the only one who had this issue. You fixed it, which is all I cared about.
Quote from: chadk on September 28, 2006, 09:03:43 AM
Damn, I thought I was flippin DEFENDING HIM! What the hell.. All I'm saying is if people want something that does something OTHER than what Littleone wanted, then someone should take THIS MOD and CHANGE IT to do that. I was agreeing with him not flaming him. You guys need to take a pill and realize how difficult it is to convey emotion in black in white text like this on a forum where people may not want to take 20 minutes and write a very carefully thought out message and instead, spend 2 minutes typing things the way they fall.
Juan: Your mod chmodded the public_html directory to 777 when an award was added which is a slight security risk and has nothing to do with the quality of the host. It did it and it shouldn't do that. I'm not the only one who had this issue. You fixed it, which is all I cared about.
Again, I am using this mod, I was using this mod for about a week before it went public, I never had a problem, so your CHMOD issue is blowing hot air. I dont think you have a clue what your talking about. There isnt a single script or line of code in that whole mode that would change any CHMOD but the AWARDS directory, so where you get off on Juan for saying it change your entire forum is ridiculous. I see ur the only one complaining. The other complains were with the actuall AWARDS directory now being CHMOD because the host wouldnt allow that and Juan fixed that, but it had ABSOLUTELY NOTHING to do with changing the entire forum. I am not exactly the most intellegent person when it comes to code, but obviously you have no idea what your talking about.
It took Juan with myself testing it as we went along (which I am sure sped things up some) the better part of 3 + days to write it and then as I was going through, from Friday through Monday actually using it, and finding other little issues, he was right there instantly to fix things. You know you can only work on something so long until you need a break. He then spent the better part of a day re-writing it to release it public, so that it wouldnt look weird to other users besides me.
There are alot of other mod others that you make suggestions to and they dont even bother to respond, at least he is acknowledging you and and explaining the situation. Alot of what you want, is most benefitical to you, and only you. It wouldnt work for the masses. The way I look at it, is that your asking for custom features. How about you offer him something for what you expect. Keep in mind, your using a mod, that cost me money, and I dont generate much money on my forum. He did what I wanted and need to my exact specifications and I sent him what it was worth to me and I couldnt thank him enough for his hard work. IF you want something different, why dont you contact him privately and work out and arrangement or as said previously dont use it at all.
Suggesting that someone TAKEOVER his mod because you wanna have a piss fit that your requests arent being done ASAP is down right rude, and disrespectful. You need to show some respect and gratitude, and I have seen none to speak of. I think you need to take a pill, and relax. Be happy with what you got. A week ago, you had NOTHING, this week you have a fully functional mod, that does more than most people would expect, and you didnt pay a DAMN THING for it.
If you sense a little attitude in my comments, your not wrong, there is plenty of it in there.
What the hell people? I'm ON YOUR DAMN SIDE. I'm saying, if they like the mod as it is, USE it. If they want something that does so much more then they should take a copy of the mod and do it themselves. How is this so hard to understand? I give up. I use Jay's other mods and love them.
I don't know why you guys seem to think I'm bashing him. His mods are terrific and I use them. I enjoy them and so do the users on my site. Please take a breath, and read what I wrote again and carefully.
(edit to add the following):
I admit and am sorry for giving his mod a negative review initially but I was very frustrated at the fact that it locked up my site when I tried it and it took me a bit to figure out how it did it so I could fix it. I am a programmer and a web host. I DO have a clue, though I'm not an expert.
Chad like I've stated before the mod does not CHMOD the public_html dir. Is that where you have SMF installed. If you do it's mostlikely an issue when you installed the mod and it asked you for FTP information. That is SMF asking for FTP info to CHMOD not this mod.
Quote from: Juan Hernandez on September 28, 2006, 10:56:04 AM
Chad like I've stated before the mod does not CHMOD the public_html dir. Is that where you have SMF installed. If you do it's mostlikely an issue when you installed the mod and it asked you for FTP information. That is SMF asking for FTP info to CHMOD not this mod.
Ok I'll check it out but it's really a moot point because your fix repaired the problem. I really am not trying to bash your work here Jay, sorry for the misunderstanding. Hopefully I've explained the neg rating issue. I was very frustrated (to say the least) and took it out on your rating. Sorry. I'll take my meds before I rate any mods in the future. 8)
Ok, I have hit a dead end, and don't quite know MySql well enough to get past this road block...perhaps you can help? I am trying to write the code that will pull the members favorite award and put it in the display on posts...I know where to put this and everything...the issue I am having is getting to actually pull the filename...I can get it to pull the proper ID but Ican't figure out how to pass that ID to a second query to pull the file name...
//BEGIN Awards Favorite image
global $context, $modSettings, $txt, $settings;
$result_award = db_query("SELECT ID_AWARD
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = {$message['member']['id']} AND favorite = 1
LIMIT 1", __FILE__, __LINE__);
$result_award2 = db_query("SELECT filename
FROM {$db_prefix}awards
WHERE ID_AWARD = {$result_award}
LIMIT 1", __FILE__, __LINE__);
$row_award = mysql_fetch_array($result_award2, MYSQL_ASSOC);
if($row_award['ID_AWARD'] !== "") {
echo "Favorite Award:<br /> <img src='{$boardurl}/awards/{$row_award['filename']}' /><br>";
}
//END Awards Favorite image
EDIT: Figured it out finally...if you want to display the image in the display template here is the code to make it happen:
//BEGIN Awards Favorite image
global $context, $modSettings, $txt, $settings;
$result_award = db_query("SELECT ID_AWARD
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = {$message['member']['id']} AND favorite = 1
LIMIT 1", __FILE__, __LINE__);
$row_award = mysql_fetch_array($result_award, MYSQL_ASSOC);
$result_award2 = db_query("SELECT filename
FROM {$db_prefix}awards
WHERE ID_AWARD = {$row_award['ID_AWARD']}
LIMIT 1", __FILE__, __LINE__);
$row_award2 = mysql_fetch_array($result_award2, MYSQL_ASSOC);
if($row_award2['filename'] !== "") {
echo "Favorite Award:<br /> <img src='{$boardurl}/awards/{$row_award2['filename']}' /><br>";
}
//END Awards Favorite image
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
I didn't test this out so not sure if it's going to fully work. It should work though.
Thanks for the info, I finally figured it out...with only one edit to one file...(see my post above)
Use the format that I gave you. It will require the use of only ONE query. The way that you are using it now will require ~30 queries depending on how many posts per page you have.
Turn on the page generated in... option.
Ok made a few changes on the query above. It wasn't working.
awesome Juan...much more efficient than my code!
Great Mod .. Thanks :)
Is there a dutch version of this mod?
If not, How can I translate it could someone help please
No right now the only translation is English. It would be nice to have other translations.
When i trie to install it it gives the folowing error:
Fatal error: packageinstall() [function.require]: Failed opening
required '/local/web/websites/6993155865/www/web/Packages/temp/./install.php'
(include_path='.:/php/includes:/usr/share/php')
in /local/web/websites/6993155865/www/web/Sources/Packages.php on line 540
What do I have to do?
Try redownloading the package and see if it works.
It gives the same error :(
Create a dir called temp inside the Packages dir and chmod it to 777.
It worked.. thanks ;)
Now if I turn the language into Dutch, which is my default language, I can't see the mod in Admin pannel.. So I think I have to translate some scripts manually into dutch..
Could you specify which script those are and where I have to put them?
Modifications.english.php.
// Member Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s awards album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';
ManagePermissions.english.php
// Member Awards permissions.
$txt['permissionname_manage_awards'] = 'Manage Awards';
$txt['permissionhelp_manage_awards'] = 'This will allow users add. edit and assign new awards';
I have translated those 2 files but there are more as you see below:
1. Execute Modification ./index.php
2. Execute Modification ./Sources/Profile.php
3. Execute Modification ./Sources/Who.php
4. Execute Modification ./Sources/Admin.php
5. Execute Modification ./Sources/Subs.php
6. Execute Modification ./Sources/ManagePermissions.php
7. Execute Modification ./Themes/default/index.template.php
8. Execute Modification ./Themes/default/Profile.template.php
9. Execute Modification ./Themes/default/Display.template.php
10. Execute Modification ./Themes/default/languages/Modifications.english.php
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php
12. Execute Modification ./Themes/default/languages/Errors.english.php
I have to translate those too, otherwise I can't see the following pages in Admin panel: Main Add Assign Settings
Oh forgot Errors.english.php.
$txt['cannot_manage_awards'] = 'You are not allowed to manage Awards.';
Also you need to edit ManageAwards.english.php.
I did it ;) thanks for your help
hello
can we have this for 1.1rc2?
please...
thanks...
Kel
You need to make some changes for it to work on RC2. Then again making those changes lead to UTF-8 errors >_<.
I installed this package and everything installed fine except that there are no awards. Do they not come with the mod? If not where can I find some icons/avatars for this?
No they don't come with the mod. You have to search for them. Most of the people that have this mod install run some type of RPG board or pogo awards.
Quote from: katers on October 09, 2006, 07:02:18 PM
I installed this package and everything installed fine except that there are no awards. Do they not come with the mod? If not where can I find some icons/avatars for this?
A good place for images is to go to any clipart site and do a search for various images...that or create your own (I chose the clipart way, using royalty free clipart of course!)
Thank you I will get searching.
QuoteFatal error: Cannot redeclare template_awards() (previously declared in /mnt/w0000/d23/s30/b0280754/www/nitinsir/smf/Sources/Load.php(1702) : eval()'d code:2597) in /mnt/w0000/d23/s30/b0280754/www/nitinsir/smf/Sources/Load.php(1702) : eval()'d code on line 2878
what i did i forgot to uninstall .01 and installed ur .02 and yes i have 1.1RC3 i got above error now and also i tried to uninstall .01 it went successfull but still i see and can go in Award section Admin. where is the problem????? and now i have uninstalled both still the section is there and i can assign user badges and awards :-\ :-\ :-\ :-\
I loaded Load.php in Dreamweaver to see error but there is no line 2878 i have line limited at 21xx i always run in pain :'( lol however installation and uninst was successfull :-\
Delete the duplicate functions in Profile.php and Profile.template.php.
i did thanx it seems working but i am seeing 3 entries in Profile
VIEW MEMBER's BADGES ALBUM
VIEW MEMBER's BADGES ALBUM
VIEW MEMBER's BADGES ALBUM
like this what to do?????
You installed the mod 3 times. Open Profile.php and Profile.template.php and delete the duplicate entries.
ok thanx i give try and let u know ! :D
How do you add this mod to a different template than the default? I am Using a custom template and I would really want to use this mod.
You need to install it manually. http://docs.simplemachines.org/index.php?topic=402.msg531#msg531
thanks for the reply
Okay, I went and set the theme back to the default theme to see how it works. but when I installed the mod, the award creation is only visible on creation.
since on the mod page it says that if one uses the global announcement mod on has to install the Admin Modification Menu Section, so I uninstalled the member awards, I installed both mods then again reinstalled the members award but I still dont see the award creation anywhere. I would have thought that they would be displayed under the modifications section that was added by Admin Modification Menu Section.
am I missing something?
btw I can see the award link under peoples profile, but not the award creation thingy...
Check to see that the language string is there.
could you be more specific?
I checked:
<file name="$languagedir/Modifications.english.php">
<file name="$languagedir/ManagePermissions.english.php">
<file name="$languagedir/Errors.english.php">
the modifs in those files as described in install.xml are there... and yes I am using the default theme
Modifications.english.php. Also post your Subs.php.
Modifications.english.php
<?php
// Version: 1.1 RC3; Modifications
/* Stream */
$txt['stream'] = 'Add Windows media sound or movies to your posts!';
$txt['real'] = 'Add Real media sound or movies to your posts!';
$txt['quick'] = 'Add QuickTime media sound or movies to your posts!';
$txt['gv'] = 'Add Google video to your posts!';
$txt['yt'] = 'Add YouTube stream to your posts!';
$txt['enableEmbeddedStream'] = 'Embed stream into posts';
$txt['enableEmbeddedReal'] = 'Embed real into posts';
$txt['enableEmbeddedQuick'] = 'Embed QuickTime into posts';
$txt['enableGoogleVideo'] = 'Embed Google video into posts';
$txt['enableYouTube'] = 'Embed YouTube stream into posts';
//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';
// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s badge album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';
?>
Subs.php
some code...
if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}
// Category for admin panel. Pogo Awards
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('manage_awards'))
{
$context['admin_areas']['other']['areas']['awards_admin'] = '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('manage_awards'))
{
$context['admin_areas']['awards_admin'] = array(
'title' => $txt['pa_mods'],
'areas' => array(
'awards_admin' => '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>',
),
);
}
//A new mods section for the Global Announcements.
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['other']['areas']['ga_admin'] = '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['ga_admin'] = array(
'title' => $txt['global_announcements_mods'],
'areas' => array(
'ga_admin' => '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>',
),
);
}
...some code...
$context['allow_admin'] .= allowedTo(array('global_announcements_admin'));
$context['allow_admin'] .= allowedTo('manage_awards');
$context['in_maintenance'] = !empty($maintenance);
...some code
Umm everything looks ok. Can you PM me a test admin account?
Done, thanks for the help. the account will be active this weekend.
YelleN can you post the whole function in Subs.php for the elft menu. It's called adminIndex.
Subs.php
// Set up the administration sections.
function adminIndex($area)
{
global $txt, $context, $scripturl, $sc, $modSettings, $user_info, $settings;
// Load the language and templates....
loadLanguage('Admin');
loadTemplate('Admin');
// Admin area 'Main'.
$context['admin_areas']['forum'] = array(
'title' => $txt[427],
'areas' => array(
'index' => '<a href="' . $scripturl . '?action=admin">' . $txt[208] . '</a>',
'credits' => '<a href="' . $scripturl . '?action=admin;credits">' . $txt['support_credits_title'] . '</a>',
)
);
if (allowedTo(array('edit_news', 'send_mail', 'admin_forum')))
$context['admin_areas']['forum']['areas']['news'] = '<a href="' . $scripturl . '?action=news">' . $txt['news_title'] . '</a>';
if (allowedTo('admin_forum'))
$context['admin_areas']['forum']['areas']['manage_packages'] = '<a href="' . $scripturl . '?action=packages">' . $txt['package1'] . '</a>';
// Admin area 'Configuration'.
if (allowedTo('admin_forum'))
{
$context['admin_areas']['config'] = array(
'title' => $txt[428],
'areas' => array(
'edit_mods_settings' => '<a href="' . $scripturl . '?action=featuresettings">' . $txt['modSettings_title'] . '</a>',
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
'edit_theme_settings' => '<a href="' . $scripturl . '?action=theme;sa=settings;th=' . $settings['theme_id'] . ';sesc=' . $sc . '">' . $txt['theme_current_settings'] . '</a>',
'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',
)
);
}
// Admin area 'Forum'.
if (allowedTo(array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum')))
{
$context['admin_areas']['layout'] = array(
'title' => $txt['layout_controls'],
'areas' => array()
);
if (allowedTo('manage_boards'))
$context['admin_areas']['layout']['areas']['manage_boards'] = '<a href="' . $scripturl . '?action=manageboards">' . $txt[4] . '</a>';
if (allowedTo(array('admin_forum', 'moderate_forum')))
$context['admin_areas']['layout']['areas']['posts_and_topics'] = '<a href="' . $scripturl . '?action=postsettings">' . $txt['manageposts'] . '</a>';
if (allowedTo('admin_forum'))
{
$context['admin_areas']['layout']['areas']['manage_calendar'] = '<a href="' . $scripturl . '?action=managecalendar">' . $txt['manage_calendar'] . '</a>';
$context['admin_areas']['layout']['areas']['manage_search'] = '<a href="' . $scripturl . '?action=managesearch">' . $txt['manage_search'] . '</a>';
}
if (allowedTo('manage_smileys'))
$context['admin_areas']['layout']['areas']['manage_smileys'] = '<a href="' . $scripturl . '?action=smileys">' . $txt['smileys_manage'] . '</a>';
if (allowedTo('manage_attachments'))
$context['admin_areas']['layout']['areas']['manage_attachments'] = '<a href="' . $scripturl . '?action=manageattachments">' . $txt['smf201'] . '</a>';
}
// Admin area 'Members'.
if (allowedTo(array('moderate_forum', 'manage_membergroups', 'manage_bans', 'manage_permissions', 'admin_forum')))
{
$context['admin_areas']['members'] = array(
'title' => $txt[426],
'areas' => array()
);
if (allowedTo('moderate_forum'))
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
if (allowedTo('manage_membergroups'))
$context['admin_areas']['members']['areas']['edit_groups'] = '<a href="' . $scripturl . '?action=membergroups;">' . $txt[8] . '</a>';
if (allowedTo('manage_permissions'))
$context['admin_areas']['members']['areas']['edit_permissions'] = '<a href="' . $scripturl . '?action=permissions">' . $txt['edit_permissions'] . '</a>';
if (allowedTo(array('admin_forum', 'moderate_forum')))
$context['admin_areas']['members']['areas']['registration_center'] = '<a href="' . $scripturl . '?action=regcenter">' . $txt['registration_center'] . '</a>';
if (allowedTo('manage_bans'))
$context['admin_areas']['members']['areas']['ban_members'] = '<a href="' . $scripturl . '?action=ban">' . $txt['ban_title'] . '</a>';
}
// Admin area 'Maintenance Controls'.
if (allowedTo('admin_forum'))
{
$context['admin_areas']['maintenance'] = array(
'title' => $txt[501],
'areas' => array(
'maintain_forum' => '<a href="' . $scripturl . '?action=maintain">' . $txt['maintain_title'] . '</a>',
'generate_reports' => '<a href="' . $scripturl . '?action=reports">' . $txt['generate_reports'] . '</a>',
// !!! Why? Don't you want to take care of errors in the order they happened, like normal people and programmers? Seeing them backwards helps no one, and only increases confusion.
// !!! You know I've argued this before.
'view_errors' => '<a href="' . $scripturl . '?action=viewErrorLog;desc">' . $txt['errlog1'] . '</a>'
)
);
if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}
// Category for admin panel. Pogo Awards
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('manage_awards'))
{
$context['admin_areas']['other']['areas']['awards_admin'] = '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('manage_awards'))
{
$context['admin_areas']['awards_admin'] = array(
'title' => $txt['pa_mods'],
'areas' => array(
'awards_admin' => '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>',
),
);
}
//A new mods section for the Global Announcements.
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['other']['areas']['ga_admin'] = '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['ga_admin'] = array(
'title' => $txt['global_announcements_mods'],
'areas' => array(
'ga_admin' => '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>',
),
);
}
// Other. This is shown w/o permissions so that it works with other mods.
$context['admin_areas']['other'] = array(
'title' => $txt[5000],
'areas' => array(),
);
// Make sure the administrator has a valid session...
validateSession();
// Figure out which one we're in now...
foreach ($context['admin_areas'] as $id => $section)
if (isset($section[$area]))
$context['admin_section'] = $id;
$context['admin_area'] = $area;
// obExit will know what to do!
$context['template_layers'][] = 'admin';
}
Run this query in phpMyAdmin.
REPLACE INTO smf_settings
(variable, value)
VALUES ('admin_areas_other', 1)
done. I got:
Inserted rows: 2 (Query took 0.0003 sec)
but I still can't see the award thingy anywhere
Replace the adminIndex function with this one.
// Set up the administration sections.
function adminIndex($area)
{
global $txt, $context, $scripturl, $sc, $modSettings, $user_info, $settings;
// Load the language and templates....
loadLanguage('Admin');
loadTemplate('Admin');
// Admin area 'Main'.
$context['admin_areas']['forum'] = array(
'title' => $txt[427],
'areas' => array(
'index' => '<a href="' . $scripturl . '?action=admin">' . $txt[208] . '</a>',
'credits' => '<a href="' . $scripturl . '?action=admin;credits">' . $txt['support_credits_title'] . '</a>',
)
);
if (allowedTo(array('edit_news', 'send_mail', 'admin_forum')))
$context['admin_areas']['forum']['areas']['news'] = '<a href="' . $scripturl . '?action=news">' . $txt['news_title'] . '</a>';
if (allowedTo('admin_forum'))
$context['admin_areas']['forum']['areas']['manage_packages'] = '<a href="' . $scripturl . '?action=packages">' . $txt['package1'] . '</a>';
// Admin area 'Configuration'.
if (allowedTo('admin_forum'))
{
$context['admin_areas']['config'] = array(
'title' => $txt[428],
'areas' => array(
'edit_mods_settings' => '<a href="' . $scripturl . '?action=featuresettings">' . $txt['modSettings_title'] . '</a>',
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
'edit_theme_settings' => '<a href="' . $scripturl . '?action=theme;sa=settings;th=' . $settings['theme_id'] . ';sesc=' . $sc . '">' . $txt['theme_current_settings'] . '</a>',
'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',
)
);
}
// Admin area 'Forum'.
if (allowedTo(array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum')))
{
$context['admin_areas']['layout'] = array(
'title' => $txt['layout_controls'],
'areas' => array()
);
if (allowedTo('manage_boards'))
$context['admin_areas']['layout']['areas']['manage_boards'] = '<a href="' . $scripturl . '?action=manageboards">' . $txt[4] . '</a>';
if (allowedTo(array('admin_forum', 'moderate_forum')))
$context['admin_areas']['layout']['areas']['posts_and_topics'] = '<a href="' . $scripturl . '?action=postsettings">' . $txt['manageposts'] . '</a>';
if (allowedTo('admin_forum'))
{
$context['admin_areas']['layout']['areas']['manage_calendar'] = '<a href="' . $scripturl . '?action=managecalendar">' . $txt['manage_calendar'] . '</a>';
$context['admin_areas']['layout']['areas']['manage_search'] = '<a href="' . $scripturl . '?action=managesearch">' . $txt['manage_search'] . '</a>';
}
if (allowedTo('manage_smileys'))
$context['admin_areas']['layout']['areas']['manage_smileys'] = '<a href="' . $scripturl . '?action=smileys">' . $txt['smileys_manage'] . '</a>';
if (allowedTo('manage_attachments'))
$context['admin_areas']['layout']['areas']['manage_attachments'] = '<a href="' . $scripturl . '?action=manageattachments">' . $txt['smf201'] . '</a>';
}
// Admin area 'Members'.
if (allowedTo(array('moderate_forum', 'manage_membergroups', 'manage_bans', 'manage_permissions', 'admin_forum')))
{
$context['admin_areas']['members'] = array(
'title' => $txt[426],
'areas' => array()
);
if (allowedTo('moderate_forum'))
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
if (allowedTo('manage_membergroups'))
$context['admin_areas']['members']['areas']['edit_groups'] = '<a href="' . $scripturl . '?action=membergroups;">' . $txt[8] . '</a>';
if (allowedTo('manage_permissions'))
$context['admin_areas']['members']['areas']['edit_permissions'] = '<a href="' . $scripturl . '?action=permissions">' . $txt['edit_permissions'] . '</a>';
if (allowedTo(array('admin_forum', 'moderate_forum')))
$context['admin_areas']['members']['areas']['registration_center'] = '<a href="' . $scripturl . '?action=regcenter">' . $txt['registration_center'] . '</a>';
if (allowedTo('manage_bans'))
$context['admin_areas']['members']['areas']['ban_members'] = '<a href="' . $scripturl . '?action=ban">' . $txt['ban_title'] . '</a>';
}
// Admin area 'Maintenance Controls'.
if (allowedTo('admin_forum'))
{
$context['admin_areas']['maintenance'] = array(
'title' => $txt[501],
'areas' => array(
'maintain_forum' => '<a href="' . $scripturl . '?action=maintain">' . $txt['maintain_title'] . '</a>',
'generate_reports' => '<a href="' . $scripturl . '?action=reports">' . $txt['generate_reports'] . '</a>',
// !!! Why? Don't you want to take care of errors in the order they happened, like normal people and programmers? Seeing them backwards helps no one, and only increases confusion.
// !!! You know I've argued this before.
'view_errors' => '<a href="' . $scripturl . '?action=viewErrorLog;desc">' . $txt['errlog1'] . '</a>'
)
);
if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}
// Other. This is shown w/o permissions so that it works with other mods.
$context['admin_areas']['other'] = array(
'title' => $txt[5000],
'areas' => array(),
);
// Category for admin panel. Pogo Awards
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('manage_awards'))
{
$context['admin_areas']['other']['areas']['awards_admin'] = '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('manage_awards'))
{
$context['admin_areas']['awards_admin'] = array(
'title' => $txt['pa_mods'],
'areas' => array(
'awards_admin' => '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>',
),
);
}
//A new mods section for the Global Announcements.
if ((isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 1) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['other']['areas']['ga_admin'] = '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>';
}
elseif (!isset($modSettings['admin_areas_other']) || (isset($modSettings['admin_areas_other']) && $modSettings['admin_areas_other'] == 0) && allowedTo('global_announcements_admin'))
{
$context['admin_areas']['ga_admin'] = array(
'title' => $txt['global_announcements_mods'],
'areas' => array(
'ga_admin' => '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>',
),
);
}
// Make sure the administrator has a valid session...
validateSession();
// Figure out which one we're in now...
foreach ($context['admin_areas'] as $id => $section)
if (isset($section[$area]))
$context['admin_section'] = $id;
$context['admin_area'] = $area;
// obExit will know what to do!
$context['template_layers'][] = 'admin';
}
hmmm I did that and now I am getting:
Parse error: parse error, unexpected T_STRING, expecting ')' in /srv/www/vhosts/www.osa-clan.com/forum/Sources/Subs.php on line 3572
I restored and now it is still there...
You might have missed something when you replaces the function. Email me the whole file.
done ;D
Ok here you go. Your text editor messed some special chars up.
it worked thanks man 8)
I should have check the end of line character :P :P :P :P :P
Just keep it in mind next time. I suggest you use an editor like ConTEXT (http://context.cx).
thanks for the tip :-)
normaly I use JEdit (http://www.jedit.org/) but since I did a copy and paste I used Kate(KDE) and that fooked up :)
Yea I had a similar problem with gEdit. Seems like it can't handle UTF-8 chars correctly.
would it be possible to ask for a Tiny Portal Block?
something like ( more idea's welcome if someone can do this, willingly )
Most Revent Award
( Image )
# of people
if less then 10 : list them
Most Awards
List Top 5 or 10
It can be done. I just haven't really looked at how TP handles the blocks.
actually in a variety of ways...php, script/html, ssi...the list goes on...I think at a minimum it would need a database call to calculate the most recent x number of awards added.
for the listing of who has a particular award...seems like it would be easy, because you could call up the most recently added award and then call all of the members that have that award assigned, though that list could get lengthy depending on the number of people that have it.
Hii,
I use Arabic UTF8 language pack, I have copied all the mod entries in the modification.english to modification.arabic-utf8 BUT I get when I clicked the awards admin section.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F7813%2Ferrorgy0.jpg&hash=6c8f623a03e162cd0c10e623d65bb2cef3f1f51e) (http://imageshack.us)
Quote from: Mamoun on October 24, 2006, 11:01:19 AM
Hii,
I use Arabic UTF8 language pack, I have all the mod entries in the modification.english in modification.arabic-utf8 BUT I get when I clicked the awards admin section.
You miss a language file. I can't figure out which one.
Really fast reply :D
Yes, I will try to figure out which one, Thanks for your reply
ManageAwards.english.php
That was it, Thanks :D
EDIT: Sorry to ruin the fun, But looks like your mods don't like RC3 UTF8, I get question marks too with this mod :'(
For the language file? Did you use the correct entities for it?
Sorry for not being clear, I meant the same problem with Global announcements mod, Creating a new award with arabic description/title will be displayed as ??
It happens also with other mods, I will post a new topic in the support forum.
Umm weird. I used build in SMF function for UTF-8 stuff. Do regular posts work correctly? Also check the collation in the database. That might be the problem.
Yes, About the collation, sorry could you explain more?
Go to phpMyAdmin. There it shows you a list of tables in that database. Check to see if the collation for the awards table is the same as all the other tables.
Ok, Thanks, I will report back
GA and Member awards tables are latin1_swedish_cilatin1_swedish_ci encouded, How can I change it?
BTW, some posts in my forum are also displayed as ???, How could change all the posts to unicode?
Click on structure for the awards table. Then click on operations. You change it there.
okay I changed both tables, But still gets question marks, Arghhh.
How can I change all the table to Unicode?
You are going to have to reenter the data. Try adding a new one.
I'm a complete newbie, Sorry, Could you use simplified words? :-[
Try adding a new award.
tried, But no luck
Not sure what could be wrong. I'll look more into this and see what's wrong.
That would rock! I'm also using TP and trying to use this mod. There's a big TP community and I believe this would be the only graphical award mod for it :)
Quote from: Assistance on October 22, 2006, 01:03:23 PM
would it be possible to ask for a Tiny Portal Block?
something like ( more idea's welcome if someone can do this, willingly )
Most Revent Award
( Image )
# of people
if less then 10 : list them
Most Awards
List Top 5 or 10
This mod works with TP. There are a few members that have TP and this mod installed. About the TP block. When I get some time I'll post a how to.
that be great Jay
ty
Yeah cheers Jay :)
I was wondering... atm in my post info no award stats are displayed when posting in forums. Is it possible to have something like this showing (bolded selection):
OzButcher
Clan Member
Online
Awards: 2
Posts: 15
Avatar:
(with a link to the members award page if they click on awards)?
Well, jay helped me come up with code to display a members favorite award (if any) in posts...I think that was posted a couple of pages back though...
Quote from: TechnoDragon on October 30, 2006, 11:44:12 PM
to display a members favorite award (if any) in posts...I think that was posted a couple of pages back though...
here it is (http://www.simplemachines.org/community/index.php?topic=114701.msg749245#msg749245) to save tme searching
OzButcher it wouldn't be too hard to do this. I would take a different approach to this though. I would load it with the member data so that means that it will be accesible from everywhere in the forum not just the display page.
In
File: Load.php
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
}
mysql_free_result($request);
// Load the awards
$request = db_query("
SELECT COUNT(*) AS awards, ID_MEMBER
FROM {$db_prefix}awards_members
WHERE ID_MEMBER IN ('" . implode("', '", $loaded_ids) . "')
GROUP BY ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['awards'] = $row['awards'];
mysql_free_result($request);
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'awards' => &$profile['awards'],
File: Display.template.php
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
in the display template part...if you change:
This:
// Show number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
To this:
// Show number of awards
echo '
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">', $txt['awards_total'], '</a>: ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
You'll give a quick link for everyone to go view all of the awards of that member!
Oops. Forgot that he wanted it to be a link. Thanks for pointing it out TechnoDragon.
Anytime I can offer my meager knowledge of coding!
ROFL
anyone care to share what that code does?
Well, depending on which code you are talking about, one shows each members favorite award in the posts (if they have chosen one), the other shows the number of awards each member has won.
I have a question about the ability of this mod. If it is not a feature, will you consider adding it.
Is it an option that only certain membergroups that can give a user an award, can only give an award that that particular membergroup added?
For example:
"X membergroup" should only be able to add awards to a user that "X membergroup" uploaded to the selection list.
I wouldn't want "X membergroup" add awards to a user that "Y membergroup" uploaded to the selection list.
Admin's would be an exception of course....
Maybe even add the that "X membergroup" can only see awards uploaded by "X membergroup" in the selection list. This would help avoid scrolling and clutter for large forums....
If you add these permission features, this would would be perfect.
It can be done with an extra permission. Lets see what I come up with.
Great mod Jay
Ill be making badges for the whole year MOTM (member of the month)
And hopefully others and post them here for people who wana use them :D
ok i was thinkin of makin PER month based badges but then i decided thats gona mess everything up and clutter the whole area with badges
so here are a few basic ones if anyone wants to use - feel free
as i make more ill post them :)
Newbie of the month:
Awarded to the best new member with regards to posting activities, behavior and overall contributions.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpath-to-peace.net%2Fforum%2Fawards%2F42875_newbieotm.gif&hash=c72672fef6ec77abbc9cb9947af7f955bd5da0e0)
Most Valuable Poster of the Month
Awarded to the best poster for the month, judged on originality of work and creativity shown in post (style etc) - People copying and posting stuff directly from other sites will automatically be disqualified for this award.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpath-to-peace.net%2Fforum%2Fawards%2F13573_potm.gif&hash=980951057c45a1128e0d460add31e2d2708f37c0)
Member of the Month
This is awarded to the member who has contributed the most to the website in general, from contributions in posts to gallery and uploads. Good behavior, and helpfulness towards other members also comes into account when judging for this award.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpath-to-peace.net%2Fforum%2Fawards%2F99799_momt.gif&hash=34be12b0e643993eb915135da3201b00bee7a2d4)
I like the most valuable poster award...that is cute! I may use that one!
Quote from: JayBachatero on October 31, 2006, 08:13:21 AM
OzButcher it wouldn't be too hard to do this. I would take a different approach to this though. I would load it with the member data so that means that it will be accesible from everywhere in the forum not just the display page.
Cool thanks JayBachatero and TechnoDragon!!! :) Sorry it took me a while to reply, I've been busy with a media PC!
I just tried the new code and its great! When people post it now says in their little info... "Award: xx"
TechnoDragon, it doesn't come up as a link though.... would be cool if it did :)
The change that he provided is to show it as a link.
Could you post a snippet of what the code would be to make a link only visiable to those that have permission to manage awards?
I tried and it appeared regardless:
// the Awards
if ($context['manage_awards'] .= allowedTo('manage_awards'))
{
HTML & action
}
Thanx...
Quote from: Xarcell on November 11, 2006, 10:44:03 PM
Could you post a snippet of what the code would be to make a link only visiable to those that have permission to manage awards?
I tried and it appeared regardless:
// the Awards
if ($context['manage_awards'] .= allowedTo('manage_awards'))
{
HTML & action
}
Thanx...
If you click on the link and you are the owner or the admin you will get the manage awards link...if you are not the owner or admin you will only get the list of awards they have.
Use if (allowedTo('manage_awards'))
I got the link to work.
However, after trying to figure how to add an award to a member, I clicked on "awards" in a profile and get this error: Unable to load the 'awards' template.
Any suggestions?
You'r theme might have a custom profile.template.php file. The template changes for that file are missing.
I was thinking that is what it was. So I checked the file first. It was missing the template code.
In the XML it instructs that the snippet be added before:
<li>', $txt['profile_error_' . $error], '.</li>';
echo '
</ul>
</div>';
However, doing so causes parse error, because the code is placed after the "echo '", but before the line as instucted. So I placed the snippet before the echo to avoid parse error. The page loads, however it still doesn't seem to be working I guess since it cannot load template.
Here's what the last part of the file looks like before modifcation:
// Small template for showing an error message upon a save problem in the profile.
function template_error_message()
{
global $context, $txt;
echo '
<div class="windowbg" style="margin: 1ex; padding: 1ex 2ex; border: 1px dashed red; color: red;">
<span style="text-decoration: underline;">', $txt['profile_errors_occurred'], ':</span>
<ul>';
// Cycle through each error and display an error message.
foreach ($context['post_errors'] as $error)
//if (isset($txt['profile_error_' . $error]))
echo '
<li>', $txt['profile_error_' . $error], '.</li>';
echo '
</ul>
</div>';
}
Any input you can give me? I added the snippet before all that and it works, but is it proper?
BTW, how do I add an award to a member? Not just the whole membergroup?
Before means after ;). Position means the position of the text being searched for. So basically is search for x and x goes before adding y. If that makes any sense :P. So add it after the closing braket in the code posted.
Select just the member that you want to add it to. You can de/select all of them and select just a few.
The before and after thing is confused me. I need to go back and recheck some manuel modifcations to make sure I installed other mod's properly.
I seen how to add it to a indivual user. Sorry I overlooked it before. Hate to be such a pain and you have been very helpful and quick. Thanks again.
This is a wonderful mod. I hope you add the permission of allowing a user of a membergroup to add/assign awards only to those of the same membergroup. Those with global permissions would be an exception of course.
Make the permission hide all other membergroups that user is not in on the list? That's the easiest way I can think of to do it.
Anyways, thanx again jay.
Yea it can be done with some work.
Ok if it says Search Before that means that the code you add will go BEFORE what you looked for.
If it says Search After that means that the code you add will go AFTER what you looked for.
EX.
Search Before: "ABCD" Add: "XYZ" so it will result in "XYZABCD"
Hope that makes sence ;)
Yes what he said but keep in mind that mods that use the .mod format doesn't apply to this. Add befor eor add after means that it says.
http://docs.simplemachines.org/index.php?topic=402
First of all Jay, thanks for this mod and also for supporting it too, its refreshing in this day and age.
I would like if possible to be able to display all awards that I give under the email/profile icons on the actual posts @ the board. There would never be anymore than around 3-4 per person so space in this situation is not a problem, the awards will be strips similar to the one that says "customise" under your name now.
Can this be done or can you advise me?
Thanks in advance
Wookie
Well I made a post on how to do it a few posts back. Just need to change the possittion on it.
Thanks Jay, I have that installed and working and the posts show the favourite award. Is it possible that I can get it to show all awards in the post, not just the favourite?
Cheers
Wookie
Remove the line where it says favorite = 1.
Running SMF 1.1 RC3 with Global Announcements & the Admin Modification Menu installed, among a slew of other mods.
Now, I love this mod. But I am having one hopefully minor problem. Each time I upload a new award, I get the following error in my database:
Quotemysiteinfo/index.php?action=awards;sa=modify
8: Undefined index: awardsDir
File: mysiteinfo/Sources/ManageAwards.php
Line: 378
Line 378 looks like this:
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
I checked my awards directory and made sure it was chmod 777 (it was 755, but I changed it to 777 and still got the error).
So - I don't know what to do. It's not a HUGE deal - the mod still works. I just don't like my error log flooding all the time, ya know?
Awesome mod, though - really going to work well on my forum!
Doeso anyone have an image pack for the awards?
//edit
And is it possible to make a page that shows all the members that has a reward?
@ Ladyshanae
the code was missing a bit of text...change awardsDir to pa_awardsDir and your error should go away.
@ ArkServer
well if you go into the awards portion of the admin, each award has a "button" that will show you who has the award assigned.
Hi, i want that everyone can see tho has award x.
Not admin only. Is this possible?
That should be possible, but I am not that familiar with the code...I will see if I can figure it out for you, but hopefully Jay will come online and he should know better than I!
Actually, when you go into either your awards listing from your profile or that of another member, you just click on the award and it will show you who else has that award already. The award image is a link to the list.
Thansk i already knew that but what i want is that a page displays all the awards and the members that had them.
Thansk for helping me though, much appreciated ;D
Ahhhh, ok, well then I will leave that to Jay...sorry, not that good at coding...
TechnoDragon - Thank you so much!
I do have one more error that I'm not sure what to do with. Any help would be appreciated!
When I go to assign awards, I choose a usergroup and click next. Upon clicking next, my error log generates the following error:
Quotemysiteinfo/index.php?action=awards;sa=assign;step=2
You must select the membergroups that you want to assign an award to.
Any ideas on this one?
It is the way he coded it...when it tells you to pick a member group, it also reports to the error log...I just ignore that one
Quote from: ArkServer on November 26, 2006, 09:56:48 AM
Thansk i already knew that but what i want is that a page displays all the awards and the members that had them.
Thansk for helping me though, much appreciated ;D
I created my own page for this using HTML, and I just put a link to it on my site obviously. Just do a right click and copy, and then go to your HTML editor and Paste it. When you publish it, people can click on the award and they will get the list of members who have it. I find thats the best way to do it. Cause I have nearly 300 awards now, and some awards have been offered to as many as 100 members, so you wouldnt want that list right below the badge, you'd still wanna keep it to where you can click the badge and get the info that way.
ladyshanae is the membergroup that you are selecting post count based or regular membergroup?
Ark there is no page to display this. I really don't have time but if I did I would cook something up.
None of my groups are based on post count.
Umm weird. Can you try it again and see what happens? Try selecting another group.
Same error comes up.
I go to Awards --> Assign
Then the select membergroup screen comes up. I click on the group I want, press next, and that is when the error generates. It doesn't seem to matter if I choose one group or all of them, I still get the same error.
Weird. Try reuploading all of the files. Source and template files.
I reuploaded all the files that came in the zip file and I'm still getting the same error. *sigh*
I mean, it's not a HUGE deal . . . I'm going to go through one big awards dump and then I'll only be using it every month or so probably. But it's just like . . . annoying, ya know? lol And if no one else is having the problem, then it could be me. I do have a whole bunch of mods installed.
What other mods do you have installed?
1. SMF 1.0.9 and 1.1 RC3-1 Security Patch 1.0.8/1.1 RC3
2. Board Notes 1.0.5
3. SMFShop 2.3
4. Reason For Editing Mod 1.13
5. Enable/Disable Themes 1.0
6. Custom Action Mod 2.03
7. Enhanced Quick Reply for 1.1 RC3
8. Sticky First Post (extends sticky topic) 1.2.3
9. Show Multiple Badges (Aka Stars) 1.0
10. SMF Staff Page 1.3
11. Membergroup Color Legend 1.1
12. Global Announcements 1.0
13. Custom Profile Field Mod 3.15
14. PaypalDonations 1.6
15. Member Awards 1.0.2
16. Admin Modification Menu Section 1.0.2
Plus I manually installed Show Multiple Group Names and a Dice modification that never made it to a package but has been working for my board without error for about 2 years.
I'm not sure that any of these modifications would conflict and/or cause the problem I'm encountering. The good thing is that the modification itself functions. The bad news is just that little pesky error that pops up every time I go to add an award.
I'm going to give you a modified file for testing. It should help debug the problem.
That'd be great! Thanks in advance :)
Quote from: JayBachatero on October 31, 2006, 09:30:02 AM
In
File: Load.php
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
}
mysql_free_result($request);
// Load the awards
$request = db_query("
SELECT COUNT(*) AS awards, ID_MEMBER
FROM {$db_prefix}awards_members
WHERE ID_MEMBER IN ('" . implode("', '", $loaded_ids) . "')
GROUP BY ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['awards'] = $row['awards'];
mysql_free_result($request);
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'awards' => &$profile['awards'],
File: Display.template.php
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
where is "Load.php?" I can't find that anywhere
in the sources folder of your forum directory
Thank you!
ladyshanae use this file. It will print out the $_POST data and use it for debug.
Quote from: Fatherguido on November 29, 2006, 11:53:27 AM
Quote from: JayBachatero on October 31, 2006, 09:30:02 AM
In
File: Load.php
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
}
mysql_free_result($request);
// Load the awards
$request = db_query("
SELECT COUNT(*) AS awards, ID_MEMBER
FROM {$db_prefix}awards_members
WHERE ID_MEMBER IN ('" . implode("', '", $loaded_ids) . "')
GROUP BY ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['awards'] = $row['awards'];
mysql_free_result($request);
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'awards' => &$profile['awards'],
File: Display.template.php
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
where is "Load.php?" I can't find that anywhere
I posted this code and it appears to work except that the title "Awards" does not show up all I get is ":1" (with 1 being the correct number of awards) -
I have looked over all the code and I just can't find my error
Missing the language string in the Modifications.english.php. Check to see if your theme has a custom one.
Quote from: JayBachatero on November 29, 2006, 01:43:09 PM
Missing the language string in the Modifications.english.php. Check to see if your theme has a custom one.
Yes, that was missing - I installed it but I am still missing that text. I went back to make sure the other modifications were in place and everything appears good ........any ideas?
Are you using a custom theme?
Yes, but everything else works great. I manually installed everything and the mod itself is working - the only thing I am lacking is the word "Award" in the post. So basically, the mod is good, I am having difficulty with the additional code.
The numbers are posting (like :1 but it doesn't say award before the number)
I think I may have figured it out ......... update soon
Solved: In techodragon's modification it called out a text string of "Awards Total" and there was no string in the Modifications.english.php I added one and it works great
Thanks Jay
;D Fantastic mod.
Just installed it to a theme I'm using. To other members, all you need to do is edit the install.xml file.
Please make sure you backup the files you are about to edit.
Look for the lines:
- <file name="$themedir/index.template.php">
- <file name="$themedir/Profile.template.php">
- <file name="$themedir/Display.template.php">
- <file name="$themedir/languages/Modifications.english.php">
And change them too:
- <file name="Themes/yourtheme/index.template.php">
- <file name="Themes/yourtheme/Profile.template.php">
- <file name="Themes/yourtheme/Display.template.php">
- <file name="Themes/yourtheme/languages/Modifications.english.php">
Then save to a .zip file and login as admin, go to packages, click on Download New Packages and upload and install.
The award link will apear at the bottom of your menu.
Hope this has helped,
spence
Quote from: spence_noodle on November 29, 2006, 04:59:36 PM
;D Fantastic mod.
Just installed it to a theme I'm using. To other members, all you need to do is edit the install.xml file.
Please make sure you backup the files you are about to edit.
Look for the lines:
- <file name="$themedir/index.template.php">
- <file name="$themedir/Profile.template.php">
- <file name="$themedir/Display.template.php">
- <file name="$themedir/languages/Modifications.english.php">
And change them too:
- <file name="Themes/yourtheme/index.template.php">
- <file name="Themes/yourtheme/Profile.template.php">
- <file name="Themes/yourtheme/Display.template.php">
- <file name="Themes/yourtheme/languages/Modifications.english.php">
Then save to a .zip file and login as admin, go to packages, click on Download New Packages and upload and install.
The award link will apear at the bottom of your menu.
Hope this has helped,
spence
Generally this would work, but not all themes use the same coding as the default them. So the install.xml file might be searching for one bit of code to modify or add after, but that code might not be the same in Custome theme and will do nothing but prompt errors. Im sure it would work for the majority of custom themes with little problems, but I am sure the heavely customized mods would just be more headache than its worth.
Out of about 500 members, I can only choose 10 or so to receive an award. Is there a way to add more usergroups so that I can select members from there.
(edit: It seems that this is a problem with converting from Invision to SMF. Not all membersgroups are ported :( )
Hello Code Monkey!
I've tried installing this mod on my RC2 board and it worked fine but for the profile.template.php where I had to make some coe changes manually.
However when I try to add a new award I get the following error:
Fatal error: Call to undefined function: () in /hsphere/local/home/thunting/thunting.com/smf/Sources/ManageAwards.php on line 311
>:(
I'm quoting the specific file below
Any suggestiosn would be highly appreciated as I would really love to use this cool MOD. Thank you!
Sincerly,
Christian
<?php
/********************************************************************************
* ManageAwards.php *
* ----------------------------------------------------------------------------- *
* This file handles the admin side of Awards. *
*********************************************************************************
* Software version: 1.0 *
* Software by: Juan "JayBachatero" Hernandez *
* Copyright (c) 2006 by: Juan "JayBachatero" Hernandez *
* Contact: [email protected] *
* Website: JayBachatero.com *
* ============================================================================= *
* This mod is free software; you may redistribute it and/or modify it as long *
* as you credit me for the original mod. This mod is distributed in the hope *
* that it is and will be useful, but WITHOUT ANY WARRANTIES; without even any *
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* All SMF copyrights are still in effect. Anything not mine is theirs. Enjoy! *
* Some code found in here is copy written code by SMF, therefore it can not be *
* redistributed without official consent from myself or SMF. *
********************************************************************************/
if (!defined('SMF'))
die ('Hacking attempt...');
/* This file handles adding new awards and giving them to the members
void Database tables
CREATE TABLE {$db_prefix}awards
(
ID_AWARD MEDIUMINT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY,
awardName VARCHAR(80) NOT NULL,
gameName VARCHAR(80) NOT NULL,
timeAdded INT(10) UNSIGNED NOT NULL,
filename TINYTEXT NOT NULL,
width MEDIUMINT(8) UNSIGNED NOT NULL,
height MEDIUMINT(8) UNSIGNED NOT NULL
);
CREATE TABLE IF NOT EXISTS {$db_prefix}awards_members
(
ID_AWARD_MEMBER int(8) unsigned NOT NULL,
ID_AWARD BIGINT(10) UNSIGNED NOT NULL,
ID_MEMBER INT(8) UNSIGNED NOT NULL,
dateReceived DATE NOT NULL DEFAULT '0001-01-01'
favorite TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
UNIQUE KEY ID_AWARD_MEMBER (ID_AWARD_MEMBER),
KEY ID_AWARD (ID_AWARD)
);
void Awards
- Main function to handle subActions and tabs
- Requires manage_awards permission
- Uses Awards template and language
void AwardsMain
- Main page for the admin panel
- Loads the awards that have been added
void AwardsModify
- Sets up the $context['award'] var for the add/edit page.
- Load the content for the $context['award'] var for editing,
if new mod empty default values.
- Calls AwardsSave to save the data
void AwardsSave
- If it's a new award it inserts a new rown if not it updated an existing one.
- Uses AwardsUpload for files upload.
- If a new award is uploaded for an existing mod, deletes the old award.
void AwardsUpload
- This file handles the uploading of awards.
- Uses $boarddir for the base path.
- Cleams file name by replacing spaces with "_"
- To prevent duplicate file; filenames have a random number prefixed
void AwardsDelete
- This function handles deleting an award.
- If the image exists delete it then delete the row from the database.
- Deletes any trace of the award in the {$db_prefix}awards_members table.
void AwardsAssign
- This is where you assign awards to members. It is sone in steps
- Step 1
- This is where you select the membergroups that you want to narrow the search for.
- Step 2
- Select the award that you want to assign to members. If you assigned the award from
the main page that award will automatically be selected.
- Select the members that you want to award.
- Enter the date that the award was assigned on.
- Step 3
- This is the step that handles the saving all the above data.
- The date is formatted as year-month-day
- Redirect back to the award.
void AwardsViewAssigned
- This is where you see the members that have been assigned a certain award.
- Unassign the award from certain members.
void AwardsSettings
- This is where you handle the settings for the mod
- pa_awardsDir is the directly in which the awards are saved.
- pa_columns and pa_rows is the amount of columns and rows so how in the admin page.
If less than 1 it will be set to 4
*/
function Awards()
{
global $context, $scripturl, $txt;
// Check if they are allowed to be in here.
isAllowedTo('manage_awards');
// Load the adminIndex, template and language
adminIndex('awards_admin');
loadLanguage('ManageAwards');
loadTemplate('ManageAwards');
// Set up the subActions
$subActions = array(
'main' => 'AwardsMain',
'assign' => 'AwardsAssign',
'modify' => 'AwardsModify',
'delete' => 'AwardsDelete',
'edit' => 'AwardsModify',
'settings' => 'AwardsSettings',
'viewassigned' => 'AwardsViewAssigned',
);
// Load the subAction
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'main';
$context['sub_action'] = $_REQUEST['sa'];
// Setup the tabs for the admin page.
$context['admin_tabs'] = array(
'title' => $txt['pa_title'],
'description' => $txt['pa_description'],
'tabs' => array(
'main' => array(
'title' => $txt['pa_main'],
'href' => $scripturl . '?action=awards',
),
'modify' => array(
'title' => isset($_REQUEST['modify'], $_REQUEST['award']) ? $txt['pa_edit'] : $txt['pa_add'],
'href' => $scripturl . '?action=awards;sa=modify',
),
'assign' => array(
'title' => $txt['pa_assign'],
'href' => $scripturl . '?action=awards;sa=assign',
),
'settings' => array(
'title' => $txt['pa_settings'],
'href' => $scripturl . '?action=awards;sa=settings',
'is_last' => true,
),
),
);
// Try to automatically select a tab.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;
// Else select the main tab.
else
$context['admin_tabs']['tabs']['main']['is_selected'] = true;
// Now call the subAction
$subActions[$_REQUEST['sa']]();
}
function AwardsMain()
{
global $context, $db_prefix, $scripturl, $modSettings, $txt;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards", __FILE__, __LINE__);
list ($countAwards) = mysql_fetch_row($request);
mysql_free_result($request);
// Calculate the number of results to pull up.
$maxAwards = $modSettings['pa_columns'] * $modSettings['pa_rows'];
// Construct the page index
$context['page_index'] = constructPageIndex($scripturl . '?action=awards', $_REQUEST['start'], $countAwards, $maxAwards);
$context['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
// Select the awards.
$selectAwards = db_query("
SELECT ID_AWARD, awardName, gameName, timeAdded, filename, width, height
FROM {$db_prefix}awards
ORDER BY ID_AWARD DESC
LIMIT $context[start], $maxAwards", __FILE__, __LINE__);
// Define $awards
$awards = array();
// Loop through the results.
while ($row = mysql_fetch_assoc($selectAwards))
{
$awards[] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'time' => timeformat($row['timeAdded']),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'img' => dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'],
'edit' => $scripturl . '?action=awards;sa=modify;id=' . $row['ID_AWARD'],
'delete' => $scripturl . '?action=awards;sa=delete;id=' . $row['ID_AWARD'],
'assign' => $scripturl . '?action=awards;sa=assign;step=1;id=' . $row['ID_AWARD'],
'viewAssigned' => $scripturl . '?action=awards;sa=viewassigned;id=' . $row['ID_AWARD'],
);
}
mysql_free_result($selectAwards);
// Setup the context for the awards
$context['awards'] = $awards;
// Setup the title and template.
$context['page_title'] = $txt['pa_title'];
$context['sub_template'] = 'main';
}
function AwardsModify()
{
global $context, $db_prefix, $scripturl, $txt, $modSettings, $settings;
// Check if awards is clean.
if (isset($_REQUEST['id']) && (is_array($_REQUEST['id']) || !is_numeric($_REQUEST['id'])))
fatal_lang_error('pa_error_no_id');
// Load the data for editing
if (isset($_REQUEST['id']) && $_REQUEST['id'] !== '0')
{
// Load single award ifo for editing.
$request = db_query("
SELECT ID_AWARD, awardName, gameName, timeAdded, filename, width, height
FROM {$db_prefix}awards
WHERE ID_AWARD = $_REQUEST[id]
LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($request);
// Check if that award exists
if (count($row['ID_AWARD']) != 1)
fatal_lang_error('pa_error_no_award');
$context['editing'] = true;
$context['award'] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'time' => timeformat($row['timeAdded']),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'img' => dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'],
);
// Free results
mysql_free_result($request);
// Set the title
$context['page_title'] = $txt['pa_title'] . ' - ' . $txt['pa_edit_award'];
}
else
{
// Setup place holders.
$context['editing'] = false;
$context['award'] = array(
'id' => 0,
'awardName' => '',
'gameName' => '',
'time' => '',
'filename' => '',
'width' => '',
'height' => '',
);
// Set the title
$context['page_title'] = $txt['pa_title'] . ' - ' . $txt['pa_add_award'];
}
// Check if they are saving the changes
if (isset($_POST['award_save']))
return AwardsSave();
// Load the sub-template and set the title
$context['sub_template'] = 'modify';
}
function AwardsSave()
{
global $context, $db_prefix, $func, $txt;
// Before doing anything check the session
checkSession('post');
// Check if any of the values where left empty
if (empty($_REQUEST['awardName']))
fatal_lang_error('pa_error_empty_badge_name');
/*if (empty($_REQUEST['gameName']))
fatal_lang_error('pa_error_empty_game_name');*/
if (empty($_FILES['awardFile']['name']) && $_REQUEST['id'] == 0)
fatal_lang_error('pa_error_no_file');
// Clean the values
$_REQUEST['awardName'] = strtr($func['htmlspecialchars']($_REQUEST['awardName'], ENT_QUOTES), array("\r" => '', "\n" => '', "\t" => ''));
$_REQUEST['gameName'] = strtr($func['htmlspecialchars']($_REQUEST['gameName'], ENT_QUOTES), array("\r" => '', "\n" => '', "\t" => ''));
$timeAdded = time();
// Now to insert the data for this new award.
if ($_REQUEST['id'] == 0)
{
$addAward = db_query("
INSERT INTO {$db_prefix}awards
(awardName, gameName, timeAdded)
VALUES
('$_REQUEST[awardName]', '$_REQUEST[gameName]', $timeAdded)", __FILE__, __LINE__);
// Get the ID_AWARD
$ID_AWARD = db_insert_id();
// Now upload the file
if ($addAward === true && $_FILES['awardFile']['error'] === 0)
AwardsUpload($_FILES, $_REQUEST, $ID_AWARD);
}
else
{
// Set $ID_AWARD
$ID_AWARD = (int) $_REQUEST['id'];
// Edit the award
$editAward = db_query("
UPDATE {$db_prefix}awards
SET
awardName = '$_REQUEST[awardName]',
gameName = '$_REQUEST[gameName]'
WHERE ID_AWARD = $ID_AWARD", __FILE__, __LINE__);
// Are we uploading a new image for this award?
if (isset($_FILES['awardFile']) && $_FILES['awardFile']['error'] === 0 && $editAward === true)
{
// Lets make sure that we delete the file that we are supposed to and not something harmful
$request = db_query("
SELECT filename
FROM {$db_prefix}awards
WHERE ID_AWARD = $_REQUEST[id]", __FILE__, __LINE__);
list ($filename) = mysql_fetch_row($request);
mysql_free_result($request);
// Delete the file first.
if (file_exists($$boarddir . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $filename))
@unlink($boarddir . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $filename);
// Now add the new one.
AwardsUpload($_FILES, $_REQUEST, $ID_AWARD);
}
}
// Redirect back to the mod.
redirectexit('action=awards;sa=modify;id=' . $ID_AWARD);
}
function AwardsUpload($_FILES, $_POST, $ID_AWARD)
{
global $context, $modSettings, $boarddir, $txt, $db_prefix;
// Check if $_FILE was set.
if (empty($_FILES['awardFile']) || !isset($ID_AWARD))
fatal_lang_error('ga_error_no_file');
// Lets try to CHMOD the awards dir.
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
@chmod($boarddir . '/' . $modSettings['awardsDir'], 0777);
// Define $award
$award = $_FILES['awardFile'];
// Check if file was uploaded.
if ($award['error'] === 1 || $award['error'] === 2)
fatal_lang_error('ga_error_upload_size');
elseif ($award['error'] !== 0)
fatal_lang_error('ga_error_upload_failed');
// Check the extensions
$goodExtensions = array('jpg', 'jpeg', 'gif', 'png');
if (!in_array(strtolower(substr(strrchr($award['name'], '.'), 1)), $goodExtensions))
fatal_lang_error('pa_error_wrong_extension');
// Make sure they aren't trying to upload a nasty file.
$disabledFiles = array('con', 'com1', 'com2', 'com3', 'com4', 'prn', 'aux', 'lpt1', '.htaccess', 'index.php');
if (in_array(strtolower(basename($award['name'])), $disabledFiles))
fatal_lang_error('pa_error_wrong_extension');
// Get the width and height for the image
list ($award['width'], $award['height']) = getimagesize($award['tmp_name']);
/*To stop conflict between awards with the same name lets add a random
number from 00000 to 99999 before the name and make the name be
lowercased with spaces replaced with (_)*/
$clean_name = strtr($award['name'], 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$clean_name = strtr($clean_name, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));
$award['name'] = rand(00000, 99999) . '_' . strtolower(str_replace(' ', '_', $award['name']));
// Now move the file to the right directory
$tmpName = $award['tmp_name'];
$newName = $boarddir . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $award['name'];
move_uploaded_file($tmpName, $newName);
// Try to CHMOD the uploaded file
@chmod($newName, 0777);
// Cast to int.
$award['width'] = (int) $award['width'];
$award['height'] = (int) $award['height'];
$ID_AWARD = (int) $ID_AWARD;
// Now for the databse stuff.
$update = db_query("
UPDATE {$db_prefix}awards
SET
filename = '$award[name]',
width = $award[width],
height = $award[height]
WHERE ID_AWARD = $ID_AWARD", __FILE__, __LINE__);
if ($update === true)
$uploadGood = true;
else
$uploadGood = false;
}
function AwardsDelete()
{
global $db_prefix, $boarddir, $modSettings;
// Check if they are allowed to be here
if (allowedTo('manage_awards'))
{
// Check the session
checkSession('get');
// Cast $_REQUEST['id'] as int.
$_REQUEST['id'] = (int) $_REQUEST['id'];
// Select the file name to delete
$request = db_query("
SELECT filename
FROM {$db_prefix}awards
WHERE ID_AWARD = $_REQUEST[id]", __FILE__, __LINE__);
list($filename) = mysql_fetch_row($request);
mysql_free_result($request);
// Does that award even exists?
if (empty($filename))
fatal_lang_error('pa_error_no_award');
// Now delete the award from the hd
@unlink($boarddir . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $filename);
// Now delete the entry from the database.
db_query("
DELETE FROM {$db_prefix}awards
WHERE ID_AWARD = $_REQUEST[id]
LIMIT 1", __FILE__, __LINE__);
// Ok since this award doesn't exists any more lets remove it from the member
db_query("
DELETE FROM {$db_prefix}awards_members
WHERE ID_AWARD = $_REQUEST[id]", __FILE__, __LINE__);
// Redirect the exit
redirectexit('action=awards');
}
else
fatal_lang_error('pa_error_cant_delete');
}
function AwardsAssign()
{
global $db_prefix, $context, $sourcedir, $modSettings, $txt;
// First step, select the memebrgroups
if (!isset($_REQUEST['step']) || $_REQUEST['step'] == 1)
{
$context['groups'] = array();
$postGroups = array();
$normalGroups = array();
// If we have post groups disabled then we need to give a "ungrouped members" option.
if (empty($modSettings['permission_enable_postgroups']))
{
$context['groups'][0] = array(
'id' => 0,
'name' => $txt['membergroups_members'],
'member_count' => 0,
);
$normalGroups[0] = 0;
}
// Get all the extra groups as well as Administrator and Global Moderator.
$request = db_query("
SELECT mg.ID_GROUP, mg.groupName, mg.minPosts
FROM {$db_prefix}membergroups AS mg" . (empty($modSettings['permission_enable_postgroups']) ? "
WHERE mg.minPosts = -1" : '') . "
GROUP BY mg.ID_GROUP
ORDER BY mg.minPosts, IF(mg.ID_GROUP < 4, mg.ID_GROUP, 4), mg.groupName", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$context['groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'member_count' => 0,
);
if ($row['minPosts'] == -1)
$normalGroups[$row['ID_GROUP']] = $row['ID_GROUP'];
else
$postGroups[$row['ID_GROUP']] = $row['ID_GROUP'];
}
mysql_free_result($request);
// If we have post groups, let's count the number of members...
if (!empty($postGroups))
{
$query = db_query("
SELECT mem.ID_POST_GROUP AS ID_GROUP, COUNT(*) AS member_count
FROM {$db_prefix}members AS mem
WHERE mem.ID_POST_GROUP IN (" . implode(', ', $postGroups) . ")
GROUP BY mem.ID_POST_GROUP", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$context['groups'][$row['ID_GROUP']]['member_count'] += $row['member_count'];
mysql_free_result($query);
}
if (!empty($normalGroups))
{
// Find people who are members of this group...
$query = db_query("
SELECT ID_GROUP, COUNT(*) AS member_count
FROM {$db_prefix}members
WHERE ID_GROUP IN (" . implode(',', $normalGroups) . ")
GROUP BY ID_GROUP", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$context['groups'][$row['ID_GROUP']]['member_count'] += $row['member_count'];
mysql_free_result($query);
// Also do those who have it as an additional membergroup - this ones more yucky...
$query = db_query("
SELECT mg.ID_GROUP, COUNT(*) AS member_count
FROM ({$db_prefix}membergroups AS mg, {$db_prefix}members AS mem)
WHERE mg.ID_GROUP IN (" . implode(',', $normalGroups) . ")
AND mem.additionalGroups != ''
AND mem.ID_GROUP != mg.ID_GROUP
AND FIND_IN_SET(mg.ID_GROUP, mem.additionalGroups)
GROUP BY mg.ID_GROUP", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($query))
$context['groups'][$row['ID_GROUP']]['member_count'] += $row['member_count'];
mysql_free_result($query);
}
// Any moderators?
$request = db_query("
SELECT COUNT(DISTINCT ID_MEMBER) AS num_distinct_mods
FROM {$db_prefix}moderators
LIMIT 1", __FILE__, __LINE__);
list ($context['groups'][3]['member_count']) = mysql_fetch_row($request);
mysql_free_result($request);
// step 1
$context['step'] = 1;
// Set the title
$context['page_title'] = $txt['pa_title'] . ' - ' . $txt['pa_mem_group'];
}
// Step 2: Load the awards and the name of the members for the selected membergroups.
elseif (isset($_REQUEST['step']) && $_REQUEST['step'] == 2)
{
// Make sure that they come form step 1
if (!isset($_POST['who']) || empty($_POST['who']))
fatal_lang_error('pa_error_no_who');
// Select the awards for the drop down.
$selectAwards = db_query("
SELECT ID_AWARD, awardName, filename
FROM {$db_prefix}awards
ORDER BY awardName ASC", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($selectAwards))
{
$context['awards'][$row['ID_AWARD']] = array(
'awardName' => $row['awardName'],
'filename' => $row['filename'],
);
}
// Free the above results
mysql_free_result($selectAwards);
// Clean who
foreach ($_POST['who'] as $k => $v)
$_POST['who'][$k] = (int) $v;
$context['members'] = array();
// Did they select moderators too?
if (!empty($_POST['who']) && in_array(3, $_POST['who']))
{
$request = db_query("
SELECT DISTINCT mem.ID_MEMBER, mem.realName
FROM ({$db_prefix}members AS mem, {$db_prefix}moderators AS mods)
WHERE mem.ID_MEMBER = mods.ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$context['members'][$row['ID_MEMBER']] = $row['realName'];
mysql_free_result($request);
unset($_POST['who'][3], $_POST['who'][3]);
}
// How about regular members?
if (!empty($_POST['who']) && in_array(0, $_POST['who']))
{
$request = db_query("
SELECT mem.ID_MEMBER, mem.realName
FROM {$db_prefix}members AS mem
WHERE mem.ID_GROUP = 0", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$context['members'][$row['ID_MEMBER']] = $row['realName'];
mysql_free_result($request);
unset($_POST['who'][0], $_POST['who'][0]);
}
// Check if only regular members was selected
if (!empty($_POST['who']))
{
// Select the members.
$selectMembers = db_query("
SELECT ID_MEMBER, realName
FROM ({$db_prefix}members AS mem, {$db_prefix}membergroups AS mg)
WHERE (mg.ID_GROUP = mem.ID_GROUP OR FIND_IN_SET(mg.ID_GROUP, mem.additionalGroups) OR mg.ID_GROUP = mem.ID_POST_GROUP)
AND mg.ID_GROUP IN (" . implode(',', $_POST['who']) . ")
ORDER BY realName ASC", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($selectMembers))
$context['members'][$row['ID_MEMBER']] = $row['realName'];
}
// Set the current step.
$context['step'] = 2;
// Set the title
$context['page_title'] = $txt['pa_title'] . ' - ' . $txt['pa_select_badge'];
}
// The last step.
elseif (isset($_REQUEST['step']) && $_REQUEST['step'] == 3)
{
// Make sure that they picked a award and members to assign it to...
if (!isset($_POST['member'], $_POST['award']))
fatal_lang_error('pa_error_no_members');
// Set a valid date, award.
$dateReceived = (int) $_POST['year'] . '-' . (int) $_POST['month'] . '-' . (int) $_POST['day'];
$_POST['award'] = (int) $_POST['award'];
// Define $values
$values = '';
// Prepare the values.
foreach ($_POST['member'] as $member)
$values .= "
(" . $_POST['award'] . '000' . $member . ", $_POST[award], $member, '$dateReceived'),";
// Inset the data
db_query("
INSERT IGNORE INTO {$db_prefix}awards_members
(ID_AWARD_MEMBER, ID_AWARD, ID_MEMBER, dateReceived)
VALUES " . substr($values, 0, -1), __FILE__, __LINE__);
// Redirect to show the memebrs with this award.
redirectexit('action=awards;sa=viewassigned;id=' . $_POST['award']);
}
$context['sub_template'] = 'assign';
}
function AwardsViewAssigned()
{
global $context, $db_prefix, $scripturl, $modSettings, $txt;
// An award must be selected.
if (!isset($_REQUEST['id']))
fatal_lang_error('pa_error_no_award');
// Now load the info.
$membersSelect = db_query("
SELECT
mem.realName, am.ID_MEMBER, am.dateReceived
FROM {$db_prefix}awards_members AS am
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = am.ID_MEMBER)
WHERE am.ID_AWARD = $_REQUEST[id]", __FILE__, __LINE__);
// Load the award info separatly
$awardSelect = db_query("
SELECT aw.ID_AWARD, aw.awardName, aw.gameName, aw.filename
FROM {$db_prefix}awards AS aw
WHERE aw.ID_AWARD = $_REQUEST[id]", __FILE__, __LINE__);
$assignedAward = array();
// Fetch the award info just once
$row = mysql_fetch_assoc($awardSelect);
$assignedAward = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'filename' => $row['filename'],
'img' => dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'],
);
mysql_free_result($awardSelect);
// Check if ths award actually exists
if (empty($assignedAward['id']))
fatal_lang_error('pa_error_no_award');
$assignedMembers = array();
while ($row = mysql_fetch_assoc($membersSelect))
{
$assignedMembers[] = array(
'id' => $row['ID_MEMBER'],
'name' => $row['realName'],
'date' => $row['dateReceived'],
'link' => '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>',
);
}
mysql_free_result($membersSelect);
// Remove the badge from these memebrs
if (isset($_POST['unassign']))
{
// Check the session.
checkSession('post');
// Make sure award is in
$_POST['id'] = (int) $_POST['id'];
// Delete the rows frm the database for the members selected.
db_query("
DELETE FROM {$db_prefix}awards_members
WHERE ID_AWARD = $_POST[id]
AND ID_MEMBER IN (" . implode(', ', $_POST['member']) . ")", __FILE__, __LINE__);
// Redirect to the badges
redirectexit('action=awards;sa=viewassigned;id=' . $_POST['id']);
}
// Set the context values
$context['assignedAward'] = $assignedAward;
$context['assignedMembers'] = $assignedMembers;
$context['page_title'] = $txt['pa_title'] . ' - ' . $assignedAward['awardName'];
$context['sub_template'] = 'view_assigned';
}
function AwardsSettings()
{
global $context, $modSettings, $txt, $boarddir, $func;
$context['sub_template'] = 'settings';
$context['page_title'] = $txt['pa_title'] . ' - ' . $txt['pa_settings'];
// Save the settings
if (isset($_POST['save_settings']))
{
// Check the session
checkSession('post');
// Strip any slashes from the badgesDir
$_POST['pa_awardsDir'] = str_replace(array('\\', '/'), '', $_POST['pa_awardsDir']);
// Try to create a new dir if it doesn't exists.
if (!is_dir($boarddir . '/' . $_POST['pa_awardsDir']) && trim($_POST['pa_awardsDir']) != '')
{
if (!mkdir($boarddir . '/' . $_POST['pa_awardsDir'], 0777))
$context['pa_mkdir_fail'] = true;
}
// Now save
updateSettings(array(
'pa_awardsDir' => $func['htmlspecialchars']($_POST['pa_awardsDir'], ENT_QUOTES),
'pa_columns' => isset($_POST['pa_columns']) && $_POST['pa_columns'] > 1 ? (int) $_POST['pa_columns'] : 4,
'pa_rows' => isset($_POST['pa_rows']) && $_POST['pa_rows'] > 1 ? (int) $_POST['pa_rows'] : 5,
'pa_favorites' => isset($_POST['pa_favorites']) ? 1 : 0,
));
}
}
?>
/me wonders if people check their SMF version before installing a mod ::).
This mod DOES NOT work with any version of SMF lower than 1.1 RC 3.
Any hack or mod to allow the awards to be shown under/beside the avatar of the user? I made all my awards very tiny medals and want to have the medals showing below their avatar. Any mods out there that enable this?
like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.warpiggy.com%2Fawards%2F93054_unkoreatn.jpg&hash=5bc7ddc7c6c9eb3db3dc3219a06ad1cf661cbd09)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.warpiggy.com%2Fawards%2F49512_unikomtn.jpg&hash=4bbf248ca09f92809d1f930f3969d200dfd26532)
Thanks!
/me points to a few pages back.
Forgive my ignorance but I once again read through all 15 pages and dont see the code or the mod that enables this. I have your mod installed but It doesnt show the awards below the avatar. Thanks sorry for being a newb.
SMF Forum 1.1 (Release)
Tiny Portal 0.9.7
WOW-DKf TP Theme
http://www.warpiggy.com
http://www.simplemachines.org/community/index.php?topic=114701.msg749906#msg749906 That should be it for the most part. Just needs a few small changes.
Quote from: JayBachatero on October 01, 2006, 01:26:33 PM
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
I didn't test this out so not sure if it's going to fully work. It should work though.
The theme I am using does not have a display.php file. It does have a display.template.php file. I made the corrections both you and the previous poster showed and I get an error.
I am using 1.1
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<td nowrap="nowrap" align="left" style="padding: 18px 0px 10px 7px;">
', $message['member']['avatar']['image'], '</td>';
echo '
<td nowrap="nowrap" align="left" class="smalltext" style="padding: 18px 2px 10px 7px;">
<span class="member_name">', $message['member']['link'], '</span>';
if (!$message['member']['is_guest'])
{
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" align="middle" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? ' ' : '', ' ';
Any tips?
Display.php is not a theme based file...it is in the sources directory.
Thanks for thew quick replies, however I get this when I upload the files to the server:
An Error Has Occurred!
Unable to load the 'main' template.
The error is ONLY after I upload the Display.template.php file
No error at all when I install the Display.php. I am guessing that one is ok.
Here is my code from Display.template.php file on the current theme I am using:
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// here>>
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
// Show their personal text?
Any thoughts?
Did you replace the Display.php with this?
No thats my Display.template.php file.
I did the Display.php the way you listed on the post up there^
What error are you receiving?
An Error Has Occurred!
Unable to load the 'main' template.
You were supposed to edit the template not replace the whole thing with that.
/sigh I am just showing you what I added... I didn't replace the whole thing. I followed the directions ;D
I added those lines after the ones specified in the above listed post you wrote.^^^
generally...unable to load main template...means that either e file reference in the index file is missing or a file that is needed is missing...check to make sure that all of the files are in the right place.
I took them out edited them, made backup, then put them back. Each one in order. There are only 2 files. I edited. And the names are different.
Im using 1.1 (release) and tiny Portal .0.9.7. I can see any forum post on the main page but when I actually go to the post (where the Display.template.php would take over) is when I get that error. To fix it I just upload the backup and its fine. So it must be Display.template.php and not Display.php, IMHO...
i could have the same prob. although i see the awards in the admin cpanel and create an award, upload images/badges, i cant see the awards if i look at a members profile and choose awards in the profile info. it shows:
An Error Has Occurred!
Unable to load the 'awards' template.
i already did what you said. tnx
Youf theme might have a custom profile.template.php. does the mod work with the default theme?
ok thanks anyway. i just change the template, and yes it did worked on a default template.
btw, how do we make an award as a fave so it will show everytime we post a reply?
ps. @JayBachatero thanks for making a very useful mod. you're the best. ;)
To make an award a fav you can just go to your profile and select it there. To show it on profile look at this.
http://www.simplemachines.org/community/index.php?topic=114701.msg749906#msg749906
Greetings all. Let me be yet another one to give thanks for a great mod. I am using SMF bridged to Joomla! CMS and have got the Awards mod to work properly .. so far. The problem is, my client want the awards to be shown in the posts, below the user's avatar. Currently, there are two awards that my client wants to show, but there may be plans for others.
I have read this thread with great interest, as it is a step in the right direction, but it has only involved putting a user's favorite award under their avatar. My needs are a bit more complicated as I need all awards (counted for multiple times each one is received) to show up in the boards (not just the profile). Is this possible?
Unfortunately, I am not a programmer and can only guess at the meaning behind most of what php and mysql do under the hood.
Has this been talked about before?
~regards,
Shadmego
Quote from: shadmego on December 21, 2006, 12:54:13 AM
Greetings all. Let me be yet another one to give thanks for a great mod. I am using SMF bridged to Joomla! CMS and have got the Awards mod to work properly .. so far. The problem is, my client want the awards to be shown in the posts, below the user's avatar. Currently, there are two awards that my client wants to show, but there may be plans for others.
I have read this thread with great interest, as it is a step in the right direction, but it has only involved putting a user's favorite award under their avatar. My needs are a bit more complicated as I need all awards (counted for multiple times each one is received) to show up in the boards (not just the profile). Is this possible?
Unfortunately, I am not a programmer and can only guess at the meaning behind most of what php and mysql do under the hood.
Has this been talked about before?
~regards,
Shadmego
I might be able to give you a suggestion although I am not sure if it works. There is an option in the admin panel to select multiple favorite badges. I am not sure if the coding to show favorites in the posts is only for one award or if it will work for EVERY favorite. Its worth a try. Also I am not sure if there is a cap on the # of favorites you can have. I beleive that Jay mentioned 5 but I am sure u can find that in the code should the need arise to change that (if my suggestion even works). Give that a try, otherwise you'll need to wait for Jay to give u the help you need ;)
I appreciate the quick reply! I will give it a try now. Another question I have:
Is it possible to count the number of times someone receives a single award? I tried yesterday to give an award to a member twice and it only counted as one. My board is going to be (possibly) handing out awards multiple times to the same people and my client would like to have a count of those awards visible.
Thanks!!!!!!!
Shadmego
There is no way to assign more than one award. I built this mod around this. I put preventions against this.
Ok. Thanks for that info.
I think I'm just going to have to tell my client to think of something else ... like a multiple award icon or something. Maybe awards that recycle after a year or so.
By the way, when I turned on the ability for members to choose multiple favorites, my members are still only able to choose one favorite. I'm still working on figuring out why, but the code to place the award in the posts (under the avatar) worked flawlessly!
<exclamation>"you-da-bomb"</exclamation>
~regards,
Shadmego
Remove the LIMIT 1 from the query to show all the favorites.
Quote from: JayBachatero on December 21, 2006, 11:10:58 AM
Remove the LIMIT 1 from the query to show all the favorites.
Please forgive my misunderstanding here but, huh? Where do I find that?
My problem is I have gone to Awards > Settings and click the checkbox that says "Favorite Award: Check this if you want to allow users to have more than one favorite award."
Box is checked.
When logging into an account that has been given two awards, I cannot check both of them as favorite. I can just swap them out (one or the other) as favorite.
If this LIMIT 1 issue is the problem, I really don't know where to find it. I've searched the code, but don't know what file to look in.
Thanks again for all your help and sorry for wasting your time.
Mod installed without any problems and I manually modded the appropriate files on the version of the classic template I use. However, I'm getting the following error in my error log:
http://www.thecohortcafe.com/index.php?action=awards;sa=viewassigned;id=2
Apply Filter: Only show the errors with the same message
8: Undefined variable: badge
File: /home/.cutiekins/sprechereast/thecohortcafe.com/Themes/default/ManageAwards.template.php (eval?)
Line: 421
Any thoughts? Thanks in advance.
I added the following to index.english.php hoping that would fix this problem, but it did not. :(
$txt['badge'] = 'Badge';
And I've also noticed the following the following error:
ttp://www.thecohortcafe.com/index.php?action=awards;sa=assign;step=2;id=5
Apply Filter: Only show the errors with the same message
You must select the membergroups that you want to assign an award to.
What's odd about this, is I am selecting a member group when I assign an award. In fact I have them all selected which is the default. Thoughts?
Fatal error: Cannot redeclare template_awards() (previously declared in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code:2267) in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code on line 2453
I get this Error whenever I go into any profile including my own. I only started recieving this after installing the Member Awards Mod. I am really new to SMF, and dont know much about it. Can anyone help me out?
Quote from: DivineTemplar on December 27, 2006, 10:46:49 AM
Fatal error: Cannot redeclare template_awards() (previously declared in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code:2267) in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code on line 2453
I get this Error whenever I go into any profile including my own. I only started recieving this after installing the Member Awards Mod. I am really new to SMF, and dont know much about it. Can anyone help me out?
You installed the mod twice.
Quote from: kriskd on December 23, 2006, 07:06:09 PM
I added the following to index.english.php hoping that would fix this problem, but it did not. :(
$txt['badge'] = 'Badge';
And I've also noticed the following the following error:
ttp://www.thecohortcafe.com/index.php?action=awards;sa=assign;step=2;id=5
Apply Filter: Only show the errors with the same message
You must select the membergroups that you want to assign an award to.
What's odd about this, is I am selecting a member group when I assign an award. In fact I have them all selected which is the default. Thoughts?
I'll have to more into that when I get a chance.
Quote from: JayBachatero on December 31, 2006, 03:05:33 AM
Quote from: DivineTemplar on December 27, 2006, 10:46:49 AM
Fatal error: Cannot redeclare template_awards() (previously declared in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code:2267) in /home/generals/public_html/clans/doj/forums/Sources/Load.php(1724) : eval()'d code on line 2453
I get this Error whenever I go into any profile including my own. I only started recieving this after installing the Member Awards Mod. I am really new to SMF, and dont know much about it. Can anyone help me out?
You installed the mod twice.
I have tried removing the Mod, however that does not solve any problems. Do you know of any solution to my problem?
Quote from: DivineTemplar on December 31, 2006, 07:56:24 AM
I have tried removing the Mod, however that does not solve any problems. Do you know of any solution to my problem?
Did you have any errors while uninstalling? Did you make sure to remove any traces of it from your sources and themes files?
Quote from: kriskd on December 31, 2006, 08:04:50 AM
Quote from: DivineTemplar on December 31, 2006, 07:56:24 AM
I have tried removing the Mod, however that does not solve any problems. Do you know of any solution to my problem?
Did you have any errors while uninstalling? Did you make sure to remove any traces of it from your sources and themes files?
There were no Errors in the Uninstall, and the Sources file was replaced with a Vanilla copy after this happened and it still comes up with this error.
hey jay i have a suggestion if u could use it
how about having the awards mod be able to display 'members status; with regards to posting on a per month basis.
Like a screen which will show:
THIS MONTH:
Top 5 Topic Starters
Top 5 posters
that was it could be easier for the admin teams to pick someone, especially with larger boards where it gets pretty tiresome to keep an eye on everyone all throughout the month.
aku
Quote from: akulion on December 31, 2006, 01:43:38 PM
hey jay i have a suggestion if u could use it
how about having the awards mod be able to display 'members status; with regards to posting on a per month basis.
Like a screen which will show:
THIS MONTH:
Top 5 Topic Starters
Top 5 posters
that was it could be easier for the admin teams to pick someone, especially with larger boards where it gets pretty tiresome to keep an eye on everyone all throughout the month.
aku
Personally I dont know what this would possibly have to do with this awards mod. Sounds like this would be better as a completely separate mod to modify your "Forum Stats" page with that information.
Hi... nice mod and just what I needed! One question though ( I saw someone mentioned it earlier) Will it be possible to 'bypass' the 'Upload' file function in the 'Add Award' section? After you've entered the Award Name and Game Name > Submit > It forced you to upload a file! If we can pass this function won't it be possible to use the same file (award image) for different users each week? - In other words it'll leave the option to you if you want to upload a file / image or not!
At this point i have to upload the same image every time which causes a duplication of the same image? Thanks in advance!
Great work here so far. I am so close to having everything working but not quite. Like so many others, I am trying to stick the awards in the signature. I don't want just the favorites, but all the trophies an individual has. I edited the display.php and I removed the limit 1 line, or at least the only one I saw but I can still only get one award to show up.
I changed the code a bit to add the award name and game name to the imgs title link, but I don't know why only one award shows up.
/*******************************/
/* Load the members awards */
/*******************************/
// removed line following WHERE, should show all trophies owned, not just favorite: fails
// AND pam.favorite = 1
$awards_request = db_query("
SELECT pab.gameName,pab.awardName,pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '"
title="'.$row['awardName'].' in '.$row['gameName'].'" />';
mysql_free_result($awards_request);
Just for posterity sake this is what I've added to my custom theme
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div align="center">', $context['awards'][$message['member']['id']], '</div>';
Anyway, any help would be greatly appreciated.
Try removing the GROU BY line.
Quote from: JayBachatero on January 04, 2007, 12:29:27 AM
Try removing the GROU BY line.
I removed the group by part, I am still only seeing one award however. This time instead of displaying the first trophy they got it is the last trophy instead. So there was at least change :D
...
$awards_request = db_query("
SELECT pab.gameName,pab.awardName,pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
", __FILE__, __LINE__);
...
Quote from: cloudee1 on January 04, 2007, 12:13:30 AM
...
I edited the display.php and I removed the limit 1 line, or at least the only one I saw but I can still only get one award to show up.
...
Please forgive my ignorance. I've been looking for that LIMIT 1 line for about 2 weeks now and can't seem to find it in relation to the awards code. From what you said here, I assume it's in the Display.php file, but mine at least has a bunch of LIMIT 1 lines and none of them have to do with the awards mod.
If it isn't too much trouble, could you point me in the right direction?
Thanks!
~regards,
Shadmego
It's in the award code that you added to display.php, my first code post shows the award code without the limit line "AND pam.favorite = 1" It came right ofter the WHERE statement that is still present. Unfortunately it doesn't matter, as it isn't sufficient to get multiple awards to display.
Ok. That's why it confused me. The code I put in my Display.php file never had the LIMIT 1 line in there.
I've taken out the GROUP BY and the pam.favorite line. I'm very interested in the successful modification of this to show multiple awards in the boards, though I also like the modification you did on your board to put a link to the award section for each member.
If I can't get this to work, would you mind showing me what you did to get your version of this?
Thanks for the prompt response!
~regards,
Shadmego
In you custom themes display.template.php you just need to find
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '"
title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif"
alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
And right below that add in the part that displays the award shortcut.
// Display the link to the users trophies
echo '
<br />
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">
', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif"
alt="' . $txt['awards'] . '"
title="' . $txt['awards'] . '"
border="0" />' : $txt['awards']), '</a>';
Now if you are in the right place, the next bit of code should look like
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
That's it, I think it's just a copy and paste of where it changed the default themes file. I just found it and added it to my custom themes file. Once we get multiple awards displaying, I will probably remove that bit, since afterall why go to another page when the awards are all right there, but for now...
Just for reference, I don't mean to sound like I'm repeating myself.
Here is a link (http://emptysacdesigns.com/sciforum/index.php?topic=12.msg22#msg22) to the only person with any trophies, thewife, currently has two but as you can see from the signature area, only one is displayed, clicking on the awards image takes you to the badge page where two are owned.
Ill write something for ya when I get on my pc.
Quote from: JayBachatero on January 05, 2007, 12:40:40 AM
Ill write something for ya when I get on my pc.
Could you write something so where it shows it in posts?
Huh???
Hi... nice mod and just what I needed! One question though ( I saw someone mentioned it earlier) Will it be possible to 'bypass' the 'Upload' file function in the 'Add Award' section? After you've entered the Award Name and Game Name > Submit > It forced you to upload a file! If we can pass this function won't it be possible to use the same file (award image) for different users each week? - In other words it'll leave the option to you if you want to upload a file / image or not!
At this point i have to upload the same image every time which causes a duplication of the same image? Thanks in advance!
Quote from: sanax on January 05, 2007, 02:06:03 AM
Hi... nice mod and just what I needed! One question though ( I saw someone mentioned it earlier) Will it be possible to 'bypass' the 'Upload' file function in the 'Add Award' section? After you've entered the Award Name and Game Name > Submit > It forced you to upload a file! If we can pass this function won't it be possible to use the same file (award image) for different users each week? - In other words it'll leave the option to you if you want to upload a file / image or not!
At this point i have to upload the same image every time which causes a duplication of the same image? Thanks in advance!
You could upload a dummy image and then just delete the dummy image for your directory and go to the database and replace the reference to the dummy image with the image u do wanna use. That should work i think.
Thanks littleone... that's a mouthful!! lol
I'll try it and report back!
Quote from: JayBachatero on January 05, 2007, 12:40:40 AM
Ill write something for ya when I get on my pc.
I now admit defeat. I spent twelve hours yesterday staring at and changing those two small groups of code. the closest I came was when I got the word array to show up instead of the trophies, At the end of the day, all I actually accomplished was turning the single trophy into a link to the badge page. I'm glad I posted all of that code a page back, it's where I went to get everything working right again.
I was wondering how the idea factory was running over there Jay, mine shut down.
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")", __FILE__, __LINE__);
$context['awards'] = array();
$context['awards'][$row['ID_MEMBER']] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']][] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// 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 />';
}
I didn't test this out so not sure if it's going to fully work. It should work though.
8)
I stuck the code in, and I got scared for a moment when only one award showed up. Then I removed the GROUP BY pam.ID_MEMBER from the sql statement and hit refresh and there they were all lined up. Thanks a bunch Jay.
I love this MOD,very good work.Will you keep update it in the future (for 1.1.1 and next versions)?.
Yes I will continue to support this mod for a long time. This is one of the best mods that I've written so far ;).
I got it to work so that the awards show up in the signature section with a link to the awards page but I still have a slight problem and that is I can't use the same image over and over.
If we can get that to work I think it'll be great for this mod!
what do you mean you cant get the same image to work over and over?
You can upload the same image to the Member Awards as many times as you like!
If you are referring to give the same member the same award over and over...it was deliberately designed that way. you could always just upload the same image as a new award to do it that way!
Yes, that is what I have to do right now...lol
I give out awards every week but with the same image. Like the 'Super Bowl'. I save and upload the same image - image1, image2, image3 etc.
I think it'll be nice to have the option to use one image as a default award and add others if you need them?
well, you don't need to rename it each time...the member awards automatically saves it with a random number to avoid overwriting it, and so far I have been using it rather frequently with numerous different awards.
huh? I tried it and if I assign the same image to someone else it overwrites the previous award given last week because I keep all the awards in a 'Hall of Fame' and the members store their awards in their profile. As I have it right now the members have a 'trophy room' which shows the same award but with different dates.
ok, i see what you are talking about...you meant you just change the image for the existing award
That's right. At the moment I have 2 awards which are given to different members weekly but the image stays the same and I can't do it without uploading the same image over again
I think that'll be a nice feature/option to have
LOL, possibly, but the whole idea behind the Member Award was to have numerous different awards for everything
Other wise Ithink there were other mods that did closer to what you want
Nope, this mod takes the cake Dragon! lol
Well, I hope they won't give the teams a different 'Super Bowl' every year!! ;)... or change the Oscars award every time? Makes sense doesn't it?
I looked in my themes directory and I don't seem to have a display.php file and I'm running Powered by SMF 1.1.1
how can I do the mod to the file if I don't have it.
Thanks
PS Great Mod.
Quote from: JayBachatero on January 08, 2007, 04:13:17 PM
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
est this out so not sure if it's going to fully work. It should work though.
Find it in the 'Source' directory :)
Quote from: sanax on January 11, 2007, 04:24:34 PM
Nope, this mod takes the cake Dragon! lol
Well, I hope they won't give the teams a different 'Super Bowl' every year!! ;)... or change the Oscars award every time? Makes sense doesn't it?
True, but for the scope of this particular mod it was written specifically to work this way...someone paid to have it written for them, and then decided to share it with all of us.
Id made the previous suggestion of going into the database and manually changing the refering link to the same award. Just upload a dummy image and then go into the database and point it to the one you want. Then you can go in through your filemanager and remove the dummy image. This might be your best hope right now.
Thanks, I appreciate sharing this mod! I'm working on it littleone... thanks! :)
Go into the awards_members table and run this query
ALTER TABLE smf_awards_members
DROP INDEX ID_AWARD_MEMBER
In ManageAwards.php
// Inset the data
db_query("
INSERT IGNORE INTO {$db_prefix}awards_members
(ID_AWARD_MEMBER, ID_AWARD, ID_MEMBER, dateReceived)
VALUES " . substr($values, 0, -1), __FILE__, __LINE__);
// Inset the data
db_query("
INSERT INTO {$db_prefix}awards_members
(ID_AWARD_MEMBER, ID_AWARD, ID_MEMBER, dateReceived)
VALUES " . substr($values, 0, -1), __FILE__, __LINE__);
Are this changes for me to make, Jay?
Oh yes. Sorry that I was brief. It's to remove the unique badge stuff. Haven't tested it but it should work.
Ok.. I did the changes in the meantime but I'm not sure exactly what you had in mind although I tried to use one image for different members it didn't let me :(
Maybe you had another way to do it?
Did you run the query?
Jay, ok I think I know how to do it now with the new changes... you just have to upload the same image again! Then it seems to work just fine! I'll test it a few times and let you know! :)
Thank you Jay! I don't have to save the images seperately anymore! A great help! Great MOD - thanks!
Quote from: JayBachatero on October 01, 2006, 01:26:33 PM
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
I didn't test this out so not sure if it's going to fully work. It should work though.
Hi Jay - thanks for the great mod - Ive followed your instructions and edited my Sources/Display.php files and default/display.template.php files as above. However I see no change whatsoever. No badges or awards are presented under posts (Signature area). I am using another theme other than default. Is there something more I should do? Also I am using TinyPortal.
Check to see if your custom theme has a custom Display.template.php.
It does not. Further, adding a copy of the modified display template does nothing ...
See post example with modified pages: http://black-chapter.com/forums/index.php?topic=2148.msg20791#msg20791
Attached are the files I am using (modded)
Try using the default theme and check if you can see it.
http://black-chapter.com/forums/index.php?topic=2148.msg20791;theme=1
I'm using the default theme and I don't see the image beside the users name.
Quote from: JayBachatero on January 16, 2007, 09:31:43 PM
Try using the default theme and check if you can see it.
http://black-chapter.com/forums/index.php?topic=2148.msg20791;theme=1
Tried that too per your previous posts and no change
I installed this mod in smf 1.1 rc3 and get this error in the admin section of the mod
Database Error
Unknown column 'awardName' in 'field list'
File: /home/xyz/public_html/Sources/ManageAwards.php
Line: 193
Hi!
I was wondering whether anyone could help... I have 1.1.1 of the forum and had tried to install this mod again. It didn't show any errors so I proceeded. But now I get the follwing text as an error at the top of my page:
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
I uninstalled the mod but this stays. Any advice or help please? MUCH appreciated!
Thanks - hldrforum.com to see the problem.
Hello Jay, your Mod is awesome!
But i have two important questions! How do i make your mod work on german SMF language file and on PnPn custom theme?
I would be very grateful for fast support. :)
Quote from: Stigmartyr on January 16, 2007, 02:34:18 PM
Quote from: JayBachatero on October 01, 2006, 01:26:33 PM
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">', $context['awards'][$message['member']['id']], '</div><br />';
I didn't test this out so not sure if it's going to fully work. It should work though.
Hi Jay - thanks for the great mod - Ive followed your instructions and edited my Sources/Display.php files and default/display.template.php files as above. However I see no change whatsoever. No badges or awards are presented under posts (Signature area). I am using another theme other than default. Is there something more I should do? Also I am using TinyPortal.
I modified these files and it works great.
But one thing, in users posts, there is no number of awards data listed.. anyone know the code to fix this?
http://www.simplemachines.org/community/index.php?topic=114701.msg790701#msg790701
the code for that was posted in that reply
Quote from: TechnoDragon on January 20, 2007, 10:59:37 AM
http://www.simplemachines.org/community/index.php?topic=114701.msg790701#msg790701
the code for that was posted in that reply
Yep.. tried that.. Nothign happens.. Updated the load and display files..
// Show number of awards
echo '
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">Total Awards</a>: ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
Try that instead
Quote from: TechnoDragon on January 20, 2007, 11:03:07 AM
// Show number of awards
echo '
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">Total Awards</a>: ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
Try that instead
That worked!! You are the man!!!
The problem was in the original code i posted I used a $txt string (modified the language template) so it was translation compatible...that is why it wasn't showing up at first...
just look for the code referring to the avatar and place it right below that
Thanks again man..
As for anyone that wants to move that to below their avatar and above their actual reward, just move that script before the show avatar one right below it.
Anytime!
I love to help when i can!
Quote from: nipun_jain on January 17, 2007, 06:05:20 AM
I installed this mod in smf 1.1 rc3 and get this error in the admin section of the mod
Database Error
Unknown column 'awardName' in 'field list'
File: /home/xyz/public_html/Sources/ManageAwards.php
Line: 193
Make sure that the database got created correctly.
Quote from: Threepwud on January 17, 2007, 09:26:12 PM
Hi!
I was wondering whether anyone could help... I have 1.1.1 of the forum and had tried to install this mod again. It didn't show any errors so I proceeded. But now I get the follwing text as an error at the top of my page:
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
I uninstalled the mod but this stays. Any advice or help please? MUCH appreciated!
Thanks - hldrforum.com to see the problem.
Open Modifications.english.php. Move the language strings that are after the ?> before the ?>
Quote from: iMóH.1 on January 18, 2007, 07:19:43 AM
Hello Jay, your Mod is awesome!
But i have two important questions! How do i make your mod work on german SMF language file and on PnPn custom theme?
I would be very grateful for fast support. :)
You would need to translate the mod to German.
Still not able to get the awards mod to work on my site and pull in ALL assigned awards into the signature area (after post).
I am going to have to remove this mod and consider another option if no solution is forthcoming. Jay, can you help me to get this working please?
I put the code posted in my display.php & my Display.template.php and I don't see the rewards listed under the avatar. Am I missing something?
I can't get it to work either... followed the directions carefully, but no awards below the avatar ^^' Please, some help here, this mod is great and with that "hack" it'll be perfect!
Cya!
[edit] Finally I got it work ^^ I don't remember exactly what I did but... I think that is related to custom themes... If you have a custom theme in use, you have to apply the "hack" to both default and your custom theme. At least that is what I think that has done.
Another thing... I want the award image to have a title that displays the title of the award. Currently I've set the code like this:
/ Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")", __FILE__, __LINE__);
$context['awards'] = array();
$context['awards'][$row['ID_MEMBER']] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']][] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" title="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
Just added title="' . $row['filename'] . '" to the end of the <img /> line. But that only displays the filename as the title. Is it possible to display the title of the Award? I mean, what $row do I have to use?
- [edit2] -
I figured out how to do it ^^ This is the final code:
/ Load the members awards
$awards_request = db_query("
SELECT pab.filename, pab.awardName, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")", __FILE__, __LINE__);
$context['awards'] = array();
$context['awards'][$row['ID_MEMBER']] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']][] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" title="' . $row['awardName'] . '" />';
mysql_free_result($awards_request);
I just changed the SELECT query (adding pab.awardName) and the $row to use with the title is '" title="' . $row['awardName'] . '"
Don't know really if this is optimized and those things... I have almost no idea about PHP/MySQL, just looked the code and thought how it'd be using the logic and common sense ;) So, if it's any modification that it should be done, please tell me ^^
Cya!
Quote from: TechnoDragon on January 20, 2007, 11:07:49 AM
The problem was in the original code i posted I used a $txt string (modified the language template) so it was translation compatible...that is why it wasn't showing up at first...
is there any chance for the award .gif/.jpg to appear under the post? i get "number of award - 1"
Is it possible to create an award for people who post a certain number of times on a particular board in a forum?
Like a reward for posting where we want them to post ie on topic areas as opposed to just overall # of posts.
Stigmartyr and computel: You still haven't gotten the awards to show?
Quote from: sportographer on January 23, 2007, 07:14:48 AM
Quote from: TechnoDragon on January 20, 2007, 11:07:49 AM
The problem was in the original code i posted I used a $txt string (modified the language template) so it was translation compatible...that is why it wasn't showing up at first...
is there any chance for the award .gif/.jpg to appear under the post? i get "number of award - 1"
I believe I posted this in the first few pages. Look at the first few pages.
Quote from: perplexed on January 23, 2007, 03:57:04 PM
Is it possible to create an award for people who post a certain number of times on a particular board in a forum?
Like a reward for posting where we want them to post ie on topic areas as opposed to just overall # of posts.
No, it's not possible to do this.
thanks Jay, I think what I need is a cross between this mod and the MVP mod lol
I still can't get it to show as a I made the changes to the two files but I don't see the reward under the avatar.
Thanks
Quote from: JayBachatero on January 23, 2007, 05:08:30 PM
Stigmartyr and computel: You still haven't gotten the awards to show?
Are you using a custom theme?
No it is the default theme
Can you post your Display.php and Display.template.php files?
also attached both files
Display.php
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
// end of awards mod
Display.template.php
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
echo '
<div style="overflow: auto; width: 100%;">';
// end of show the fav award mod
That explains that. You have an opening div tag but nothing else. Seems like a copy paste issue.
how do I fix it?
Thanks
Look at http://www.simplemachines.org/community/index.php?topic=114701.msg749906#msg749906.
hey jay, just need a little help with the link you gave me (http://www.simplemachines.org/community/index.php?topic=114701.msg749906#msg749906.)
where is display.php located? i've added in the display.template.php code in but can't find display.php using black22TP theme
ah got it to work, you lil beauty jay! awesome mod!!
any chance of having ALL awards displayed underneath? not just the fav
OK got it working but it doesn't say the award what it is. how do I get this to show?
Thanks
sportographer I posted how to do this a few pages back. Can't link you since I'm on my cell.
computel someone posted hw to do this a few pages back.
thanks jay, i couldn't find it but ill keep seraching/wait til you get back
keep up the AMAZING work
http://www.simplemachines.org/community/index.php?topic=114701.msg898301#msg898301
im tring to install it on this new theme, i added everything to manage english and every thign even display.php and i keep getitng this
An Error Has Occurred!
Unable to load the 'awards' template.
any idea?
//edited
okay i deleted the profile thing and it works, but nay way to add it to the profile thing of this theme?
Hi there,
I installed this mod and love the idea of it. One of my Global Mod's has even uploaded award images and assigned them to some of my forum members. However there are a couple issues:
1. There's no link in the Admin Panel to access the Awards mod. I had to remove and reinstall to get the initial "install success....click here to add an award" message/link so that I could post it for my Global Mods to access it.
2. I am now unable to modify Member Groups. At all. Here's the error I get:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi78.photobucket.com%2Falbums%2Fj113%2FJenHud%2Fscreenshots%2FDBerror-1.jpg&hash=c3169e12a9936fb2a8b034ea2750ea5da0e72e80)
I can't figure out what to do with this information. I can't find anything to help me figure this out in the database or the file mentioned.
This is cool mod, I've added it, but I was wondering if I can download already made awards?
If you can download already made awards? Can you please explain.
I'm sorry I wasn't more clear. basically is here anywhere they has pre-made awards? Or do I have to make my own?
Well you have to make your own. I believe someone posted a few award images a few pages back.
I Know this was something that was touched on a ways back...but is there any easy way to add a category feature to the admin panel for the awards?
i had a prob with mem awards so i uninstalled and reinstalled, now i get this
Fatal error: Cannot redeclare awards() (previously declared in /home/dragox/public_html/Sources/Profile.php:2937) in /home/dragox/public_html/Sources/Profile.php on line 3437
and if i upload another profile php i get a load erro?
The functions got added twice to Profile.php. Delete the duplicate function.
when not signed in ppl caned view who got the award. when they click it they get
An Error Has Occurred!
The user whose profile you are trying to view does not exist.
You mean that guests can view other's people awards even though they are not allowed to?
I would like to feature the award winners on a page by itself. meaning, you can click on "awards" in the main menu, and members are able to see who got an award for the month. is this possible?
Just wanted to jump in really quick to say that this mod is fantastic. It excels at what it aims to do and exceeded my needs. I also modified the code to display the award count above member's avatars beside all posts, as per the code listed earlier and with the exception of one hiccup, it worked flawlessly :D
Thanks so much for releasing this mod. It's one of the most exciting I've installed yet and my members love it!
TapeWurm
Fantastic mod, no problems with the installation or with the running of it, well done matey :D
Quote from: mohoganybrwn on February 03, 2007, 06:07:53 PM
I would like to feature the award winners on a page by itself. meaning, you can click on "awards" in the main menu, and members are able to see who got an award for the month. is this possible?
Two ways you can simply do that:
1) You can click on the award in anyones album and it will show whoever has that badge
2) You can do a right click on an image, hit copy, and paste it into an html page and upload it. When someone clicks the image of the award it will take you to the same page that #1 does, showing all the winners. If you want it on ur menu bar, use the Custom Actions mod (i beleive it was done by winrules) and you can add ur html there. All you will need to do it go to your menu bar and add in the custom action to it.
hello
it says in the mod screen that you need to have admin mod menu mod installed to use this, but that mod is RC3 and hasnt been updated for months. I can't upload it which means I can't have this :(
No you don't have to have that mod. It will work without it.
thank you, I will check it out again :)
Hi.
I have searched for an answer and even tried to mess with the code.
I have managed to get this to work with the "Amber" theme but for all my trying I cannot get the "award.gif"to show under the members names.
Is this something that has to be modified before it is installed?
I see no way to get it to show and would appreciate a pointer or two.
Many thanks
Quote from: ladyshanae on November 26, 2006, 08:34:07 AM
Running SMF 1.1 RC3 with Global Announcements & the Admin Modification Menu installed, among a slew of other mods.
Now, I love this mod. But I am having one hopefully minor problem. Each time I upload a new award, I get the following error in my database:
Quotemysiteinfo/index.php?action=awards;sa=modify
8: Undefined index: awardsDir
File: mysiteinfo/Sources/ManageAwards.php
Line: 378
Line 378 looks like this:
if (!is_writable($boarddir . '/' . $modSettings['awardsDir']))
I checked my awards directory and made sure it was chmod 777 (it was 755, but I changed it to 777 and still got the error).
So - I don't know what to do. It's not a HUGE deal - the mod still works. I just don't like my error log flooding all the time, ya know?
Awesome mod, though - really going to work well on my forum!
Quote from: JayBachatero on November 28, 2006, 08:15:52 AM
I'm going to give you a modified file for testing. It should help debug the problem.
Quote from: JayBachatero on November 29, 2006, 01:23:26 PM
ladyshanae use this file. It will print out the $_POST data and use it for debug.
hello
I installed this mod today successfully but I am getting this error too. After the above quoted posts there is nothing else in the thread.
Can you please tell me how to fix this error?
I'm using 1.1.2
~thanks
You mean the error when trying to assign an award?
yes, I'm getting it too
Hi Jay i installed the module what do i need to do now? How about the read note i don't get it.
For those of you that have the awards mod installed and working correctly, I have added category support for it!
You can download the most recent zip file from here (http://dragontalk.net/index.php?action=tpmod;dl=item82) but here it is for all of those that want it now!
You must replace the files in the zip file with the corresponding ones on your server and run the included SQL file to add a new table and a new field to the smf_awards table.
Quote from: perplexed on February 18, 2007, 07:13:53 AM
yes, I'm getting it too
I'm going to try and look into this this week, but converters are my main priority at the moment so lets see how this goes.
Quote from: Simpatico on February 18, 2007, 10:54:38 AM
Hi Jay i installed the module what do i need to do now? How about the read note i don't get it.
You need to add and assign your awards.
Quote from: TechnoDragon on February 18, 2007, 09:02:31 PM
For those of you that have the awards mod installed and working correctly, I have added category support for it!
You can download the most recent zip file from here (http://dragontalk.net/index.php?action=tpmod;dl=item82) but here it is for all of those that want it now!
You must replace the files in the zip file with the corresponding ones on your server and run the included SQL file to add a new table and a new field to the smf_awards table.
TechnoDragon thanks for adding this to the mod. I like the idea. What I was thinking was rewritting this section though so that it follows more the SMF style and my style. I'll give you credit for it though. I just prefer to write everything that way I know the code better.
Also after talking with LittleOne he wants a submission page so that people can request awards. If you guys want I can make this a default feature as well for the public version of the mod. Will anyone of you use it? Don't want to spend time working on something that others wont use.
Quote from: JayBachatero on February 19, 2007, 01:19:59 AM
Quote from: perplexed on February 18, 2007, 07:13:53 AM
yes, I'm getting it too
I'm going to try and look into this this week, but converters are my main priority at the moment so lets see how this goes.
Also after talking with LittleOne he wants a submission page so that people can request awards. If you guys want I can make this a default feature as well for the public version of the mod. Will anyone of you use it? Don't want to spend time working on something that others wont use.
re my error.
I suppose its not a big deal if it only happens when you add a new award, as I wont be doing that all the time
re submission page
I probably wouldn't use it, as I have a request thread on the board instead.
Understandable Jay (I am the same way!) thanks for giving me credit and at least it is most of the way there!
Quote from: perplexed on February 19, 2007, 08:26:17 AM
Quote from: JayBachatero on February 19, 2007, 01:19:59 AM
Quote from: perplexed on February 18, 2007, 07:13:53 AM
yes, I'm getting it too
I'm going to try and look into this this week, but converters are my main priority at the moment so lets see how this goes.
Also after talking with LittleOne he wants a submission page so that people can request awards. If you guys want I can make this a default feature as well for the public version of the mod. Will anyone of you use it? Don't want to spend time working on something that others wont use.
re my error.
I suppose its not a big deal if it only happens when you add a new award, as I wont be doing that all the time
re submission page
I probably wouldn't use it, as I have a request thread on the board instead.
It should still be fixed though. I'll see what I can do about it.
Quote from: Sic0 on February 17, 2007, 02:14:23 PM
Hi.
I have searched for an answer and even tried to mess with the code.
I have managed to get this to work with the "Amber" theme but for all my trying I cannot get the "award.gif"to show under the members names.
Is this something that has to be modified before it is installed?
I see no way to get it to show and would appreciate a pointer or two.
Many thanks
Any ideas?
did u upload the image to the themedirectory/images folder? If you left the image in default its not gonna find it since it will be looking for it in your themes directory.
im new to this and i cant mod anything yet but i wont to use this mod for my site and but the awards in the sig part im using smf 1.1.2 and the helios theme could some one help me please. thanks in advance
i would like more then one award to show this for my socom site
Okay.. I had not edited my display templates to include the relevant code.
All fixed now and thank you Jay for this mod.
Hi,
I was pointed to this mod by vbgamer45, regarding an awards system I wanted to implement on my forums.
I saw on a different board a medals system that also works a sort of warning/punishment system for a forum user. If you go here (http://forum.forumer.com/showthread.php?t=40562), and scroll down to the sixth post, you can see a user has a whole bunch of icons under his name. If you put your mouse over the icons, it shows the description as to why he got each one.
I would like to know if it would be possible to make a similar system with this mod, and if I can use multiple small icons like in the example above. If so, is this module hard to install using a custom template?
Thanks in advance
You mean the title that comes out when you hover it? It should be pretty simple to do.
that looks interesting because its not like a tooltip description for each icon as I thought, its a message that someone has typed when giving the award. That might be fun
You can just use the alt tag in the image and show the message.
Dude could you please help me install this mod?!
I got an error:
8. Execute Modification ./Themes/default/Profile.template.php Test failed
I have SMF 1.1.2
Quote from: Metal_GunBlade on March 05, 2007, 02:49:16 AM
Dude could you please help me install this mod?!
I got an error:
8. Execute Modification ./Themes/default/Profile.template.php Test failed
I have SMF 1.1.2
Just find that file and make the edit manually.
Yep. I got the same error.
8. Execute Modification ./Themes/default/Profile.template.php Test failed
I'm looking to be able to add a link to the awards mod to show which awards i have installed into my forum board.
Is there anyway to get a page to display them?
you can view some of the awards i have on my board at this URL http://artificialintelligence.the-aria.net/board/index.php?action=profile;sa=awards;u=2
But i want to be able to display them all in there own little page to members are able to apply for these medals or just read what they are for.
Anyone?
Well, without doing a lot of coding, you could just create a topic on your forum with all of the awards in it...
Quote from: TechnoDragon on March 10, 2007, 07:33:28 PM
Well, without doing a lot of coding, you could just create a topic on your forum with all of the awards in it...
I wanted to create a page on my joomla website to link to the awards.
Does Joomla have "articles"? if so, you could create an article that displayed all of the images...
Quote from: TechnoDragon on March 11, 2007, 07:36:42 PM
Does Joomla have "articles"? if so, you could create an article that displayed all of the images...
I dont believe it does.
Quote from: CaNe on March 12, 2007, 01:33:05 AM
Quote from: TechnoDragon on March 11, 2007, 07:36:42 PM
Does Joomla have "articles"? if so, you could create an article that displayed all of the images...
I dont believe it does.
it has the same function, just a different name, so yes you could do it :)
------------------------------------------------------------------------------
Jay, I have a question
I have some awards that we give out to members monthly - is it possible to give someone the same award more than once?
eg we have a member of the month award, which members can win more than once. Normally we have a group with a badge for this and it's displayed on their posts, but I would also like to use the member awards to keep a record of this in their profiles. I tried to award a test award to a member for a second time but even though it let me save it, it doesnt show in their profile twice.
did I do something wrong or does it not work that way?
~thanks
Right now that is the way it works, in order to award the same award each month you would have to upload the same image each month
Quote from: perplexed on March 15, 2007, 08:42:30 AM
Quote from: CaNe on March 12, 2007, 01:33:05 AM
Quote from: TechnoDragon on March 11, 2007, 07:36:42 PM
Does Joomla have "articles"? if so, you could create an article that displayed all of the images...
I dont believe it does.
it has the same function, just a different name, so yes you could do it :)
------------------------------------------------------------------------------
Jay, I have a question
I have some awards that we give out to members monthly - is it possible to give someone the same award more than once?
eg we have a member of the month award, which members can win more than once. Normally we have a group with a badge for this and it's displayed on their posts, but I would also like to use the member awards to keep a record of this in their profiles. I tried to award a test award to a member for a second time but even though it let me save it, it doesnt show in their profile twice.
did I do something wrong or does it not work that way?
~thanks
Somewhere in this thread Jay posted what code you need to modifiy to allow the same award to be awarded multiple times to the same member. Sorry I don't recall exactly where but it is somewhere in this thread.
hey jay i saw ur explanation for this error:
Quote
Database Error
Unknown column 'awardName' in 'field list'
File: /home/bradriem/public_html/forums/Sources/ManageAwards.php
Line: 322
but i dont understand what i need to look for, can you help?
Hi, I am having BIG problems trying to install this mod, I have read most of the way through this thread without much luck, I am running 1.1.2, I can install the mod OK, the installer reports everything OK, when I click on the link in the info box just after installation where it tells you what tables have been created I just go to home page, there is no menu in admin for awards, there is no folder /awards and no changes to Themes/default/ folder although awards.gif is created in themes/default/images. I have chmodded every file and every folder to 755 and then to 777 and then back to 755 ,I have uninstalled mod and I get a report that all the tests have failed but they all passed on installation. One time I got an awards folder created in the root section of my server right next to htdocs when my smf is 2 levels above that. I deleted that and it hasn't happened again. I have no other mods installed. Another bit of info that may be relevant is that I ported over from another server, installing a fresh copy of 1.1.2 and then uploading all the data from the old smf 1.1.1, I have linked with coppermine on the same database and every thing is working well.
Okay now, I erased everything and started all over again and again and again and again
Are you using a custom theme? If you are using a custom theme you will need to manually install the mod to your Theme's files. The Default theme is the SMF default theme and not the theme you are using for everyone on the forum.
I went to install this mod and this is the error that I got...
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Profile.php Test successful
3. Execute Modification ./Sources/Who.php Test successful
4. Execute Modification ./Sources/Admin.php Test failed
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
12. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/images/award.gif
17. Create Tree ./awards
18. Execute Code install.php
Quote from: KreedGhost on March 19, 2007, 06:33:07 PM
I went to install this mod and this is the error that I got...
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Profile.php Test successful
3. Execute Modification ./Sources/Who.php Test successful
4. Execute Modification ./Sources/Admin.php Test failed
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
12. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/images/award.gif
17. Create Tree ./awards
18. Execute Code install.php
It probably failed because you have another mod so just make the modification that failed manually.
That is another problem, I am not to PHP swavvy, so I don't know what to change manually or what to even look for.....Does anyone know what to look for to fix?
just use the xml file in the package to see what changes need to be made for that file...it should have a before, after, replace then the code that needs to go in there
Like Techno said, in the .xml file you will need to find <file code that refers to the Sources/Admin.php and then it will say, like techno said it will say before, after or replace and give you some code. Search for that code in the Admin.php file. Back in the .xml file it will have a new set of code. If it says Before, then you will add the new code from the .xml file BEFORE the code you found in Admin.php. If it says after then add the new code AFTER the code you searched for, and if it says replace then replace the code you searched for with the new code.
Quote from: TechnoDragon on March 15, 2007, 09:14:37 AM
Right now that is the way it works, in order to award the same award each month you would have to upload the same image each month
thanks technodragon!
I keep getting these errors back n forth in my error log:
8: Undefined index: pa_mods
File: /home/decisive/public_html/daspot/Sources/Subs.php
Line: 2828
8: Undefined index: awards
File: /home/decisive/public_html/daspot/Sources/Subs.php
Line: 2830
WAT TO DO!!
Quote from: robotman321 on March 16, 2007, 04:32:11 PM
hey jay i saw ur explanation for this error:
Quote
Database Error
Unknown column 'awardName' in 'field list'
File: /home/bradriem/public_html/forums/Sources/ManageAwards.php
Line: 322
but i dont understand what i need to look for, can you help?
same error for me too:
Database Error : Unknown column 'awardName' in 'field list'
File: /home2/crazyzonews/www/Sources/ManageAwards.php
Linea: 193
some solution please?
Quote from: perplexed on March 15, 2007, 08:42:30 AM
Quote from: CaNe on March 12, 2007, 01:33:05 AM
Quote from: TechnoDragon on March 11, 2007, 07:36:42 PM
Does Joomla have "articles"? if so, you could create an article that displayed all of the images...
I dont believe it does.
it has the same function, just a different name, so yes you could do it :)
------------------------------------------------------------------------------
Jay, I have a question
I have some awards that we give out to members monthly - is it possible to give someone the same award more than once?
eg we have a member of the month award, which members can win more than once. Normally we have a group with a badge for this and it's displayed on their posts, but I would also like to use the member awards to keep a record of this in their profiles. I tried to award a test award to a member for a second time but even though it let me save it, it doesnt show in their profile twice.
did I do something wrong or does it not work that way?
~thanks
http://www.simplemachines.org/community/index.php?topic=114701.msg904519#msg904519
Quote from: robotman321 on March 16, 2007, 04:32:11 PM
hey jay i saw ur explanation for this error:
Quote
Database Error
Unknown column 'awardName' in 'field list'
File: /home/bradriem/public_html/forums/Sources/ManageAwards.php
Line: 322
but i dont understand what i need to look for, can you help?
Is this a fresh install? Seems like that column is missing from the database.
Quote from: Punter on March 19, 2007, 07:31:05 AM
Okay now, I erased everything and started all over again and again and again and again
Check the permissions for the files. Are you able to install other mods?
Quote from: JSizzal on March 24, 2007, 02:46:49 PM
I keep getting these errors back n forth in my error log:
8: Undefined index: pa_mods
File: /home/decisive/public_html/daspot/Sources/Subs.php
Line: 2828
8: Undefined index: awards
File: /home/decisive/public_html/daspot/Sources/Subs.php
Line: 2830
WAT TO DO!!
You have missing language strings. Check /Themes/default/languages/Modifications.english.php and see if you have those two language strings.
@edi67 - is this a fresh install?
yes fresh installa, new installation the first time.
what i can try to do ? delete Table in DB and reinstall again ?
everything after mod installation seems work good but when i try to aDD new awards i had that error and nothing appear only error line
I keep getting this error
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
Quote from: JayBachatero on January 08, 2007, 04:13:17 PM
Ok in Display.php find
mysql_free_result($request);
$posters = array_unique($posters);
Add after
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")", __FILE__, __LINE__);
$context['awards'] = array();
$context['awards'][$row['ID_MEMBER']] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']][] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
In Display.template.php find
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
Add after
// 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 />';
}
Hi can you pls tell me how to put award below sigs cause this one doesnt work, thanks..
this may sounds stupid but how do i give someone an award after winning a contest or something
like this: http://www.ampprod.com/forum/index.php?topic=6008.0
^ nvm, i figured it out lol
Every time I go into my profile, I get this error:
Quote
Fatal error: Cannot redeclare awards() (previously declared in /home/troubleb/public_html/dollcon/Sources/Profile.php:2893) in /home/troubleb/public_html/dollcon/Sources/Profile.php on line 3052
I've heard it's because I installed it multiple times, when reading through this topic. My only problem: it's no longer installed. In fact, I completely removed it from my list of packages. And yet, the Awards mod is still there (in the Admin panel), and I still can't access any profiles on the entire site.
Anyone have any idea how to fix this?
When I install it I get this text at the top of every page:
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
and all the text gets bigger
The only problem I am having with this mod is the fact that I have changed the file to ManageAwards.englis-utf8.php like I have had to do with alot of mods for them to work, but I still don't have any admin buttons inthe admin area to upload and asign awards to members. Also in the members profile there is not link where is should say "show awards"
Hi,
I love - LOVE - this mod. I browsed thru the 28 pages, but I may have missed an answer to this so I apologize if that's the case.
I want a LINK to a members awards to show up in their posts, like below their member name somewhere. Any idea on how to do that? I don't need a graphic, or show their favorite award or anything, I just want people to be able to bypass going to the users profile first, THEN clicking Awards, I want to be able to do that directly from the post. Thanks!
UPDATE: I figured it out. In the Display.template.php file I placed this code in my show_profile_buttons section:
// Awards
echo '
<a href="', $scripturl, '?action=profile;sa=awards;uid=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt[999] . '" title="' . $txt[999] . '" border="0" />' : $txt[999]), '</a>';
Then I put the awards.gif icon in the right spot. Viola. Thanks.
Quote from: GPGrieco on April 04, 2007, 07:40:31 PM
When I install it I get this text at the top of every page:
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
and all the text gets bigger
I fixed that. It's in the Modifications.English file in the Languages folder. You'll notice that it will come up after the php> You need to cut it and paste it inside and before the php> that's how I fixed it.
Quote from: NFM on April 06, 2007, 09:01:10 PM
I fixed that. It's in the Modifications.English file in the Languages folder. You'll notice that it will come up after the php> You need to cut it and paste it inside and before the php> that's how I fixed it.
That's an mismatch in the build of the install.xml file the mod creator did a wrong position add coz xml format is way different than the install.mod file in a mod file it will be <add before> in the xml file it has to be like this for example
<Search position="after">serachcode</search>
<add><![CDATA[// code added........]></add>
Hey all,
i wanted a reward system for my site. So i found this mod, http://custom.simplemachines.org/mods/index.php?mod=475. I went to install it but got all these errors:
Code:
Awards Database Changes
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 16
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 16
* Error: Adding {$db_prefix}awards_members table failed.
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 39
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 39
* Error: Adding {$db_prefix}awards_badges table failed.
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 59
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 59
* Error: The installer was unable to add some settings for the mod. To enable go to Admin > Pogo Awards > Settings and enter the desires info.
* The Member Awards mod was successfully installed. Click here to add an award.
Any help?
Thanks
Quote from: Monniemoo on April 04, 2007, 04:49:23 PM
Every time I go into my profile, I get this error:
Quote
Fatal error: Cannot redeclare awards() (previously declared in /home/troubleb/public_html/dollcon/Sources/Profile.php:2893) in /home/troubleb/public_html/dollcon/Sources/Profile.php on line 3052
I've heard it's because I installed it multiple times, when reading through this topic. My only problem: it's no longer installed. In fact, I completely removed it from my list of packages. And yet, the Awards mod is still there (in the Admin panel), and I still can't access any profiles on the entire site.
Anyone have any idea how to fix this?
Can someone please help me with this problem? I really can't work on my forum too much more until I'm able to look at profiles again...
Quote from: Monniemoo on April 12, 2007, 05:51:25 PM
Quote from: Monniemoo on April 04, 2007, 04:49:23 PM
Every time I go into my profile, I get this error:
Quote
Fatal error: Cannot redeclare awards() (previously declared in /home/troubleb/public_html/dollcon/Sources/Profile.php:2893) in /home/troubleb/public_html/dollcon/Sources/Profile.php on line 3052
I've heard it's because I installed it multiple times, when reading through this topic. My only problem: it's no longer installed. In fact, I completely removed it from my list of packages. And yet, the Awards mod is still there (in the Admin panel), and I still can't access any profiles on the entire site.
Anyone have any idea how to fix this?
Can someone please help me with this problem? I really can't work on my forum too much more until I'm able to look at profiles again...
You need to go into those 2 files and find where the code is duplicated and remove it. You must have had the mod on ur forum before and it didnt uninstall right, or it was interrupted during install. In any event its trying to "redeclare" meaning its on there twice. Find it, remove the duplicate code, and you should be fine.
Quote from: bigggnick on April 12, 2007, 03:59:52 PM
Hey all,
i wanted a reward system for my site. So i found this mod, http://custom.simplemachines.org/mods/index.php?mod=475. I went to install it but got all these errors:
Code:
Awards Database Changes
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 16
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 16
* Error: Adding {$db_prefix}awards_members table failed.
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 39
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 39
* Error: Adding {$db_prefix}awards_badges table failed.
Warning: mysql_query() [function.mysql-query]: Access denied for user 'apache'@'localhost' (using password: NO) in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 59
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/nickgcom/domains/nickscomputing.com/public_html/forum/install.php on line 59
* Error: The installer was unable to add some settings for the mod. To enable go to Admin > Pogo Awards > Settings and enter the desires info.
* The Member Awards mod was successfully installed. Click here to add an award.
Any help?
Thanks
Im not na expert, but from what I gather as the first error indicates and as the other mention, it couldnt connect to your database. Possibly your password is wrong in your settings or it just couldnt connect when u were trying to do it. Uninstall and reinstall and see if that fixes thing for u. Otherwise you'll need to wait for Jay to respond since he is the expert ;)
i got a different award system, it works fine but thanks for the reply anyway
Sorry if this question has already been asked, but I am trying to grasp the features of this mod. I would like to know, how a normal registered user can see, which award has been given to other users? Is there a global list of this, or do a certain registered user have to walk through the member list looking into each members profil in order to see, whether this person has received an award? If there is no global list to see all awards given, then I would like to suggest that for a future update ;)
Another kind suggestion to a future update is to apply some kind of award indication to the member list, so members easily can see on the member list, if a member has received an award. ;)
You can view what awards a member has by going to their profile. If you see a reward in a members profile and want to know how many have that same award, you just click on it, and it lists all the members who have that badge.
Quote from: littleone on April 13, 2007, 01:42:09 AM
Quote from: Monniemoo on April 12, 2007, 05:51:25 PM
Quote from: Monniemoo on April 04, 2007, 04:49:23 PM
Every time I go into my profile, I get this error:
Quote
Fatal error: Cannot redeclare awards() (previously declared in /home/troubleb/public_html/dollcon/Sources/Profile.php:2893) in /home/troubleb/public_html/dollcon/Sources/Profile.php on line 3052
I've heard it's because I installed it multiple times, when reading through this topic. My only problem: it's no longer installed. In fact, I completely removed it from my list of packages. And yet, the Awards mod is still there (in the Admin panel), and I still can't access any profiles on the entire site.
Anyone have any idea how to fix this?
Can someone please help me with this problem? I really can't work on my forum too much more until I'm able to look at profiles again...
You need to go into those 2 files and find where the code is duplicated and remove it. You must have had the mod on ur forum before and it didnt uninstall right, or it was interrupted during install. In any event its trying to "redeclare" meaning its on there twice. Find it, remove the duplicate code, and you should be fine.
I did what you said, then got another error, which I fixed, but then I got yet another error which I can't figure out...
QuoteParse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/troubleb/public_html/dollcon/Sources/Profile.php on line 2908
Still in my profile. I did uninstall the mod too, and it's still there...and all this is in a piece of the code that is still there that relates to the mod.
What can I do?
OK... here is a weird one for you.
I have TP set up and the theme Red Darkness TP.
Everything loaded just fine, but when I am in the RD theme, I can't see the mod in the admin area. Same in the members area.
But when I switch over to the SMF regular theme, everything is there and running just fine.
OK, I'm a NEWB at this and have gone through pages of code (none of which I understnad) to try to figure out what I need to do.
Any suggestions would be absolutely FANTASTIC!
[email protected]http://www.werewolflive.com
hi floyd
for custom theme u have to install each mod manually, u can find some usefull stuff here
http://www.simplemachines.org/community/index.php?topic=34526.msg255715#msg255715
now for this mod, all u have to make some changes in your theme files. Those files are `index.template.php`, `Profile.template.php` & `Display.template.php`.
Q. Which codes are being replaced?
A. Unzip installation package and open `install.xml` file and make neccessary changes to your themes file (which i mention above) and thats it.
but ALWAYS MAKE BACKUP AND TEST annnnnnnnd then upload to live site.
Backup??? Yea backup of your files and db as well.
Regards,
Faisal ;)
Sorry to say this, but this mod also does not work with `smf bridge`
when ever im assigning or deleting, it takes me to home page of forum, whereas it should take it to joomla home page or integrated smf forum home page.
i like this mod and i got other language translated also (in arabic and french)
but now i find this redirection issue. which i cant apply to my two sites.
regards
faisal
Problem Fixed...
i just fix my problem but its in orginal code... please Mr. Coder fix it..
fix need in `ManageAwards.template.php` located in `default` folder of theme,
function template_assign()
original code
<form action=', $scripturl, ' ...
Fix
<form action="', $scripturl, ' ...
function template_view_assigned()
original code
<form action=', $scripturl, ' ...
Fix
<form action="', $scripturl, ' ...
starting quot in attribute `action`is missing, after putting that quot, now is pefectly redirecting.
regrads
Faisal
I've just installed this mod and I'm getting this string at top of the page ...
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
What does this mean?
Never mind. I've worked it out ...
Hi there.
I'm here to ask anyone who can code something in php to PLEASE help me adapting this awards mod to work like the medal awards from phpBB. There's a thread here (http://www.simplemachines.org/community/index.php?topic=146571.msg1049377#msg1049377) requesting the mod, but Wal-Mart has been busy for quite some time and I don't wanna bother him so much. =P
I've been checking jay's mod files and found that it's half way gone to the medal awards one, just need some adaptation:
1- allow users to recieve the same medal multiple times. It should count how many times user has recieved the medal.
2- allow admins to write a text to describe the medal when adding it in the admin section. So it would keep the "award name", "game name" and "upload award" fields, and add a new one "award description".
---- Ex. of use: "This medal is given to players who have proved exceptional value in the defense of strategic positions."
3- allow admins (or who ever has permissions to assign medals) to add a comment (reason) to the medal when assigning it to users.
---- Ex. of use: "For defending the North Bridge successfully, gloriously holding his position."
4- finally, user awards should be displayed like this in user's profile:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg95.imageshack.us%2Fimg95%2F48%2Fusermedalssj4.th.jpg&hash=6ea3e2cfd4d5f097214f191add29d7c873ee5705) (http://img95.imageshack.us/my.php?image=usermedalssj4.jpg)
Could Jay or anyone else help us on it please?
How can I make this mod show my awards under the users forum posts like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.galacticworlds.net%2Fexternal%2Fawards.jpg&hash=6bcbf1e7aea63e66de27b4df96cfc330cd90d2d8)
I like the admin functions you have created, excellent work. The mod that the image is from is another SMF Mod called "Simple Awards System Mod" located here:
http://custom.simplemachines.org/mods/index.php?mod=539
I want to use your mod because of the great admin functionality and really don't want to use the other, but I really need your mod to show my awards under users forum posts.
How can I make your mod do that or cut the coding out of the other and insert it into yours?
Any help would be greatly appreciated.
Thanks
i cannot install it because the reason is..not campatible.
i use smf 1.1.2 default theme
Quote from: Zuma on May 07, 2007, 07:08:39 AM
Hi there.
I'm here to ask anyone who can code something in php to PLEASE help me adapting this awards mod to work like the medal awards from phpBB. There's a thread here (http://www.simplemachines.org/community/index.php?topic=146571.msg1049377#msg1049377) requesting the mod, but Wal-Mart has been busy for quite some time and I don't wanna bother him so much. =P
I've been checking jay's mod files and found that it's half way gone to the medal awards one, just need some adaptation:
1- allow users to recieve the same medal multiple times. It should count how many times user has recieved the medal.
2- allow admins to write a text to describe the medal when adding it in the admin section. So it would keep the "award name", "game name" and "upload award" fields, and add a new one "award description".
---- Ex. of use: "This medal is given to players who have proved exceptional value in the defense of strategic positions."
3- allow admins (or who ever has permissions to assign medals) to add a comment (reason) to the medal when assigning it to users.
---- Ex. of use: "For defending the North Bridge successfully, gloriously holding his position."
4- finally, user awards should be displayed like this in user's profile:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg95.imageshack.us%2Fimg95%2F48%2Fusermedalssj4.th.jpg&hash=6ea3e2cfd4d5f097214f191add29d7c873ee5705) (http://img95.imageshack.us/my.php?image=usermedalssj4.jpg)
Could Jay or anyone else help us on it please?
I'm with this guy, I like the suggestions and would love it if someone was able to add these features. I also think it would be really cool to have a page that lists all the medals, description, then shows who all has that medal.
I love the mod, and it installed without errors. I'm missing the award.gif picture in the posts however. It's in the right directory, so what could be wrong ?
I'm guessing it's in the display.template :
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
// Pogo Awards
echo '
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['default_theme_url'] . '/images/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a>';
DisplayFieldPostsPictures();
}
}
excellent mod, now everything work, one question for you Jay
Is possible make this mod working for single user too ? i means will be nice if you can assign one award to one single user simply clicking in him account and assing it, without pass from the membergroups.
wait your reply thx
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up?
$maxAwards = 4;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
Hi, i just installed this mod I have SMF 1.1.2.
I got an error when installing
Execute Modification ./Themes/default/index.template.php Test failed
so I edited the file manually after installing. My problem is, is that I cant find anywhere in admin to upload or manage the awards.
Everything else seems to be there in profile, just can't find where to do anything in admin.
Thanks for any help :D
Nat
There should be a Mods category added at the bottom of the side list, and Awards should be under it.
Or use ctrl-f and search for Awards on the page
Or go to http://www.yoursite.com/index.php?action=awards
Thanks Yoda that link worked and i found it, but i still dont have awards on the admin page do you know of a way to fix this?
Thanks again for your help
Nat
Is there any way to have the picture of the user's favorite award show under his avatar whenever they post?
From my earlier post - changed $maxAwards to 1 to just show the favorite (it'll show a random badge if they don't set a favorite)
Quote from: YodaOfDarkness on June 29, 2007, 11:25:59 PM
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up? 1 for Favorite
$maxAwards = 1;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
where do I change this $maxAwards thing?
Why do I get this stuff at the top of my page when installing this mod? I'm using 1.1.2 and default theme.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg514.imageshack.us%2Fimg514%2F7480%2Funtitledew7.th.jpg&hash=d59ec718d4b14b08ef3228785e0b280a0fbbc1d3) (http://img514.imageshack.us/my.php?image=untitledew7.jpg)
Nearly all mods make some random text appear up there and I don't know why it does it or how to solve it! Any ideas?
@ Chris369
Please check your Modifications.english.php in the languages directory of your theme and look for:
?>
It should appear in the file only once and be at the very end on a line of its own...if it is there in any other place or there more than once edit accordingly.
Ok thanks, sounds promising so I'll give it a go :)
Edit: It worked, thanks a lot!
Quote from: Gararion on July 08, 2007, 04:34:23 AM
where do I change this $maxAwards thing?
There's a line of code near the top of the big block of code in my message
// How many awards to pull up? 1 for Favorite
$maxAwards = 1;
Okay, tried that and got this error mesage:
QuoteTemplate Parse Error!
There was a problem loading the /Themes/Aa_New_Damage/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'
Going to try again, but do you know why this happened?
okay, figure it out, was because I was using html in it.
How can I insert a header that stats that it is "Favorite Award" right above the image?
Going to try messing around a bit to figure it out.
Make these changes to Display.template.php (couldn't put this in a code box or the colors wouldn't show up)
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up? 1 for Favorite
$maxAwards = 1;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
echo '
<fieldset style="border: 1px solid black; -moz-border-radius: 8px;">
<legend>Favorite Award</legend>
';
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
echo '
</fieldset>';
}
}
Remove what's in red, add what's in blue.
Coo, thanks, worked perfectly. I like the radius border, but I notice it doesn't work in IE7, no biggy here.
Though I do have a issue, in IE the award is flush with the black border. Is it possible to make it so that that the few users that view my site using IE will have a bit of padding here?
before the <fieldset> tag, add:
<div style="border: 0px; padding: 5px;">
after the </fieldset> tag, add:
</div>
change the padding value from 5px to however many you want.
heya i have a custome theme and when i click on awards in profile i get this
Unable to load the 'awards' template.
any ideas?
first off GREAT mod!
the only thing i was wondering if possible, is adding members?
i had that every time i want to add a member to an award i have to regive the award. is there a way to add like "add member" button like u have remove? i hate re assigning it to every one.
thanks
I have the 1.1.3 version of smf with not a default themes(but even changing to default the error is the same).
it installs with any errors, but on admin page I think it should appear a link to the awards page(where you add etc). In the whole forums isn´t showed a link. but if I´m on the admin panel I can go t the link ......./index.php?action=awards
and the page to add themes etc is showed. can someone give some explanation how to add a link on the admin panel(probably on the left menu, on forum part, where it haves
Boards
Posts and Topics
Calendar
Search
Smileys and Message Icons
Attachments and Avatars
)
thanks
just installed the mod on my site .. it seems to work great ..
QUESTION - is it possible for the awards/badges to be displayed on the profile page directly under the member's general info ? both pages use the profile.php page in an ssi in index.php so this must be possible, right ?
for profile: index.php?action=profile;u=1;sa=awards
for awards: index.php?action=profile;u=1
the click-thru to see the badges seems a bit pointless
can someone help ?
Can someone with a better feel for PHP than I have tell me if this can be done:
I want to select a member, and then batch assign them multiple awards at the same time. As it is now, you have to repeat the Assign process to give a single user more than one award.
Can the Award field be programmed to let you CTRL-click to choose more than one award? If it could, that would be incredible - most if not ALL my awards will be assigned by member, not by membergroup, and each member will likely be getting multiple awards at once.
This is a GREAT MOD Jay - thank you for all your hard work on it.
Thank you so very much for this modification! I thought it won't be able to work on SMF 1.1.3 but it did! SPLENDID!
Hi from Germany! :)
This Mod doesnt work with the PragmaMx Bridge... (PHPNuke Similar)
it installs correctly...
it opens domain.com/modules.php?name=Forum&action=awards;sa=assign correctly
it opens domain.com/modules.php?name=Forum&action=awards;sa=assign;step=2 correctly
but on the next step it opens:
domain.com/modules/Forum/smf/index.php?action=awards;sa=assign;step=3%22 with the following error-message:
You can't access this file directly... well thats ok, because smf runs as a module in PragmaMx and that page cant be opend directly.
So what do i need to change, that the URL will stay correct like in the first two steps?
Greetings :D
YodaOfDarkness,
I entered in your code, setting $maxAwards to 1. I do not have any awards set as favorite. So, if I understand correctly, it should now randomize my awards, right? It doesn't. Any ideas?
I just installed v1.0.2 of this mod.
Thanks.
It'll grab them in whatever order they're in in the database. I'm not sure, but it's either by when it was received or what the award ID is.
If you want them to always randomize, change the
ORDER BY am.favorite DESC, am.dateReceived DESC
line to
ORDER BY RAND()
as the PHP manual says, it's not the best way to do it, but it's the simplest.
Hmmm...can one not pick an award at random from the array that your SQL created? I'd like to keep your SQL statement like it was if possible.
it's a whole lot easier to just use the ORDER BY RAND() line... it's going to be faster than doing a whole bunch of other stuff.
Gotcha. Will changing the SQL alter the display on the member's profile?
Also, after implementing your change from the other page, I'm getting a "Undefined index: pa_favorite" error in the logs now for Display.template.php. What should I do to get rid of that?
Thanks.
the SQL will only affect how it's shown in the post view.
I'm not sure how to fix the pa_favorite problem, I'll look at it in a minute...
it's not loading the $txt variables for the awards, I guess. replace
' . $txt['pa_favorite'] . '
with
favorite
Quote from: YodaOfDarkness on August 27, 2007, 01:56:09 AM
the SQL will only affect how it's shown in the post view.
I'm not sure how to fix the pa_favorite problem, I'll look at it in a minute...
it's not loading the $txt variables for the awards, I guess. replace
' . $txt['pa_favorite'] . '
with
favorite
Thanks. I made the SQL change and it works like a charm.
I made the pa_favorite change, but now I'm getting a "8: Undefined index: favorite", it says line 48, which is this:
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['favorite'] . '" />',
I only get this error in a thread, and not on awards in the profile. On a test thread, I made sure that everyone had a favorite in their awards, but that didn't make the error go away either.
UPDATE:
My forum must not be reading the ManageAwards.english.php file or something...at least in Display.template.php. For giggles, I changed it back to $txt['pa_favorite'] and added the following above the SQL query
//trying to get rid of an error.
$txt['pa_favorite'] = 'Multiple Favorite Awards';
My forum error log is clean once again.
Can you be more specific about what you changed to get rid of the pa_favorite error? I'm not extremely adept at php/MySQL, but I'm learning. I just am not sure where you put that code.
Thanks in advance! :)
Quote from: ladyshanae on August 27, 2007, 09:09:42 AM
Can you be more specific about what you changed to get rid of the pa_favorite error? I'm not extremely adept at php/MySQL, but I'm learning. I just am not sure where you put that code.
Thanks in advance! :)
Sure thing.
In Display.template.php
Find
// How many awards to pull up?
$maxAwards = 4;
Replace with
// How many awards to pull up?
$maxAwards = 4;
//trying to get rid of an error.
$txt['pa_favorite'] = 'Multiple Favorite Awards';
Note that the number for maxAwards may be different for your install.
Thank you so very much! That worked wonders for me :D
I am trying this with 1.1.3 and can't find in admin where you assign the badges or where the option is anywhere.
If you don't have Global Announcements installed, take a look at the bottom of the left menu. It'll be in a menu that says Mods.
Yes.. I would like to see what a member post would look like.. Pease?
any idea what this means(when there is like 24 pages of post,i don't like to go through all fo them)? :
Unknown column 'awardName' in 'field list'
File: /home/www/****.awardspace.com/****/Sources/ManageAwards.php
Line: 193
Ok... I have a package of award icons I would love to share with folks.. but have no idea who to do that. Can someone help out here?
Examples:Here's a couple of examples...
Icons
Post of the month gold award:(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fsforumposting-gold.gif&hash=cea142eb1c2d47ab704db7d0ba576b36b056460f)
Photo of the month gold award: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FsPOTM.gif&hash=64398562f2bad0d4714739abc8984a83c7d0712e)
A "Good Luck To You" member recognition icon: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fclover.gif&hash=867ac40457c0c571663d082207876a6e8a005a38)
Full size:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Ftrophy.gif&hash=4733e87f998b87fcb83eff4d9f145f02e2bceac8) = Post of The Month
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2FPOTM.gif&hash=7ad7ec7ade0e0f33a25ecf94cbd8f6d4753e803e) = Photo of The Month
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Fmagazine-gold.gif&hash=289b25826ed8737c75625503c5c3728031a2b264) = Distinguished Service Award
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Freferrals-gold.gif&hash=ee2536221d8543f85ea9f4388b9ca12ce5b3c65a) = Referrals Award, for making 5 new member referrals.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Freputation-bronze.gif&hash=c75b76a2a6edfa320a5bbb2a7bfaf8dc1f8d38e5) = Reputation-Bronze, for receiving 500 Karma points.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Freputation-silver.gif&hash=60db45c2ab5221c9c01bbaabba96220f1cb506d1) = Reputation-Silver, for receiving 1,000 Karma points.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2Freputation-gold.gif&hash=feae3054ff864f44806d5d396d1f3f367e5bf42d) = Reputation-Gold, for receiving 2,000 Karma points.
Firstly thank you for offering them...if you put the pack into a zip or tar archive and add that to a post here Jay can consider how he might make use of them.
I have no idea how to do that.
Done for you...see below.
Hey everyone.
I have used this mod before without any problems.. however this time when I tried to install it I get this message.
Unknown column 'awardName' in 'field list'
File: ........../Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Any idea how I can correct this problem? I am not able to create any awards, etc.
I have SMF v 1.1.4 and have tried to install the member Awards Mod. I am using the default template.
2 things happen which should not.
1/ this string appears above the forum
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
The Managing Awards at the end of this string is a link to the admin function for managing awards.
2/ All forum text becomes enlarged.
Many Thanks
This is not a fault of the mod...it indicates a pre-existing problem in your Modifications.english.php file such that the file needs some manual editing.
You need to check to see that:
?>
...appears once only in the file and that that single instance is at the very end of the file on a line of its own.
Put that right and your problem will be resolved.
Quote from: TrueSatan on November 11, 2007, 06:25:55 AM
This is not a fault of the mod...it indicates a pre-existing problem in your Modifications.english.php file such that the file needs some manual editing.
You need to check to see that:
?>
...appears once only in the file and that that single instance is at the very end of the file on a line of its own.
Put that right and your problem will be resolved.
Thank you very much. I found the ?> at the end of the last line instead of being on its own line. Moved it and mod installed perfectly. :D
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.
Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
Quote from: simplyamom on November 12, 2007, 01:45:35 PM
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.
Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
What version of the mod are you using?
Quote from: JayBachatero on November 13, 2007, 01:49:52 AM
Quote from: simplyamom on November 12, 2007, 01:45:35 PM
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.
Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
What version of the mod are you using?
1.0.2
Hi, I've installed this and managed to fix the ?> wrong place thing and the redeclare error
What I would like to do is show the actual images for the awards just above the sig whenever a user posts (they are going to be quite thin banners to show current tournament champions and no user would have more than 2 or 3 thin banners)
I would imagine that this would involve editing display.template.php (and possibly display.php) but I'm not sure exactly what i would need to change. Does anyone have any ideas?
Thanks for your help
There is an addition we are using that displays the award just below the avatar, it works wonderfully with this amazing Mod of JayBachatero's... this is what is displayed in our "package" list from the admin c-panel... not sure where to find it because The Amazing Alan S installed it for me.
QuoteFiles in archive smf_patch_1.0.12_1.1.4_2.0.b1.1.tar.gz:
package-info.xml (2091 bytes)
smf_1-0-11_to_1-0-12_patch.mod (6521 bytes)
smf_1-1-3_to_1-1-4_patch.mod (11641 bytes)
smf_1-1-4_can_fail.xml (832 bytes)
smf_2-0-b1_to_2-0-b1-1_patch.mod (9132 bytes)
Thanks for the reply, but I'm trying to get the award pics below the contents of the post and above the sig. I think i've found the place in display.template.php to add the code, but not sure what code to add
My thinking would be a set of if...then statements
One way I was looking at doing it was creating a number of different membergroups and permanently apply a certain award to each membergroup. Then, as only one person will have the award at a time, simply change who is a member of the particular group.
This leads me to think of something along the lines of
If user is a member of groupA then
display groupA_award_image
If user is a member of groupB then
display groupB_award_image
This might not be the most efficient way of doing it but would easily allow the addition of more groups at a later date. It would also allow some users to have more than one award if i made them a member of more than one group.
Anyone have any thoughts on the PHP code for this? Also, i've noticed a lot of code changes involve a change to display.php AND display.template.php any thought on this
Thanks
Quote from: simplyamom on November 13, 2007, 12:00:29 PM
Quote from: JayBachatero on November 13, 2007, 01:49:52 AM
Quote from: simplyamom on November 12, 2007, 01:45:35 PM
i recently tried to install this, while it tested as sucessful when trying to use it i get this error.
Quote
Unknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.4, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.
What version of the mod are you using?
1.0.2
i was able to get my database upgraded properly, but still am getting this error-
QuoteUnknown column 'awardName' in 'field list'
File: /var/www/html/forum/Sources/ManageAwards.php
Line: 193
Send me a PM and ill send you the query to run. Im on cell now so cant post it now.
hi, i managed to install this mod without any problems, but the problem is, i cant find where can i assign a badge to some users? where is that field where i select the images ?
ACP>Awards However please remember that if you aren't using the SMF default theme you will need to edit the mod into your custom theme...also you may need to check your forum language settings as follows:
You need to go to ACP>Server Settings and set your forum language to English and not English utf8 and to ACP>Features and Options>Basic Settings and uncheck Enable user-selectable language support.
tnx, i done that, i added some images for the rewards and attached the rewards to some users..but i cant see that reward..or it isnt supposed to be seen?
If you go to the profile of a member to whom you have added an award and click on "Award" in the options list you will see what award they got.
Quote from: zsw007 on October 08, 2007, 05:31:52 PM
any idea what this means(when there is like 24 pages of post,i don't like to go through all fo them)? :
Unknown column 'awardName' in 'field list'
File: /home/www/****.awardspace.com/****/Sources/ManageAwards.php
Line: 193
Run this query.
ALTER TABLE smf_awards
ADD COLUMN awardName VARCHAR(80) NOT NULL DEFAULT ''
Is there a way to give the same member the same award? Just with a different date?
My site has yearly awards and a few members have gotten the same award multiple years...
I've just uploaded the same award and assigned it "Award *Blank* #2"
Quote from: Mother Goose on November 19, 2007, 04:07:26 PM
I've just uploaded the same award and assigned it "Award *Blank* #2"
Yeah I originally was going to label them as 2006 and 2007 awards, etc etc so on. But seemed kinda silly to have duplicates when the are already there and theres a date to show what year it was given. If theres not another way guess I'll just have to do it that way
There *may* be, but if no one has the answer, that's the way to go.
Nice mod
Would be great if there was a way members could view all the awards and who has which...
It's a great mod!! I love it! Below the avatar, in the forum post profile, there should be a little icon that looks like a gold upper head and torso, clicking on that should take the members to the awards for that person. We have also installed a display window under the avatars.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawardsdisplay.jpg&hash=8877d4712c3b0fd2cdc4c02733215ca8d27d144c)
Well.. as hard as I tried to get the info on how to make a "package" for smf, I didn't have any luck.
So I'll just post my image gallery link, and you all can feel free to help yourselves. Please do me the kindness of sending me a quick PM if you do end up using my icons. Just because it would delight me to no end.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FHEN%2520Pics%2FGallery.gif&hash=2c35de9e322b6ee91ce4b13e433c2020af7f6fe3) (http://mg.smileygenerator.us/index.php)
./Themes/default/index.template.php
I Have a dilber theme. Would this be difficult
These is a great mod. hope you can help me installing it
THanks
This package won't work...
It said:
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Help!?
Please try again with a different browser...SMF has been moving data centres over the last few days so that might have caused a problem but the file seems to be OK now.
Ok. Thanks. I'll try that.
Didn't work. It still says the same thing...
I've tested the download again and there is no problem there...go direct to the mod page http://custom.simplemachines.org/mods/index.php?mod=475 (http://custom.simplemachines.org/mods/index.php?mod=475) and try v1.02 from there as that's what I know is working properly.
You might try a reboot and clearing your browser cache first just to be on the safe side.
If I install it direct from the zip, then how do I execute the database functions file?
You would be best using the Package Manager if at all possible...if you have to do a manual install then the database updating file, install.php , would need to be extracted from the package and placed in your forum root...you would then need to visit the file using your browser to make it run...expect a blank screen.
SMF Version: SMF 1.1.4
Hi Everyone. I just noticed in the Error Logs, a few Topics causing this Error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4
File: /home/jye/public_html/forum/Sources/Display.php
Line: 700
I went into my Display.php, and this is Line 700:
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")", __FILE__, __LINE__);
It is part of the Member Awards Mod.
The weird thing about this is, it is only on a some Topics, AND it will only happen if you click on a certain Page of a Topic. For example, the First Page will create the Error, but Page 3 and others of the same Topic will work fine.
I did a search, but could not find a solution. Can someone help me please?
EDIT: I went into Display.php and took out the Member Awards Code there, and now the Topics work fine. So I guess this confirms it is related to this Mod, but I don't want to remove it :(
Did you receive any errors while installing the mod?
Quote from: JayBachatero on December 05, 2007, 02:36:24 PM
Did you receive any errors while installing the mod?
I Installed it a while ago, so I can't remember sorry, BUT this error has not been popping up since I first Installed it.
OIC. Maybe a new mod that you installed created a conflict.
Quote from: JayBachatero on December 05, 2007, 02:56:00 PM
OIC. Maybe a new mod that you installed created a conflict.
The latest one I Installed was SMF Shop. I had to uninstall Topic Ratings as they were clashing. Right now I have:
Ad Managment
Spoiler Tag
SMF Arcade
Move Old Topics
Referrals Mod
Users Online Today Mod
nneonneo's AJAX ShoutBox
Now Playing
Display Age and Location next to posts
Member Awards
Enhanced Forum Statistics
SMFShop
If the Mods get listed in order of when they installed, it looks like Enchance Forum Statistics and SMFShop were the only ones installed after Member Awards.
Jay.. we LOVE your awards mod at our forum! I have all these awards I made to offer smf (see below) but it seems I can't attach files yet. I think it is a function of post count. If you wanted to e-mail me, I can send you the zip files, so you can post them here.
The file also contains some animated award .gif's. like so... (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2Fmedal23_S.gif&hash=cecdc84c51e069f54517508b517b0d3ca6f0c4d1) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2Fmedal24_S.gif&hash=4494602e3b1e4276f8c9a013f2c2d2328e8a437a)
Please feel free to use these in your smf forums. Speak up if you have any special requests, I would be delighted to help you out.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FAwardsandMedals.gif&hash=2d748854c4f79f657ea0723adeead0d61eebdf73)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FMiniMedals.gif&hash=87958a146f9e7a76805ae6bb862fa012b1626f26)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FLg_Display_Medals.gif&hash=9450d525ae0cfc07dd4faf37cdcfb44097c29192)
Also, what would the code be to change the php file to display two rows of 4 awards, from one row of 4 awards? Thank you!
OK!! The ever so techno-phobic Mother Goose got it! I was placing the files in the wrong place on my server, and it was not accessible to the public!
So here are the *ZIP* files!! yay!!
Large Display Medals (http://homesteadexchangenetwork.net/Medals_Display_Large.zip)
Awards and Medals (http://homesteadexchangenetwork.net/smf_awards_and_medals.zip)
Mini Awards (http://homesteadexchangenetwork.net/tiny_awards.zip)
hi jay
first of all thanks for an excellent mod .. it really makes a tonne of difference to our forum
my question is this ..
i want to be able to display ALL the awards a person has directly under their profile (index.php?action=profile), but have no idea where to start. i kinda assumed i wouldn't be the only person wanting this, so i searched around and couldn't find a way to do it. i know this wouldn't be useful for some ppl as they have loads of awards etc, but i'm sure there's a bunch of people who'd like this. obviously it would be cool to display the awards a person has on their profile, and make it possible to click an award to see who else has it.
there might even be a mod that takes care of this, a mod of ur mod if u like, but i haven't found it
can u help ?
site for ur info is: www.clan4.info
thanks in advance of any responses i get to this
There is Clan.. but I can't find the mod name right now. I will get it for you, if someone else doesn't get to it first. You can see it in action on my forum. (click link in sig)
that's great news .. i'll wait to see the link then, once u find it (thank you)
p.s. the url from ur sig doesn't work :(
LOL Opps! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2F66.7.199.34%2F%7Ehomestea%2Fsmf%2FSmileys%2Fdefault%2Fblondblush.gif&hash=6fe406f8861896d1c00a288f3f1ea061c9c487ef) Thank you. I fixed it.
i don't get it, ur forums is the same as mine with a link to the award album ..
my question was how to show the awards themselves on the profile page (without having to have a separate click thrru)
Oh I am so sorry I misunderstood. I thought you meant to post profile. I understand what you are asking now.
lol np
can anyone help ?
Hey,
This looks like a fantastic mod, yet i'm currently having some problems getting it working properly (or at all!)
I have manually attempted to install this for the WoW-dk theme, with small success.
I have actually managed to get it working better than on the default theme, as the award menu link wouldn't even show for that!
After a bit of digging I realised it may be because the WoW-dk theme required a Modifications.english-utf8.php file, and it may have defaulted to that. So I made a copy of that utf8 file into the default template, copied the relevant code from this award mod to that and Viola, the menu link appears.
The problem i'm now having is that after clicking on the award link, there is no text, only blank tabs and empty table cells. I have literally tried everything, and have checked and double checked the code manually and can find no problems.
If you could help in any way, I'd be very appreciative, it seems as if you are a dedicated author that is helpful and gets us newbies through these kind of problems!
Infact if ANYONE can help me, that would be nice :)
Thanks in advance,
Trottimus
Please begin by checking that your forum language is set to English and not English utf8
Now I feel mighty embarrassed!
That seemed to do the trick!
I guess I was right when saying that the wow-dk theme changed my forums default language setting, didn't realise there was an option to change it back.
For anyone else who attempts to install this mod with the wow-dk mod, check your forums language by heading to the admin tools > configuration > server settings, and you'll find a drop down list about halfway down the page.
Thanks for your help!
Trottimus
Quote from: clan4mack on December 07, 2007, 05:42:55 AM
my question is this ..
i want to be able to display ALL the awards a person has directly under their profile (index.php?action=profile), but have no idea where to start. i kinda assumed i wouldn't be the only person wanting this, so i searched around and couldn't find a way to do it. i know this wouldn't be useful for some ppl as they have loads of awards etc, but i'm sure there's a bunch of people who'd like this. obviously it would be cool to display the awards a person has on their profile, and make it possible to click an award to see who else has it.
there might even be a mod that takes care of this, a mod of ur mod if u like, but i haven't found it
can u help ?
site for ur info is: www.clan4.info
thanks in advance of any responses i get to this
can someone help me ?
p.s. sry for the bump
clan4mack. It's doable but it will take some work to do. You basically have to move all the award related stuff from the function into the summary function.
i'm just surprised no-one's done it .. maybe, like me, they don't know where to start
oh well .. thanks for the help jay, love the mod mate, good work
Quote from: JayBachatero on December 05, 2007, 02:56:00 PM
OIC. Maybe a new mod that you installed created a conflict.
Jay, I think I've noticed a similarity amongst the affected Topics. I think if the Author of the Topic deleted their account, but kept their Posts & Topics on the Forum (Resulting in them being a "Guest"), it causes this problem somehow.
Oh thanks. That helps. I'll look into it.
hey txn 4 this GREAT MOD !! but i have errors :( look :
well i fix others problems but i can fix when i click in a user name the next page show this :
Fatal error: Cannot redeclare awards() (previously declared in C:\Dominios\MyWEB.net\wwwroot\Sources\Profile.php:3148) in C:\Dominios\MyWeb.net\wwwroot\Sources\Profile.php on line 3477
what i can do for this ?
txn
Firstly please post in English!
Secondly it appears that you have the mod installed twice over and will thus need to follow the process of a manual install checking file by file and removing the duplicate code.
Getting this error:
Unknown column 'awardName' in 'field list'
File: [insertrestoflinkhere]hadaway.shadowshr.com/Sources/ManageAwards.php
Line: 193
when I just click awards. How can I fix this? I also have this where it says the error is:
// Select the awards.
$selectAwards = db_query("
SELECT ID_AWARD, awardName, gameName, timeAdded, filename, width, height
FROM {$db_prefix}awards
ORDER BY ID_AWARD DESC
LIMIT $context[start], $maxAwards", __FILE__, __LINE__);
That error tends to occur when you haven't yet made any awards...make some and it should go away.
Tried that. I receive:
QuoteUnknown column 'awardName' in 'field list'
File:notimportantatall/hadaway.shadowshr.com/Sources/ManageAwards.php
Line: 322
good.
Run this query.
ALTER TABLE smf_awards
ADD COLUMN awardName VARCHAR(80) NOT NULL DEFAULT ''
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 ''
WHere should I do that? I'm not that good with PHP.
You will need to use phpMyadmin...and that isn't PHP code it's SQL instructions to the database.
What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)
hi, great mod mate. any chance to display badge in user's data in posts?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F9872%2Fawardhf5.jpg&hash=8a8b6b4b8258a709ac5b378b261fc99f7f2e7733)
Yes!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawardsdisplay.jpg&hash=8877d4712c3b0fd2cdc4c02733215ca8d27d144c)
mother goose how did u do that? i want manily the small little that goes to all their awards.
oh. what i want can be done using the custom profile field dw.
Also where in the database is all of the info stored. ie. medals, who has them.
I would like to create a script that pulls this data and displays it into a table but im not sure where the data is stored.
Quote from: Mother Goose on December 26, 2007, 11:05:17 PM
Yes!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawardsdisplay.jpg&hash=8877d4712c3b0fd2cdc4c02733215ca8d27d144c)
how?! where?
oh....sry...hmmmmm
i did try it but i forgot that you would need each user to input there user id. ask mother goose because im not sure how to do this automatically.
Opps! Dugh! I forgot to add the information. LOL
It was custom code we added to the display.template.php which we got from here...
http://www.simplemachines.org/community/index.php?topic=114701.msg1154947#msg1154947 (http://www.simplemachines.org/community/index.php?topic=114701.msg1154947#msg1154947)
Hi, I am using a custom theme. All seems well but when I go to the profile and click awards I get this error. Anyone able to help? I don't know a lot about PhP or SQL, so hopefully it is an easy fix? :)
version 1.4 and using the latest version of this mod.
******Unable to load the 'awards' template.*******
Thank you in advance.
Just a quick question, does this mod allow you to give the same award to members more than once and have it show that they have more than one of said award?
I am looking to add this to my BF2 Clan Forums for Tournament players, everyone that plays each time will get an award for actually playing in the match. This will be the same award each time.
Thanx in advance for any help anyone can offer.
Cheers
Doc
I haven't looked at this mod in a while, but I figure it's as easy as adding an integer row to the awards table, 'quantity'. It defaults to 1, and if you're giving someone an award and it sees that they've already gotten it, it can just ++ the $result['quantity'] and update it.
I don't have any spare time to test it out, but if someone wants to take 5 minutes to test it out, I think it's worth a shot.
unfortunately i am not good enough to do any of those modifications, but if someone is, and has time, i would appreciate it greatly
No errors during install. On the bottom left of my admin page I have a new box but it is empty. I still do not see the link for the awards. Help?
Forum version: SMF 1.1.4
Theme: saf-multicolor
**** Edit: i just did a view-source and the link for the awards is there and I can copy and paste to the address bar and get to it --yay! Hmmmm...
I can assign the awards, and can see them in the admin page, but not on any other page/under the screenames.
Any ideas are appreciated!
Quote from: kabres on January 01, 2008, 06:28:13 PM
Hi, I am using a custom theme. All seems well but when I go to the profile and click awards I get this error. Anyone able to help? I don't know a lot about PhP or SQL, so hopefully it is an easy fix? :)
version 1.4 and using the latest version of this mod.
******Unable to load the 'awards' template.*******
Thank you in advance.
Does anyone have any info on this? I Just can't figure it out and really want to get an award system started for my guild.
Thanks in advance :)
looks like you need to manually reupload the template files that came with the mod.
Quote from: iGate on December 27, 2007, 08:52:29 AM
mother goose how did u do that? i want manily the small little that goes to all their awards.
oh. what i want can be done using the custom profile field dw.
Also where in the database is all of the info stored. ie. medals, who has them.
I would like to create a script that pulls this data and displays it into a table but im not sure where the data is stored.
I'm not quite sure what you're requesting... would you like:
Quote from: Pseudo-code
Medal 1
Joe
Susan
Greg
Beth
Medal 2
Joe
Beth
Andy
Medal 3
Andy
Susan
or would you like
Quote from: Pseudo-code
Joe
Medal 1
Medal 2
Susan
Medal 1
Medal 3
Greg
Medal 1
Beth
Medal 1
Medal 2
Andy
Medal 2
Medal 3
?
If you want number two, look back a few pages for my post about how to make them show up under an avatar. It's mostly the same code, with just a few minor tweaks.
I'm still having trouble. I can direct link to the awards panel and assign them from there, but you don't see the awards anywhere?
Thanks so much for any help!
Quote from: melbinnc on January 02, 2008, 08:24:28 PM
No errors during install. On the bottom left of my admin page I have a new box but it is empty. I still do not see the link for the awards. Help?
Forum version: SMF 1.1.4
Theme: saf-multicolor
**** Edit: i just did a view-source and the link for the awards is there and I can copy and paste to the address bar and get to it --yay! Hmmmm...
I can assign the awards, and can see them in the admin page, but not on any other page/under the screenames.
Any ideas are appreciated!
pls help :'( :'( :'( :'(
Unknown column 'gameName' in 'field list'
File: /3w/czweb.org/w/war4ever/Sources/ManageAwards.php
Line: 193
Unknown column 'gameName' in 'field list'
File: /3w/czweb.org/w/war4ever/Sources/ManageAwards.php
Line: 322
About the multiple awards. I remember how to do this a few pages back.
war4ever.xf.cz did you get any errors on install?
BTW I plan on updating this mod in the future. I added category support to this a while back but I just can't remember on which computer and where I stored the files :(.
thank you for thiz i install thiz mod
I've been trying to examine the .xml file of the install to figure this out, but i cant seem to get the awards to display on the user post pages.
Is this because I am using Themes, 7dana is my current theme.
I tried to uninstall and install again - the awards show up under the profile but not on the posts...maybe i missunderstood the use of member awards system, but should i see awards when posting???
I know with some other mods I've had to edit the index.template.php etc.... do i have to do the same here?
Please help - thx
if any of u are familiar with tinyportal. i would like to create a php article with a script that does the following:
Medal 1 (Name & Image) | Medal Description | Names of those who have it
Medal 2 (Name & Image) | Medal Description | Names of those who have it
Medal 2 (Name & Image) | Medal Description | Names of those who have it
etc etc how can i go about doing this?
I'm getting the following error when i try to add an award...
Unknown column 'timeAdded' in 'field list'
File: /home/gatherin/public_html/Sources/ManageAwards.php
Line: 322
i got the messages about awardname and gamename as in page 27 and added the fields using phpmyadmin. Just wondering what code i should use to add the time added (is it different or can i use the same again, unsure as its a time field!)
thanks in advance for any help...cant wait to use the mod!
Quote from: jabroni pkp on January 20, 2008, 06:44:56 AM
I'm getting the following error when i try to add an award...
Unknown column 'timeAdded' in 'field list'
File: /home/gatherin/public_html/Sources/ManageAwards.php
Line: 322
i got the messages about awardname and gamename as in page 27 and added the fields using phpmyadmin. Just wondering what code i should use to add the time added (is it different or can i use the same again, unsure as its a time field!)
thanks in advance for any help...cant wait to use the mod!
ok, i got this working but i have a couple of other questions
1) is there a way that members can view all awards?
2) the awards are not visible in the members posts like you have shown above. Is there something i need to do to get this element working?
I'm using smf 1.1.4 by the way
Can someone offer me a quick explanation of the database set up this uses.
i want to know what is the table and field of where the following are stored:
- Award Name
- Game Name
- Location to where award images are stored.
thx
for all those who have Tinyportal and are interested i am trying to find a php coder to create a script that displays the medals, a description of it and lists those who have it.
those who are interested in seeing it created plz voice yourselves here:
http://www.tinyportal.net/index.php?topic=21494
the more community support we get the more likely it is someone will code it for us.
if any1 is interested in coding it plz see the above linked thread as well.
Quote from: iGate on January 22, 2008, 04:08:08 AM
Can someone offer me a quick explanation of the database set up this uses.
i want to know what is the table and field of where the following are stored:
- Award Name
- Game Name
- Location to where award images are stored.
thx
ive only been using this a few days really but from what i can see its using a new table called smf awards and the fields are in there. Is that what you wanted to know?
Quote from: JayBachatero on October 31, 2006, 09:30:02 AM
In
File: Load.php
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
}
mysql_free_result($request);
// Load the awards
$request = db_query("
SELECT COUNT(*) AS awards, ID_MEMBER
FROM {$db_prefix}awards_members
WHERE ID_MEMBER IN ('" . implode("', '", $loaded_ids) . "')
GROUP BY ID_MEMBER", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['awards'] = $row['awards'];
mysql_free_result($request);
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
'local_time' => timeformat(time() + ($profile['timeOffset'] - $user_info['time_offset']) * 3600, false),
'awards' => &$profile['awards'],
File: Display.template.php
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
Thank you! :D What a fun mod!
I've plowed through all 29 pages of this thread, and I didn't see the following request, but if this has already been broached, apologies.
Is there a way to assign an award through like, a member search (individual award assigning), rather than through the current system which lists all the members of that group?
I ask because my board has over 1300 members, and keeps growing. I'm just concerned that say, at 5000, the load time or something might cause my browser to stroke. LOL...
If he updates this for SMF 2.0 (or if I get around to it before he publishes the new code), that's one of the things I want to make - a small form to just type in a member's name and choose which award(s) to assign to them. Based on the 1.1.x code, it won't seem too hard. Just make a form and with an <input> and a <select>, populate it with the awards, and use his same code on the other end to update the database.
Quote from: daragor on December 26, 2007, 01:43:35 PM
hi, great mod mate. any chance to display badge in user's data in posts?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg175.imageshack.us%2Fimg175%2F9872%2Fawardhf5.jpg&hash=8a8b6b4b8258a709ac5b378b261fc99f7f2e7733)
Quote from: Mother Goose on December 26, 2007, 11:05:17 PM
Yes!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawardsdisplay.jpg&hash=8877d4712c3b0fd2cdc4c02733215ca8d27d144c)
urm, I'd like to do this with themes, but i don't know the code, what code will i put in the display.index.html (if thats all i need to modify)
I've dont the Above suggestion from Krysia and I get the Number of awards displayed on the user posts, but I dont see the award pictures.
I've tried scrolling through the last 28 pages and I must say, it's left me even more confused about it.
I assume this is something to do with user award favorites, even if I mark mine as favorite, I dont see it.
what else do I add (since ive added Krysia's code above) to get the pictures from the awards displayed.
I DO have the awards.gif icon - with the little dood, but not the award picture assigned to the user....
Quote from: Krysia on January 27, 2008, 04:40:24 PM
I've plowed through all 29 pages of this thread, and I didn't see the following request, but if this has already been broached, apologies.
Is there a way to assign an award through like, a member search (individual award assigning), rather than through the current system which lists all the members of that group?
I ask because my board has over 1300 members, and keeps growing. I'm just concerned that say, at 5000, the load time or something might cause my browser to stroke. LOL...
Sounds like a good idea. I just need to get myself to work on this mod again. If I do update it it will be for SMF 2.0.
Quote from: YodaOfDarkness on January 28, 2008, 03:38:27 AM
If he updates this for SMF 2.0 (or if I get around to it before he publishes the new code), that's one of the things I want to make - a small form to just type in a member's name and choose which award(s) to assign to them. Based on the 1.1.x code, it won't seem too hard. Just make a form and with an <input> and a <select>, populate it with the awards, and use his same code on the other end to update the database.
Umm with 2.0 it's pretty easy todo actually. I can just use the controls that were added to the PM system. You can use that to search for members.
Yay for new coding features :) I'm working on my 1.1.x theme, updating it to use less sloppy coding in 2.0 and I just love how much cleaner it is...
and @ SlipperyDuck: have you tried my code on page 23 (or around there)?
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
Yoda I suggest that you wait till after at least Beta 3 to update your themes.
Quote from: YodaOfDarkness on January 28, 2008, 08:11:42 PM
Yay for new coding features :) I'm working on my 1.1.x theme, updating it to use less sloppy coding in 2.0 and I just love how much cleaner it is...
and @ SlipperyDuck: have you tried my code on page 23 (or around there)?
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
Yoda - you legend, thanks for that.
Yes I did read that post, but the text in there suggested that it would only add the Number of awards to my users posts. So Many thanks for that
I'm Stoked!
Guys I could use some assistance.
I installed the mod successfully however the profile links are invisible although there seems to be space added for a link. Also in the ACP, there is no link there either however if I manually type in the URL to get to the awards page it works fine.
Could use some help please.
Please go to ACP>Server Settings and check that your forum language is set to English and not English utf8...alter if it is wrong.
i'm so frustrated right now I could scream! :-\
I've tried to uninstall this mod at least 12x and it keeps leaving behind fragments of itself. Then on reinstall it just makes things worse!
I need to somehow back out this thing from SMF COMPLETELY so things can be restored properly.
Right now after install I get this... Fatal error: Cannot redeclare template_awards() (previously declared in /home/treeturn/public_html/n6rej.com/forum/Sources/Load.php(1732) : eval()'d code:2371) in /home/treeturn/public_html/n6rej.com/forum/Sources/Load.php(1732) : eval()'d code on line 2652
after I click on a member's name from admin. ONly by removing the package does this stop. But then it leaves behind all kinds of artifacts of itself.
Can someone PLEASE help
just one example of what is happening after removal is this...
Hi to all
This is great Mod. But it only works in english. And my board works on german.
Can someone help me, to modificate it that the mod will work with german language?
Thanks
Quote from: TrueSatan on February 06, 2008, 07:31:58 PM
Please go to ACP>Server Settings and check that your forum language is set to English and not English utf8...alter if it is wrong.
Yeah its already set to English. I made sure of that when I got it first installed
\i have just installed and get the following error, inside the award section i admin panel
Unknown column 'awardName' in 'field list'
File: /home/*****/public_html/*****/Sources/ManageAwards.php
Line: 193
Quote from: kaburan on February 15, 2008, 01:34:41 PM
Quote from: TrueSatan on February 06, 2008, 07:31:58 PM
Please go to ACP>Server Settings and check that your forum language is set to English and not English utf8...alter if it is wrong.
Yeah its already set to English. I made sure of that when I got it first installed
Where can I set the settings which will be used to translate the links und functions into the german?
Can you help me or have I search for it?
quick question for Jay, I have to uninstall and reinstall this mod as I'm upgrading. Will I lose the awards that members have been assigned or will the tables with all the info still be there when I reinstall?
thanks
you will have a mess! I've done exactly that and now everything is fubar'd. I'm having to have SMF take a look to fix it.
um, ok, that doesn't sound very good then. Is that a common problem or something related to your forum in particular? :(
Thx Jay for mod, Yoda for little modification, and Goose for icons
work perfectly ;)
Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server.
how do i fix this?
How do I get this to work with different themes? I can only get it to work with the default theme.
Quote from: perplexed on February 16, 2008, 08:14:22 AM
quick question for Jay, I have to uninstall and reinstall this mod as I'm upgrading. Will I lose the awards that members have been assigned or will the tables with all the info still be there when I reinstall?
thanks
I know someone else responded about what happened in their forum (thanks) but I would like advice from Jay if possible before I have to reinstall
Thanks
Is it possible to award the same award more than once? I've searched the thread and Jay mentioned that he remembers a few pages back but I couldn't find anything.
you can't assign the same award to the same person more than once but that doesnt stop you uploading the same award image more than once and then assigning that to the same person if that helps :)
How can I add the rewards?
hey i got some problem that I think is related to this mod.
http://www.simplemachines.org/community/index.php?topic=225683.msg1447138#msg1447138 (http://www.simplemachines.org/community/index.php?topic=225683.msg1447138#msg1447138)
please read my post on the link above
fixed that
now this is the error i'm getting
i think it's conflicting with the tables made by my previously installed mod which is simple awards system
look at the screenshot i attached
fixed that too, all problems solve... it's a good thing i'm resourceful and Tick is available :P
What I did is I deleted the tables in the database created by the simple awards mod and reinstalled this mod and it works fine!
Quote from: perplexed on February 23, 2008, 10:40:58 AM
Quote from: perplexed on February 16, 2008, 08:14:22 AM
quick question for Jay, I have to uninstall and reinstall this mod as I'm upgrading. Will I lose the awards that members have been assigned or will the tables with all the info still be there when I reinstall?
thanks
I know someone else responded about what happened in their forum (thanks) but I would like advice from Jay if possible before I have to reinstall
Thanks
FYI I did it anyway and after reinstalling everything is fine, all the awards are where they should be. No probs
Quote from: edi67 on February 17, 2008, 03:56:09 PM
Thx Jay for mod, Yoda for little modification, and Goose for icons
work perfectly ;)
How did you make the awards show there?EDIT:Nevermind I got it to work! Great mod by the way
OOooooo!!!!! Someone is using my icons!!! Happy me!!! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fhappy093.gif&hash=03669fb548629955182988c198f8005765a4905d) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fd_sunny.gif&hash=e1b5e292f09136ccb67825e865bf006b234311f1)
Thanks for the screen shot edi67, made my day!
It seems I have a bit of a problem.. we LOVE our awards mod at my forum. Thank you all.
Any clue what I need to do with this?
[<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Permission denied
File: /home/homestea/public_html/smf/Sources/ManageAwards.php
Thanks for this great mod. ;D
There is a way to show the awards in the profile page (http://www.simplemachines.org/community/index.php?action=profile), down the "Show general statistics for this member" text?
I use this code to show in forum, down the signature:
// Show number of awards
echo '
<hr width="100%" size="1" class="hrcolor" />
<a href="', $scripturl, '?action=profile;sa=awards;u=', $message['member']['id'], '">', $txt['awards'], '</a>: ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />';
// Show the fav award
if (isset($context['awards'][$message['member']['id']]))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($context['awards'][$message['member']['id']] as $badge)
echo '
', $badge;
echo '
</div>';
}
But if I try to use the same comde for profile template don't work :S
Tnx in advantage ;)
Hi!
I'd like to ask whether it is possible for ALL the awards assigned to a member to appear below or even above the signature of that member. I'd like this done automatically everytime an award is given to a member. The awards should appear side by side, with the image assigned to each award showing.
If this can be done, i'd really be grateful if someone could provide the code and explain where it should be pasted exaclty.
Thanks in advance for any replies.
if you search this thread there is info on how to do this already, or how to add a favourite award to posts also
I face an issue installing a greek translation. I manually translated ManageAwards.english.php and created a new file called ManageAwards.greek-utf8.php in themes/default/languages but still, i can't seem to get it to work.
Any ideas why this is happening?
I got the same error as Kimba:
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
I even uninstalled, and deleted, the package and the error is still there!
Having issues with the awards link showing in people's profile. So far only admin and global moderator can see that link.
Solved the issue with translation, now, when i enter a description inside an award, is shows up like this:
??????????? ?? ???????
Always does. I' m guessing it's caused by the utf encryption. The language i'm typing is Greek. Any help would be highly appreciated.
Mother Goose - You need to make the awards directory writeable.
Quote from: rowedf on March 28, 2008, 04:19:08 PM
Having issues with the awards link showing in people's profile. So far only admin and global moderator can see that link.
Check your permissions.
Quote from: examino on March 28, 2008, 09:56:16 PM
Solved the issue with translation, now, when i enter a description inside an award, is shows up like this:
??????????? ?? ???????
Always does. I' m guessing it's caused by the utf encryption. The language i'm typing is Greek. Any help would be highly appreciated.
Check in phpMyAdmin what is the collation for the awards table and the messages table.
Thank you Jay!! I got it fixed...
We love your mod. Thank you for your continuing and consistent support for this mod.
Quote from: JayBachatero on April 02, 2008, 09:35:51 AM
Mother Goose - You need to make the awards directory writeable.
Quote from: rowedf on March 28, 2008, 04:19:08 PM
Having issues with the awards link showing in people's profile. So far only admin and global moderator can see that link.
Check your permissions.
Quote from: examino on March 28, 2008, 09:56:16 PM
Solved the issue with translation, now, when i enter a description inside an award, is shows up like this:
??????????? ?? ???????
Always does. I' m guessing it's caused by the utf encryption. The language i'm typing is Greek. Any help would be highly appreciated.
Check in phpMyAdmin what is the collation for the awards table and the messages table.
The only thing in permissions is for people to manage awards. I can't find anything that allows them to view them ?
Do you have a custom theme? Maybe they are using a different theme. You need to apply the changes manually for other themes.
I am having an issue with this mod as well. I checked the box for users to be able to select multiple favorites, but it doesn't seem to do anything. I can still only select one favorite. If I select another award as favorite, it removes the previous award as favorite. Any suggestions?
I had the mod installed and working fine, but wanted to try another mod similar to this one. I uninstalled the mod and tried installing a new one. It came up with a warning about conflicting with an existing mod that was all ready installed. Went back to reinstall this mod, everything seems to work fine but I cannot access the profile of any of the members now.
QuoteFatal error: Cannot redeclare awards() (previously declared in /home/unboundk/public_html/smf/Sources/Profile.php:2941) in /home/unboundk/public_html/smf/Sources/Profile.php on line 319
This is the error.
Sorry if this has been discussed all ready, I honestly have read throught this topic but didnt see anything.
Thanks for any help.
Attach your profile.php.
Quote from: novastar on April 09, 2008, 03:58:43 PM
I am having an issue with this mod as well. I checked the box for users to be able to select multiple favorites, but it doesn't seem to do anything. I can still only select one favorite. If I select another award as favorite, it removes the previous award as favorite. Any suggestions?
Did you select a number of favorites?
I had 2 awards uploaded as a test. I set one as favorite no problem. When I select the other as favorite as well, it removes the favorite setting from the first one.
This is the code between 314 and 323, not sure if this helps,
// This is here so the menu won't be shown unless it's actually needed.
if (!isset($context['profile_areas']['info']['areas']['trackUser']) && !isset($context['profile_areas']['info']['areas']['showPermissions']) && !isset($context['profile_areas']['edit_profile']) && !isset($context['profile_areas']['profile_action']['areas']['banUser']) && !isset($context['profile_areas']['profile_action']['areas']['deleteAccount']))
$context['profile_areas'] = array();
// Set the selected items.
$context['menu_item_selected'] = $_REQUEST['sa'];
$context['sub_template'] = $_REQUEST['sa'];
// All the subactions that require a user password in order to validate.
$context['require_password'] = in_array($context['menu_item_selected'], array('account'));
Including my profile php file as well. One other thing. having the mod uninstalled along with deleted from my forums it still shows in the Admin section and can be used. Strange
This most likely will fix your profile section. I attached your fixed profile.php with this post.
For everything else, include in your next post:
admin.php
modsettings.php
Load.php
I'm still having the same error. Could I just upload a profile file from the full 1.1.4 download file? Meaning, download the SMF 1.1.4 install and extract it. Take that profile.php file and put it into my Source folder?
It cant be that easy....
This is the error..
QuoteFatal error: Cannot redeclare template_awards() (previously declared in /home/unboundk/public_html/smf/Sources/Load.php(1735) : eval()'d code:2267) in /home/unboundk/public_html/smf/Sources/Load.php(1735) : eval()'d code on line 2548
I have a problem, the Admin gives me a Award. And I activated it in my Profile by clicking on the +.
But it is not showing by my posts. In my awards page only. ;)
How do I solve this?
Quote from: lOOmis on April 09, 2008, 11:01:50 PM
I'm still having the same error. Could I just upload a profile file from the full 1.1.4 download file? Meaning, download the SMF 1.1.4 install and extract it. Take that profile.php file and put it into my Source folder?
It cant be that easy....
This is the error..
QuoteFatal error: Cannot redeclare template_awards() (previously declared in /home/unboundk/public_html/smf/Sources/Load.php(1735) : eval()'d code:2267) in /home/unboundk/public_html/smf/Sources/Load.php(1735) : eval()'d code on line 2548
The mod got installed twice. Check the Profile.template.php file for duplicate functions.
Quote from: bbjimbb on April 12, 2008, 01:28:36 PM
I have a problem, the Admin gives me a Award. And I activated it in my Profile by clicking on the +.
But it is not showing by my posts. In my awards page only. ;)
How do I solve this?
Read the many posts on this topic about that.
Quote from: JayBachatero on April 15, 2008, 02:39:25 AM
Read the many posts on this topic about that.
Please can you answer me, this is not an answer. I can't search all the 31 pages. It will cost many time and my English is really bad.
Here's my post about it:
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061 (http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061)
Thanks, I hope my admin will add this. ;)
Quote from: JayBachatero on January 28, 2008, 03:18:40 PM
Quote from: Krysia on January 27, 2008, 04:40:24 PM
I've plowed through all 29 pages of this thread, and I didn't see the following request, but if this has already been broached, apologies.
Is there a way to assign an award through like, a member search (individual award assigning), rather than through the current system which lists all the members of that group?
I ask because my board has over 1300 members, and keeps growing. I'm just concerned that say, at 5000, the load time or something might cause my browser to stroke. LOL...
Sounds like a good idea. I just need to get myself to work on this mod again. If I do update it it will be for SMF 2.0.
YAY! Thanks, Jay! :D
Swedish translation:
// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Priser';
$txt['pa_view_album'] = 'Visa andra medlemars priser.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Redigerar <a href="' . $scripturl . '?action=awards">priserna</a>.';
(ManageAwards.swedish.php attached)
i'm using the classic theme. i go through the steps to install but when i click on "add award" i get a blank screen. and when it gets to the "manageawards.php the "test successful" stops. yet goes on like it's fine.
Quote from: dreama.nana2 on April 28, 2008, 07:59:35 PM
i'm using the classic theme. i go through the steps to install but when i click on "add award" i get a blank screen. and when it gets to the "manageawards.php the "test successful" stops. yet goes on like it's fine.
as per my advice in the arcade thread, the same thing applies here regarding your classic theme.
As for the second part of your question, I'm not sure I understand - has the mod installed successfully with no 'test failed' or not?
Quote from: novastar on April 09, 2008, 06:24:11 PM
I had 2 awards uploaded as a test. I set one as favorite no problem. When I select the other as favorite as well, it removes the favorite setting from the first one.
Any ideas on how to fix this?
Can you have more than one favourite?
There is a checkbox in admin section that says so, it just isn't working.
I got this error :(
Unknown column 'awardName' in 'field list'
File: /home/rougebaby/domains/xtinaforum.org/public_html/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.
Anyone help?!
I'm using Ultimate Profile mod.
Would it be possible to show 3 random awards or so in a extra box on the profile?
i'm having a rogue code problem. After i uninstalled the script i have this popping up at the top of my page
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
Look in modifications.english.php
Make sure all the lines are after the <?php and before the ?>
Everything is as it shold be in Modifications.english.php I can't find the line in any of my .php files as of the moment. I just find it weird that it did it when i uninstalled the mod.
Will this be working for SMF 2 Beta 3.1?
Yea. Please! This is the best awards system I have seen on the mods site.... BUT its not avaliable forthe new version *crys*
where i can find some awards images???
Quote from: NIBOGO on May 31, 2008, 05:44:13 PM
where i can find some awards images???
The file also contains some animated award .gif's. like so... (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2Fmedal23_S.gif&hash=cecdc84c51e069f54517508b517b0d3ca6f0c4d1) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2Fmedal24_S.gif&hash=4494602e3b1e4276f8c9a013f2c2d2328e8a437a)
Please feel free to use these in your smf forums. Speak up if you have any special requests, I would be delighted to help you out.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FAwardsandMedals.gif&hash=2d748854c4f79f657ea0723adeead0d61eebdf73)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FMiniMedals.gif&hash=87958a146f9e7a76805ae6bb862fa012b1626f26)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2FMember%2520Recgnition%2520Icons%2FLg_Display_Medals.gif&hash=9450d525ae0cfc07dd4faf37cdcfb44097c29192)
Here are the *ZIP* files.
Large Display Medals (http://homesteadexchangenetwork.net/Medals_Display_Large.zip)
Awards and Medals (http://homesteadexchangenetwork.net/smf_awards_and_medals.zip)
Mini Awards (http://homesteadexchangenetwork.net/tiny_awards.zip)
How can I have these show in the post?
Nice set of awards ;)
Thank you!
Love this mod. You know what'd be fantastic? An SSI.php feature allowing you to show Latest Awards! :D
Looking for some Uninstall Help.
I had this mod when I was running SMF 1.1.4 and loved it. However, when I upgraded to 1.1.5, this stopped working. (It says its not compatible for 1.1.5) Naturally, I was ready to uninstall, but received this error.
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.
Uninstall Actions
Uninstall Actions "Member Awards":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Profile.php Test failed
3. Execute Modification ./Sources/Who.php Test successful
4. Execute Modification ./Sources/Admin.php Test successful
5. Execute Modification ./Sources/Subs.php Test failed
6. Execute Modification ./Sources/ManagePermissions.php Test failed
7. Execute Modification ./Themes/default/index.template.php Test failed
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
12. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
Need help Installing.
After installing, an error "Adding smf_awards_badges table failed." appeared.
After checking the code in install.php, I found out that it is actually called "smf_awards".
I tried to manually create the table by executing this code in MySQL and an error "BLOB/TEXT column 'filename' can't have a default value" came up.
I tried making the table without the default value and when adding awards, the error "Field 'filename' doesn't have a default value" at line 322 came up.
How do I fix this?
I have installed it on my local host test smf (i test all the packages there before uploading on the current website).
and everything went well..
but on the website, i get this
8. Execute Modification ./Themes/default/Profile.template.php Test failed
heres my installed list:
Mod Name Version
1. Export Personal Messages 1.0 [ Uninstall ] [ List Files ] [ Delete ]
2. Auto Embed Video Clips 2.2 [ Uninstall ] [ List Files ] [ Delete ]
3. ShowTopics 1.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Mod Hide Post 1.1 [ Uninstall ] [ List Files ] [ Delete ]
5. XarSmilies-2 1.0 [ Uninstall ] [ List Files ] [ Delete ]
6. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
7. Clickable Avatars 1.0.1 [ Uninstall ] [ List Files ] [ Delete ]
8. Remove Post Modified Time 1.2 [ Uninstall ] [ List Files ] [ Delete ]
9. Perfect Smiley Set 1.0 [ Uninstall ] [ List Files ] [ Delete ]
10. View Single PM 1.3 [ Uninstall ] [ List Files ] [ Delete ]
11. Enhanced Quick Reply Box 2.0.2 2.0.2 [ Uninstall ] [ List Files ] [ Delete ]
12. Contact Page 1.1 [ Uninstall ] [ List Files ] [ Delete ]
13. SimplePortal 1.2 [ Uninstall ] [ List Files ] [ Delete ]
14. Profile Comments 1.3.6 [ Uninstall ] [ List Files ] [ Delete ]
15. Image Quote Removal Package 1.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Hide SMF Version 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
17. nCode Image Resizer 1.0 [ Uninstall ] [ List Files ] [ Delete ]
18. Change_Poster_Of_Topic_And_Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
19. Member Awards 1.0.2 [ Apply Mod ] [ List Files ] [ Delete ]
20. Downloads System 1.0.4 [ Uninstall ] [ List Files ] [ Delete ]
21. Admin Notepad 1.0 [ Uninstall ] [ List Files ] [ Delete ]
22. SMF Gallery Lite 1.8.3 [ Uninstall ] [ List Files ] [ Delete ]
23. SMF Links 1.6.7 [ Uninstall ] [ List Files ] [ Delete ]
im sure i just need to change something.. but what ?
Installed on a Black 45 Theme 1.1.4. Installed perfectly - worked perfectly - This is the first Mod I installed in awhile where I di not use the parser - did not have to modify my twemplate - NICE MOD!!!
i have SMF 1.1.5, with default theme.
bump, any1? (read 2 posts above.. i only have 1 error)..
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 :),
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. :)
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
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
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.
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 :),
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
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 ?
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
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.
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?
very awesome mod :) i've installed the old one but didn't knew there was a new one out. *updating it now*
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 ?
Can you post a picture of the blank page you see?
I have sussed it out now thnks for all help :)
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
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
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.
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 />';
}
// Show the fav award
if (isset($context['awards'][$message['member']['id']])) {
echo '
<div style="overflow: auto; width: 100%;">';
$count = 0;
foreach ($context['awards'][$message['member']['id']] as $badge){
$count++;
echo '
', $badge;
if($count == 5)
echo '<br />';
}
echo '
</div><br />';
}
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
:)
that didn work it took all but 1 badge away
see post below.
It shouldn't have... did you paste directly from my post?
it works know i dont what happend the first time thanks for your help worked liked a charm
Where would I insert that database query code in profile.php for that code to work in profile.template.php?
What are you aiming to do? I don't quite understand your question.
It me again shouldn't there be a link in members profile to view awards ? If not what do I need to do to put one there ?
Quote from: YodaOfDarkness on July 21, 2008, 12:19:17 AM
What are you aiming to do? I don't quite understand your question.
I'm really trying to have 3 of the member's awards show up directly on the first profile page with a link to the rest of the awards.
That's pretty much the same code as I posted a long while ago (around page... 23?), I'll see if I can clean it up for the profile.
Quote from: YodaOfDarkness on July 21, 2008, 09:48:29 PM
That's pretty much the same code as I posted a long while ago (around page... 23?), I'll see if I can clean it up for the profile.
was that aimed at me or d58e7 ? Looked on pages 22-25 seemed to be about fav awards and other bugs.... This Mod is loved by my community top job :)
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Profile.php Test successful
3. Execute Modification ./Sources/Who.php Test successful
4. Execute Modification ./Sources/Admin.php Test failed
5. Execute Modification ./Sources/Subs.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/Display.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
12. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/images/award.gif
17. Create Tree ./awards
18. Execute Code install.php
could you please tell me whats wrong/ how i could fix this? thanks (its saying test unsuccessful for admin.php
You'll have to make the edits for Sources/Admin.php by hand. It's very simple - find this:
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'
and replace it with
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments', 'manage_awards'
Replace that EXACT portion - there's probably more on that same line, but leave it as-is (it's probably just an ending ));)
In regards to a few of the requests - I'm sorry that I haven't been able to handle these in a timely manner (I like to do things within 24 hours), but I'm pretty busy updating this mod to work with SMF 2.0. More features are being added such as award categories, and some of the little changes people requested/posted are being added into the default package.
After I finish, I'll work on posting a new version for 1.1.x, which will include a few of the "missing" features added manually over time. This might take a little while, but as soon as this modification is switched over to my name I'll begin fully supporting it along with my other two mods.
You are a constant, dependable, attendant to this mod Dear Yoda.. no apologies required. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fd_sunny.gif&hash=e1b5e292f09136ccb67825e865bf006b234311f1)
Thanks :) I'm going to bed now, seeing as I've been late to work the last two days and I haven't been getting much sleep. I'm going to finish up the coding on the 2.0 version tomorrow afternoon, whereupon I can start on the improvements to the original version.
Heh, a few days ago Jay told me that this wasn't even supposed to ever be released as a mod, but I'm sure glad he did :D
Sleep!!
YES!! This mod is the hub of our forum! In a thousand ways. Your hard work does not go unnoticed. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fthankyou.gif&hash=ded80011b1d4cd32eaaf1e3dd9a05b0682c67338)
I am forum admin and even I can't see view awards album link on a members profile(see screenshot) Anyhelp would be appreciated :)
Thank you that fixed it :)
Reply was just sent to your PMs.
As a note, the edits hadn't gone through on Modifications.english-utf8.php, nor any other -utf8 language file.
For UTF8:
Upload a copy of ManageAwards.english.php to your language dir with the name ManageAwards.english-utf8.php
Make all theme edits to the utf8 versions of these files:
$languagedir/Modifications.english.php
Find ?> and place this before it:
// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s badge album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';
$languagedir/ManagePermissions.english.php
Find ?> and place this before it:
// Pogo Awards permissions.
$txt['permissionname_manage_awards'] = 'Manage Awards';
$txt['permissionhelp_manage_awards'] = 'This will allow users add. edit and assign new awards';
$languagedir/Errors.english.php
Find this line:
$txt['cannot_calendar_view'] = 'Sorry, but you are not allowed to view the calendar.';
Add this after it:
$txt['cannot_manage_awards'] = 'You are not allowed to manage Awards.';
I'm getting this error with the code on page 22/23
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 File: /public_html/forum/Sources/Load.php(1876) : eval()'d code
Line: 17
Can you show me what is around line 17 in Load.php?
about five lines either way
I think that was part of the error I had threw some code in load, now that I have removed it that error's gone but I get.
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.
Edit: I used this code.
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up? 1 for Favorite
$maxAwards = 4;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
echo '
<fieldset style="border: 1px solid black; -moz-border-radius: 8px;">
<legend>Favorite Award</legend>
';
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
echo '
</fieldset>';
}
}
and
show_awards_in_message($message['member']['id']);
I guess the posts that had to do with this issue were deleted once you figured it out? 0_o
Just wanted to give a heads-up that the Awards mod for SMF 2.0 is all packaged up and ready to be tested.
winrules is apparently on vacation, so until he gets back and has time to transfer this mod over to my name I can't post it on the mod site. If you would like to test it (SMF 2.0 ONLY) just send me a PM and I'll send a reply with the download link.
http://www.fustrate.com/projects/awards/
Quote from: YodaOfDarkness on July 25, 2008, 05:50:22 PM
Just wanted to give a heads-up that the Awards mod for SMF 2.0 is all packaged up and ready to be tested.
winrules is apparently on vacation, so until he gets back and has time to transfer this mod over to my name I can't post it on the mod site. If you would like to test it (SMF 2.0 ONLY) just send me a PM and I'll send a reply with the download link.
http://www.fustrate.com/projects/awards/
Looks good well done mate. I like the VB style table in the post page looks neat!
Any chance of adding a page to show all awards on the forum in the near future?
Right now that's admin-only, but it's easily modified to be public. I'll work on adding that in the coming days.
Quote from: YodaOfDarkness on July 25, 2008, 07:35:53 PM
Right now that's admin-only, but it's easily modified to be public. I'll work on adding that in the coming days.
Yea thats what i thought of doing. Modifying the admin page. But i my skill's don't go that far yet.
So yea if you could do that you'd make me a very happy man :D
This doesnt allow me to assign an award to a "specific person" it only lets me assign it to a "membergroup". one of the images on the mod page shows it can be assigned to one person. Can anyone tell me hwo to change it so it shows members and not membergroups"
TIA
edit.. WOOHOO gotta love the "power of posting" hehehehe. I figured out that you can select the members individually on the next page after you have selected the member group :)
First pick a membergroup that that member is in, and the next page will list all of the members in that group. You then pick names from that screen.
The 2.0 version will use a different method - you type the first few letters of a name, and it acts just like the Personal Messages' "To" field (I actually just borrowed the code from that ;))
Thanks I was able to figure that part out, however, I am not finding an "awards" folder in my root directory. I checked everywhere else as well and I cant find one.
Whats even weirder is I had already uploaded an image to test it out and it uploaded fine, and said the path of the image was my site/awards - but its not..lol
(I may be having a blond moment lol)
Edit.. I attached an image of my root folder to show you
Im also getting errors and the 2nd image I uploaded wont show up (its just a red x)
8: Undefined index: awardsDir
File: /home//public_html/Sources/ManageAwards.php
Line: 378
8: Undefined index: whoallow_awards
File: /home//public_html/Sources/Who.php
Line: 327
In the Settings page, what is the awards directory?
And what's the direct link to the image?
The settings page shows the word awards in the box
The direct link to the image I uploaded is
(the above image uploaded fine and shows up, but when I tried to upload another image, the image only shows up as a "red X". The link to the 2nd image is
REMOVED IMAGES
I'd recommend removing all characters that aren't alphanumeric or a space from the award name... I'm guessing the apostrophe is the problem.
ok I will try that. What about the folder itself? Any idea where its actually at?
Edit: I just uploaded another image that didnt have an " ' " in it and it uploaded fine.
I actually have no idea where it would be... as long as it's working, I wouldn't worry much about it...
Ok this is totally screwy..lol. The awards folder is now there (no clue as you can plainly see in my attached image above that it wasnt..lol)....I chmod the folder to 777. I got the same award error (1st one) as soon as I uploaded the image to the server. So, I made the change to the manageaward file like you said to do on page one of this topic. Tried it again and got the same error. I added the actual action this time for you to see.
http://patriotgames2.info/index.php?action=awards;sa=modify
8: Undefined index: awardsDir
File: /home/patriotg/public_html/Sources/ManageAwards.php
Line: 378
Im getting that error every time I upload an image. (once its uploaded I go straight to my error log and there is a new one)
I get the second error when I assign the image and then view my profile
http://patriotgames2.info/index.php?action=profile
8: Undefined index: whoallow_awards
File: /home/patriotg/public_html/Sources/Who.php
Line: 327
=============
Edit.. ok I think I have worked out the issue with the 2nd error (I chmodded the awards folder back to 755). The action on the 1st error says "modify". Whenever you upload an image, it takes you immediately to a page where you can modify the name, etc. I think thats where the error is coming from.
Go back to the Settings page - does the awards directory field have anything in it? Make sure it does, and then save the settings. That should fix your problem.
Or you can just check your smf_settings table through something like phpMyAdmin and look for a row with the name 'awardsDir'.
Ive attached an image showing my settings page
As for checking my smf_settings table, Im not quite sure how to do that so please correct me if I did it wrong. I clicked on my DB (on the left), then clicked on smf_settings (on the left) and then clicked browse at the top. If thats correct, I dont have anything on that list that says awardsDir ::)
Hmm... attach your ManageAwards.php to your next post and I'll look to see what's wrong.
Sorry for all the trouble :(. Thanks for all your help with this :)
Any way to make this show up on an Ultimate Profile? I've tried lots of ways but no success. I'm using 1.1.5.
Kimmie - here's the fixed file.
DistantJ - I have zero experience using the Ultimate Profile mod, and since I'm on 2.0 I can't really help with that :( sorry.
Quote from: YodaOfDarkness on July 27, 2008, 01:06:56 PM
Kimmie - here's the fixed file.
Thanks but unfortunately now when I click on the awards link in the admin panel I get this:
Parse error: syntax error, unexpected T_IF in /home/patriotg/public_html/Sources/ManageAwards.php on line 1
Would the fact that when I opened that file (after getting the error), its all garbled together now be whats causing the error? (see image)
Edit: If you cant get it fixed thats ok.. the previous error I posted is the only error I am getting now and I only get that error when I upload an image. Since I wont be uploading images that often, I can probably live with it :)
It's because I'm on a mac - here's a fixed one...
Quote from: YodaOfDarkness on July 27, 2008, 09:15:38 PM
It's because I'm on a mac - here's a fixed one...
that one seemed to work. No errors when I upload.. :) :) :)
I will assume the fact that I dont have that awardsDir table, that its ok? I will let you know if I encounter any more errors.
Thanks again for all the help :)
it's not a table - it's a row in a table.
And it's actually supposed to be pa_awardsDir in the code, so I think everyone who is using this mod is going to have that error.
when i go to award menu, i got this:
QuoteDatabase Error
Unknown column 'awardName' in 'field list'
File: /home/xxxx/public_html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
can anyone help me with this?
Can you do two things for me? The last person who had this error never replied, so I'm going to need to try a few different things.
1. Open your database (usually with phpMyAdmin) and check for a table name ending in 'awards'.
2. Attach your ManageAwards.php file to a reply here.
1. im checking, and then what to do?
2. i attach the manage awards
I don't see any problems with the file... but I did a few things to it anyways, and it's worth a shot.
Is there an _awards table? If not, then I can give you a php script that'll fix that for you. Hopefully you don't need it though...
yes there is smf_awards database, does it need to be fixed?
YodaOfDarkness, it's working when i click on AWards menu...
but when i try to assign, the error appear:
Database Error
Unknown column 'awardName' in 'field list'
File: /home/fairyfly/public_html/forum/Sources/ManageAwards.php
Line: 594
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.2, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Sounds like the table needs to be fixed.
Click 'Browse' along the top row of buttons, and tell me what field names show up (like 'gameName', 'ID_AWARD', 'filename', etc.). Is 'awardName' there?
this is the fields name:
ID_AWARD ID_AWARDED_MEMBER title givenDate ID_MEMBER memberName
also when i open my profile and other's profile, this is appear:
QuoteFatal error: Cannot redeclare awards() (previously declared in /home/fairyfly/public_html/forum/Sources/Profile.php:2904) in /home/fairyfly/public_html/forum/Sources/Profile.php on line 3063
Sounds like you're actually using a different mod... those aren't rows in any of the tables that this mod uses. Did you install "Member Awards" or "Simple Awards"?
well, i installed simple awards, but then i decided to use member awards, when i want to uninstall the simple award, it says i shouldn't do it or it will give me an error...im really confuse
Hmm... that's sort of tricky. Best thing I can think of is to ignore the error and uninstall both mods, and then delete all tables that have anything to do with 'awards' from your database. Then install this mod again, and it should (hopefully) work.
yes, it's working...thank you so much for your help YodaOfDarkness :)
v2.0 b3.1 (fresh install, upgrade done, no other mods present, sticking with default theme)
-was able to install the mod without any problems
-was able to edit the ManageAwards.php file without any problems
-was able to add categories without any problems
The Error:
When I go to upload an award, I fill out all the info, browse for my file (.gif), and then submit. I get the following error:
Undefined type used in the database query
When I go to my error log, I see the following:
(NOTE: I "XXX" out my folder name because I'd rather not have that show,yet)
http://www.motorstorm-rpms.org/XXXXXXXXX/index.php?action=admin;area=awards;sa=modify
Undefined type used in the database query
Function: AwardsSave
File: /var/www/html/community/Sources/ManageAwards.php
Line: 299
When I pull up that file, I get this result on Line 299:
// Clean the values
$_REQUEST['award_name'] = strtr($smcFunc['htmlspecialchars']($_REQUEST['award_name'], ENT_QUOTES), array("\r" => '', "\n" => '', "\t" => ''));
$_REQUEST['description'] = strtr($smcFunc['htmlspecialchars']($_REQUEST['description'], ENT_QUOTES), array("\r" => '', "\n" => '', "\t" => ''));
$category = (int) $_REQUEST['id_category'];
$time_added = time();
// Now to insert the data for this new award.
if ($_REQUEST['id'] == 0){
$smcFunc['db_insert']('replace',
'{db_prefix}awards',
array('award_name' => 'string', 'description' => 'string', 'time_added' => 'int', 'id_category'),
array($_POST['award_name'], $_POST['description'], $time_added, $category),
array('id_award')
);
Line 299 is the last line );
I didn't do any manual edits. Everything tested fine when uploading/installing.
(Just being overly detailed here, but the file you gave me in the link is titled differently than the one that is on the Mod Link... not sure if there is a difference, but I used the file from the link you sent me.)
I had fixed that in my personal test forum, but not in the package itself ;) sorry 'bout that
replace
array('award_name' => 'string', 'description' => 'string', 'time_added' => 'int', 'id_category'),
with
array('award_name' => 'string', 'description' => 'string', 'time_added' => 'int', 'id_category' => 'int'),
I dont see anything on mine regarding categories. Is it supposed to have them?
These are the 3 that I have: Award Name: Game Name: Upload Award:
If I could add them to specific categories and then be able to sort them by category that would be GREAT!
Just stopping by.. pay no attention...
Yoda Yoda Yoda!!! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fcheerleader3.gif&hash=0ea5a2a6f8ddc05d7f931edaa9afcede3a50fb98)
Kimmie - it's a 2.0-only feature that I'm finishing up on... you don't have it in 1.1.x
awwwwwwww shucks ... :'( I wont be going to 2.0 any time soon because TP wont be compatible with it for some time. Ah well, I guess it will be one more thing I will look forward to when I do make the move. ;)
Thanks anyways
BOOM! That was it. If only they had you on the Death Star! You would have caught that darn exhaust port error!
Thanks! Working great now!
UPDATE!!
Let me know if I'm being obsessively anal about errors in my log or not. I added a couple awards last night after editing that line. Then, today I looked at the error log and found this error. I'm going to post them here because I figure it is a way to not only get help for myself, but to help others and you to see if these are common and can be corrected in the package or just specific to me.
This one came up once:
http://www.motorstorm-rpms.org/XXXXXXXXX/index.php?action=profile;sa=awardsMembers;id=3
8: Undefined offset: 19
File: /var/www/html/XXXXXXXXXX/cache/lang_ManageAwards_english_default.php (awards_members sub template - eval?)
Line: 3044
Now, this is where it is odd. In my cache/ file, there is NO lang_ManageAwards_english_default.php file. There is a lang_ManageMaintenance_english_default.php file though. I would attach the line from that file, but it only goes up to line 264.
Quote from: YodaOfDarkness on July 23, 2008, 02:09:51 AM
You'll have to make the edits for Sources/Admin.php by hand. It's very simple - find this:
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'
and replace it with
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments', 'manage_awards'
Replace that EXACT portion - there's probably more on that same line, but leave it as-is (it's probably just an ending ));)
I'm running 1.1.5 and I'm having the failure on admin.php as the other user was. However, when I open my Admin.php and look for the code you mentioned replacing in the quote above, I find this instead:
// The format of this array is: permission, action, title, description.
$quick_admin_tasks = array(
array('', 'admin;credits', 'support_credits_title', 'support_credits_info'),
array('admin_forum', 'featuresettings', 'modSettings_title', 'modSettings_info'),
array('admin_forum', 'maintain', 'maintain_title', 'maintain_info'),
array('manage_permissions', 'permissions', 'edit_permissions', 'edit_permissions_info'),
array('admin_forum', 'theme;sa=admin;sesc=' . $context['session_id'], 'theme_admin', 'theme_admin_info'),
array('admin_forum', 'packages', 'package1', 'package_info'),
array('manage_smileys', 'smileys', 'smileys_manage', 'smileys_manage_info'),
array('moderate_forum', 'viewmembers', '5', 'member_center_info'),
I understand I'll have to add a new array line, but unsure of what to add in since it needs permission, action, title, description. Any help would be much appreciated.
Oz
Nope, I don't believe it's changed from 1.1.4 to 1.1.5
You're searching too far down, it's right at the top of the function... right after
// You have to be able to do at least one of the below to see this page.
Weird. I don't see that string of code after that either. If you get a chance and wouldn't mind, I've included my Admin.php file for you to take a look at what I'm doing wrong. If you don't have time, no problems. Thanks either way.
Oz
You'll have to ask the creator of TinyPortal how to add permissions to TP_addPerms().
Might be a stupid question :( but when i go to edit my theme for this mod It say to find <li>', $txt['profile_error_' . $error], '.</li>';
echo '
</ul>
</div>';
} In file Themes/[your theme]/Profile.template.php but I dont have a profile.template.php in my theme
Quote from: Pauls on August 13, 2008, 08:39:21 AM
Might be a stupid question :( but when i go to edit my theme for this mod It say to find <li>', $txt['profile_error_' . $error], '.</li>';
echo '
</ul>
</div>';
} In file Themes/[your theme]/Profile.template.php but I dont have a profile.template.php in my theme
If the file doesn't exist in your theme, edit the one in the default theme.
When on the "Main" tab in the admin cp, when I click on the "View Assigned" icon, I get this error in my log
8: Undefined variable: badge
File: /home//public_html/Themes/default/ManageAwards.template.php (view_assigned sub template - eval?)
Line: 421
@YodaOfDarkness
Would it be ok if I went back into the mod and changed wording? Instead of "Awards", I would like it to say "Awards & Organizations" This way, I can attach the organization gif to the person as well as their awards. I can do it now as is, but I'd like it to reflect more closely as to what I'm using it for. I'm not sure if I really need to ask permission to do this on my own forum, but wanted to anyway.
Thanks!
-TK
You can do whatever you'd like with it on your own forum ;)
I have had a serach in this forum and have not come across it , is there a way to auot have a pm sent to a member when the admin (me) gives a member an award
Thanks paul
Not at this moment, no.
Quote from: Kimmie on August 13, 2008, 05:37:20 PM
When on the "Main" tab in the admin cp, when I click on the "View Assigned" icon, I get this error in my log
8: Undefined variable: badge
File: /home//public_html/Themes/default/ManageAwards.template.php (view_assigned sub template - eval?)
Line: 421
My above issue seems to have rectified itself (not sure what happened there.lol), however I have one other issue. When I first installed the mod, I had uploaded an image that had a (') in the file name. Found out after doing so that the file name cannot have any additional characters in it - which is fine. The issue is.. I deleted that image via the admin panel on the awards page (clicked on the delet icon above the image). The image was deleted from there, but its still showing up on the server in the awards file and its causing me to not be able to make a full backup of my public.html folder. I have tried deleting that file from the server however I get an error that says the file is not there (see 1st image). The 2nd image shows that that file couldnt download and is causing the download to not complete.
What can I do to get this fixed?
You'll have to ask your host to delete it - the 2.0 version checks to make sure there aren't any extraneous characters in the filename before uploading it, but it there's really nothing anyone but your host can do about that image right now.
Sorry :(
Quote from: Fustrate on August 23, 2008, 02:25:50 AM
You'll have to ask your host to delete it - the 2.0 version checks to make sure there aren't any extraneous characters in the filename before uploading it, but it there's really nothing anyone but your host can do about that image right now.
Sorry :(
:o Lovely. You need to get someone to notate that on the mod page then so nobody else has to go through this because it causes incomplete backups
I haven't heard of this actually happening before, so that's why there was no warning. Some time in the near future this modification will be transferred onto my account, so I'll be able to patch a few bugs and release the 2.0 version.
Quote from: YodaOfDarkness on August 22, 2008, 06:43:44 PM
Not at this moment, no.
Thanks m8 that would be a great extra to it if you can get that working
This may have been asked, I couldn't find anything on this, but is there a way to get the badges to show up under the member's avatar in post?
I just want the badges to show, and a hover of the badge name, and the link to everyone who has that badge.
Quote from: ljprevo on August 24, 2008, 01:50:12 AM
This may have been asked, I couldn't find anything on this, but is there a way to get the badges to show up under the member's avatar in post?
I just want the badges to show, and a hover of the badge name, and the link to everyone who has that badge.
This would be a good idea. maybe add an icon underneath each image like the "favorite" image. Only thing is tho.. would that work on forums like mine where I dont allow regular members to upload their avatars to the server - they have to be uploaded elsewhere.
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
Quote from: YodaOfDarkness on August 24, 2008, 12:53:29 PM
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
This is EXACTLY what I needed THANK YOU VERY MUCH!
May this should be added to the original mod.
I don't yet have full control of this mod, JayBachatero says it's probably going to get switched over this week. Once it is, I'll release a new version for the 1.1.x line that includes that code, and the 2.0 version which already has that and much more.
Quote from: YodaOfDarkness on August 24, 2008, 05:35:19 PM
I don't yet have full control of this mod, JayBachatero says it's probably going to get switched over this week. Once it is, I'll release a new version for the 1.1.x line that includes that code, and the 2.0 version which already has that and much more.
so what your saying is.. unless we are on 2.0 were not gonna get all those extra features? hehehe
I'm glad to see that you are taking this mod over period. So many mods have been "thrown to the wolves" since 2.0 came out which is really not fair to those of us who for whatever reason have chosen not to upgrade to 2.0. :).
Will your new version be equipped with an "upgrade" or will we have to uninstall the one we currently use and install the new one? Reason I ask is I dont want to have to lose all that data from an uninstall. I worked too hard and have given too many awards to go through all that..lol. If I can know ahead of time that its not going to be an upgrade, I can go ahead and make the necessary edits on the one I have now using the code from the post you listed above.
It'll use slightly different code that makes far less database queries, but I'll post that as an easy upgrade to the new version that you can do by hand. But yes, the new features will be 2.0-only. I'll only be doing bug fixes and that one feature addition for 1.1.x.
Quote from: YodaOfDarkness on August 25, 2008, 01:07:07 AM
It'll use slightly different code that makes far less database queries, but I'll post that as an easy upgrade to the new version that you can do by hand. But yes, the new features will be 2.0-only. I'll only be doing bug fixes and that one feature addition for 1.1.x.
I went ahead and did the code edits and I keep getting this error
Undefined index: pa_favorite
File: /home//public_html/Themes/default/languages/Profile.english.php (main sub template - eval?)
Line: 46
any idea why?
this is line 46:
$txt[598] = 'This must be included if you specify a URL below.';
It's definitely not an error in Profile.english.php, I know that much.
Add this line to the end of Modifications.english.php:
$txt['pa_favorite'] = 'Favorite Award';
Quote from: YodaOfDarkness on August 25, 2008, 02:08:40 AM
It's definitely not an error in Profile.english.php, I know that much.
Add this line to the end of Modifications.english.php:
$txt['pa_favorite'] = 'Favorite Award';
Looks like that got it :). Thanks!!! :)
Edit: 1 quick question - I figured out how to change it from showing 4 to just showing 1, but isnt this also supposed to show on posts the # of awards as well? Mine doesnt :(
No, it doesn't show the number of awards.
Quote from: YodaOfDarkness on August 26, 2008, 01:24:35 AM
No, it doesn't show the number of awards.
ah ok.. i was assuming it did because of how you started out that post:
QuoteEDIT: I just figured it out Here's how to display (#) awards under a person's avatar.
Its no biggie. Having it just show the award is fine with me. :)
Will this work whit 2.x?
And if not, will it do in the future?
I have upgraded it for 2.0, but I can't quite release it until I get control of this mod. If you want to use the 2.0 version, just send me a PM and I'll send you back a link to the file.
Quote from: YodaOfDarkness on July 06, 2007, 09:11:42 PM
From my earlier post - changed $maxAwards to 1 to just show the favorite (it'll show a random badge if they don't set a favorite)
Quote from: YodaOfDarkness on June 29, 2007, 11:25:59 PM
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up? 1 for Favorite
$maxAwards = 1;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
Thanks alot been trying to do this for a while
I really like this mod however if it's possible I would like to do a few things for my clan site using this mod. (I assume this will work on 1.1.5)
Can I have the awards page of the profile be not a separate page, but instead under the summary of a person's profile. As well If possible can I have the Award images show up in the signature of the member that has them. Much like a medal rack would look like. Lastly, if possible have two images per award, one that appears in the profile, the other that appears in the signature.
The reason for these edits to introduce medals and ribbons to my Clan's site. A person looking at the member's profile sees a military record of sorts, with medals in full shown in it. As well with the member posting a person can see the medal rack in that persons signature (or a separate box altogether above the signature) that shows just the ribbon and not the full award that appears in the member's profile.
If you can help me out that would be great, however if it looks like those edits require custom work. I'm not afraid of footing the bill for it.
Thanks,
Deadfire
www.jsoc-unit.com
Quote from: Deadfire on August 31, 2008, 06:49:34 PM
I really like this mod however if it's possible I would like to do a few things for my clan site using this mod. (I assume this will work on 1.1.5)
Can I have the awards page of the profile be not a separate page, but instead under the summary of a person's profile. As well If possible can I have the Award images show up in the signature of the member that has them. Much like a medal rack would look like. Lastly, if possible have two images per award, one that appears in the profile, the other that appears in the signature.
The reason for these edits to introduce medals and ribbons to my Clan's site. A person looking at the member's profile sees a military record of sorts, with medals in full shown in it. As well with the member posting a person can see the medal rack in that persons signature (or a separate box altogether above the signature) that shows just the ribbon and not the full award that appears in the member's profile.
If you can help me out that would be great, however if it looks like those edits require custom work. I'm not afraid of footing the bill for it.
Thanks,
Deadfire
www.jsoc-unit.com
For showing them in the post, look in the post right above yours ;) they quoted my solution in whole.
As for showing them on the main profile page, I guess it's possible... I'd have to look into the code, but it wouldn't be much of a problem.
Quote from: YodaOfDarkness on August 31, 2008, 06:59:51 PM
Quote from: Deadfire on August 31, 2008, 06:49:34 PM
I really like this mod however if it's possible I would like to do a few things for my clan site using this mod. (I assume this will work on 1.1.5)
Can I have the awards page of the profile be not a separate page, but instead under the summary of a person's profile. As well If possible can I have the Award images show up in the signature of the member that has them. Much like a medal rack would look like. Lastly, if possible have two images per award, one that appears in the profile, the other that appears in the signature.
The reason for these edits to introduce medals and ribbons to my Clan's site. A person looking at the member's profile sees a military record of sorts, with medals in full shown in it. As well with the member posting a person can see the medal rack in that persons signature (or a separate box altogether above the signature) that shows just the ribbon and not the full award that appears in the member's profile.
If you can help me out that would be great, however if it looks like those edits require custom work. I'm not afraid of footing the bill for it.
Thanks,
Deadfire
www.jsoc-unit.com
For showing them in the post, look in the post right above yours ;) they quoted my solution in whole.
As for showing them on the main profile page, I guess it's possible... I'd have to look into the code, but it wouldn't be much of a problem.
Heh I did see that, making a box above the signature box shouldn't be much of a issue just using that code, however the difference is with having 2 images for the same award, one being shown in the profile, the other being shown in the signature.
you can chat with me on AIM if you like on this, my AIM is promdeadfire
Do you mean having a smaller image in there for the one above the signature? If so, put another folder inside your /awards/ directory called 'small' and find this line of code:
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
and replace it with
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/small/' . $row['filename'],
and remove the height and width attributes from the <img> tag
how can i use this mod on a 1.1.4 forum with spanish latin language ? :-\
Quote from: Fievel Lee on September 02, 2008, 04:36:13 PM
how can i use this mod on a 1.1.4 forum with spanish latin language ? :-\
maybe in the spanish forum:
http://www.simplemachines.org/community/index.php?topic=252307.msg1680680#msg1680680
;)
And these strings will need to be translated and added to the end of their respective files (right before the ?> and on their own lines)
Modifications.spanish.php
// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s badge album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';
ManagePermissions.spanish.php
// Pogo Awards permissions.
$txt['permissionname_manage_awards'] = 'Manage Awards';
$txt['permissionhelp_manage_awards'] = 'This will allow users add. edit and assign new awards';
Errors.spanish.php
$txt['cannot_manage_awards'] = 'You are not allowed to manage Awards.';
I can't recall if Latin Spanish uses a different filename like (filename).spanish_es.php
Quote from: NIBOGO on September 02, 2008, 06:05:06 PM
Quote from: Fievel Lee on September 02, 2008, 04:36:13 PM
how can i use this mod on a 1.1.4 forum with spanish latin language ? :-\
maybe in the spanish forum:
http://www.simplemachines.org/community/index.php?topic=252307.msg1680680#msg1680680
;)
thanks man ;D
Quote from: YodaOfDarkness on September 02, 2008, 06:15:15 PM
And these strings will need to be translated and added to the end of their respective files (right before the ?> and on their own lines)
Modifications.spanish.php
// Pogo Awards adminIndex text strings.
$txt['awards'] = 'Awards';
$txt['pa_view_album'] = 'View member\'s badge album.';
$txt['pa_mods'] = 'Mods';
$txt['whoallow_pogoawards'] = 'Managing <a href="' . $scripturl . '?action=awards">Awards</a>.';
ManagePermissions.spanish.php
// Pogo Awards permissions.
$txt['permissionname_manage_awards'] = 'Manage Awards';
$txt['permissionhelp_manage_awards'] = 'This will allow users add. edit and assign new awards';
Errors.spanish.php
$txt['cannot_manage_awards'] = 'You are not allowed to manage Awards.';
I can't recall if Latin Spanish uses a different filename like (filename).spanish_es.php
thank you very much....everything is working fine now :D
thanks for all your help guys.....and sorry for my bad english :P
Later :)
Quote from: YodaOfDarkness on June 29, 2007, 11:25:59 PM
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up?
$maxAwards = 4;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
thanx.....just what i need ;D
just 1 questions
is it possible to put the name of the award right below the image of the award??
thanx again
Congratulations on your award Yoda! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fbeerdrinkers.gif&hash=0847e0a211cfe23068251d92038e6a252ae63621)
Does this mod work in the classic theme?
Yes it does, you'd just need to make a few theme edits yourself. Use the instructions provided right under the Downloads section on this mod's page.
And if anyone has noticed, this modification has now been transferred over to my name, including the first post (which now looks like I posted before I ever registered here ;)). The 2.0 version of this modification has been uploaded, and I'm working on cleaning up the 1.1.x version (but no new code will be added, so you won't need to upgrade at all).
Congratulations again! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhomesteadexchangenetwork.net%2Fsmf%2FSmileys%2Fdefault%2Fbeerdrinkers.gif&hash=0847e0a211cfe23068251d92038e6a252ae63621)
thank you, and thank you again :D
Things are gonna get pretty busy for me once 2.0 gets to release candidates, and then when it gets out of RC... people are gonna want to use reputation and referrals for sure, and this one ain't too far behind in terms of how many people would install it. This was truly the first mod that I rewrote from scratch, as opposed to creating it myself or just re-releasing one that someone else couldn't support any longer.
It was fun to see how JayBachatero had written this two years ago, and then figuring out how I could optimize and improve upon his code.
Yoda, is there any update/fix yet on this issue that I mentioned a while back: getting this error in my log when ever I click on View Assigned from the admin area:
8: Undefined variable: badge
File: /home//public_html/Themes/default/ManageAwards.template.php (view_assigned sub template - eval?)
Line: 421
thanks
attach your ManageAwards.template.php to a message
K here it is
That error's been in there for 2 years, it looks like ;)
attached
Quote from: YodaOfDarkness on September 04, 2008, 11:11:27 PM
thank you, and thank you again :D
Things are gonna get pretty busy for me once 2.0 gets to release candidates, and then when it gets out of RC... people are gonna want to use reputation and referrals for sure, and this one ain't too far behind in terms of how many people would install it. This was truly the first mod that I rewrote from scratch, as opposed to creating it myself or just re-releasing one that someone else couldn't support any longer.
It was fun to see how JayBachatero had written this two years ago, and then figuring out how I could optimize and improve upon his code.
Oh I can just imagine how many changes there have been sense then! It's a delight to see you so dedicated to the mod and still truly excited about it.
I'm still working on some new awards too, in between life's crazies!
Hi i have installed it on 1.1.5.
Installation went fine then default/index.template.
I manually edited this, when i went through the main tab,
Showed me this error,
Database Error
Unknown column 'awardName' in 'field list'
File: /home/itacumen/public_html/forum/Sources/ManageAwards.php
Line: 193
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.
Fatal error: Cannot redeclare awards() (previously declared in /home/itacumen/public_html/forum/Sources/Profile.php:3839) in /home/itacumen/public_html/forum/Sources/Profile.php on line 4190
Profile page does not shows
1. attach your ManageAwards.php file to a post... I'll see if there are any errors.
2. Look in Profile.template.php and find this line:
function awards()
Delete the whole duplicate code that you find there (you'll find that line twice)
I have uninstalled it since i had issue with the profile. And that to you are offline.
Will reinstall and attach the manageawards.php file. and remove the duplicate in profile.template.php file.
But i use ultimate profile mod.
I have installed it,
Checked the profile page, thave three instance like function template_awards() .
So i have attached the profile template and manage award . php files.
Kindly help me YodaofDarkness.
new Profile.template.php is attached.
can you check your database to see if smf_awards has a row named "awardName" in it?
Quote from: YodaOfDarkness on September 05, 2008, 10:23:15 AM
new Profile.template.php is attached.
can you check your database to see if smf_awards has a row named "awardName" in it?
Will Attach and will do it now YodaofDarkness.
Quote from: YodaOfDarkness on September 05, 2008, 10:23:15 AM
new Profile.template.php is attached.
can you check your database to see if smf_awards has a row named "awardName" in it?
Hi now it shows the profile.php page has error. I have replaced the file you have edited.
Still it shows when i try clicking on profile button on my forum
Fatal error: Cannot redeclare awards() (previously declared in /home/itacumen/public_html/forum/Sources/Profile.php:3839) in /home/itacumen/public_html/forum/Sources/Profile.php on line 4190
-------------------------
updated
-------------------------
Quote from: YodaOfDarkness on September 05, 2008, 10:23:15 AM
can you check your database to see if smf_awards has a row named "awardName" in it?
No such row named awardName inside smf_awards database.
are there any other rows in smf_awards? and you need to attach Profile.php to a post so I can remove the duplicate code
Quote from: YodaOfDarkness on September 05, 2008, 12:59:17 AM
That error's been in there for 2 years, it looks like ;)
attached
just tried to upload the one you posted to the server but its not working. I think its because the file name is ManageAwards[1][1].template.php.txt. I tried renaming it but that didnt work.
Rename it ManageAwards.template.php
Quote from: YodaOfDarkness on September 06, 2008, 01:33:01 AM
Rename it ManageAwards.template.php
k I did that, uploaded it, and as soon as I clicked on the Awards link in the admin panel I got these 2 errors in my error log:
8: Undefined offset: 3
File: /home//public_html/Sources/Load.php
Line: 1930
8: Undefined offset: 3
File: /home//public_html/Sources/Load.php
Line: 1927
and this parse error:
There was a problem loading the /Themes/default/ManageAwards.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme.
Parse error: syntax error, unexpected T_IF in .../Themes/default/ManageAwards.template.php on line 1
1: <?php/********************************************************************************* ManageAwards.template.php ** ----------------------------------------------------------------------------- ** This file handles the template side of Awards. *********************************************************************************** Software version: Pogo Game Awards ** Software by: Juan "JayBachatero" Hernandez ** Copyright (c) 2006 by: Juan "JayBachatero" Hernandez ** Contact: [email protected] ** Website: JayBachatero.com ** ============================================================================= ** This mod is free software; you may redistribute it and/or modify it as long ** as you credit me for the original mod. This mod is distributed in the hope ** that it is and will be useful, but WITHOUT ANY WARRANTIES; without even any ** implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ** ** All SMF copyrights are still in effect. Anything not mine is theirs. Enjoy! ** Some code found in here is copy written code by SMF, therefore it can not be ** redistributed without official consent from myself or SMF. *********************************************************************************/if (!defined('SMF')) die ('Hacking attempt...');function template_main(){ global $context, $modSettings, $txt, $settings; // Setup the template echo ' <table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" class="bordercolor"> <tr class="titlebg"> <td colspan="', $modSettings['pa_columns'], '">' ,$txt['pa_title'], '</td> </tr>'; // Check if this memebr has any awards if (empty($context['awards'])) { echo ' <tr class="windowbg2"> <td>', $txt['pa_error_no_badges'], '</td> </tr>'; } else { // Output the results $counter = 0; $alternate = true; $width = 100 / $modSettings['pa_columns']; foreach ($context['awards'] as $award) { // The opening tr tag if ($counter == 0) echo ' <tr class="windowbg', $alternate ? '2' : '', '">'; // The actual award echo ' <td align="center" width="', $width, '%" valign="top"> <table width="100%" height="100%"> <tr> <td width="', $width, '%" class="windowbg3"> <a href="', $award['edit'], '"><img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['pa_edit_award'], '" align="left" style="padding: 2px;" /></a> <a href="', $award['delete'], ';sesc=', $context['session_id'], '"><img src="', $settings['images_url'], '/icons/delete.gif" alt="', $txt['pa_delete'], '" align="left" style="padding: 2px;" /></a> <a href="', $award['assign'], '"><img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="', $txt['pa_assign'], '" align="left" style="padding: 2px;" /></a> <a href="', $award['viewAssigned'], '"><img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt['pa_view_assigned'], '" align="left" style="padding: 2px;" /></a> </td> </tr> <tr> <td width="', $width, '%" align="center" valign="bottom"> <br /> <a href="', $award['edit'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" /></a><br /> <strong>', $award['awardName'], '</strong><br /> ', $award['gameName'], '<br /> ', $award['time'], '<br /> </td> </tr> </table> </td>'; // Increase the counter. $counter++; // If we have reached the max columsn close it and reset the counter if ($counter == $modSettings['pa_columns']) { echo ' </tr>'; // Reset the counter $counter = 0; $alternate = !$alternate; } } // If $counter is not = 0 then we must close the last tr if ($counter != 0) { if ($modSettings['pa_columns'] - $counter > 0) { for ($i = 0; $i < $modSettings['pa_columns'] - $counter; $i++) echo ' <td class="windowbg', $alternate ? '2' : '', '"> </td>'; } echo ' </tr>'; } // Show the pages echo ' <tr class="catbg"> <td align="left" colspan="', $modSettings['pa_columns'], '"> <b>', $txt[139], ':</b> ', $context['page_index'], ' </td> </tr>'; } // Close the table echo ' </table>';}function template_modify(){ global $context, $txt, $scripturl, $modSettings; // Setup the template echo ' <form action="', $scripturl, '?action=awards;sa=modify" method="post" name="award" id="award" accept-charset="', $context['character_set'], '" enctype="multipart/form-data" style="padding:0; margin: 0;"> <table border="0" cellspacing="0" cellpadding="4" align="center" width="70%" class="tborder"> <tr class="titlebg"> <td colspan="2">', $context['editing'] == true ? $txt['pa_edit_award'] : $txt['pa_add_award'], '</td> </tr>'; // Are we editing? If so show the actual award if ($context['editing'] == true) echo ' <tr class="windowbg3" align="center"> <td colspan="2"><img src="', $context['award']['img'], '" width="', $context['award']['width'], '" height="', $context['award']['height'], '" alt="', $context['award']['awardName'], '" /></td> </tr>'; // Area to type the name of the award echo ' <tr class="windowbg2"> <th valign="top" align="right" width="40%"> <label for="awardName">', $txt['pa_badge_name'], '</label>: </th> <td> <input type="text" name="awardName" id="awardName" value="', $context['award']['awardName'], '" size="30" /> </td> </tr>'; // Area to type the name of the game echo ' <tr class="windowbg2"> <th valign="top" align="right" width="40%"> <label for="gameName">', $txt['pa_game_name'], '</label>: </th> <td> <input type="text" name="gameName" id="gameName" value="', $context['award']['gameName'], '" sise="30" /> </td> </tr>'; // Now for the upload echo ' <tr class="windowbg2"> <th valign="top" align="right" width="40%"> <label for="awardFile">', $txt['pa_badge_upload'], '</label>: </th> <td> <input type="file" name="awardFile" id="awardFile" size="40" /> </td> </tr>'; // Submit button and a few other hidden fields echo ' <tr class="windowbg2"> <td class="windowbg2" colspan="2" align="right" valign="middle"> <input type="hidden" name="id" value="', $context['award']['id'], '" /> <input type="hidden" name="sc" value="', $context['session_id'], '" /> <input type="submit" name="award_save" value="' ,$context['editing'] ? $txt['pa_save'] : $txt['pa_submit'], '" accesskey="s" /> </td> </tr>'; // Close the table and form. echo ' </table> </form>';}function template_assign(){ global $context, $scripturl, $txt, $modSettings, $settings; // The first step. This is where you select the membergorups if ($context['step'] == 1) { echo ' <form action="', $scripturl, '?action=awards;sa=assign;step=2', isset($_REQUEST['id']) ? ';id=' . $_REQUEST['id'] : '', '" method="post" accept-charset="', $context['character_set'], '"> <table width="70%" cellpadding="5" cellspacing="0" border="0" align="center" class="tborder"> <tr class="titlebg"> <td>', $txt['pa_mem_group'], '</td> </tr> <tr class="windowbg"> <td class="smalltext" style="padding: 2ex;">', $txt['pa_mem_group_desc'], '</td> </tr> <tr> <td class="windowbg2">'; foreach ($context['groups'] as $group) echo ' <label for="who[', $group['id'], ']"><input type="checkbox" name="who[', $group['id'], ']" id="who[', $group['id'], ']" value="', $group['id'], '" checked="checked" class="check" /> ', $group['name'], '</label> <i>(', $group['member_count'], ')</i><br />'; echo ' <br /> <label for="checkAllGroups"><input type="checkbox" id="checkAllGroups" checked="checked" onclick="invertAll(this, this.form, \'who\');" class="check" /> <i>', $txt[737], '</i></label><br /> </td> </tr> <tr> <td class="windowbg2" style="padding-bottom: 1ex;" align="right"> <input type="submit" value="', $txt[65], '" /> </td> </tr> </table> <input type="hidden" name="sc" value="', $context['session_id'], '" /> </form>'; } // Step 2: Show the awards and members to receive one. elseif ($context['step'] == 2) { // Javascript to change the award on selection echo ' <script language="JavaScript" type="text/javascript"> function showaward() { document.images.awards.src = '' . dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/\' + document.forms.assign.award.options[document.forms.assign.award.selectedIndex].id; } </script>'; // Badge select section echo ' <form action=', $scripturl, '?action=awards;sa=assign;step=3" method="post" name="assign" id="assign" accept-charset="', $context['character_set'], '"> <table width="70%" cellpadding="5" cellspacing="0" border="0" align="center" class="tborder"> <tr class="titlebg"> <td colspan="2">', $txt['pa_select_badge'], '</td> </tr> <td class="windowbg2"> <select name="award" onchange="showaward()" size="10"style=" width: 45%;">'; // Loop and show the drop down. foreach ($context['awards'] as $key => $award) echo ' <option value="', $key, '" id="', $award['filename'], '" ', isset($_REQUEST['id']) && $_REQUEST['id'] == $key ? 'selected="selected"' : '', '>', $award['awardName'], '</option>'; echo ' </select> <img id="awards" src="', isset($_REQUEST['award']) ? dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $context['awards'][$_REQUEST['award']]['filename'] : '', '" align="top" /> </td>'; // Close table echo ' </table><br />'; // Select the members to give a award echo ' <table width="70%" cellpadding="5" cellspacing="0" border="0" align="center" class="tborder"> <tr class="titlebg"> <td colspan="', $modSettings['pa_columns'], '" class="windowbg2">', $txt['pa_select_member'], '</td> </tr>'; $counter = 0; $width = 100 / $modSettings['pa_columns']; foreach ($context['members'] as $key => $member) { // Open the tr if ($counter == 0) echo ' <tr>'; // The member echo ' <td class="windowbg2"><label for="member[', $key, ']"><input type="checkbox" name="member[', $key, ']" id="member[', $key, ']" value="', $key, '" checked="checked" class="check" /> ', $member, '</label></td>'; $counter++; // Close the tr if ($counter == $modSettings['pa_columns']) { echo ' </tr>'; // Reset the counter $counter = 0; } } // Make sure the last one is closed if ($counter != 0) { if ($modSettings['pa_columns'] - $counter > 0) { for ($i = 0; $i < $modSettings['pa_columns'] - $counter; $i++) echo ' <td class="windowbg2"> </td>'; } echo ' </tr>'; } // Close the table echo ' <tr> <td colspan="', $modSettings['pa_columns'], '" align="right" class="windowbg2"> <label for="checkAllGroups"><input type="checkbox" id="checkAllGroups" checked="checked" onclick="invertAll(this, this.form, \'member\');" class="check" /> <i>', $txt[737], '</i></label><br /> </td> <tr> </table><br />'; // Options echo ' <table width="70%" cellpadding="5" cellspacing="0" border="0" align="center" class="tborder"> <tr class="titlebg"> <td colspan="2">', $txt['pa_select_badge'], '</td> </tr> <tr> <th class="windowbg2"> <label for="dateReceived">', $txt['pa_date'], '</label>: </th> <td class="windowbg2">'; // The date echo ' <select name="month">'; foreach ($txt['months'] as $key => $month) echo ' <option value="', $key, '" ', date('F') == $month ? 'selected="selected"' : '', '>', $month, '</option>'; echo ' </select>'; // The date echo ' <select name="day">'; for ($i = 1; $i <= 31; $i++) echo ' <option value="', $i, '" ', date('j') == $i ? 'selected="selected"' : '', '>', $i, '</option>'; echo ' </select>'; // The date echo ' <select name="year">'; for ($i = date('Y') + 5; $i >= date('Y') - 5; $i--) echo ' <option value="', $i, '" ', date('Y') == $i ? 'selected="selected"' : '', '>', $i, '</option>'; echo ' </select>'; // Close it echo ' </td> </tr> <tr> <td class="windowbg2" style="padding-bottom: 1ex;" align="right" colspan="2"> <input type="submit" value="', $txt[65], '" /> </td> </tr> </table> <input type="hidden" name="sc" value="', $context['session_id'], '" /> </form>'; }}function template_view_assigned(){ global $context, $scripturl, $txt; // Make this shorter $award = $context['assignedAward']; // Open the form echo ' <form action=', $scripturl, '?action=awards;sa=viewassigned;id=', $award['id'], '" method="post" name="unassign" id="unassign" accept-charset="', $context['character_set'], '"> <table width="70%" cellpadding="4" cellspacing="1" border="0" align="center" class="bordercolor"> <tr class="titlebg"> <td colspan="2">', $txt['pa_view_assigned'], '</td> </tr> <tr class="windowbg"> <td colspan="2" align="center"> <img src="', $award['img'], '" alt="', $award['awardName'], '" /><br /> <strong>', $award['awardName'], '</strong><br /> ', $award['gameName'], ' </td> </tr> <tr class="titlebg"> <td ', empty($context['assignedMembers']) ? 'colspan="2"' : '', '>', $txt[19], '</td>'; // Show the check call checkbox if there are members if (!empty($context['assignedMembers'])) echo ' <td> <input type="checkbox" id="checkAllGroups" onclick="invertAll(this, this.form, 'member\');" class="check" /> </td>'; echo ' </tr>'; // Check if there are assigned members if (empty($context['assignedMembers'])) { echo ' <tr class="windowbg2"> <td>', sprintf($txt['pa_no_assigned_members'], $scripturl . '?action=awards;sa=assign;id=' . $award['id'] . ';step=1'), '</td> </tr>'; } else { $alternate = true; // Loop through the members foreach($context['assignedMembers'] as $member) { echo ' <tr class="windowbg', $alternate ? '2' : '', '"> <td><label for="member[', $member['id'], ']">', $member['link'], '</label></td> <td width="3%" align="center"><input type="checkbox" name="member[', $member['id'], ']" id="member[', $member['id'], ']" value="', $member['id'], '" /></td> </tr>'; // Change alternate $alternate = !$alternate; } } // Unassign if (!empty($context['assignedMembers'])) echo ' <tr class="windowbg"> <td align="right" colspan="2"> <input type="hidden" name="sc" value="', $context['session_id'], '" /> <input type="hidden" name="id" value="', $award['id'], '" /> <input type="submit" name="unassign" value="', $txt['pa_unassign'], '" accesskey="s" /> </td> </tr>'; // Close the table echo ' </table> </form>';}function template_settings(){ global $context, $txt, $scripturl, $modSettings; // The opening form and table tags. echo ' <form action="', $scripturl, '?action=awards;sa=settings" method="post" name="badge" id="badge" accept-charset="', $context['character_set'], '" enctype="multipart/form-data" style="padding:0; margin: 0;"> <table border="0" cellspacing="0" cellpadding="4" align="center" width="70%" class="tborder"> <tr class="titlebg"> <td colspan="2">' ,$txt['pa_settings'], '</td> </tr>'; // First thing first. The folder echo ' <tr class="windowbg2"> <td valign="top" align="right" width="50%"> <strong><label for="pa_awardsDir">', $txt['pa_badges_dir'], '</label>:</strong><br /> <span class="smalltext">', $txt['pa_badges_dir_desc'], '</span> </td> <td> <input type="text" name="pa_awardsDir" id="pa_awardsDir" value="', empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'], '" size="30" /> </td> </tr>'; // Number of columns echo ' <tr class="windowbg2"> <td valign="top" align="right" width="50%"> <strong><label for="pa_columns">', $txt['pa_columns'], '</label>:</strong><br /> <span class="smalltext">', $txt['pa_columns_desc'], '</span> </td> <td> <input type="text" name="pa_columns" id="pa_columns" value="', empty($modSettings['pa_columns']) ? '' : $modSettings['pa_columns'], '" size="30" /> </td> </tr>'; // Number of rows echo ' <tr class="windowbg2"> <td valign="top" align="right" width="50%"> <strong><label for="pa_rows">', $txt['pa_rows'], '</label>:</strong><br /> <span class="smalltext">', $txt['pa_rows_desc'], '</span> </td> <td> <input type="text" name="pa_rows" id="pa_rows" value="', empty($modSettings['pa_rows']) ? '' : $modSettings['pa_rows'], '" size="30" /> </td> </tr>'; // Allow users to have more than one (1) favorite badge echo ' <tr class="windowbg2"> <td valign="top" align="right" width="50%"> <strong><label for="pa_favorite">', $txt['pa_favorite'], '</label>:</strong><br /> <span class="smalltext">', $txt['pa_favorite_desc'], '</span> </td> <td> <input type="checkbox" name="pa_favorites" id="pa_favorites" ', empty($modSettings['pa_favorites']) ? '' : 'checked="checked"', '" /> </td> </tr>'; // Submit button and a few other hidden fields echo ' <tr class="windowbg2"> <td class="windowbg2" colspan="2" align="right" valign="middle"> <input type="hidden" name="sc" value="', $context['session_id'], '" /> <input type="submit" name="save_settings" value="' ,$txt['pa_save'], '" accesskey="s" /> </td> </tr>'; // Close the table and form. echo ' </table> </form>';}?>
2:
3:
Argh, I saved it with Mac line breaks, and it needs Windows. Just a minute.
YodaOfDarkness will you add links field too?to add threads links where members got his/her award?that will be more helpful.
No, I don't think that will be added any time soon. An award can be given for anything, like "First 100 Members", "Arcade Champion - June 2008", "Most Helpful Member - 2007"... all of which don't necessarily need a post to link to. I might build it into a later version, but for now it's not going to be included.
Oh and I know I said that the updated 1.1.x version would be released yesterday, but I fell asleep around 5 PM because of my leg... so I'll try to get that out in the next few days.
Quote from: YodaOfDarkness on September 06, 2008, 12:10:20 PM
Argh, I saved it with Mac line breaks, and it needs Windows. Just a minute.
That got it .. thanks :D
Me again... You can shoot me at any time!
Seriously though.. I got a Critical Error from other members in my Error Log, but haven't received the error myself on my name. I accidentally deleted the most recent error, but it was the same line # and file.
Can you tell me why this is critical vs undefined? Also, what do I have to do to correct this?
v2.0 b3.1
default theme (w/ color changes)
Critical is something that can halt the operation of your forum... and unknown is pretty much unknown.
Try replacing on line 1045
if($modSettings['awards_in_post'] > 0){
with
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
thanks, will see how it goes!
Just modified an award for the first time and got these 2 errors in my log:
8: Undefined variable: boarddir
File: /home//public_html/Sources/ManageAwards.php
Line: 356
8: Undefined variable:
File: /home//public_html/Sources/ManageAwards.php
Line: 356
You had an extra $ before $boarddir
Quote from: YodaOfDarkness on September 13, 2008, 04:40:05 PM
You had an extra $ before $boarddir
k now I get this when I click on the awards link in admin CP
Parse error: syntax error, unexpected T_IF in /home//public_html/Sources/ManageAwards.php on line 1
stupid Mac is saving things with mac linebreaks
attached
that got it.. once again.. thanks :)
This might sound like a stupid question but I can't locate any awards to upload. I'm not artist so creatingthem is out of the question for me.
Is there a url where I might find a bunch I can use??
Mother Goose made some a while back - http://www.simplemachines.org/community/index.php?topic=114701.msg1563310#msg1563310
and you can probably search the internet for "free forum awards" or something like that to find more :)
Not a stupid question at all! I make them just for this mod!
Try here... http://funfreeforumgraphics.homesteadexchangenetwork.net/index.php?spgmGal=Ribbons-Badges-Awards
And here... http://funfreeforumgraphics.homesteadexchangenetwork.net/index.php?spgmGal=Small_Medals
And here!! http://funfreeforumgraphics.homesteadexchangenetwork.net/index.php?spgmGal=Tiny_Medals
Oooh you beat me to it!! Thank you Yoda!! ;)
Hi everyone.
Im totally new to this forum, so please bare with me if my questions sounds stupid.
I have downloaded and used the installation guide for smf 1.1.6 and im getting the following errors from the error log:
8: Undefined index: awards
Fil: /xxxxxxxxxx/morstrold.dk/Sources/Subs.php
Linie: 2812
and also:
8: Undefined index: pa_mods
Fil: /xxxxxxxxxxx/morstrold.dk/Sources/Subs.php
Linie: 2812
Im using the autumn theme and not the default one.
I read somewhere that if youre using a template and there are files missing from that particular template, then it will use the templates from the default theme - Is this correct.
I done the modifications to the default theme and not the autumn theme, because some of the templates that this mod uses are not in that particular template.
I have also noticed that in the admin, beneath the error log, there is a new box created, but its empty :'(
Am i a complete braindead, did i mess it all up?
Hope somebody can reach out and help a little.
Thank you in advance
/Kristian
Can you attach your Subs.php file to a post here? And I haven't ever heard of another box under the error log...
Hey yoda.
I tried to make a fresh install og smf 1.1.6 and again followed the instructions on manual installation.
Really hope you can help.
It looks like everything is there, but there is no text anywhere either in admin - a checkbox, yes, but no text.
Also adding the error log and the box in admin im talking about
I can't get mine to work.
I am using SMF default theme version 1.15 and have installed it several times. I have no admin area for it, nothing shows up anywhere except for the little award.gif below each members name. When they click on it, it takes them to any empty menu page where it looks like there should be something but there is nothing.
Please help.
Oh, and I get the same "weird box" as the post above me does in the screenshot.
On the install screen, did it say any of the tests failed (red "Test Failed" on the right side)?
Nope, all tests were fine.
Hmm... is this the first modification you've installed? If you open Admin.template.php and Sources/Admin.php does anything come up when you search for the word "awards" or "pa_"?
Yes, everything seems to be in both of those files.
Yoda!
This message is just to let you know that i got to install it manually using the guide, and it installed perfect.
Quote from: ajoybat on September 24, 2008, 03:29:14 PM
Yes, everything seems to be in both of those files.
Hmm... are you logged in as an administrator? And it should be on the left hand side of your admin screen, in that menu column.
@Kokkekniven: yay!
Quote from: YodaOfDarkness on July 27, 2008, 11:00:52 PM
it's not a table - it's a row in a table.
And it's actually supposed to be pa_awardsDir in the code, so I think everyone who is using this mod is going to have that error.
Hi yoda,
As i said earlier i got it all working after a reinstall, but in the end the badges didnt show, so after a little search i saw this new ManageAwards.php you made, and now everything is working lie a charm
Great mod :)
With Yoda's kind permission, I have a new set of awards to offer. I have adapted collected "gamer" icons into awards for this mod. So to be clear, I made the awards, but the icons are freely available images collected from the web.
These may *not* be added to any gallery or collection for profit.
Please feel free to use them on your forums.
There are 20 awards in small and mini, and the same 20 for dark back grounds in small and mini. A total of 80 awards in my Gamerz_Awards Zip (http://homesteadexchangenetwork.net/MG_gamer_medals.zip)
Here are some examples...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG1.gif&hash=b6bc3370978c523eba9f9c887fe01fa479851ff2)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG1a.gif&hash=d544261998ce138e0b6fd7c339ed56d06f1615e4) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG2.gif&hash=a0a1bf9513d46cd873055a50746c1344b03fcfab)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG2a.gif&hash=48ca7570b9c44c9d3fccf9fbb0dd49186a29812a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG4.gif&hash=45de2c304e0cedbff760c71d8b1c305e5e5e0466)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG4a.gif&hash=f5e74b5389419eaaa579cc55a3cdb6e952c298da) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG7.gif&hash=e256433c602ded9316c1d70a93eec0c1b092b4a2)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG7a.gif&hash=692f16280f537ef7e3c37b2541eb5b2aaa297fcf) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG18.gif&hash=83f357009aa2813b29d9d7391d12880761dfc085)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG18a.gif&hash=efd0441a05c50b48b4b96f85239497a3ab026f4c) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG14.gif&hash=400247fa67a7fb078da49ce7ef94ab1794202747)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG14a.gif&hash=b097ab5d105ff99dae16dd1f70795456d46eff24)
And the same set of awards for a dark back ground.. different examples however...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG28.gif&hash=ee00d92687941b659c4309cea39bd7c176a2297a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG28a.gif&hash=535a9e59b64289bbfc27f6aa35bc9aa174ccfe3f) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG40.gif&hash=3c3c4d1530e6190f8c231818e00c3fd050c9f329) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG40a.gif&hash=faed4b064c797d3cbc9a1f741be3964cd32bea1a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG38.gif&hash=8f39aad32971f4778d08bed03a3bca6d1e28c6b3) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG38a.gif&hash=89505ef9c9cfd1e9809fbee56523370186bb0173) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG33.gif&hash=9c9844788b43911daf5ec9a635985e5c5e710f34) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG33a.gif&hash=89b482d4e9739e061e2284f0972551bea548dee3) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG31.gif&hash=b1f534d0e49079772549debd8cc5e101e11dd504) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG31a.gif&hash=2dad3aab8f442a98fa83af295de531826997355a) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG39.gif&hash=129442c4c167673864946b15a7065ae8ef0955e2) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi157.photobucket.com%2Falbums%2Ft41%2FHomesteadHeaven%2Fawards%2FmedalMG39a.gif&hash=ad99b3737503421ced9fcc78e2c77a9ac327c2f9)
Thank you Yoda! ;D
wow, those are pretty sweet. thanks.
I'm totally a noob on this stuff, what does this mean and how could I fix it? Thanks!
Field 'filename' doesn't have a default value
File: C:\xxxxx\xxxxxx\Sources\ManageAwards.php
Line: 322
this is probably a dumb question
Did the changes get made to your database? Check in phpMyAdmin to see if smf_awards has a row named filename and it has an empty default value
You might actually want to change the default value to the letter a, just to be safe
Hi
I've just installed this on 1.1.5 and I get this weird text at the top of my forum
// Pogo Awards adminIndex text strings. $txt['awards'] = 'Awards'; $txt['pa_view_album'] = 'View member\'s badge album.'; $txt['pa_mods'] = 'Mods'; $txt['whoallow_pogoawards'] = 'Managing Awards.';
Here is the link - http://www.psnfriends.net/index.php
How do I fix that? I think it's probably something simple to fix (I remember something similar happening to another mod) but I have no idea how to fix it :(
It's either /Themes/default/languages/index.english.php or Modifications.english.php, can't remember which.
Go to the end of the file, find the ?> and move it to the very end of the file.
Thanks! :) It was Modifications.english.php
Quote from: highwayfrunkis on September 27, 2008, 10:30:05 AM
wow, those are pretty sweet. thanks.
I'm totally a noob on this stuff, what does this mean and how could I fix it? Thanks!
Field 'filename' doesn't have a default value
File: C:\xxxxx\xxxxxx\Sources\ManageAwards.php
Line: 322
this is probably a dumb question
I went to where it told me, and this is what I see in that section: (thanks in advance for the help)
if ($_REQUEST['id'] == 0)
{
$addAward = db_query("
INSERT INTO {$db_prefix}awards
(awardName, gameName, timeAdded)
VALUES
(this is line 322) ('$_REQUEST[awardName]', '$_REQUEST[gameName]', $timeAdded)", __FILE__, __LINE__);
Quote from: YodaOfDarkness on September 27, 2008, 11:57:18 AM
Did the changes get made to your database? Check in phpMyAdmin to see if smf_awards has a row named filename and it has an empty default value
You might actually want to change the default value to the letter a, just to be safe
:)
Okay, I think I know what happened. I uninstalled and reinstalled the package, and this is what popped up:
* Error: Adding {$db_prefix}awards_members table failed.
* Error: Adding {$db_prefix}awards_badges table failed.
* Success: The default folder for badges is badges, the number of columns is 4, number of orws is 5 and multiple favorite badges is enabled..
* The Member Awards mod was successfully installed. Click here to add an award.
- I'm really new to this like I've said before, and I have NO idea how the hell to add tables. If anyone would be willing to do a little step by step for me, I'd be very grateful for the hard work and labor.
thanks guys.
Do you know what phpMyAdmin is? It's in your cPanel if you have one.
we don't have that :(
should I go download it and install it?
Most likely you can't just buy and install it.
Hmm... you're on 1.1.6?
yeah
1.1.6
Dark Dirge theme by Crip if that is anything of use
Upload this file to the same place as index.php, and then go to it in your browser. It will wipe the old database tables and create them again.
Don't forget to delete it after you run it, so nobody stumbles upon it later and deletes all of your awards ;)
Yoda, I appreciate your efforts and the mod, but it seems that it just doesn't want to run with me.
I put the file in our root directory, along side of the index, went there and nothing popped up when I signed in as admin.
I tried uninstalling and then reinstalling it and trying it again, and nothing worked.
Oh well. :( thanks for trying.
Ok, I think I'm drawing a blank here.
I followed the admin URL when the mod was installed and created an award aka a badge and now I can't seem to find the url in the admin panel its self to add or remove. Where is it at?
highwayfrunkis: It's not supposed to say anything... only if it fails.
kizer: add or remove what? In 1.1 it's ?action=awards and in 2.0 it's ?action=admin;area=awards (if I recall correctly)
Oh, OK.... I thought there would be a button or a URL to click on to add or remove new badges. Thanks
Does this mod work with SMF 2 beta 4?
It should, but I have to update the package to reflect that. Looking through the changes from 3.1 and 4, I didn't see anything that is affected by this mod.
I updated it to reflect the new version.
However, I had this mod installed when using 1.1.x
I get this error in the admin panel:
Under Assign:
Database Error
Unknown column 'award_name' in 'field list'
File: /home/thecastl/public_html/boards/Sources/ManageAwards.php
Line: 495
Under Categories:
Database Error
Table 'thecastl_smf1.smf_awards_categories' doesn't exist
File: /home/thecastl/public_html/boards/Sources/ManageAwards.php
Line: 799
Could you give me SQL commands to execute?
ya, you need to update the column names... give me a few minutes, I've gotta go look up the correct SQL syntax.
Actually there's a lot more, a few more minutes :)
Thanks.
I think this is all of it... tell me if you get any more errors.
ALTER TABLE `smf_awards_members` CHANGE `ID_AWARD_MEMBER` `id_award_member` int(8) unsigned NOT NULL DEFAULT '0'
ALTER TABLE `smf_awards_members` CHANGE `ID_AWARD` `id_award` BIGINT(10) UNSIGNED NOT NULL DEFAULT '0'
ALTER TABLE `smf_awards_members` CHANGE `ID_MEMBER` `id_member` INT(8) UNSIGNED NOT NULL DEFAULT '0'
ALTER TABLE `smf_awards_members` CHANGE `dateReceived` `date_received` DATE NOT NULL DEFAULT '0001-01-01'
ALTER TABLE `smf_awards` CHANGE `ID_AWARD` `id_award` MEDIUMINT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY
ALTER TABLE `smf_awards` CHANGE `awardName` `award_name` VARCHAR(80) NOT NULL DEFAULT ''
ALTER TABLE `smf_awards` CHANGE `gameName` `description` VARCHAR(80) NOT NULL DEFAULT ''
ALTER TABLE `smf_awards` CHANGE `timeAdded` `time_added` INT(10) UNSIGNED NOT NULL DEFAULT '0'
ALTER TABLE `smf_awards` ADD COLUMN `id_category` MEDIUMINT(5) NOT NULL default '1'
CREATE TABLE IF NOT EXISTS smf_awards_categories(
id_category MEDIUMINT(5) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
category_name VARCHAR(80) NOT NULL default ''
)
REPLACE INTO smf_awards_categories
(category_name)
VALUES
('Uncategorized')
Error
SQL query:
ALTER TABLE `smf_awards_categories` ADD 'category_name'VARCHAR( 80 ) UNSIGNED NOT NULL
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''category_name' VARCHAR(80) UNSIGNED NOT NULL' at line 1
Updated, sorry 'bout that.
Error
SQL query:
ALTER TABLE `smf_awards` CHANGE `ID_AWARD` `id_award` MEDIUMINT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ALTER TABLE `smf_awards` CHANGE `awardName` `award_name` VARCHAR( 80 ) NOT NULL DEFAULT '' ALTER TABLE `smf_awards` CHANGE `gameName` `description` VARCHAR( 80 ) NOT NULL DEFAULT '' ALTER TABLE `smf_awards` CHANGE `timeAdded` `time_added` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `smf_awards` CHANGE `awardName` `award_name` VARCHAR(80) NOT NULL DE' at line 2
You have to do them one at a time... phpMyAdmin doesn't like multiple queries.
Haha. I should stop trying to rush through things.
Okay. I previously had awards in a realllly old version. Now I go into a profile, and it says:
Awards
This member has a total of 3 awards(s)
This member has not received any awards
Hmm... you installed the new version after you upgraded, correct? It should never give an error like that though. Do the awards still exist in the database?
Yep.
I just installed this version of the mod last night. When I was on SMF 1.1.x, I used whatever version was available irght before SMF 2.0 Beta 3 came out
That's really odd... does the member actually have 3 awards or 0?
3
Okay, I've got one strange contradiction here...
One error I got while trying to make an award said this:
QuoteField 'filename' doesn't have a default value
File: N:\hosted\pokesky\Sources\ManageAwards.php
Line: 322
Then the next error occurred when we tried adding the default value:
Quote#1101 - BLOB/TEXT column 'filename' can't have a default value
Can someone please tell me what this crap is about? o.O It's completely illogical to me..
Are you using 1.1.x or 2.0? I believe I've seen that error before, and there was a fix somewhere for it...
We use 1.1.6 ^^;
Quote from: YodaOfDarkness on September 27, 2008, 11:57:18 AM
Did the changes get made to your database? Check in phpMyAdmin to see if smf_awards has a row named filename and it has an empty default value
You might actually want to change the default value to the letter a, just to be safe
Try doing that. Let's see if giving it a default value does anything...
Nope, it did not =/ We got this:
QuoteALTER TABLE `smf_awards` CHANGE `filename` `filename` TINYTEXT CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'a'
MySQL said:
#1101 - BLOB/TEXT column 'filename' can't have a default value
ManageAwards.php, find:
$addAward = db_query("
INSERT INTO {$db_prefix}awards
(awardName, gameName, timeAdded)
VALUES
('$_REQUEST[awardName]', '$_REQUEST[gameName]', $timeAdded)", __FILE__, __LINE__);
replace with
$addAward = db_query("
INSERT INTO {$db_prefix}awards
(awardName, gameName, timeAdded, filename)
VALUES
('$_REQUEST[awardName]', '$_REQUEST[gameName]', $timeAdded, 'temp')", __FILE__, __LINE__);
It worked! Holy crap, you're the best : D Many thanks!
Quote from: Kosedragen on October 04, 2008, 06:24:03 PM
It worked! Holy crap, you're the best : D Many thanks!
/me basks in the glory :D
Hehe ^^; The solution was fine, but we have a recurring problem with duplicates.. When we de-installed it once; the awards buttons did not disappear, so when we reinstalled it we suddenly sat there with two award icons under our avatars and simultaneously lost our ability to view profiles D: Also; when I de-installed it now, the last time, we still have the awards section in our profiles and on the admin panel o.o
EDIT: And the thing under out avatars is still there. When I try to reinstall the mod we'll end up with the same problems as earlier ><
You'll have to go through the files and find the duplicate code, and delete one of them.
index.php
/Sources/Display.php
/Sources/Profile.php
/Sources/Admin.php
/Sources/Load.php
/Sources/ManagePermissions.php
Themes/default/index.template.php
Themes/default/Profile.template.php
Themes/default/Display.template.php
Themes/default/Admin.template.php
I don't know if that's all, but it's what I can think of. Language files don't matter :)
Thanks ^^ I'll go through it in FTP and report back if something is amiss, or hail you even more if everything goes according to plan O=
EDIT: Err, wait, you want me to go through all that code in order to find what exactly? o.O
search for the word 'awards' and delete any duplicated code.
Oh, yeah x3 That'll be easy now that I upgraded notepad.
EDIT: Great ^^ I managed to get rid of most award-things without even breaking the forum : D
But the award-button in the admin panel under "mods" is still not gone D: I removed every instance of "award" in the admin.php and admin.template.php. It only sends me back to the forum-board though..
/Sources/Subs.php, search for
// Category for admin panel. Pogo Awards
Hooray, now everything works : D I reinstalled the mods and it works perfectly...
EXCEPT, and with me except seems to be constant, that I can't view the awards attached images ^^;
I added name, comment and image, but all I got was that you can see on the image >< I got the grey line under "edit awards" >:
I don't quite understand - is the image not being uploaded, or are you just missing the text up top?
How about my issues? :P
I'm at a loss on that. Go through your database and make sure each of these rows is in their respective table...
smf_awards_members:
id_award_member
id_award
id_member
date_received
favorite
######################################################################################
smf_awards:
id_award
award_name
description
time_added
filename
width
height
id_category
######################################################################################
smf_awards_categories:
id_category
category_name
Yes, but smf_awards_members had it as ID_AWARD
Still get the error though
Setting a directory for the awards seems to have fixed it.
edit - doesn't show an image.
YodaOfDarkness: Hum, I'm not quite sure. Either it refuses to upload the image (which I don't think it is, because I'm able to save the award even though I can't see the image), or it just refuses to let me see it xp
EDIT: Attached a more detailed image of the error =o That's what I see when I try making the award.
Quote from: bros on October 05, 2008, 09:34:58 PM
Setting a directory for the awards seems to have fixed it.
edit - doesn't show an image.
Then it seems we have the same problem ^^;
Do you have a directory called /awards/ in your forum's root?
Yes
and if you go to the settings page, the awards directory box says "awards" in it?
Also do what it says in the first post of this thread, see if it helps.
Yes, both those options apply to my problem as well.
I did what the first post said, but there is no difference >:
and the award isn't inside that directory? (it'll have a slightly different name if so)
If that's it, then it's a database problem. If not, it's the upload function that's not functioning.
No, it was not inside =/
Hm. I checked today and they were showing up
Yoda: You were right ^^ It was a hosting problem though. Now it's fixed and only one issue is left to solve.
The custom themes. I'm vondering how I'm going to add the following things (look at the image attached).
- The awards-option in the profile-menu (where you can view your own or others awards)
- The awards-options under mods in the admin-menu.
- The award icon under the avatars of users (not the icon itself, but how to get it there).
Is this doable? =3
OK, think I'll try this again now that I have time. A while back I posted this issue, but did not really get a response. I am currently using SMF 1.1.6 and the member awards 1.0.2. Everything seems to work fine except for one issue.
I try to assign multiple favorites, but it only allows 1 favorite award. Does not matter whether the admin setting is checked or not to allow more than 1. Any ideas why this may be?
That was never fixed in Jay's 1.1.x version, but I think it'll be done in the version I'm about to release (a few pesky problems are stopping me)
Kosedragen: You need to manually do the editsfrom this file (http://custom.simplemachines.org/mods/index.php?action=parse;mod=475;attach=19216;smf_version=1.1.6) for Display.template.php and Profile.template.php. The admin menu should already be in place, but check to make sure the /Sources/Admin.php changes were made.
Thanks ^^;
I found a little something in the who.php. A duplicate of this:
Quote'awards' => array('manage_awards'),
'awards' => array('manage_awards'),
Is that dupposed to be there?
EDIT:
This might just be my fault because of the earlier duplicates, but I found another double string in the subs.php:
Quote$context['allow_admin'] .= allowedTo('manage_awards');
$context['allow_admin'] .= allowedTo('manage_awards');
Ya, those duplicates shouldn't be there. You might need to check every file for that =\
Meh, they are not -doing- it up now anyways, so it doesn't bother me enough.
Also: The missing awards-things in admin and profile probably has something to do with missing txt-strings in the language-folder of this theme. The theme is certainly somewhat weird when it comes to files..
And there we have it. The language-files does not include a single instance of the word "award".
And then it was confirmed as well. Adding the $txt['awards'] = 'Awards' in profile.php made awards option appear in the profile ^^
Can you tell me other language strings I might be missing? Or should I just copy if from the default theme? (Darksilver Equinox is kind of like default, only in black).
For craps sake. I just realized this wont work in the admin-template.
And then again; for the sake of simplicity:
Disregard everything above; for members this theme is flawless now, us admins should just refrain from using it. Thanks for everything, you've been great =]
Re-HELLO Yoda
I'm trying to make the jump from v2.0 b3.1 to v2.0 b4
I've read the last 6 pages here and was wondering if there should be much of a problem since I'm not jumping from 1.1.5? I was just going to do all manual edits. Or, was wondering how long until you were going to release the c2.0 b4 version?
Thanks again for all your work. I really enjoy your creations!
There shouldn't be any differences between b3.1 and b4, so you can go ahead and use the b3.1 version.
Quote from: YodaOfDarkness on October 09, 2008, 11:04:43 PM
There shouldn't be any differences between b3.1 and b4, so you can go ahead and use the b3.1 version.
The line to make it work with SMF 2 b4 has to be added.
Yoda,
Out in the file area, under the description it says:
Quote
Description:
This modification will be updated by Saturday, September 20th. In the mean time, use MemberAwards_1-0-2.zip for SMF 1.1.x and use awards_2-0_beta3.tar.gz for SMF 2.0.
Is there an update pending I should wait for?
Thanks,
LM
You can tell SMF to emulate beta 3.1 while you install. On the Browse Packages page, click "Advanced" in the bottom right and change the value in the box there to "SMF 2.0 Beta 3.1"
Lordmiller: You can use the version that's up right now, I'm just having a bit of trouble with the code cleanup.
Quote from: YodaOfDarkness on October 09, 2008, 10:29:59 AM
That was never fixed in Jay's 1.1.x version, but I think it'll be done in the version I'm about to release (a few pesky problems are stopping me)
Glad to see it is a problem with the mod and not me :) Look forward to seeing your new version soon
Hello again. I was wondering if it exists a list that can show every available award to the members of my forum, or if one could make one :3
Yes, it's possible to make one. It's not in there right now though.
Ah, cool. Of course it is possible, merely a figure of speech. Well, then would you add it as a suggestion for future updates or something? :3
I'll add it to my long list of things to do ;)
Awesome : D I'll be keeping ears and eyes open :3
Hey, love this mod, we'd been looking for something like it for a LONG time.
Installed into 1.1.6 and it's working great.
I used this tweak:
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
That works fine also. So now the award listed as favorite shows up in the User Boxes with every post. I see that other people have gotten all the awards to show up in the user box, as a row of mini versions. . .how do you get it to work like that?
easiest thing I can think of is to add a second image for each one in the /awards/ folder, named small_{name.gif} and hard-code the small_ in the display function.
Hi,
When i try to install I get:
There are no install actions defined!
What version of SMF are you using? Which of the two install files for this mod are you using?
Quote from: YodaOfSpookness on October 14, 2008, 12:08:17 PM
What version of SMF are you using? Which of the two install files for this mod are you using?
Sorry I used "awards_2-0_beta3".
I should use "MemberAwards_1-0-2".
Thanks.
Now i get this error:
Unknown column 'awardName' in 'field list'
קבצים: /home/XXX/public_html/XXX/Sources/ManageAwards.php
שורה: 193
Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.1.6, whereas your database is at version SMF 1.1.5. It is recommended that you execute the latest version of upgrade.php
Can you check your database to see if the {db_prefix}awards (probably smf_awards) table exists, and has a row named awardName?
Yes there is.
Hmm... try replacing
ID_AWARD, awardName, gameName, timeAdded, filename, width, height
both times it appears with
*
just an asterik.
Does it work after that?
Quote from: YodaOfSpookness on October 14, 2008, 01:29:14 PM
Hmm... try replacing
ID_AWARD, awardName, gameName, timeAdded, filename, width, height
both times it appears with
*
just an asterik.
Does it work after that?
Sorry I did't understand.
Open /Sources/ManageAwards.php and find
ID_AWARD, awardName, gameName, timeAdded, filename, width, height
and replace it with an asterik, then save and try again.
Yoda
I went ahead and did all the edits manually because I couldn't get the package to install on the b4.0 forum. I'm having a Template Parse Error that states the Profile.template.php file is incorrect. The message I am getting says:
syntax error, unexpected T_VARIABLE
Here is my Profile.template.php file if you could take a look. I have no idea really what I'm looking for here.
On another note:
When I was doing the edit for the Display.template.php file, I noticed that the original code and the code to be replaced does not include the <lil> or </lil> . Should I have put this in there?
The code in your edit says:
// Awards!
echo '
<a href="', $scripturl, '?action=profile;sa=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>';
So, should I have put:
// Awards!
echo '
<lil><a href="', $scripturl, '?action=profile;sa=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></lil>';
It's an <li>, not <lil> :P
And what line is this error on?
The first error with the template doesn't say anything other than getting a parse error in that file...
and then had "syntax error, unexpected T_VARIABLE" at the bottom
oops, yeah, meant <li>, so is that a YES for that one?
So it shows you nothing about where the error is? Screenshot?
And that's a yes on the <li> part
Hey there, wonder if you could help me out.
I am planning conversion to 2.0 Beta 4 so I've been playing with a version of it to see which mods I can keep.
I tried what you suggested about setting the package installer to compatibility mode and it appeared promising, I only got one error on the install and it told me what code it couldn't insert so I went and done that part manually. However, it's not working for me.
If I go to a profile I see where the "Awards" button should be, but there is no text and no link, simply a blank line.
I cannot access the admin control panel for the system either, even tried inputting the url straight to the browser with no luck.
Incase it helps to know, I'm using SMF 2.0 Beta 4 with the DarkRainV2 theme.
Thanks in advance. :)
Are you using a language other than english? Like english_utf-8?
can we display the awards won by the member beside the Avatar or below the link (display.templete.php page) and also the Profile page directly.
somewhat like the simple awards
Yoda -
I'm going to upload all the files from the upgrade to b4.0 again to my forum. I think something may not have been completed correctly. I'm going to reinstall all the mods again afterwards. I think the templates are mixed up.
I'll hit you back once I start again.
Quote from: santanu on October 17, 2008, 10:36:36 AM
can we display the awards won by the member beside the Avatar or below the link (display.templete.php page) and also the Profile page directly.
somewhat like the simple awards
There is an awards page in the profile, and there is code posted in an earlier page that showed how to add it to your posts. http://www.simplemachines.org/community/index.php?topic=114701.msg1152559#msg1152559
tk2012 - k
Hi, is this mod incompatible with SimpleAwardSystem mod that adds little icons/awards to the user post profile info?
Because i think it might create an smf_awards table so maybe thats why this mod is not working.
I am getting a "awardName" field not found, because it doenst exist.
My current sfm_awards table is like this:
ID_AWARD
ID_AWARDED_MEMBER
ittle
givenDate
ID_MEMBER
memberName
fileName
Are these the correct fields for this mod?
Also is it safe to uninstall this mod? I think I read earlier posts in this thread where people had display.template.php mess up on them upon uninstall.
Will uninstall delete the database table entries?
Thanx
ah never mind, I fixed it. Uninstalled SimpleAwardsSystem mod and it works now.
Thanx for the mod, its great. If I may make a suggestion for future releases, to add access privilages to give awards by usergroup would be great :)
Quote from: YodaOfSpookness on October 17, 2008, 01:08:33 AM
Are you using a language other than english? Like english_utf-8?
Nope just the standard English.
Ok, did the upgrade to b4.0 again and got much better results for the other mods, but still having some difficulty with this one. I did all the edits manually.
I'm attaching the pictures of things that I know are wrong off hand, but it will take me a minutes to accumulate all the errors that are popping off because I have multiples of the same error.
all of this was on the default theme..
UPDATE: I added a copy of my error log. Before doing this mod, I had 5 errors stemming from something else unrelated. Now, I have over 100 errors. They are all multiple copies of these errors posted:
I'm attaching the Admin.php file as I don't know what the problem is
Did you make the edits to Modifications.english.php. and any other Modifications.________.php files?
I made it to the languages/Modifications.english.php (nothing to -utf8 because I don't have that)
(ignore the extra letter in front of my files. That's my own way of knowing which file is the clean one and which is the modded one.)
Go to Admin > Maintenance > Forum Maintenance > Common Tasks
and click "Empty the file cache."
WTF????
That worked... what was that about?
2.0 caches the language files so that they don't need to be reloaded every time you load a page. Sometimes it forgets to empty the cache after you install a mod (or if it was installed manually) and so it uses the old language files.
Dang, well, that worked. Sorry for making you go thru that!
No problem, sorry I didn't think of it earlier ;)
Hey, sorry but that trick doesn't appear to have sorted my problem. :(
Quote from: YodaOfSpookness on October 14, 2008, 02:11:55 PM
Open /Sources/ManageAwards.php and find
ID_AWARD, awardName, gameName, timeAdded, filename, width, height
and replace it with an asterik, then save and try again.
Hi,
Sorry for the late respond.
Now this problem fixd, but i have another:
When i try to Add Award i get this:
Unknown column 'gameName' in 'field list'
קבצים: /home/XXX/public_html/fmky/Sources/ManageAwards.php
שורה: 322
Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.1.6, whereas your database is at version SMF 1.1.5. It is recommended that you execute the latest version of upgrade.php.
Another problem:
when i push on the Profile link I get this error:
Fatal error: Cannot redeclare awards() (previously declared in /home/XXX/public_html/fmky/Sources/Profile.php:3150) in /home/XXX/public_html/fmky/Sources/Profile.php on line 3359
khamseen: Attach your Modifications.english.php file from /Themes/default/languages/ to a post here.
efil59: Do the same, but with /Sources/Profile.php. I also think your database doesn't have the correct rows in it, so I'm going to write a quick script for you test test it with.
Hey, this is the file you said to attach, thank you.
and you said you tried
Quote from: YodaOfSpookness on October 18, 2008, 08:50:39 PM
Go to Admin > Maintenance > Forum Maintenance > Common Tasks
and click "Empty the file cache."
? That should've fixed the problem. Can I get the URL to your forum?
Yeah I did try it and that didn't work.
The site is actually restricted on access because I have it set to not allow registrations etc whilst our admin team works on getting it ready. I shall PM you login details to an account if you don't mind.
Ok, here is the profile.php file you requested.
You installed the 1.1.x version of the mod on a 2.0 forum ;) can you uninstall and use the other file?
Oh for crying out loud lol. I just seriously need my head screwed on today don't I. That's after me uninstalling the correct version to reinstall using the "Install to other skins" function lol.
I'll give it another bash and get back to you.
Sorry, again I'm double posting.
I have now installed the correct version (which is I assure you what I had done the first time, dunno why I didn't the second time), it shows up, menu buttons are there and I can gain access.
However, when I try to assign an award it isn't showing any usergroups and if I input the ID manually it is showing {member_name} under the text box in red but then not doing anything.
Also, if I click on one of the awards to edit it or if I manually select "edit" "view assigned" etc, it returns this error "Wrong value type sent to the database. Integer expected."
I'm getting the "Wrong error type" on quite a few of my mods, just in SMF 2.0 Beta 4 Public, not any earlier ones...
I'm working on finding out why, so know that I'm trying my hardest :) sorry there's no definite answer at the moment...
That's cool. I look forward to seeing any progress you can make over time. I am just glad to hear that this particular error is not caused by my incompetence ;D .
Thanks for all the help you've given me to get me this far, I shall keep track of the progress to see what comes of it. I have used a couple of your other mods and I do like them so I am sure I will like this one as much once it's sorted for beta4. ;D
Please i need help with the Mod
http://www.simplemachines.org/community/index.php?topic=269113.0
Have you clicked the checkbox next to a group name? You need to choose one or more groups, and then you can assign the award to people from that group.
Yes i clicked the checkbox, it's the same error if i choose all or one
The awards are assigned but give me the error.
Look at the attachment, because i had modify it
Line: 378
changed awardsDir for pa_awardsDir
Line: 356
changed $$boarddir for $boarddir
Line: 297
Changed global $context, $db_prefix, $func, $txt; for global $context, $db_prefix, $func, $txt, $boarddir;
I have a feeling the form isn't getting sent through correctly... is it possible to set up an admin account for me to test it with (which you can delete afterwards, of course)
If you want to do that, don't post the details here - PM me the URL and login details.
Just thought I would post a couple of screen shots to show the problem I seem to get in a bit more detail. I thought of it after reading your post about selecting the membergroup check boxes as I know they are there in the 1.1.x version but I haven't seen them in the 2.0 version.
This is what I get, the first one is what I see if I type a member name into the box and press "Add", this shot has two as I tried adding two names one at a time.
The second shot is what I get if I click on the {MEMBER_NAME}.
Does it do the same thing when you add multiple names when sending a PM?
Quote from: YodaOfSpookness on October 20, 2008, 09:36:02 PM
Does it do the same thing when you add multiple names when sending a PM?
Nope, when I add a name to the PM list it shows their name, which in turn links to their profile.
The same thing is happening for me. I uploaded an award. Then, I tried to assign the award to a member. When I did, I got an error stating I needed to select an award and a member even though I already had. I back stepped and had the same thing "member_name" was listed instead of the actual member's name.
attachments below
I'll have to look at the coding for this mod and Beta 4, since it's technically only good up until Beta 3.1 Public.
If you want to take a look at anything, let me know or need anything from me.. You've helped me so much, I'll give you my TESTaccount info if you need to take a look
Well I have actually made some progress, hope you don't mind but I've been "playing" with the code to see if I can figure out why it was doing what it was doing and considering my only actual experience so far is from adding things I'm not that well versed, however...
themes/default/ManageAwards.template.php
On line 571 you have
<a href="', $scripturl, '?action=profile;u={MEMBER_ID}" id="recipient_link_to_{MEMBER_ID}" class="extern" onclick="window.open(this.href, \'_blank\'); return false;">{MEMBER_NAME}</a>
Which I changed to by replacing the {} around member_id and member_name to :: ::
<a href="', $scripturl, '?action=profile;u=::MEMBER_ID::" id="recipient_link_to_::MEMBER_ID::" class="extern" onclick="window.open(this.href, \'_blank\'); return false;">::MEMBER_NAME::</a>
By doing that, when I input a name in the box and press add, it now successfully adds the correct name to the list, which also now links to that persons profile.
However, when I click assign, it acts like it has worked and displays the award with a list of "assigned members" which is just an empty line with a check box, and if I visit the profile of the person I assigned it to, it says they don't have an award assigned.
Don't know if that helps and sorry if it doesn't and it's just pointless, just thought I should let you know what I've found.
*EDIT*
Also, I just thought, the delete function wasn't working either for if you had a member listed to give the award to but wanted to remove them from the list. I have solved that by changing {DELETE_MEMBER_URL} to ::DELETE_MEMBER_URL:: on line 573
**EDIT2**
SUCCESS!
I had not realised that on line 569 there was another {MEMBER_ID} which needed changed to ::MEMBER_ID:: now that I have done that, the system is working fully and seems to be stable. I have attached my themes/default/ManageAwards.template.php for you to have a look at.
Aha, that must be new in Beta 4... nice catch!
Thank you, just glad that I could give you that info to save you searching through, especially after all the help you've given me.
Maybe there is hope for me yet :P
I'm going to try that tonight after I get done some other edits. GREAT NEWS. Thanks to both!
Quote from: Mother Goose on September 17, 2008, 06:31:42 PMNot a stupid question at all! I make them just for this mod!
Many thanks. Please accept my apologies for not saying so earlier - both the response *
and* the awards are very much appreciated!!
Working here now. Haven't noticed any errors, yet!
Hi,
Thanks Yoda - this mod, and your active support in this thread, are Brilliant!
I know there are users out there converting from phpBB to SMF who are looking for an equivalent to the phpBB Medals Mod. I've been in this boat and am finding that this system seems to be the one to go for...the vast majority of the features are there, or instructions to make equivalents are in this thread.
The only things remaining on my mind now are ...
1. Would be useful (to me anyway) to be able to manually specify the display order of awards. I imagine this will require DB changes, but damn it'd be nice for an admin to have that kind of control, get things nice and neat.
2. A new membergroup permission, "Assign Awards" or something like that. The current "Manage Awards" gives rather more power than i really want a junior admin user to have. I just need them to ease my burden by assigning/unassigning awards to members - i don't want them messing with creating new ones or changing the awards dir on me etc.
Sorry if either point has been discussed before, I tried searching the thread and couldn't find anything that quite matched.
The permission one sounds like a good idea, I'll look into that. Ordering the awards is another issue though... but one that I might be able to solve quite easily.
Thanks :D
Quote from: YodaOfSpookness on October 22, 2008, 12:28:36 PM
The permission one sounds like a good idea, I'll look into that. Ordering the awards is another issue though... but one that I might be able to solve quite easily.
Thanks :D
Yeah, I figured neither of them would be done in the blink of an eye, but hey, the squeaky wheel gets the grease right? ;)
Thanks again.
8: Undefined variable: badge
File: /Themes/default/ManageAwards.template.php
1.1.x or 2.0?
1.1.6
You post them to me the File "ManageAwards.template.php"? ???
Thanks Thousand
Got this award mod working, and showing multiple awards on the user box. . .thanks for the help, and kudos on creating a great Mod.
Quote from: YodaOfDarkness on June 29, 2007, 11:25:59 PM
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up?
$maxAwards = 4;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
Using this is it possible to display them in order that you put the awards into the system? and/or create a ordering system where I get to pick the order these medals appear
Quote from: Deadfire
Using this is it possible to display them in order that you put the awards into the system? and/or create a ordering system where I get to pick the order these medals appear
I use that code to show awards in users' sigs, they seem to display in the order they were received by that user, newer ones first, older ones last.
I guess that
could be manipulated to get things to display the way you want, but tweaking things at later dates sounds like a nightmare.
What about support all options in SMF 1.1.6?
I don't quite understand what you're asking...
Im having an issue i havent seen while skimming. The mod works and is fully functional except i cant see it in the Custom theme. I used a Mod Parser to edit the theme and the edits are there but i still cannot see the links to view and modify the Mod. i have to change my theme to SMF Default and edit it there. i have been having this same issue with the last couple of mods i downloaded. they work, ive used a mod parser and they still dont show up. i have links for some of them so the users can still use the mods but why am i forced to make a workaround?
www.disciples.darkstargamers.com
SMF 1.1.4
TP 0.9.8
Mod in question: Member Awards
Out of curiosity, I checked out the site of your theme's author ... he does seem to have some notes about getting mods (including this one specifically) to work in the WoW-DK theme. Not sure if you would have seen this already but just in case it's of use...
http://forum.padexx.de/index.php/topic,149.0.html
ok how about this...
1.1.6
8: Use of undefined constant Awards - assumed 'Awards'
File: /forum/Themes/default/languages/Who.english.php (eval?)
Line: 148
Edit ... :-[
lol.
Quote from: buzinator on November 04, 2008, 01:25:24 PM
Quote from: HR on November 04, 2008, 12:41:31 PM
8: Use of undefined constant Awards - assumed 'Awards'
File: /forum/Themes/default/languages/Who.english.php (eval?)
Line: 148
Correct, there is a modification to Modifications.english making reference to awards and one would have thought it would pull data from there... typically the error happens when a string isnt defined. Just for the hell of it I added the string to Who.english and it didnt change a thing.
Did you check that file yet - to see what line 148 says?
(Checked mine and it's only 100 lines, with no refs to the awards mod..hopefully mine isn't broken :) )
edit: just ran v1.0.2 thru the package parser, the mod install doesn't seem to touch Who.english.php at all ... so ... idk. weird.
Resolved.. was a malformatted entry in Ultimate Profiles from a previous webmaster.
Im having a few issues with this mod...
When I am in "Main" It shows me what awards I have but the images are broken. I looked at the image url and it just says "http://www.sitename.com/forum/awards/" but its not displaying the filename & extension.
Note : The Award displays correctly on the "Assign" Page.
Its also giving me an error when I try to assign a medal to a member.
QuoteThe award that you entered does not exist.
FORUM LOGS!
8: Undefined index: id_award
File: .../forum/Sources/ManageAwards.php
Line: 172
8: Undefined index: filename
File: .../forum/Sources/ManageAwards.php
Line: 165
another issue when trying to edit awards...
QuoteWrong value type sent to the database. Integer expected.
When I click on the Awards Icon in the contact icons on each users post it says "You are not allowed to access this section".
Forum Version SMF 2.0 beta 4.
Hola Amigo!
smf v2.0 b 4.0
default theme (color changes)
I finally started handing out awards today since upgrading to b 4.0 a few weeks ago and reinstalling the modification. I found 32 errors in my log. Actually ends up being three different errors being shown multiple times. I'm going to attach the info here for you.
ok i cant find anthing in this topic about it. but when i cick the box to let them choose more then one favorite award and it wont let them what do i need change so it will.
1.1.7
SMF 1.1.7 Theme Kozakelebegi, SimplePortal 2.0.5
8: Undefined variable: badge
Archivo: Themes/KozaKelebegi/ManageAwards.template.php (view_assigned sub template - eval?)
Línea: 421
416.- // Check if there are assigned members
417.- if (empty($context['assignedMembers']))
418.- {
419.- echo '
420.- <tr class="windowbg2">
421.- <td>', sprintf($txt['pa_no_assigned_members'], $scripturl . '?action=awards;sa=assign;id=' . $badge['id'] . ';step=1'), '</td>
422.- </tr>';
423.- }
Quote from: virtualxtc on November 05, 2008, 05:54:37 PM
Im having a few issues with this mod...
When I am in "Main" It shows me what awards I have but the images are broken. I looked at the image url and it just says "http://www.sitename.com/forum/awards/" but its not displaying the filename & extension.
Note : The Award displays correctly on the "Assign" Page.
Its also giving me an error when I try to assign a medal to a member.
QuoteThe award that you entered does not exist.
FORUM LOGS!
8: Undefined index: id_award
File: .../forum/Sources/ManageAwards.php
Line: 172
8: Undefined index: filename
File: .../forum/Sources/ManageAwards.php
Line: 165
another issue when trying to edit awards...
QuoteWrong value type sent to the database. Integer expected.
When I click on the Awards Icon in the contact icons on each users post it says "You are not allowed to access this section".
Forum Version SMF 2.0 beta 4.
I am getting the same error....what's the prob with this....database?
Hello all.
Having some issues with this mod. It's throwing off the 'every so lovely' 406 error... Wasn't sure whether to post this here or in the other threads regarding this error. I realise most of the time this a mod_security issue, but I checked with my hosting and apparently they don't use it.
I thought it might have been a conflict with another mod, but I installed 1.1.7 as a vanilla test forum, and it still happens on that. The mod sort of works (for example, if I add a new award, it will throw this error at me, but if I go back and refresh the page, the award is there. It's just very frustrating since it does it when adding, deleting, modifying, even viewing an award). Anyone have any ideas?
need help with this i installed it manual cause the package installer had errors. here is what i am getting on it.
after done went to the forums and click on a topic and got this page.
now from what i have seen if i remove that part it works but this can't be removed so hope you can help me.
Quote from: arendedwinter on November 16, 2008, 12:24:44 AM
Hello all.
Having some issues with this mod. It's throwing off the 'every so lovely' 406 error... Wasn't sure whether to post this here or in the other threads regarding this error. I realise most of the time this a mod_security issue, but I checked with my hosting and apparently they don't use it.
I thought it might have been a conflict with another mod, but I installed 1.1.7 as a vanilla test forum, and it still happens on that. The mod sort of works (for example, if I add a new award, it will throw this error at me, but if I go back and refresh the page, the award is there. It's just very frustrating since it does it when adding, deleting, modifying, even viewing an award). Anyone have any ideas?
I have the exact same problem, and no idea how to fix it. Install went fine, not one problem... but as mentioned above when adding/deleting/modifying/viewing I get a 406 error. To help, I've attached the exact error bellow.
Any idea on a fix?
Quote from: buzinator on November 04, 2008, 10:06:43 AM
Out of curiosity, I checked out the site of your theme's author ... he does seem to have some notes about getting mods (including this one specifically) to work in the WoW-DK theme. Not sure if you would have seen this already but just in case it's of use...
http://forum.padexx.de/index.php/topic,149.0.html
my issue was that the English.php template was not modified
Quote from: YodaOfDarkness on October 12, 2008, 02:59:14 PM
easiest thing I can think of is to add a second image for each one in the /awards/ folder, named small_{name.gif} and hard-code the small_ in the display function.
The reverse worked out easier.
I made all my awards small (20x20 or so) and it works fine. . .thanks.
Great mod, and I'm sure you get 1000 "how do I's" for every "Thanks" so I'll try and fix that ratio with:
Thanks, thanks, thanks!
Amazing mod!
Well done.
Hello! I have installed your mod, but unfortunately, I cannot find the configuration for it. I am running on SMF 2 beta 4, and have the following mods installed:
1. Member Awards 2.0.1
2. Apache Error Handler 1.1
3. SMF Blue Winter Smiley Pack set 1.1
4. Custom Fields On Memberlist 1.0
5. Affiliates 1.1
6. SMF Arcade 2.5 Beta 2.2 Public
7. MessagePreviewOnHover 1.7
8. Reg Bar 1.0.2
9. No More Ugly Avatar Scrollbars 1.0
10. BK-SMF Sub-Board 1.5
11. Message index like vbulletin 0.1
12. Bakers Dozen Pages 1.01
13. Spoiler Tag 0.6
14. Hide SMF Version 1.0.3a
15. MCLegendII.2 3.0
16. Admin Notepad 1.0
17. Auto Embed Video/Audio Clips 4.0.2
18. Advanced Reputation System 1.5.2
19. PortaMx v0.95.1 0.951
and though it doesnt say it, Super admin
Please help me on this issue...
omg i MUST have this!!! ;D
can somone please update this to work in 1.1.7!!! O:)
I love this Mod and it works great... Even with my Custom Theme.. :)
I've also added in the "under the avatar" mod which is great too...
Three request which i browsed for but didnt find an answer so i'll post a request :)
1) A Page linked to in the top tool bar that shows all the awards and everyone who has gotten those awards.
2)A Text Field just above the date option for when you are giving someone an award you can put in an extra reason why they are getting that award.. -
i.e. Received for being the top hitter in the ABC War
3) A Search Function... I have tons of users and they appear in a random order. When trying to give an award to a "regular member" it takes forever.
I just want it to work with 1.1.7 ::)
this mod is awesome!
it works fine for me in english but (becase my site is in greek) when i change the language the awards menu is disapeared!
what should i do?
Make sure all language strings are translated, and that you duplicate ManageAwards.english.php and ManageAwards.english-utf8.php, and rename them to ManageAwards.greek.php and ManageAwards.greek-utf8.php
This is the last week that I'll be busy, and then I'm going to work on the 1.1.x version a little more. Sorry about the wait, it's just been crazy for the last few weeks.
Quote from: YodaOfDarkness on December 08, 2008, 11:58:43 AM
Make sure all language strings are translated, and that you duplicate ManageAwards.english.php and ManageAwards.english-utf8.php, and rename them to ManageAwards.greek.php and ManageAwards.greek-utf8.php
This is the last week that I'll be busy, and then I'm going to work on the 1.1.x version a little more. Sorry about the wait, it's just been crazy for the last few weeks.
np - take ur time - cant wait for the 1.1.7 though!!! xD
Quote from: YodaOfDarkness on December 08, 2008, 11:58:43 AM
Make sure all language strings are translated, and that you duplicate ManageAwards.english.php and ManageAwards.english-utf8.php, and rename them to ManageAwards.greek.php and ManageAwards.greek-utf8.php
This is the last week that I'll be busy, and then I'm going to work on the 1.1.x version a little more. Sorry about the wait, it's just been crazy for the last few weeks.
it doesnt work! i have done this!
Are you on 1.1.x or 2.0?
i have 1.1.7
me 2 :D
any idea?
nope - dont work for me either! ::)
kryenator, can you post a list of all files in /Themes/default/languages/?
i dont use the default theme... i use x-mas! :P
but all language strings should be in the default theme, they don't need to be in every theme's folder.
what is the difference of this mod to this mod http://www.simplemachines.org/community/index.php?topic=127054.0
Hello! I have installed your mod, but unfortunately, I cannot find the configuration for it. I am running on SMF 2 beta 4, and have the following mods installed:
1. Member Awards 2.0.1
2. Apache Error Handler 1.1
3. SMF Blue Winter Smiley Pack set 1.1
4. Custom Fields On Memberlist 1.0
5. Affiliates 1.1
6. SMF Arcade 2.5 Beta 2.2 Public
7. MessagePreviewOnHover 1.7
8. Reg Bar 1.0.2
9. No More Ugly Avatar Scrollbars 1.0
10. BK-SMF Sub-Board 1.5
11. Message index like vbulletin 0.1
12. Bakers Dozen Pages 1.01
13. Spoiler Tag 0.6
14. Hide SMF Version 1.0.3a
15. MCLegendII.2 3.0
16. Admin Notepad 1.0
17. Auto Embed Video/Audio Clips 4.0.2
18. Advanced Reputation System 1.5.2
19. PortaMx v0.95.1 0.951
and though it doesnt say it, Super admin
Please help me on this issue...
aED, I'm not quite sure what the difference is, to tell you the truth
Gunfreak010, there should be a new area in the dropdown list under Configuration in the admin panel, at the very bottom.
I just reinstalled it, and realized that I have two errors in it, one in admin.php, and one in display.template.php.
Does this mean that I have to install manually?
Edit - It does... Oh well, I just did it right now, no biggy.. but if anyone tries to uninstall... dear lord :\
Quote from: YodaOfDarkness on December 08, 2008, 11:58:43 AM
This is the last week that I'll be busy, and then I'm going to work on the 1.1.x version a little more. Sorry about the wait, it's just been crazy for the last few weeks.
YOD, just curious, what updates are you planning for this mod? If you are taking suggestions, one thing is that no one ever seems to check member profiles, so awards go entirely unnoticed. Perhaps a way to either (a) automatically announce new awards, or (b) make an award visible from a person's post.
BTW to all those running SMF 1.1.7, mine works fine...
cheers
Wow working really nice... I also added a new field Reason to suit my needs! Thanks for this MOD
hello, everything work on my custom theme.
But i get this errors when I want to edit awards:
.php?action=awards;sa=modify
8: Undefined index: awardsDir
/Sources/ManageAwards.php
378
second error:
8: Undefined variable:
356
third error:
Undefined variable: boarddir
356
Thank in advance for help.
Quote from: Marquis12 on November 18, 2008, 06:35:20 AM
Quote from: arendedwinter on November 16, 2008, 12:24:44 AM
Hello all.
Having some issues with this mod. It's throwing off the 'every so lovely' 406 error... Wasn't sure whether to post this here or in the other threads regarding this error. I realise most of the time this a mod_security issue, but I checked with my hosting and apparently they don't use it.
I thought it might have been a conflict with another mod, but I installed 1.1.7 as a vanilla test forum, and it still happens on that. The mod sort of works (for example, if I add a new award, it will throw this error at me, but if I go back and refresh the page, the award is there. It's just very frustrating since it does it when adding, deleting, modifying, even viewing an award). Anyone have any ideas?
I have the exact same problem, and no idea how to fix it. Install went fine, not one problem... but as mentioned above when adding/deleting/modifying/viewing I get a 406 error. To help, I've attached the exact error bellow.
Any idea on a fix?
I passed the same, someone can help me?
Quote from: Mr_JimWest on November 29, 2008, 10:58:26 PM
I just want it to work with 1.1.7 ::)
Works fine in 1.1.7 for me, drop me a line and I'll help where I can. Im trying to get this to display as part of the ultimate profile mod (as a part of the table.) getting a bit rough to get done though.
OK, here is what I am trying to do.. in profile around gender and what not Im adding an additional link to the awards page.
// Awards display field
echo ' <tr>
<td width="40%">
<b>', $txt['pa_view_album'], ': </b>
</td><td>
<a href="', $scripturl, '?action=profile;sa=awards;u=', $context['member']['id'], '"><img src="', $settings['default_theme_url'], '/images/award.gif" alt="', $txt['awards'], '"> ', $txt['awards'], '</a>
</td>
</tr>';
// End Awards Display
What Id like to do is to away with the icon (conditional) so it displays similar to the awards template.
ergo 'View this members badge album.: (this member has no awards OR # Awards'
With number of awards acting as a link to the awards page.
Assist?
Are you good with mysql queries? If so, do something like
$request = db_query("
SELECT *
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = {$context['member']['id']}", __FILE__, __LINE);
$context['num_awards'] = mysql_num_rows($request);
in Profile.php and then use a ternary operator in Profile.template.php, like
// Awards display field
echo ' <tr>
<td width="40%">
<b>', $txt['pa_view_album'], ': </b>
</td><td>
', (!empty($context['num_awards']) ? '<img src="' . $settings['default_theme_url'] . '/images/award.gif" alt="' . $txt['awards'] . '">This member has <a href="' . $scripturl . '?action=profile;sa=awards;u=' . $context['member']['id'] . '">' . $context['num_awards'] . ' ' . $txt['awards'] . '</a>.' : 'This member has no awards.', '
</td>
</tr>';
// End Awards Display
I'm pretty sure that'll get you where you want to be.
As for the other problem people are having... I have no clue why that would occur, and this is the first I've heard of it. I'm still trying to think of why it would happen.
Thanks for the reply.. will have to hunt around where to place in profile.php I think..
Oddly enough this (or similar) is in function awards($memID) in profile.php already
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
I went for the hell of it and changed the alteration to reflect $context['count_Awards'] however that didnt work. So, I guess I'll have to have the same query elsewhere in the profile.php file or figure out how to call this function from the display profile area (as soon as I determine where that is in profile.php)
awards() is used for the awards page in people's profiles, not the main page.
Resolved (thanks for support)
In profile.php:
// Attempt to load the member's profile data.
if (!loadMemberContext($memID) || !isset($memberContext[$memID]))
fatal_error($txt[453] . ' - ' . $memID, false);
// Adding for Awards tweaks
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// End Awards Tweak Addition
In UltimateProfile.template.php:
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';
// Awards display field
echo ' <tr>
<td width="40%">
<b>', $txt['pa_view_album'], ': </b>
</td><td>
', (!empty($context['countAwards'])) ? '<img src="' . $settings['default_theme_url'] . '/images/award.gif" alt="' . $txt['awards'] . '">This member has <a href="' . $scripturl . '?action=profile;sa=awards;u=' . $context['member']['id'] . '">' . $context['countAwards'] . ' ' . $txt['awards'] . '</a>.' : 'This member has no awards.', '
</td>
</tr>';
// End Awards Display
echo '
Results:
yay :) looks nice
Couldnt have done it without the help ;)
how can I get it to work in 1.1.7 ? :(
Quote from: Mr_JimWest on December 22, 2008, 10:18:36 PM
how can I get it to work in 1.1.7 ? :(
Its working in 1.1.7. Drop me a PM and get me your URL etc. and I'll help where I can.
I'm using SMF 1.1.7, but since I upgraded to that version I am getting error log messages, after looking through these forums I disable the 'templateEval' and found the error was with Members Award.
It isn't breaking the forum, but does slow it down sometimes, has anyone else had this problem, and if so did you find a fix?
this is the error:
8: Undefined index: pa_favorite
File: /home/ridgway/public_html/rmsmf/Themes/default/Display.template.php
Line: 51
and boy is it a lot of errors, I reset them yesterday and now have 1135 pages worth....
sorry....found the fix on this board.....thanks
I had this installed with 1.17, testing it out, but decided I don't really need it. I uninstalled it but it's still showing in my admin, 'Awards' under the 'Mods' category it creates, and the options there still appear to work. Any advice on how to really uninstall it?
TIA!
You'll have to uninstall it manually... ya, it sucks :( Go to http://mods.simplemachines.org/index.php?mod=475 and choose the box on the right of "MemberAwards_1-0-2.zip (19KB) [11493]", select 1.1.6 from the dropdown box, and click Submit.
Follow the instructions, but in reverse. If it tells you to, for example, look for
'pm' => array('PersonalMessage.php', 'MessageMain'),
and add this after it
'awards' => array('ManageAwards.php', 'Awards'),
you look for the 'awards' => one and just remove it.
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=114701.0;attach=80383;image)
Wow,very cool. All i had was a link to members awards just like in default profile.
Care to post how you did this? Maybe in the Ultimate Profile thread?
Thanx.
How I did it is a bit up on the page..
Hi my member awards not working.
I downloaded the file and uploaded the package in admin panel and installed
now I just get this
http://welikeabet.com/forum2
the little orange icon is there but nothing happens?
Quote from: YodaOfDarkness on December 24, 2008, 09:25:45 PM
You'll have to uninstall it manually... ya, it sucks :( Go to http://mods.simplemachines.org/index.php?mod=475 and choose the box on the right of "MemberAwards_1-0-2.zip (19KB) [11493]", select 1.1.6 from the dropdown box, and click Submit.
Follow the instructions, but in reverse. If it tells you to, for example, look for
Thanks very much, YodaOfDarkness, much appreciated.
'pm' => array('PersonalMessage.php', 'MessageMain'),
and add this after it
'awards' => array('ManageAwards.php', 'Awards'),
you look for the 'awards' => one and just remove it.
what do i do with..
its the Installation Instructions for 1.1.7....
i dont get what i have to do at all :(
This file should not be able to execute standalone. You may have to run the following queries manually.
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}awards_members
(
ID_AWARD_MEMBER int(8) unsigned NOT NULL DEFAULT '0',
ID_AWARD BIGINT(10) UNSIGNED NOT NULL DEFAULT '0',
ID_MEMBER INT(8) UNSIGNED NOT NULL DEFAULT '0',
dateReceived DATE NOT NULL DEFAULT '0001-01-01',
favorite TINYINT(4) UNSIGNED NOT NULL DEFAULT '0',
UNIQUE KEY ID_AWARD_MEMBER (ID_AWARD_MEMBER),
KEY ID_AWARD (ID_AWARD)
)
Query: [Select]
CREATE TABLE IF NOT EXISTS {$db_prefix}awards
(
ID_AWARD MEDIUMINT(5) NOT NULL AUTO_INCREMENT PRIMARY KEY,
awardName VARCHAR(80) NOT NULL DEFAULT '',
gameName VARCHAR(80) NOT NULL DEFAULT '',
timeAdded INT(10) UNSIGNED NOT NULL DEFAULT '0',
filename TINYTEXT NOT NULL DEFAULT '',
width MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
height MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'
)
Query: [Select]
REPLACE INTO {$db_prefix}settings
(variable, value)
VALUES
('pa_awardsDir', 'awards'),
('pa_columns', 4),
('pa_rows', 5),
('pa_favorites', 1)
That is an SQL query. It should be run in something like phpMyAdmin.
how - is my question i guess then....
i have phpMyAdmin....but...have no idea how to do that stuff
Open phpMyAdmin, go to your database (i.e. forum_db) in the dropdown box, and click on a table name (i.e. smf_members). Click "Browse", then find [Edit] and click it. You should get a big text field. Replace {$db_prefix} with your forum's prefix (default is 'smf_') and put the whole query in the box.
I would just give you a file to run, but I was editing it this morning for a new version which doesn't use the same column names. Sorry :(
Hi,
Sorry to be a pain in the backside but when installing my awards this error come up!
7. Execute Modification ./Themes/default/index.template.php Test failed
1.1.x or 2.0?
i have "Day Of Defeat" theme, this is the link: http://custom.simplemachines.org/themes/index.php?lemma=441
and my smf version is the 1.1.7 but I do not know how to put the awards up to the signature, I tried several codes in the display template.php but I did not the solution.
Anyone can help me? I need to put the awards up to the signature :'(
Do you mean it's already showing, but you want it to be somewhere else, or it's not even showing on the page?
No, I do not awards shows or in the default theme that I have neither the default position, the Day of Defeat
(sorry my english)
Attach your theme's Display.template.php file to a post here, and I'll put the code in for you.
Here is ;)
thanks in advance
and this is the default theme
Where is it supposed the tab supposed to be? I use 1.1.7.
Here is a screen shot.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi475.photobucket.com%2Falbums%2Frr118%2FOperationMagic_images%2Funtitled-2.jpg&hash=38da39ec35e9aeae097de0f673af0f8413e1f97d)
What language are you using? Did the language edits get made to /Themes/default/languages/Modifications.{your language}.php?
I've seen you have patience with support XDD... anyway
Thank you, the mod is working 100% in my site... im using a cusotimized core SMF template... and spanish_es... I've translated almost everything of your mod... but im a little lazy to upload..maybe another day.
Anyway, I dont have any problems... the mod is showing where it;s supposed to be... but I want to display a single award (or multimple... maybe) under user's avatar. I've used the search in this board but I didnt find useful information... I guess I'll have a look through these 52 pages, but It would be amazing if you help me with that.
This is driving me nuts, I have been trying to work on this for weeks – and nothing is working! >:(
SMF: 1.1.7
Template: Custom (based off "luckycharms")
Install: Manual
- I followed these instructions, "Member Awards - Installation Instructions for 1.1.7" and put "ManageAwards.php", "ManageAwards.template.php","award.gif", and "ManageAwards.english.php" wher they are suppose to go - i did not run the install.
Problems:- None of the test shows up, so I have blank spaces all around my forums where it is suppose to say "Awards" or w/e.
- If I click on the awards image, it takes me to the user profile with a big blank space.
Now, could this be a result of my database not being set up? I wouldn't think so, you would think it would still say "awards" and stuff – even if my databases where perfect! I didn't set them up yet because of lack of knowledge of how to do so.Quote from: YodaOfDarkness on January 02, 2009, 10:20:34 PM
Open phpMyAdmin, go to your database (i.e. forum_db) in the dropdown box, and click on a table name (i.e. smf_members). Click "Browse", then find [Edit] and click it. You should get a big text field. Replace {$db_prefix} with your forum's prefix (default is 'smf_') and put the whole query in the box.
For one, you keep using (i.e.) - so should I use those exact examples (if not) - what should I use - (if unknown) - how can I figure it out? Do I put
all of the query that I quoted above in? Second, how can I figure out me forum's prefix?
If you want to help me, I need really good instructions (because I am an idiot) :D Thanks for your help.....
IF (and if i recall you were) making use of the ultimate profile member awards addition for profile.template.php is a function. Because that is there you cant have it in the ultimate profile as well. Oddly enough you cant just remove it from profile.template and use it in ultimate.profile because it fails to show at all.
I did pick and poke and find a way to display the information in the ultimate profile and the returned number acts as a link to the awards page but that is about it
Ref Link:
http://www.simplemachines.org/community/index.php?topic=114701.msg1849790#msg1849790
Quote from: HR on January 04, 2009, 06:22:08 PM
IF (and if i recall you were) making use of the ultimate profile member awards addition for profile.template.php is a function. Because that is there you cant have it in the ultimate profile as well. Oddly enough you cant just remove it from profile.template and use it in ultimate.profile because it fails to show at all.
I did pick and poke and find a way to display the information in the ultimate profile and the returned number acts as a link to the awards page but that is about it
Ref Link:
http://www.simplemachines.org/community/index.php?topic=114701.msg1849790#msg1849790
I cant find UltimateProfile.template.php - only - profile.php - wher can i find the other one?
Would be in Themes/default/UltimateProfile.template.php
I think i am blind....i dont see it :(
http://img255.imageshack.us/img255/2284/54145431zs5.jpg (http://img255.imageshack.us/img255/2284/54145431zs5.jpg)
OK, so it seems your not using the up.. then disregard everything Ive said lol.
Jim - try this install.php file. Add it to your forum's home directory, where SSI.php is. Run it in your browser, and it should tell you that everything has been successfully added. Delete it after you use it.
and my display.template.php do you have? :-[
Try this one (it's the "Day of Defeat" one)
Quote from: YodaOfDarkness on January 05, 2009, 06:32:36 PM
Jim - try this install.php file. Add it to your forum's home directory, where SSI.php is. Run it in your browser, and it should tell you that everything has been successfully added. Delete it after you use it.
I have a custom theme though - will this mess it up? - Thanks....
No, that file only works with the database. It doesn't do anything to your templates.
Quote from: YodaOfDarkness on January 05, 2009, 07:56:00 PM
Try this one (it's the "Day of Defeat" one)
thanks yoda but I get under the avatar, and I would like to appear on the signature is that possible? is that the awards are too big to put under the avatar :-[
how's this?
Exactly, it was looking for! thank you very much yoda!, should bring the possibility of word-up awards the prizes?
many thanks
Quote from: YodaOfDarkness on January 05, 2009, 10:04:18 PM
No, that file only works with the database. It doesn't do anything to your templates.
:) THANK YOU! it installed the databases......but visually - it didn't do anything....everywhere there is supposed to be awards info and stuff - its blank!
Admin = blank, profiles = blank.....no links, no content, nothing! :(
Quote from: Mr_JimWest on January 06, 2009, 01:54:19 AM
Quote from: YodaOfDarkness on January 05, 2009, 10:04:18 PM
No, that file only works with the database. It doesn't do anything to your templates.
:) THANK YOU! it installed the databases......but visually - it didn't do anything....everywhere there is supposed to be awards info and stuff - its blank!
Admin = blank, profiles = blank.....no links, no content, nothing! :(
If you are using a custom theme you should first edit your language files...
@YodaOfDarkness
I am currently using SMF 1.1.7 and if I updated it to 2.0 Beta 4 will all my data on my awards be deleted
the upgrade should touch the database tables... lemme check if the 2.0 package updates the table columns for you...
EDIT: As it stands right now, the 2.0 package does not correctly obtain the info for old awards. I'm working on that particular aspect right now, but until I can get it working correctly, don't reinstall the Awards package after you upgrade to 2.0.
Thanks then Ill just have to wait till you made it succesfully.
Quote from: virtualxtc on November 05, 2008, 05:54:37 PM
Im having a few issues with this mod...
When I am in "Main" It shows me what awards I have but the images are broken. I looked at the image url and it just says "http://www.sitename.com/forum/awards/" but its not displaying the filename & extension.
Note : The Award displays correctly on the "Assign" Page.
Its also giving me an error when I try to assign a medal to a member.
QuoteThe award that you entered does not exist.
FORUM LOGS!
8: Undefined index: id_award
File: .../forum/Sources/ManageAwards.php
Line: 172
8: Undefined index: filename
File: .../forum/Sources/ManageAwards.php
Line: 165
another issue when trying to edit awards...
QuoteWrong value type sent to the database. Integer expected.
When I click on the Awards Icon in the contact icons on each users post it says "You are not allowed to access this section".
Forum Version SMF 2.0 beta 4.
I'm facing the same issue here. Did any one figure out a way to fix this?
Tried manual installation but still got the same. =(
ok when some of the brainy buggas come on line can you tell me if its possible to change it so it says Special Member Award instead of Game please
depending on your version of SMF, try the very end of one of the following files in /Themes/default/languages/
index.english.php
Modifications.english.php
ManageAwards.english.php
im using SMF 1.1.7. could you tell me what i need to look for
For 1.1.x, open /Themes/default/languages/ManageAwards.english.php and search for the word "game" (it occurs multiple times).
Yoda, any idea what should I do to fix my installation of the mod?
Check the error log - does it tell you what file+line it's occuring on? (Admin -> Maintenance -> Logs -> Error Log)
Quote from: YodaOfDarkness on January 22, 2009, 02:27:07 PM
Check the error log - does it tell you what file+line it's occuring on? (Admin -> Maintenance -> Logs -> Error Log)
Thanks for the reply!
Here's what I get:
Wrong value type sent to the database. Integer expected.
Function: AwardsModify
File: /Sources/ManageAwards.php
Line: 219
I think I've solved it - try replacing the one in /Sources/ with this new one. Please tell me if it works or not, so I can include it in the next update.
Quote from: YodaOfDarkness on January 25, 2009, 01:30:43 AM
I think I've solved it - try replacing the one in /Sources/ with this new one. Please tell me if it works or not, so I can include it in the next update.
I'm sorry but it didn't work.
There were some errors on the error log regarding some 'id_award' and 'filename'
Wrong value type sent to the database. Integer expected.
Function: AwardsViewAssigned
Sources/ManageAwards.php
Line: 586
8: Undefined index: id_award
File: /nfs/c02/h04/mnt/16380/domains/j-caffe.net/html/sugoi/Sources/ManageAwards.php
Line: 172
8: Undefined index: filename
File: /nfs/c02/h04/mnt/16380/domains/j-caffe.net/html/sugoi/Sources/ManageAwards.php
Line: 168
I want to add the award pictures to the user information beside their posts between rank and their avatar. I am using a modified template however it uses the default display.template.php. I have looked through this topic and have not found where to do that. Any help would be appreciated.
Where can i download the award symbols to upload?
I have found some awards.
I have uploaded them and assigned one to myself but it isnt visible on the forum and i cant work out why. I am using SMF 2.0beta using default template.
Hi,
I too am looking for some symbols to upload and would appreciate suggestions where to get, but I also have a problem: I made a couple of home made symbols to upload but they don't show up on the forum. I had to modify the skin php file so that the award box would show up under the avatar, which it now does, but all I see in that box when I assign an award is text. No graphics.
Any assistance would be greatly appreciated with both these matters.
Thanks.
Hey,
I love the concept of this mod and want to get it up and running on my site
I have SMF 2.0 beta 4
mods
Mod Name Version
1. PortaMx v0.95.1 0.951
2. Auto Embed Video/Audio Clips 4.0.2
3. Birthday on Profile Summary 1.0
4. Reg Bar 1.0.2
5. Advanced Reputation System 1.5.2
6. TopicStarter Mod 1.3
8. Auto Merge Double Post 1.0
9. Custom Tab 1.2
10. Stars And Badges 2.1
12. Affiliates 1.1 ]
13. Floating Bar Mod 1.0
14. Google Member Map 1.0 beta 4
15. More Spiders 1.2
16. First Post on every Page 1.1
This is what i get?
Type Action Description
1. Execute Modification ./Sources/Admin.php Test failed
1. Add Before ./Sources/Admin.php Test failed
2. Add After ./Sources/Admin.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
1. Add After ./Sources/Load.php Test successful
2. Add After ./Sources/Load.php Test successful
3. Add Before ./Sources/Load.php Test successful
4. Add After ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
1. Add After ./Sources/ManagePermissions.php Test successful
2. Add After ./Sources/ManagePermissions.php Test successful
3. Add After ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/Profile-View.php Test successful
1. Add Before ./Sources/Profile-View.php Test successful
5. Execute Modification ./Sources/Profile.php Test successful
1. Add After ./Sources/Profile.php Test successful
6. Execute Modification ./Sources/Subs.php Test successful
1. Replace ./Sources/Subs.php Test successful
7. Execute Modification ./Sources/Who.php Test successful
1. Add After ./Sources/Who.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test failed
1. Add Before ./Themes/default/Display.template.php Test successful
2. Add After ./Themes/default/Display.template.php Test failed
9. Execute Modification ./Themes/default/Profile.template.php Test successful
1. Add Before ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
1. Add Before ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
12. Extract File ./Sources/ManageAwards.php
13. Extract File ./Themes/default/ManageAwards.template.php
14. Extract File ./Themes/default/languages/ManageAwards.english.php
15. Extract File ./Themes/default/languages/ManageAwards.english-utf8.php
16. Extract File ./Themes/default/images/award.gif
17. Extract File ./Themes/default/images/admin/awards.gif
18. Create Tree ./awards
19. Execute Code install.php
I dont want to install it and then it screw things up..as this site is 80+ users so...any ideas as to the two errors or what more info you need
OK i went ahead and installed it and this is what
this is the image of when i installed it
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi253.photobucket.com%2Falbums%2Fhh71%2Ftwonycot%2Funtitled.jpg&hash=9077309359756219438c008434728f8460147d5a)
I cant find the badges section anywhere...and well i just wont help to get this thing up and running...thanks all
Hey there, thanks for the awesome mod!
I've been working on installing it for awhile now, and while I managed to solve most of my problems by editing the SQL I just have one small problem that I was hoping someone could help me with:
On my forum now whenever you click a user profile you get the following error message:
QuoteFatal error: Cannot redeclare awards() (previously declared in /home/dragon/public_html/rpg/Sources/Profile.php:2917) in /home/dragon/public_html/rpg/Sources/Profile.php on line 3319
As can be seen here: http://beyondstonewalls.com/rpg/index.php?action=profile;u=46 for example.
I noticed some other people had this problem. I looked at my code and it doesn't look like I installed it twice, I don't see any duplicate code anywhere. Other than that I'm stumped. I tried removing the section of code around line 3319, but I had absolutely no idea what I was doing, so I put it back. Hahah.
Attached is my Profile.php any help would be greatly appreciated. Thank You!
can i use in smf 1.1.8, but not in default theme? how can i do?
thx!
Hello, to be grateful for the fantastic mod. A doubt. My .sources/Admin
$admPerms = TP_addPerms();
isAllowedTo($admPerms);
That I must do?
I have these mistakes:
http://xxxxxx/foro/index.php?action=awards;sa=assign;step=1;id=6
http://xxxxxx/foro/index.php?action=awards;sa=modify;id=8
Forbidden
You don't have permission to access /foro/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
SMF 1.1.8
TinyPortal v1.0.5 beta 1© Bloc
Sorry my language
I've been using this mod for a while now.
Works great on SMF 2 Beta 4
I'm looking forward to the update to SMF 2 RC1.
Thanks
I'm working on a full rewrite for RC1. It could be done tonight, or it could be done in a week.
After it's done, though, I'll have to test it for a day or two.
Thanks.
I know you will release it when it runs perfect.
I'll keep watching this thread for the update. :D
Will the update work on 2.0beta 4?
are you going to allow the display of teh awards under the users avatars?
Thanks
The 2.0 version already shows them under the avatar. In the next release, which will be for RC1 only, it'll allow you to upload a second (smaller) image to use under the avatar if you want to use big ones but don't like them to be that big under your avatar. If you choose not to upload a second image, it'll just use the large one.
Oh right yes i remember now i disabled it as i wasnt keen on the large award under the avatar. Ill have to upgrade to RC1 so i can have smaller ones under the avatars.
When should we be seeing member awards release for RC1?
soon
hmmmm.... I installed this on 2.0 RC1 with a few manual tweaks needed to get it, but one thing has me stumped
create_control_autosuggest doesn't exist anywhere in my source files... but your mod calls it as if it should.
Also, the template_control_autosuggest doesn't exist either...
That's why I'm still working on the RC1 version - it's also adding a miniature image field, so that if you use huge images, they won't be so big in your posts.
I'm still waiting on a reply from http://www.simplemachines.org/community/index.php?topic=296308.0 and I've been trying to do it myself, but I'm having no luck.
Okay, I got the person-adding part done, but now I've run into a roadblock with http://www.simplemachines.org/community/index.php?topic=297008 :) fun fun fun
Hopefully this isn't a stupid quesiton, but having an issue installing the mod. Was able to install the package without any errors or warnings. When I try to use the mod by clicking the link at the top of the page it brings me to a page that doesn't have any values on the page and the menu tabs are there but no text in them (kinda blank). I am running on a hosted service from Host Gator initial installation was 1.17 upgraded to 1.1.8 brand new installation. Any thoughts?
What language are you using? Is there a ManageAwards.{your_language}.php file in /Themes/default/languages?
Using English, and just checked there is no manageawards files in the /themes/default/languages
http://fustrate.com/dev/sources/Member%20Awards/MemberAwards_1-0-3/ (http://fustrate.com/dev/sources/Member%20Awards/MemberAwards_1-0-3/)
Download the file from there (right click and save) and upload it to your /languages/ folder.
Thank you, but I have the same issue. did see in the readme it states 1.1.7 only, I am currently running 1.1.8. Also, once installed where should I see the options under Admin. The only way I have been able to see the "blank screen with blank tabs" is right after install there is a link at the top of the page.
Regards,
Rich
Think I located the issue. I checked the default language for the forum and it was english-utf8, I changed it to english and reapplied mod. Menu is now looking like it should.
I appreciate your quick assistance thank you.
Regards,
Rich
No problem :) I should finish fixing up the code tonight (Pacific time, btw)
After that, I'll do some more testing on a fresh install, and hopefully package it up by the weekend.
Oh, and there's about a 0% change of having an upgrade for this mod from the previous 2.0 version to the next one, because of the immense database, file, and code changes. There's just no convenient (or even half-convenient) way.
One last question, if you don't mind...
Is there a way to have the awards appear as icons next to the users name? Like the "stars" do for posting? Or is that wishful thinking?
Thanks again for your quick response to my inquiry.
Regards,
Rich
I posted some code a dozen or so pages ago... can't remember where, though.
Hello.
Thank you for the fantastic mod!
I'm using the code that was provided earlier in the thread to make badges display under the avatar, and I've been trying to make it work with PopBox [link] (http://www.c6software.com/Products/PopBox/) to make a larger version of the badge appear when it is clicked.
So far, nothing. Is this even possible?
The code I've been trying to use PopBox with:
if (isset($context['awards'][$message['member']['id']]))
{
echo '
<div style="width: 100%;">';
foreach ($context['awards'][$message['member']['id']] as $badge)
echo '
', $badge;
echo '
</div><br />';
}
You need to use things like $badge['img'], which will output the path to the image. Like <img src="', dirname($scripturl), $badge['img'], '" />
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => '?action=profile;sa=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;sa=showAwards;u=' . $row['id_member'],
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'img' => '/' . $modSettings['awards_dir'] . '/' . $row['filename'],
I tried putting <img src="', dirname($scripturl), $badge['img'], '" /> after the foreach part in the code I already posted, but nothing showed up.
Where should I put it?
what does it show in the source code when you load the page?
The source code shows <img src= and then the url of my forum followed by a single <.
I tried to echo $badge['img'] once again and it displayed a single <.
if (isset($context['awards'][$message['member']['id']]))
{
echo '
<div style="width: 100%;">';
foreach ($context['awards'][$message['member']['id']] as $badge)
echo '
<img src="', dirname($scripturl), $badge['img'], '" />';
echo '
</div><br />';
}
So, the image displaying works, just not the $badge['img'] part for some reason.
put this on its own line and tell me what it spits out:
die(print_r($context['awards']));
oh, and I'm pretty much done with the 2.0 RC1 version. Very late, very much improved.
Array ( [] => Array ( ) [1] => Array ( [0] => 76651_badge.png [1] => 35938_badge.png [2] => 68764_badge.png ) ) 1
That's what got spit out.
Can you show me exactly what code you're trying to put in for this popbox?
Right now, I don't have any popbox code, since I can't get it to display in the first place.
But it would probably be something like <img src="The badge" pbSrc="The popped pic.png" />
If I could just get $badge['img'] to point to the image's location everything else would be simple. But right now it's still just <.
did you change the code at all from the original? Try putting it back how it was first written, and see if that works.
Forum version: SMF 2.0 RC1
Current SMF version: SMF 2.0 RC1
Member Awards -- 2.1
During installation....it gave me an error...saying that it cannot execute the modification on the subs.php file.
It gave me an option for installing this mod on other themes that i have installed....and i got it installed on the current theme that i am using as well....which is Overview theme.
I continued with the installation despite that.....and i got the usual "mod has been successfully installed".
After installation, when i click on the "awards" link in my acp, i get the following error...
Parse error: syntax error, unexpected T_INT_CAST, expecting T_STRING or T_VARIABLE or '$' in /home/konoha/konoha/smf/Sources/ManageAwards.php on line 486
and when i try to view my profile, by clicking on the profile tab, i get this error
Parse error: syntax error, unexpected T_INT_CAST, expecting T_STRING or T_VARIABLE or '$' in /home/konoha/konoha/smf/Sources/Profile-View.php on line 1900
Other Mods that i have installed :
SimplePortal -- 2.1.1
SMF Quiz -- 1.0.3
MCLegendII.2 -- 3.0
SP Forum Navigation Block -- 1.0
Custom Form Mod -- 1.3
@ raasaa. It's not designed for RC1 yet.
Fustrate says possibly this weekend for the updated version.
aargh...my bad for being hasty and installing it :(
I can guarantee, you weren't the first one.
I already tried it. LOL
Right now I'm working on some layout stuff and then I'll run a few installation and awarding tests, and then I'll be done.
If everything goes as planned tomorrow, I'll have no time to code :(
If anyone wants to try it, here it is.
IMPORTANT INFORMATION
There is a good chance that this version will
overwrite your old awards. Please
make sure you know, or have written down, who has what award and have saved all
awards to your hard drive. This is due to the amount of code that has been rewritten
along with some changes to the database tables used for this mod. Sorry for the
inconvenience, but it has to happen in order to make the changes needed to continue
working.
(ya, I copypasta'd that right from the readme)
Trying it now.
Table 'thesqua1_sbforums.awards_members' doesn't exist
File: /home/thesqua1/public_html/forums/Packages/temp/install.php
Line: 22
argh, for some reason the tables don't want to create now. Just a minute.
Has it been a minute? LOL
Can you create them manually while I figure out why SMF hates my code? I'm dead tired, and have fallen asleep three times in the last half hour ;)
Is it only the tables that are not created or there are still issues with the main codes? Because I would like to try this but and I can still manage if the table would be created manually...
I see no reason why it shouldn't.
Mainly because the "new" package manager is crap. Just to install a version of Treausry requires a rewritten file located in sources/dppackages-mysql.php. You might want to contact Resourcez in regards to the file. Treasury wouldn't load the tables either. Even though they already existed.
I'll go try to figure that out. Either that, or I'll hard code for $db_type.
Quote from: SgtMic on March 11, 2009, 12:47:50 AM
Table 'thesqua1_sbforums.awards_members' doesn't exist
File: /home/thesqua1/public_html/forums/Packages/temp/install.php
Line: 22
Drop the tables PREFIX_awards, PREFIX_awards_categories, and PREFIX_awards_members then reinstall. I recommend backing them up first, as you're permanently deleting those tables by dropping them.
Quote from: linkgamer3 on March 14, 2009, 06:55:25 PM
Quote from: SgtMic on March 11, 2009, 12:47:50 AM
Table 'thesqua1_sbforums.awards_members' doesn't exist
File: /home/thesqua1/public_html/forums/Packages/temp/install.php
Line: 22
Drop the tables PREFIX_awards, PREFIX_awards_categories, and PREFIX_awards_members then reinstall. I recommend backing them up first, as you're permanently deleting those tables by dropping them.
I can try that as a workaround. But it doesn't solve the issue. I'm sure Fustrate is frustrated at this point. :)
Does not work. Nothing but database errors, forums stop working. I don't recommend dropping the existing tables route.
Did you create the tables manually?
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
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.
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?
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 :)
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.
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?
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 (http://www.extremeg.org/forum/showthread.php?p=2526)
http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
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 (http://resourcez.biz/index.php?action=forum) and talk to Resourcez.
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! :)
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.
OK, thanks, I'll see if I can find that! :-[
I may be gone some time......
:)
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?
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>';
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.
get rid of the hieght and width parts. They don't exist anymore.
Definately make this 2.0 RC1 PLEASE!
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
Here is the error I get when I click on someones profile, go to awards and they do not have any yet.
http://thesquadbay.com/forums/index.php?action=profile;u=19
Apply Filter: Only show the errors with the same message
8: Undefined index: area
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Sources/Profile.php
Line: 155
Line 152-158:
'awardsMembers' => array(
'file' => 'Profile-View.php',
'function' => 'awardsMembers',
'hidden' => ($_GET['area'] != "awardsMembers"),
'permission' => array(
'own' => 'profile_view_own',
'any' => 'profile_view_any',
I'll post a new package when I get home tonight, I'm at work so I can't FTP into my dev files :(
Cool.
SgtMic, try upgrading with this. I also changed the indexes/primary keys on awards_members, so it should install fine for anyone who wants to install this on RC1.
I had to delete the 3 existing tables for this to install. Good news is, it builds all 3 tables now instead of only 2.
Gave myself an award, then went to profile to see awards.
Errors:
http://thesquadbay.com/forums/index.php?action=profile;area=showAwards;u=3
Apply Filter: Only show the errors with the same message
8: Undefined index: id_category
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Sources/Profile-View.php
Line: 2102
http://thesquadbay.com/forums/index.php?action=profile;area=showAwards;u=3
Apply Filter: Only show the errors with the same message
8: Undefined index: id_category
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Sources/Profile-View.php
Line: 2103
http://thesquadbay.com/forums/index.php?action=profile;area=showAwards;u=3
Apply Filter: Only show the errors with the same message
8: Undefined index: id_category
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Sources/Profile-View.php
Line: 2108
Then when to a post and clicked on the award under my name and got this:
http://thesquadbay.com/forums/index.php?action=profile;area=awardsMembers;id=1
Apply Filter: Only show the errors with the same message
8: Undefined index: award_name
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/GenericMenu.template.php (awards_members sub template - eval?)
Line: 2942
Great mod Fustate, I downloaded the newest version you just posted and it is giving me
QuoteTable 'josephuk_SMF.awards_members' doesn't exist
File: /home/josephuk/public_html/Packages/temp/install.php
Line: 23
when I try to apply it and I am on RC1. Thanks
did you use the first one I posted, or memberawards_2-0_1237583717.zip which is two posts above here?
the one two posts above "memberawards_2-0_1237583717.zip"
Make sure no awards tables exist in your database, and try this one. This also includes an update from 2.1.1 to 2.1.2 (aimed at your errors, SgtMic)
Quote from: Fustrate on March 22, 2009, 10:18:31 PM
Make sure no awards tables exist in your database, and try this one. This also includes an update from 2.1.1 to 2.1.2 (aimed at your errors, SgtMic)
Got it.
OK, I still have to delete the awards_members table prior to installing/upgrading.
Good news, it builds all 3 tables now.
I've ran it through the gambit, and only found 1 error.
The cause of getting this error in the log was due to me clicking the award while viewing a post.
http://thesquadbay.com/forums/index.php?action=profile;area=awardsMembers;id=1
Apply Filter: Only show the errors with the same message
8: Undefined index: award_name
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/GenericMenu.template.php (awards_members sub template - eval?)
Line: 2942
So far you've really cleaned it up well. Good job.
The only thing I can't seem to find is where to delete members who have the award.
There is an option to delete the award, just not members.
there should be check boxes when you view the members who have the award in the admin panel
If I click on main, then members, it shows the members with awards and a checkbox. Just no options on that particular page.
Quote from: Fustrate on March 22, 2009, 10:18:31 PM
Make sure no awards tables exist in your database, and try this one. This also includes an update from 2.1.1 to 2.1.2 (aimed at your errors, SgtMic)
Hi Fustrate, I dropped the tables which I presume means getting rid of them, anyways it worked, installed and I will be testing it asap. Thanks for the very helpful support :D
I think, I found serious bug in this plugin (btw, thanks for the great plugin!):
If user hasn't any private messages except Warning (Moderator's) Notification he can't access to PM:Inbox:
QuoteDatabase error, given array of integer values is empty.
Simple solution it's recieve a normal message from normal user (not system notification), or just write message to self.
In Admin/Critical Logs you can see a message like that:
http://forum.com/index.php?action=pm;f=inbox;start=0
Database error, given array of integer values is empty.
Function: loadmemberdata
File: /homepages/27/d251925056/htdocs/polusharie.com/Sources/Load.php
Line: 1018
1005: // I'm sorry, but I've got to stick it somewhere...
1006: if($modSettings['awards_in_post'] > 0){
1007: $awardsRequest = $smcFunc['db_query']('', '
1008: SELECT
1009: aw.id_award, aw.award_name, aw.description, aw.filename, aw.width, aw.height,
1010: am.id_member, am.date_received, am.favorite
1011: FROM {db_prefix}awards_members AS am
1012: INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
1013: WHERE am.id_member IN({array_int:members})
1014: ORDER BY am.favorite DESC, am.date_received DESC',
1015: array(
1016: 'members' => $new_loaded_ids,
1017: )
==>1018: );
Needs ultimate profile support.
Quote from: Prosoi on March 26, 2009, 04:36:26 AM
I think, I found serious bug in this plugin (btw, thanks for the great plugin!):
If user hasn't any private messages except Warning (Moderator's) Notification he can't access to PM:Inbox:
QuoteDatabase error, given array of integer values is empty.
Simple solution it's recieve a normal message from normal user (not system notification), or just write message to self.
In Admin/Critical Logs you can see a message like that:
http://forum.com/index.php?action=pm;f=inbox;start=0
Database error, given array of integer values is empty.
Function: loadmemberdata
File: /homepages/27/d251925056/htdocs/polusharie.com/Sources/Load.php
Line: 1018
1005: // I'm sorry, but I've got to stick it somewhere...
1006: if($modSettings['awards_in_post'] > 0){
1007: $awardsRequest = $smcFunc['db_query']('', '
1008: SELECT
1009: aw.id_award, aw.award_name, aw.description, aw.filename, aw.width, aw.height,
1010: am.id_member, am.date_received, am.favorite
1011: FROM {db_prefix}awards_members AS am
1012: INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
1013: WHERE am.id_member IN({array_int:members})
1014: ORDER BY am.favorite DESC, am.date_received DESC',
1015: array(
1016: 'members' => $new_loaded_ids,
1017: )
==>1018: );
hmm... it shouldn't be doing that, but I'll put out a fix for that later today.
SilverKnight - I have no knowledge of the ultimate profile mod, sorry.
Great mod anyway to make it so that a admin could set a award to show on their posts maybe below the avatars? like say you had a Member of the month award and maybe a 60x60 image or something?
Hi,great mod.Is it working on RC1?? Is it possible to add support for external images (hosted on imageshack or such) to save bandwith?.
Thanks.
There is an RC1 version a few pages back as an attachment.
Right now there is no support for external images, but I could look into doing that in the future.
Have you had any time yet to work on any of those errors I was getting with RC1?
Not at all... I'm doing general fixes on all of my mods right now.
Just wondering. :)
Okay, I've fixed Prosoi's bug and the delete-tables-to-upgrade error, but yours (SgtMic) is hidden by a template eval. Can you follow the instructions in this post ( http://www.simplemachines.org/community/index.php?topic=259379.msg1688265#msg1688265 ) and tell me where it says the error actually is, and show me the lines?
I'm swamped with work stuff, but this is pretty much the last bug that I know of in any of my mods... just gotta test them all after that :)
Ok,thanks Frustrate.I will look forward a new release (not only for a support to external images,but also because I had DB problems with It).
It appears the error is coming from this page: http://thesquadbay.com/forums/index.php?action=profile;area=awardsMembers;id=3
Doesn't seam to matter how I get there, whenever I go to that page it triggers an error.
Apply Filter: Only show the error messages of this URL http://thesquadbay.com/forums/index.php?action=profile;area=awardsMembers;id=3
Apply Filter: Only show the errors with the same message
8: Undefined index: award_name
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/Profile.template.php
Line: 2942
So far that's the only error I get.
What's around line 2942?
Lines 2934-2949
// Open the form
echo '
<table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="bordercolor">
<tr class="titlebg">
<td colspan="', $context['columns'], '">', $txt['awards_members_with'], ': ', $context['award']['name'], '</td>
</tr>
<tr class="windowbg">
<td colspan="', $context['columns'], '" align="center">
<img src="', $context['award']['img'], '" alt="', $context['award']['award_name'], '" /><br />
<strong>', $context['award']['name'], '</strong><br />
', $context['award']['description'], '
</td>
</tr>
<tr class="titlebg">
<td colspan="', $context['columns'], '">', $txt['members'], '</td>
</tr>';
Yet another "this should work :)" attached to this post.
I'll give it a try.
Darnit
Apply Filter: Only show the error messages of this URL http://thesquadbay.com/forums/index.php?action=profile;area=awardsMembers;id=4
Apply Filter: Only show the errors with the same message
8: Undefined index: award_name
Apply Filter: Only show the errors from this file
File: /home/thesqua1/public_html/forums/Themes/default/GenericMenu.template.php (awards_members sub template - eval?)
Line: 2942
search Profile.template.php for $context['award']['award_name']
Line 2942
<img src="', $context['award']['img'], '" alt="', $context['award']['award_name'], '" /><br />
With your attached version: when I assign an award to a member,I get this near his avatar:
# Awards:
Pein
Just shows "pein" (don't know what is that lol),not the image.
On others,It just shows nothing (only "Awards:").
EDIT: when I try to make a favorite award:
QuoteThe database value you're trying to insert does not exist: mem
Did you have any errors when installing?
No,nothing...
Lamarck: can you show us an image of what's happening?
SgtMic: change ['award_name'] there to ['name'] ...should've been fixed during the upgrade, don't know why is wasn't.
Yes,of course,attached.
EDIT: ah,lol...I realized that "pein" is the custom title of that user.Well,the thing is that images are not showing >__<.
Quote from: Fustrate on April 04, 2009, 07:57:51 PM
SgtMic: change ['award_name'] there to ['name'] ...should've been fixed during the upgrade, don't know why is wasn't.
As of now, I am no longer getting any errors.
Good job. You did it. LOL
Quote from: Lamarck on April 04, 2009, 08:02:09 PM
Yes,of course,attached.
EDIT: ah,lol...I realized that "pein" is the custom title of that user.Well,the thing is that images are not showing >__<.
If you look in the page source, what is between "Awards:" and "Pein"? View -> Page Source, or Ctrl-U
Here it is:
<br /><div style="overflow: auto; width: 100%;"><img src="http://img222.imageshack.us/img222/8357/avatarraistiw4.png" alt="" class="avatar" border="0" /></div><br /><li>Awards:<br /><img src="/awards/" alt="" title=""/></li>
Mensajes: 1081<br />
First my avatar,then the awards.
Are there any errors in the error log?
No,nothing related to awards .__.
Ok,I fixed it manually.I had to do some "tricks" and now works ^^.
What were the tricks? If it was anything wrong with the mod, it would be good to fix it now before anyone else gets the same thing :)
Hey Frustrate,
I've read the past four pages and I see where you have a few attachments for RC1. Which is the correct one to use? I kinda got confused on the third or fourth attachment because I didn't know if they were specifically for Sgt. Mic or for RC1 in general. Sorry for me being so dense, but it's late for me right now! LOL
Always use the most recent one I post... I always try to put full versions unless stated otherwise :)
Also, since I haven't had time to test it 100% (though most bugs should be squished by now), please post here if you encounter any problems.
Will do. Thanks!
I may not get to this until the afternoon on Tuesday. This is one of the last mods I was waiting to see was upgraded to RC1. (Just have to wait for Google Member Map next!) If I don't fall asleep, I'll do this tonight and get back with you. Otherwise, catch you tomorrow.
Thanks again!
So far I've not had any problems with the latest version.
Cool. I just downloaded "memberawards_2-0_1238878918.zip"
Update #1:
I have one error in the Install actions. That is the Sources/Subs.php edit. (Probably due to me having other mods. I've opened the zip file and accessed the install.xml to find the edit that needs to be done.)
Update #2:
Yepp, simple fix. I have Simple Portal mod and it looks like the 'sp_moderate' is placed in that code which it was looking for, so I just added the addition needed.
Ok, I'm getting one error in my error log. I've attached a picture from the Modifications.english.php file and am going to look thru the last four pages here to see if it was already covered for RC1.
I don't see anything, to repair this. I cleared the cache and I still get the error. :(
Any suggestions on how to repair?
I was going to reference mine. But I forgot I've had to uninstall all of my mods temporarily.
I've gone to profiles, posts, and in the admin section for the mod and haven't seen any other errors pop up, so that's a good deal. Just the one I've posted.
I'll check it in the AM by adding an award and seeing if anything else pops up.
I've added awards and haven't received any additional errors in the Error Log, but I'm still getting the same error that is listed in reply #1191.
The mod appears to be working correctly other than the same line error appearing in the log.
Is that Modifications.php or Modifications.english.php in reply #1191?
Whichever it is, add:
global $scripturl;
before the line that references it.
It is the Modifications.english.php file
(I'll change my above post to reflect that, thanks!
Wait! Try upgrading with this one. Should do just that one edit :)
If it works, this version is going up on the mod site.
Do you mean the Modification.english edit? or the Edit that failed previously in the Subs?
Modifications. Subs was a conflict with another mod, which I can't just fix.
Ok, give me a couple minutes. (I'm ignoring the person on the phone for a second. :D )
??? I don't see anything different in the Modifications.english.php edit than what I did already.
But, at the same time, I went ahead and replaced what I had with this and then clicked everywhere on the forum that dealt with awards and don't see any more errors appearing.
What was the change?
it added the global $scripturl; line... as long as it installs fine, it doesn't matter if it's in there twice because of a manual edit.
Been checking the forum adding and deleting awards and haven't noticed anything appear. Looks like you've got a winner at this point.
heh, I need to update the 1.1.x version for all of this... that'll be pure hell
Well, keep your chin up. I don't want to sign in and see you changed your name to Frustrated! :P
heh, sometimes mods can get pretty annoying... but that's what I just go work on other stuff when I get peeved.
Hmm...I finally had the courage to try this out on RC1 again, but I've hit a couple of bumps on the way. After having to fill in the initial database entries manually (I had dropped the old ones and the installer never restored them.), I could administrate the awards. However, I remember actually seeing the awards in the post view. Now all I see is a clickable icon that brings you to what should be the user's awards section in their profile, but it just brings me to the main profile view. I'm using 2.1.4. Any help or suggestions would be greatly appreciated. Also, before anyone asks, yes I tried the default theme; I didn't even see the icon in that theme for some reason.
Did you enter a number in the Awards Settings page? If it's still at 0, none will show.
Yes, I have it set to 3.
Hi, Ive installed your mod to RC1. Ive assigned awards and everything seems to be fine but when you click the award image on the board or try to edit category's, assign or remove awards i get this message. Im currently getting no errors show up in the error log and as far as i can tell the permissions are set right. Any help would be greatly appreciated, Ive checked through the previous pages of this thread and have not been able to find anything related.
Thanks
QuoteNot Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Hey,
I'm getting a couple of errors in RC1:
Quote
Unknown column 'id_category' in 'field list'
File: /home/nworpcom/public_html/forum/Sources/ManageAwards.php
Line: 700
Unknown column 'a.id_category' in 'on clause'
File: /home/nworpcom/public_html/forum/Sources/ManageAwards.php
Line: 97
Unknown column 'award_name' in 'field list'
File: /home/nworpcom/public_html/forum/Sources/ManageAwards.php
Line: 423
Unknown column 'aw.award_name' in 'field list'
File: /home/nworpcom/public_html/forum/Sources/Profile-View.php
Line: 1970
Any ideas how can I fix this?
Thanks in advance.
can you check if {db_prefix}awards, {db_prefix}awards_members and {db_prefix}awards_categories exist in your database?
I cannot make favourite awards (shows an sql error) and I can't find how to quit an award from a member.I can only do It from phpmyadmin.
Other than that,It works fine.Looking for support for external images :P
Hey, I'm getting one error from the mod:
File: /var/www/html/c4g/cache/lang_ManageAwards_english_default.php (awards_members sub template - eval?)
Line: 3146
Have received this three or four times now.
Sorry, RC1 here on default
Quote from: Lamarck on April 17, 2009, 07:19:36 AM
I cannot make favourite awards (shows an sql error) and I can't find how to quit an award from a member.I can only do It from phpmyadmin.
Other than that,It works fine.Looking for support for external images :P
What's the exact SQL error? And you can unassign an award via the admin center... just view the list of who has received it, and then check their name and press 'Unassign'.
Quote from: C4G-TK on April 17, 2009, 11:02:30 AM
Hey, I'm getting one error from the mod:
File: /var/www/html/c4g/cache/lang_ManageAwards_english_default.php (awards_members sub template - eval?)
Line: 3146
Have received this three or four times now.
Sorry, RC1 here on default
Can you open the file it's referencing and tell me what's on that line (hopefully it's before the eval is done...), and also go to
Admin > Maintenance > Forum Maintenance > Routine and empty the file cache (AFTER you check that cache file!)?
QuoteWhat's the exact SQL error? And you can unassign an award via the admin center... just view the list of who has received it, and then check their name and press 'Unassign'.
I can check the name,but there is no "unassign" button >__<.
PD: I will edit with the error.
Quote from: C4G-TK on April 17, 2009, 11:02:30 AM
Hey, I'm getting one error from the mod:
File: /var/www/html/c4g/cache/lang_ManageAwards_english_default.php (awards_members sub template - eval?)
Line: 3146
Have received this three or four times now.
Sorry, RC1 here on default
Can you open the file it's referencing and tell me what's on that line (hopefully it's before the eval is done...), and also go to
Admin > Maintenance > Forum Maintenance > Routine and empty the file cache (AFTER you check that cache file!)?
[/quote]
From the error log, it will not open the file to tell me what line it is. It is a black link that is not clickable.
So, I downloaded it and there are less than 100 lines in that file... ????? So, not sure how to get line 3146
I didn't have any errors after the other day when I posted about everything being good to go...
Here is a screenshot of the error log and a picture of the page of where the error is being pulled from. I just clicked on the URL link and sure enough just got a 3rd error by going there.
I have a custome template.
What do I have to do to get this to work?
I dont have the "Badge" button in the Admin panel.
I cant see the "Awards" page on profiles
etc
http://www.noxxious.com
Quote from: C4G-TK on April 17, 2009, 07:50:33 PM
Quote from: C4G-TK on April 17, 2009, 11:02:30 AM
Hey, I'm getting one error from the mod:
File: /var/www/html/c4g/cache/lang_ManageAwards_english_default.php (awards_members sub template - eval?)
Line: 3146
Have received this three or four times now.
Sorry, RC1 here on default
Can you open the file it's referencing and tell me what's on that line (hopefully it's before the eval is done...), and also go to Admin > Maintenance > Forum Maintenance > Routine and empty the file cache (AFTER you check that cache file!)?
From the error log, it will not open the file to tell me what line it is. It is a black link that is not clickable.
So, I downloaded it and there are less than 100 lines in that file... ????? So, not sure how to get line 3146
I didn't have any errors after the other day when I posted about everything being good to go...
Here is a screenshot of the error log and a picture of the page of where the error is being pulled from. I just clicked on the URL link and sure enough just got a 3rd error by going there.
[/quote]
Disable template eval ( http://www.simplemachines.org/community/index.php?topic=290186.0 ) and then do exactly what you did to get the error before. It should tell you something different, and you need to find the line it references once it does.
n3ith - on the top right of the mod's download page, select the version you installed and your SMF version, and then click "Parse". For each of the files in your custom theme's folder, see if there are instructions for it on the parse page. It should be pretty straightforward from there.
Here you go. (And thanks for teaching me that little tidbit to get the line)
File: /var/www/html/c4g/Themes/default/Profile.template.php
Line: 3146
BTW, how do I turn the eval back on? I tried to run the 2nd query, but now I'm getting the following error
http://www.simplemachines.org/community/index.php?topic=290186.0
Is that a typo there that should read ENABLE in the 2nd query and not DISABLE?
I replied in that thread regarding the INSERT INTO problem
and I just uploaded v2.1.5 for RC1, you can just upgrade with the package (no need to uninstall/reinstall).
Upgraded without problems.But:
This is what I get when I try to mark an award as "favorite":
Quote
The database value you're trying to insert does not exist: mem
And I can't see the "unasign" button (picture attached).
I'm not going to release a new package for that, just fixing the current one to fix it.
In Sources/Profile-View.php, find
'award' => $_GET['id'],
'member' => $memID,
'make_favorite' => ($_GET['makeFavorite'] > 0) ? 1 : 0,
and replace it with
'award' => $_GET['id'],
'mem' => $memID,
'make_favorite' => ($_GET['makeFavorite'] > 0) ? 1 : 0,
(just change 'member' => to 'mem' =>)
Good Update Author.
Will try uploading now.
Quote from: Fustrate on April 18, 2009, 02:43:25 AM
I replied in that thread regarding the INSERT INTO problem
and I just uploaded v2.1.5 for RC1, you can just upgrade with the package (no need to uninstall/reinstall).
You mean just use the package parser to redo the edit for the Profile.template.php file or am I missing something else?
:( I downloaded the new version, but it gives me a "File corrupt" message when I try to install it in SMF 2.0 RC1
It's been working fine for the last few days, but I'm going to be doing one last bugfix in about half an hour if my leg stops bleeding. Once that's all packaged up again, it should work.
EDIT: 2.1.6 is up and running - there was an error in ManageAwards.template.php that was using an old variable to see if there were any assigned members, so it was never showing the "Unassign" button.
Is the only change between 2.1.5 and 2.1.6 the ManageAwards.template then? I updated to 2.1.5 last night from 2.1.3 without any errors.
do the same thing, uploading the new package and clicking "Upgrade".
OMG.. I am a twit. I never noticed the upgrade button. I have uploaded at least 200 mods total over the past year on three forums and never saw that. Can I go bang my head against the table now?
Well, on the bright side, doing uninstallers and re-installations has assisted in giving me plenty of practice doing edits now.
on 2.1.6, I'm just getting one error:
Line 448 of Modifications.english.php file
attached that line per the error log
I've cleared cache and checked over the edit and the edit was done correctly.
There was an edit back in 2.1.4 or so... look in the upgrade file from that version, you need to globalize $scripturl
Any way of doing a page on the mod kind of like the staff mod.
Say like this
Award 1 Award 2
Name 2 Name 5
Name 3 Name1
Name 5 Name2
Award 3 Award 4
Name 2 Name 5
Name 3 Name1
Name 5 Name2
I need it for my gaming clan
Quote from: Fustrate on April 17, 2009, 08:22:40 PM
n3ith - on the top right of the mod's download page, select the version you installed and your SMF version, and then click "Parse". For each of the files in your custom theme's folder, see if there are instructions for it on the parse page. It should be pretty straightforward from there.
I did look at the Parse information. I see that it is for "default" and default only. At least this is what I see.
You cant read all of the information in the Parse field to change things manually or I would try to do that to see if it works :D
Oh well, another useless mod to me. I have seen this mod for VB. Actually I have seen this mod for VB and a mod that allows you to put awards underneath the signature area on members too.
Dangt!!! I shouldve went VB :D
Just because it says 'default' on the parse page doesn't mean you just look in 'default'...
You still cant read all the information that needs to be changed even if that is the case
It looks like this:
find
change
Cant even see what I am supposed to find :/
Doesnt matter. Everything with SMF is not S. They should have named it Pain in the Ass Machines. All of the awesome mods have been everything but easy for the ignorant n00b.
Thank you for your help or attempted help though. I do want to say thanks for your time. Not many people do things like you are and I appreciate it. Its me not you. :D
Try this instead (I made it all pretty and stuff, don't know why): http://www.fustrate.com/dev/sources/Member%20Awards/MemberAwards_2-0/package-info.xml
I thought of something that would be a really nice addition to your mod, Fustrate.
Referring to the page that shows the Award and then lists all of the people who have received the Award. It would be nice to have a larger text block between those two areas where we could write out the description of what the Award means. It would allow us to give more detail as to how the award is achieved, when it is given out, etc etc.
re: Line 448 error above
Ok, I'm obviously not having a good day today because I went back into the upgrade from 2.1.4 and replaced/added the following:
### Awards
global $scripturl;
// Used by: Errors
to the Modifications.english and now my awards images just appear as a text link. I'm sorry for my incompetence here I'm just having multiple brain farts.
I'm not getting any errors in my Error log now, but the images are now not working.
I had uninstalled the previous version of the mod and installed the most recent version 2.1.6
The only edit that failed was the Subs edit which I did manually.
I've never downloaded a modification package and then gone back and manually performed upgrades from the package. I thought that operation was automatic if you downloaded the most recent version of the mod which I've done. Did I need to do the Subs edit PLUS unzip the package that was installed automatically and do all the edits in the upgrade files as well???
How to add list of award names or just number of awards near user's avatar?
Version 1.1.8
C4G-TK - I'm not quite sure why... where do the images link to? Do they show if you go to where they're src'd from?
Hardy_razn - http://www.simplemachines.org/community/index.php?topic=114701.msg1144061#msg1144061
I figured it out!! Dammit.
I just uploaded a new image and it works fine. I guess when I uninstalled the mod the last time, it emptied the table or information that I had submitted previously. (Although, it didn't do that the other times I uninstalled and reinstalled.)
No errors and the image is shown when I upload a new award. Anywho.. TK has left the building and is heading to the beach to clear his head for a few hours.
It's working very good for me,now I can see the unasign button.I'm getting some errors on the error log tough,I will copy them here later.
Two things I want to see in this nice mod:
1-Support for external images (I said this,but I repeat it xD)
2-Different number of awards showing in display.template.php if you are admin,mod,user,etc (per membergroup).For example,the admin can set that mods/globalmods can show 7 awards,but users only 3.
Thanks for your great mod,my users enjoy it ^^.
While typing a reply that was going to say I haven't figured out a good way to do external images yet, I figured out how to do external images :)
As for the different numbers, that's a possibility.
Ok,thanks!
I have this in the error log:
Aplicar filtro: Mostrar sólo los mensajes de error con este mensaje
8: Undefined index: award_name
Aplicar filtro: Mostrar sólo los errores de este archivo
Archivo: /home/silvanos/public_html/Themes/default/GenericMenu.template.php (awards_members sub template - eval?)
Línea: 2970
Are you on version 2.1.5 or 2.1.6? That was solved in 2.1.6 if I recall correctly.
I am using 1.1.8 and got an error upload with the sources/admin file, however when trying to manually put in the code I cannot find the lines I am supposed to add to...here is my file code:
(edited to remove code block that was stretching the page :) -Fustrate)
sorry i tired to put it in the code bbc but it wouldnt display correctly.
Instead of copying the code into a code block, attach the file to a post.
duh should have just did that the first time...sorry i was being lazy :) here it is.
Anything i want to do, i get error 406. What i'm doing wrong?
NenaGb - looking now
Robin Hood - that error should never be showing up. is it just on awards-related pages, your whole forum, or your whole site?
Hello,
Can I translate to turkish this modification
Quote from: Fustrate on May 17, 2009, 12:33:26 PM
Robin Hood - that error should never be showing up. is it just on awards-related pages, your whole forum, or your whole site?
Just with this mod:
QuoteNot Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.63 Server at www.***.com Port 80
mythcomeback - it depends on which version. The 1.1.x version is being upgraded to be more like the 2.0 version, so I'd only recommend translating the 2.0 language strings.
Robin Hood - does the .htaccess file in your forum's folder have this in it?
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn't need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
if not, add it. If the file isn't there, create it and put that in there.
I want to translating the 2.0 language strings.
Then yes, that would be great :)
So I start translation
Fustrate, thank you for assisting, I added it, but same problem is happening.
I had this in that file
<Files *>
Order Deny,Allow
Deny from all
Allow from localhost
</Files>
Maybe i should delete/change it?
And, I founded this file into packages directory. You thought of that file?
Looking at the logic of it, I'd say replace the whole thing.
I did that. But nothing. I even reinstalled mod, but still nothing... :(
Now I messed up all. When click on profile, im getting this.
Fatal error: Cannot redeclare awards() (previously declared in /home/***/public_html/Sources/Profile.php:2901) in /home/***/public_html/Sources/Profile.php on line 3060
Open Profile.php, and look at the end. There should be a giant block of code that is duplicated right above it. Delete one of them.
Now I have problem with load.php
Should I take manual install and delete everithing.
I assume that is everything duplicated. :( :( :(
Ya, I'd say everything is duplicated :(
Turkish translate ..
default/languages/Modifications.turkish.php:
### Awards
// Used by: Errors
$txt['cannot_manage_awards'] = 'Ödülleri yönetme yetkiniz yok';
// Used by: Help
$helptxt['awards'] = 'Ödüller eklemenizi, ödülleri düzenlemenizi ve silmenizi sağlar ';
// Used by: ManagePermissions
$txt['permissionname_manage_awards'] = 'Ödülleri yönet';
$txt['permissionhelp_manage_awards'] = 'Bu kullanıcı eklemenizi düzenlemenizi ve silmenizi sağlar ';
// Used by: Multiple Areas
$txt['awards'] = 'Ödüller';
$txt['awards_view_album'] = 'Üyenin ödül albümünü gör.';
$txt['awards_main'] = 'Ana bölüm';
$txt['awards_modify'] = 'Ekle/Düzenle';
$txt['awards_assign'] = 'Ödül ata';
$txt['awards_categories'] = 'Kategoriler';
$txt['awards_settings'] = 'Ayarlar';
$txt['whoallow_awards'] = <a href="' . $scripturl . '?action=awards">ödüllerini yönet</a>.';
// Used by: Profile
$txt['showAwards'] = 'Üyenin ödüllerini göster';
### End Awards
Ok, i repaired it, forum works now, but mod is not... (this first is more important, isnt it 8) )
heh, ya, that's the more important one :) what exactly isn't working?
Same error I mentioned above, and its same after i changed file you said.
Now i have problems with boards. I think i'll return backup, a dont know what to do anymore. :( :( :(
406 or Cannot redeclare?
If you want to restore to a backup, that would be a good thing to do.
Quote from: Fustrate on May 17, 2009, 07:10:30 PM
406 or Cannot redeclare?
If you want to restore to a backup, that would be a good thing to do.
406
And i have problem with making new board...
Maybe to restore files, and keep base?
any luck with that admin.php ?
Robin Hood - yes
NenaGb - You're using TP, and I have no clue how to add admin permissions and stuff like that to TP_addPerms(). You might want to ask them about that...
Would it be possible for the awards to be displayed in the post view (or even better a separate thumbnail image is displayed)?
I realise this is a new feature but I think the mod could really benefit from it - especially as it would mean this mod did everything all the other award mods do individually :)
Thanks
I keep getting this error if I try to edit or delete awards. Also if I click the award on a profile to see who all has the award. Help please.
Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at ****.com Port 80
Quote from: General_Naga on May 18, 2009, 06:28:21 PM
Would it be possible for the awards to be displayed in the post view (or even better a separate thumbnail image is displayed)?
I realise this is a new feature but I think the mod could really benefit from it - especially as it would mean this mod did everything all the other award mods do individually :)
Thanks
This is already in 2.0, and will be in the updated 1.1.x release. I haven't recently had any time to work on the new release :(
Quote from: Christasimmer on May 20, 2009, 09:25:00 AM
I keep getting this error if I try to edit or delete awards. Also if I click the award on a profile to see who all has the award. Help please.
Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9 Server at ****.com Port 80
continuing from above, I'm going to push forward on the new release now that I've finished my part of what the team is doing. I doubt this will continue to occur after that.
Nice mod!
Thanks Fustrate but I was meaning could you include the actual award images in the post view rather than just a link or even better the option to add a thumbnail image to an award which would be displayed in the post view.
Hi i'm having a slight problem with this mod which is when i upload the package and go to install i get this error:
4. Execute Modification ./Sources/Admin.php Test failed
No i have gone through the manual install route and the problem is with the Admin.php which is in the default folder.
I'm running 1.1.9 with tp 1.0 beta 3 on Blackrain v2
Now when i look into the file the lines required in the admin.php are not there, therefore i cannot amend or replace any code.
Now i have installed the package on another tester (not wanting to completely make a mess of my active forum) and it installs and is available so long as i enter the link to the awards as previously mentioned (in another post earlier) but i have no access as such via the admin menu.
Any ideas would be more than welcome!
Quote from: General_Naga on May 21, 2009, 08:37:52 AM
Thanks Fustrate but I was meaning could you include the actual award images in the post view rather than just a link or even better the option to add a thumbnail image to an award which would be displayed in the post view.
...as I said, 2.0 already does this, and I'm updating the 1.1.x version to do it too.
Quote from: Hardcase on May 21, 2009, 01:03:07 PM
Hi i'm having a slight problem with this mod which is when i upload the package and go to install i get this error:
4. Execute Modification ./Sources/Admin.php Test failed
No i have gone through the manual install route and the problem is with the Admin.php which is in the default folder.
I'm running 1.1.9 with tp 1.0 beta 3 on Blackrain v2
Now when i look into the file the lines required in the admin.php are not there, therefore i cannot amend or replace any code.
Now i have installed the package on another tester (not wanting to completely make a mess of my active forum) and it installs and is available so long as i enter the link to the awards as previously mentioned (in another post earlier) but i have no access as such via the admin menu.
Any ideas would be more than welcome!
You'll have to ask the TP devs how to add permissions. I know nothing about how their system works.
Its not a tiny portal issue, the issue is that i cannot add the awards to my theme because there is no admin.php edit which is the same as or even near to what is suggested by this mod.
So is there a workround or another way of getting the members awards to show in admin which i can work on.
I'm no where near confident enough with php to try my own edit!
It fails because of TP. They replaced the usual permissions check with their own, and I have no experience with their system besides looking at someone else's Admin.php and seeing that, in the place of the line to search for, there was a line that had to do with tinyportal.
Ah! i get you, no problem will take it up with them, thanks for your time Frustrate really appreciate it.
Apologies Fustrate :)
I'm getting the following error after installing on 2.0 RC1-1 (just for your information, I realise you've had almost no time since release)
QuoteUnknown column 'aw.award_name' in 'field list' in Load.php
Is it a new install, or did you just upgrade the forum?
New install
did all of the awards tables get created when you installed?
there weren't any errors during install but I couldn't tell you if the tables were created or not.
look in phpmyadmin
find all the tables that start with smf_awards
tell use the tables and the columns....
Long story short I've now got it installed without any errors however I try clicking any of the small links on the far right of the award in the Awards>Main tab I get the following error:
QuoteMethod Not Implemented
GET to /Forums/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I get this error after assigning awards as well.
I think you should ask your host about this... the code this uses shouldn't be causing that, and there's nothing I can really do with PHP to stop it.
Could you advice which function the server needs to implement? Thanks
I have absolutely no clue. I doubt this has anything to do with PHP, rather with how the server is set up. I'm a PHP guy, not a server guy :(
Quote from: Fustrate on May 28, 2009, 03:58:33 AM
I have absolutely no clue. I doubt this has anything to do with PHP, rather with how the server is set up. I'm a PHP guy, not a server guy :(
Ok thanks anyway Fustrate - I'll let you know if I meet with any success.
EDIT:
I've spoken to the support at my hosting (Inmotion) and they basically say that they can only offer limited support for third party applications and want to know what people here think it could be.
Are there any functions you've used which might be unusual? Also have you got any tips for me on how to track down the issue?
Thanks
Can I have a screenshot please of the awards permissions?
Cheers
Joe
Anyone can you help me?
How can i put the awards before the signature in the profile? Say like them in a row of 4 and having many awards?
Hi
I am using smf 2.0 RC1.
I installed Member awards and wanting to use it for a membergroup I created.
I checked the box, Manage Awards. But when the person in that membergroup goes to the admin section, it doesn't show. Any ideas why?
See attachment for more details:
bump
Admin.php
find:
'icon' => 'awards.gif',
add this after:
'permission' => array('manage_awards'),
just a side note to anyone else, I'm incredibly busy with finals until the end of this week, so I'll start working on awards for 1.1.x as soon as I can.
Thanks. So when I add this, It will let other membergroups I created manage them when I check Manage Awards?
It shows up fine for the admin by the way
Joe
Yes, it will show the link to manage awards to people who can manage awards.
Quote from: Fustrate on May 31, 2009, 02:56:18 PM
Yes, it will show the link to manage awards to people who can manage awards.
Cheers! ;D
Quote from: vmp1253 on May 30, 2009, 12:20:55 AM
Anyone can you help me?
How can i put the awards before the signature in the profile? Say like them in a row of 4 and having many awards?
bump a little help plz
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
Quote from: General_Naga on May 27, 2009, 04:59:05 PM
Long story short I've now got it installed without any errors however I try clicking any of the small links on the far right of the award in the Awards>Main tab I get the following error:
QuoteMethod Not Implemented
GET to /Forums/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I get this error after assigning awards as well.
They have mod_security for apache installed. Ask your host to disable mod_security for your domain or at least to add a rule so that request isn't blocked by the mod_security.
Hi!
I've been working with this MOD since like 6 months. It never gave me any errors! But now... my forum is getting bigger... I have 6988 registered users right now... Well, the thing is that I want to give EVERYONE an award... and when I choose the base group where everybody is... it gives me an error because its too much data...
the error is this one:
Error 500 - Internal server error
An internal server error has occured!
Please try again later.
I'm just wondering if somebody can put like "pages" in the page where you choose the users that you want to give the award to.
Or if someone have a better idea... Ill happy if they can help me with this. THANK YOU!
and REALLY NICE MOD.
Quote from: venex on June 05, 2009, 11:33:10 PM
Hi!
I've been working with this MOD since like 6 months. It never gave me any errors! But now... my forum is getting bigger... I have 6988 registered users right now... Well, the thing is that I want to give EVERYONE an award... and when I choose the base group where everybody is... it gives me an error because its too much data...
the error is this one:
Error 500 - Internal server error
An internal server error has occured!
Please try again later.
I'm just wondering if somebody can put like "pages" in the page where you choose the users that you want to give the award to.
Or if someone have a better idea... Ill happy if they can help me with this. THANK YOU!
and REALLY NICE MOD.
Looks like a CGI error, like when it runs out of memory (I believe you have PHP running with mod_php or suEXEC).
ORTry to add this to the top of your index.php, bellow<?php
ini_set( 'post_max_size', 10000000 ); // Set $_POST limit (about 10MB)
ini_set( 'max_input_time', 4000 ); // Increase 'timeout' in 4000 seconds
set_time_limit( 4000 ); // almost the same as above
ORIt could also be the apache configuration, the
RequestBodyLimit directive or you have mod_security installed and need to increase the
SecRequestBodyLimit directive.
If you are on shared server, you can ask your host to change that for you, but I doubt they will.
Best and Quick Solution: give the awards manually running an SQL query.
I have my settings in Admin to show 6 awards and to allow the member to have more than one favorited award. But, the members are still telling me that they can only select 1 award. Does anyone know how you can favorite more than 1 award?
Every single time they click on the "+" sign it just replaces the one that is currently favorited, but doesn't keep the one that was already selected.
Is there another setting somewhere?
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
Quote from: vmp1253 on June 01, 2009, 04:38:56 PM
Quote from: vmp1253 on May 30, 2009, 12:20:55 AM
Anyone can you help me?
How can i put the awards before the signature in the profile? Say like them in a row of 4 and having many awards?
bump a little help plz
in 2.0, it's a built-in feature of this mod. in 1.1.x, you have to make some code changes that I link to every few pages (but I'm in a hurry right now - leaving for Boston this afternoon)
C4G-TK: it should work, but if it doesn't, I'll try to fix it when I get back in a week.
IceBurn: thanks for the suggestions while I've been away :)
Everyone: I'm still working on the new 1.1.x version, and I'm probably going to change the way awards are given in 2.0 again.
Thanks! Have fun on your vacation!!!!
PLEASE in the new version put that the users come up in pages or something that it doesn't have to show all the users of a group in just one page...
:D.
2.0 RC1.1 version
Getting fun errors
Main tab
Database Error
Table 'vince12_Bocsite.smf_awards_categories' doesn't exist
File: /home/vince12/public_html/forum/Sources/ManageAwards.php
Line: 97
Add/Modify
Database Error
Table 'vince12_Bocsite.smf_awards_categories' doesn't exist
File: /home/vince12/public_html/forum/Sources/ManageAwards.php
Line: 222
Assign
Database Error
Unknown column 'award_name' in 'field list'
File: /home/vince12/public_html/forum/Sources/ManageAwards.php
Line: 423
Categories
Database Error
Table 'vince12_Bocsite.smf_awards_categories' doesn't exist
File: /home/vince12/public_html/forum/Sources/ManageAwards.php
Line: 683
see previous messages in this thread? Try using search?
You need to apply the database changes manually, since it seems they did not apply automatically.
Quote from: Kindred on June 21, 2009, 09:34:23 PM
see previous messages in this thread? Try using search?
You need to apply the database changes manually, since it seems they did not apply automatically.
but I upgraded what do i do then?
find the SQL and manually run it in phpmyadmin
Quote from: Kindred on June 22, 2009, 05:59:30 PM
find the SQL and manually run it in phpmyadmin
Can u please tell me the command plz lol.
Good with PHP just not with phpmyadmin
I'm having a problem installed the mod onto version 1.9 however nothing changes. Theres no award Dannel in the admin panel or really any changes
WARNING: There is SQL exploit concerning the 1.0.2 version of this mod. I'd suggest backing up all settings and uninstalling it if your running 1.0.2
Link can be provided if you wish to fix it yourself.
It may also be nice if a mod could edit the first post with a warning along with the mod page on the site? (Again, link can be provided if needed.)
New, secure version has been uploaded. I'll see what I can do about getting people to upgrade.
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.
Thanks :) Uploading v1.1.1 right now, fixes both of those errors.
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.
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).
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;
I uploaded the new one about a minute after I wrote that message :P sorry 'bout that...
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?
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
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.
@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.
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!!!
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.
@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?)
When I apply the mod I get one test failed. Is it ok to go ahead and install?
@ 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.
C4G-TK: add
global $scripturl;
somewhere before that line
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.
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
Ok. HELP! This is what failed
Quote7. Execute Modification .Sources/Subs.php Test failed
1. Replace .Sources/Subs.php Test failed
1st - What version of SMF are you using?
2nd - Are you using the default theme?
Quote from: C4G-TK on July 06, 2009, 06:01:23 PM
1st - What version of SMF are you using?
2nd - Are you using the default theme?
1. Rc1-1
2. Yes. Default Core.
You need to do this manually in your Sources/Subs.php file:
Find:$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
Replace:$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
Do you know how to FTP that file to make an edit manually and then upload it back to your server once you make the edits?
If not, can you at least attach a copy of the Sources/Subs.php file and I will do the edit for you and you can replace it yourself.
@Fustrate
Thanks, Sir. (for the previous answer to my question a couple posts back.) I appreciate it.
Quote from: C4G-TK on July 06, 2009, 06:17:23 PM
Do you know how to FTP that file to make an edit manually and then upload it back to your server once you make the edits?
No. But When I get home I will try. I need to learn this stuff anyway. Thank you so much.
Sure thing, You can PM me if you need help. I try to help people out in Mods where I've been given help as a way to Thank the author for it. I'll be back periodically throughout the night during the next 7 hours or so.
Quote from: C4G-TK on July 06, 2009, 06:31:09 PM
Sure thing, You can PM me if you need help. I try to help people out in Mods where I've been given help as a way to Thank the author for it. I'll be back periodically throughout the night during the next 7 hours or so.
Alright. I'm done work in 4.
Quote from: C4G-TK on July 06, 2009, 03:37:45 PM
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.
Oh....That is what he meant by link at the bottom of the download area....
Quote from: Chaos Dragon on July 06, 2009, 09:19:25 PM
Quote from: C4G-TK on July 06, 2009, 03:37:45 PM
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.
Oh....That is what he meant by link at the bottom of the download area....
Ok I did that and now if i wanted to i can not uninstall some of my other mods.....I reverted back to 2.0 RC1-1 and still no uninstall links for those mods. I thought maybe cleaning the cache would help...Nope....Went to "Installed Packages" in the admin panel and tried that uninstall on one and It tell me it can not be uninstalled because there is no uninstall packages.
So now if any of those mods have updates I will not be able to uninstall the old version with the new...
How would i fix this?
After reverting to a different version, you install the mod...
If you want to uninstall something that was performed on the original version, you just type in the -1 after the RC1 and hit APPLY. It should be the same as what it was previously. I've never had anything change that it couldn't be uninstalled after doing this. There is probably a thread somewhere about reverting versions.
Or once you revert back to RC1-1, I think you can re-upload the packages that no longer show the uninstall. When you hit APPLY, it may say already installed (because it is), then do not hit INSTALL, but go back to browse and it may have changed back to allowing the UNINSTALL option to that mod.
Quote from: C4G-TK on July 06, 2009, 10:22:44 PM
After reverting to a different version, you install the mod...
If you want to uninstall something that was performed on the original version, you just type in the -1 after the RC1 and hit APPLY. It should be the same as what it was previously. I've never had anything change that it couldn't be uninstalled after doing this. There is probably a thread somewhere about reverting versions.
Or once you revert back to RC1-1, I think you can re-upload the packages that no longer show the uninstall. When you hit APPLY, it may say already installed (because it is), then do not hit INSTALL, but go back to browse and it may have changed back to allowing the UNINSTALL option to that mod.
Actually I did all those things while waiting for a reply and non of those worked....I was thinking about maybe deleting the package and then just re-uploading it, but I didn't want to try just in case it failed and messed everything up...would this work even though the mod is installed will it mess up the install in any way?
sent a PM to you
I just installed Member Awards on 2.0RC1-1 and all is working except having the award under the avatar.
In settings I set this
QuoteAwards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.
to 2 and awarded 2 awards to test things out and it does not show the award under the avatar on posts at all....I looked through all the settings in admin panel but did not find anything about allowing awards on posts anywhere....If I am missing something pleases let me know?
I looked through the tread and didn't find anythings similar to this so I went ahead and posted. If this has been posted before then sorry for the repost of the same problem.
I'm unable to assign any awards. It doesn't matter who i write in to the "Select Members" field, i still get the error "You must select a member and/or award in order to continue!"
C4G-TK
I wasn't able to get to the editing last night. I'll do it tonight. Will you be on?
I get these errors in 2.0 RC1-1 which i guess is the reason for why i get the error above:
index.php?action=admin;area=awards;sa=assign;step=2
2: Invalid argument supplied for foreach()
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
8: Undefined index: recipient_to
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
Quote from: MATTEK on July 07, 2009, 03:25:32 PM
C4G-TK
I wasn't able to get to the editing last night. I'll do it tonight. Will you be on?
Yeah, sent you a PM.
no LINK to the mod?
I did not see any awards that came with this. Where can you download awards at?
Quote from: demonsmasher on July 08, 2009, 03:26:24 PM
I did not see any awards that came with this. Where can you download awards at?
You create your own awards to upload. This allows every person the ability to make awards that are unique to their own forum. You decide what it looks like. You decide what the description is. It is a very nice mod that gives you a lot of control over the content. This is a TERRIFIC awards system that gives you these abilities and not a one-size-fits-all prepackaged award system.
Quote from: JoeB on July 08, 2009, 03:24:16 PM
no LINK to the mod?
http://custom.simplemachines.org/mods/index.php?mod=475
If i had 1.3 installed in SMF 2.0 RC1, and upgrade SMF to RC1-1, is there anything i have to edit? I don't understand why i can't assign any awards.
So you were able to assign awards before upgrading to RC1-1, but not after?
I'm clueless as to why. Would it be possible to create a temporary admin account for me to look at this with, and you could PM me the login?
Ok...I found the problem on why it wasn't showing the awards on the posts. All good there.
I can't figure out why Nobody can choose more than one fav. I am allowing more than one fav, but when the button is clicked for adding it to favs it does not turn to the minus and a star does not show. As far as I can see all the necessary coding is there.
Any Ideas?
Quote from: robinrobin on July 07, 2009, 03:36:24 PM
I get these errors in 2.0 RC1-1 which i guess is the reason for why i get the error above:
index.php?action=admin;area=awards;sa=assign;step=2
2: Invalid argument supplied for foreach()
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
8: Undefined index: recipient_to
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
Same error here... I'm using a fresh RC1 (no update).
Bye,
Nephilim
So what is a good programe to creat the awards in? I'm just looking for one that will show who has donated to the board.
Nephilim & robinrobin, I'll look at that when I get home tonight (can't do much from work :( ). Shouldn't be too hard to figure out.
demonsmasher - You can use MS Paint, GIMP, Paint.NET, Photoshop, or any other drawing program. You can also use Google to find some :)
uhhhhmmm..... ???
http://secunia.com/advisories/35661/
:o
I actually have quite a few errors with Undefined Index, which always seem to have to do with mods. Maybe that's a hint for you that you can use in your work or something. Thanks, Fustrate.
Yahmez, it says that the vulnerability was fixed in version 1.1.1 on the second part of that page.
Quote from: Yahmez on July 12, 2009, 02:11:13 PM
uhhhhmmm..... ???
http://secunia.com/advisories/35661/
:o
Solution Status: Vendor Patch
I fixed it two weeks ago, it took them that long to update their page. Before that, the 1.1.x version of Member Awards hadn't been updated since JayBachatero made it two years ago.
robinrobin - I'll have to look at it when I get home, sorry :(
My Bad...
Just thought I would err on the side of caution.
Quote from: Fustrate on July 12, 2009, 02:00:56 PM
Nephilim & robinrobin, I'll look at that when I get home tonight (can't do much from work :( ). Shouldn't be too hard to figure out.
demonsmasher - You can use MS Paint, GIMP, Paint.NET, Photoshop, or any other drawing program. You can also use Google to find some :)
Any news?
Thank you.
Nephilim
Why users can't see the list of badges like admins can?
I am using 1.0.2
Whats the last update?
hi, im getting this error.
Unknown column 'a.id_category' in 'on clause'
File: /home/fatalfan/public_html/smf/Sources/ManageAwards.php
Line: 123
im on smf 1.1.9
try a search?
this means you have no done the database edits....
Quote from: demonsmasher on July 11, 2009, 10:32:02 PM
So what is a good programe to creat the awards in? I'm just looking for one that will show who has donated to the board.
google paint.net
digger - that's not currently a feature of this mod, I might add it later
silber112 - 1.1.1 is the most recent release for SMF 1.1.x, but you should save your current awards and who has them because this mod should overwrite everything. There is also no upgrade package, so you'll have to uninstall the old one and install the new one.
Quote from: Fustrate on July 12, 2009, 02:00:56 PM
Nephilim & robinrobin, I'll look at that when I get home tonight (can't do much from work :( ). Shouldn't be too hard to figure out.
Hate to bore you but, have you found a solution?
Bye,
Nephilim
Kinda dieing to get a fix for RC1.2 here as well. Been a while now since this mod worked.
This is good mod but there is no sample awards pictures...
no... there are no samples. Each admin will have to create (or find) his own award images....
robinrobin... it's working on SMF 2.0 RC1.2 without error for me... Did you create at least one category and one award?
I install the mod with SMF 2.0 RC1 emulated, without any errors.
I create a new award called "One" with the description "First" in the Uncategorized category and upload a random, small image to that award and then save it.
I click on the "Assign" tab.
I choose "One" from the list.
I write my own and several other people's usernames and visible names into the "Choose member" text-field.
I still get "You must select a member and/or award in order to continue!".
THIS MOD DOES NOT WORK
For crying out loud. Why is it that you can't explain to people that they have to click on the name that you enter in the text field to add them? There is no other mod, anywhere, ever, in which you had to write something on the keyboard and then had to click on that text! There is no logic to it!
Idea: Make some indication for when awards are updated. As in; make people aware of when someone receives a reward, like in a small list or something down by the forum stats. What's the point of having awards if nobody ever hear anything about them?
Edit: I noticed that there are a few extra modifications to the Display.template.php file that aren't added automatically when installing the mod. Adding the top-most of them to the code in that file, between the posts and the signature space, makes a nice list of awards that each member has.
Hmm, I get an error that is supposedly fixed with the latest patch of this Mod.
Quotehttp://www.---.com/index.php?action=profile;sa=awardsMembers;id=1
8: Undefined index: members
File: ---/languages/ManageAwards.english.php (eval?)
Line: 2348
The Mod works perfectly fine but it keeps flooding my errorlog.
Using 1.1.1 and SMF 1.1.10. Any hint on what caused this error before the supposed fix and how it was fixed would be appreciated, and my Errorlogs would thank you too. ;D
1- have you gone in and changed the settings and clicked SAVE at least once?
2- Have you created at least one award?
Hi, the member award installed on 1.1.10 but i get an Unknown column 'a.id_category' in 'on clause' , Unknown column 'id_category' in 'field list' when i try to access the admin page. looks like the install.php didnt execute. can you give me the plain sql so i can do it manually?
Quote from: Kindred on August 01, 2009, 09:20:03 AM
1- have you gone in and changed the settings and clicked SAVE at least once?
2- Have you created at least one award?
Was that a reply to my post?
If so:
Yes to both. There is an Award created and assigned to a Member for testing purposes. That's why I know it works fine. Displays the Award under the Avatar on posts, shows up on the profile page if clicked etc.
So I had this for 1.1.10, and wanted it for 2.0 RC 1.2
I couldn't "Apply Mod", so I emulated RC 1, which then installed successfully.
I went to ADMIN > Configuration > Awards to start creating awards.
I got a bunch of errors (One per Tab)
MAIN TAB:
Unknown column 'a.id_category' in 'on clause'
File: /home/content/dragon/forums/Sources/ManageAwards.php
Line: 97
ADD/MODIFY TAB: (Note, this error came when I tried to "Submit" my award)
Unknown column 'award_name' in 'field list'
File: /home/content/dragon/forums/Sources/ManageAwards.php
Line: 164
CATAGORY TAB:
Unknown column 'id_category' in 'field list'
File: /home/content/dragon/forums/Sources/ManageAwards.php
Line: 700
ASSIGN TAB:
Unknown column 'award_name' in 'field list'
File: /home/content/dragon/forums/Sources/ManageAwards.php
Line: 423
Any thoughts? I will not let me create a Catagory at all, and when I hit the "Submit" button on the Add/Modify, I receive error listed above.
I'm on a fresh copy of 2.0 RC1.2. Default (Core) theme, no other mods installed yet
Chronomancer
Can you disable template eval (How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)) and then tell me what the new error is?
ArkServer
just upload install.php to your forum's main directory (where index.php and /Sources/ and /Themes/ are) and go to it in your browser.
Skargon
Check your database for tables that match these basic structures...
smf_awards
-- id_award
-- award_name
-- description
-- time_added
-- filename
-- minifile
-- id_category
---- PRIMARY KEY id_award
smf_awards_members
-- uniq_id
-- id_award
-- id_member
-- date_received
-- favorite
---- PRIMARY KEY uniq_id
---- UNIQUE id_member, id_award
smf_awards_categories
-- id_category
-- category_name
---- PRIMARY KEY id_category
Quote from: Fustrate on August 07, 2009, 02:31:01 AM
Chronomancer
Can you disable template eval (How to Enable / Disable eval() (http://www.simplemachines.org/community/index.php?topic=290186.0)) and then tell me what the new error is?
Aha, nice. I didn't know this eval function.
Error is:
Quote8: Undefined index: members
File: ---/Themes/default/Profile.template.php
Line: 2348
The corresponding line is in your template_awards_members() function, I bolded it:
Quote
function template_awards_members(){
global $context, $scripturl, $txt;
echo '
<table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="bordercolor">
<tr class="titlebg">
<td colspan="', $context['columns'], '">', $txt['awards_members_with'], ': ', $context['award']['name'], '</td>
</tr>
<tr class="windowbg">
<td colspan="', $context['columns'], '" align="center">
<img src="', $context['award']['img'], '" alt="', $context['award']['name'], '" /><br />
<strong>', $context['award']['name'], '</strong><br />
', $context['award']['description'], '
</td>
</tr>
<tr class="titlebg">
<td colspan="', $context['columns'], '">', $txt['members'], '</td>
</tr>';
$txt['members'] runs into an error... doesn't surprise me since I can find no definition of it. Shouldn't it be in the ManageAwards.english.php bundled with the rest under //profile?
Ah, that should be $txt[19]
I'll push out a patch in a few hours when I'm at home
Quote from: Fustrate on August 07, 2009, 11:29:52 AM
Ah, that should be $txt[19]
I'll push out a patch in a few hours when I'm at home
Perfect. I manually fixed it and my Errorlog stays clean now. ;)
Thank you very much. Also for the hint with the eval function, that might come in handy from time to time.
:) whenever it says (eval?) after the filename, try doing that and seeing where the real error is. Usually language files are the most recent things loaded, which throws everything off in terms of debugging.
Quote from: Fustrate on August 07, 2009, 02:31:01 AM
Skargon
Check your database for tables that match these basic structures...
smf_awards
-- id_award
-- award_name
-- description
-- time_added
-- filename
-- minifile
-- id_category
---- PRIMARY KEY id_award
smf_awards_members
-- uniq_id
-- id_award
-- id_member
-- date_received
-- favorite
---- PRIMARY KEY uniq_id
---- UNIQUE id_member, id_award
smf_awards_categories
-- id_category
-- category_name
---- PRIMARY KEY id_category
I have no idea what I'm supposed to do....
Using phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)), 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 :)
Hey Fustrate!
I'm trying to change some things, but I'm not really sure where I need to make the adjustment. I'm trying to change the area of the post where the profile info is created.
#1 I've set that area to a specific width, and made my awards at a specific width as well in order to show 6 awards (currently showing 2 across & 3 high). I'm trying to figure out how I can change the space between the border of the Awards in order to allow 3 across and only 2 high. (I'm trying to make the post profile as small as possible and every little helps.) I know that I could make the awards even smaller to do what I want, but I was hoping by alleviating a little bit of the padding on the border I could do it w/o having to change all of my awards. (Especially since it is hard enough to make some things intelligible at such a small size anyway.)
#2 I never figured out how to change the word "Awards" that is shown at the top of the bordered area to something else. I'm trying to change it to "Recognition". I know they are similar in meaning, but I was trying to make it more aptly describe what I'm using the mod for on my forum.
Any help in pointing me in the right direction would be much appreciated.
Thanks, TK
#1 I'd need a link to your forum so that I could look at the CSS
#2 you need to change it in the language file. Find which $txt[''] it is in Display.template.php, and then find that $txt[''] in index.english.php and replace it. If you're on 2.0, go into the Admin panel and in Maintenance, flush the file cache.
Yeah, sorry, I'm on 2.0 RC1.2 on default
Here's a link to a post..
http://www.channel4gaming.com/c4g/index.php?topic=508.msg7972#msg7972
Seems like you'll have to bump up to 195px instead of 185px... there's really nothing else to do to make them go 3 by 2 instead of 2 by 3
What if I eliminated the border around the awards?
That didn't seem to do anything in my testing... it only eliminates 1px, and even taking out the 5px padding didn't do anything visually.
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!
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.
Quote from: Fustrate on August 08, 2009, 01:39:01 PM
Using phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)), 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
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?
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?
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 (http://fustrate.com/dev/sources/Member%20Awards/MemberAwards_2-0/package-info.xml) 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.
#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 :(
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
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 ??
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?
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?
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.
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??
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
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.
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.
I'll look into that too
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.
There's another thing missing in this mod: "$txt['members']" in language file... At least in latest version for 1.1.*
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.
Quote from: Fustrate on August 13, 2009, 10:36:18 PM
Skargon - none of the column names should be uppercase... what version of the mod are you installing?
I'm attempting to install "memberawards_2-0_2-1-6"
Is it possible, to make that members would apply for some reward, and admin would just approve it? Or maybe even if they select some awards, they automatically gets it?
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.
Thanks. I'll wait patiently. :D I'm pretty good with editing files and tweaking stuff...but couldn't figure this one out.
Is there any tweak to show list of badges to all users and to make link on top menu which would direct them to that page?
Also, # of Awards would be very nice if it could be visual on post display (maybe avoiding it if member has 0 awards).
There's another bug when adding awards to members with names which are not only a-z, 0-9.... I have a member on the forum with name "Love<3" and I can't add him any award - I get error that I should select one or more members. If I change his name to "Love". As a temporary solution I changed his name to Love and gave him reward and then changed his name back to "Love<3"...
ExSpirit, I couldn't make it happen myself, but I'll try some more things soon.
Number of awards isn't in this update, but if I can get ExSpirit's thing to come out of hiding, I'll try to get it into 2.1.8
..and speaking of versions, I've released 2.1.7. It fixes the pagination issue, allows multiple favorites, and there's now an "Awards List" in member profiles. You'll need to be on 2.1.6 to upgrade to 2.1.7, which is why 2.1.6 is still there along with 2.1.7.
Just installed the update for member awards with no problems. Can I delete 2.1.6 and still be able to uninstall it with 2.1.7 if needed?
Yes, you can delete 2.1.6 once you've updated to 2.1.7
Quote from: Fustrate on August 23, 2009, 05:40:47 PM
Yes, you can delete 2.1.6 once you've updated to 2.1.7
Cool. Thank You
I can't just delete old version since I made a few changes in the code so I would need "Manual Install Instructions" but they are not available on the mod site (at least if I select 1.1.9 or 1.1.10 version).
Quote from: Fustrate on August 23, 2009, 05:13:59 PM
..and speaking of versions, I've released 2.1.7. It fixes the pagination issue, allows multiple favorites, and there's now an "Awards List" in member profiles. You'll need to be on 2.1.6 to upgrade to 2.1.7, which is why 2.1.6 is still there along with 2.1.7.
I do have 2.1.7 installed. I still can't get "multiple favorites" to work correctly. In settings for the mod, I have it checked to allow multiple favorites. But, everytime I click on the "+" for an award in my profile it makes the award that is currently marked as an "-" w/ a star to be turned into an "+" w/o a star. Only one award can be selected as a favorite still.
This is on my Administrator account, so there shouldn't be any other permissions setting that I need to enable, correct?
C4G, you installed the earlier 2.1.7, so you'll have to do the manual updates by hand, which can be found at http://www.fustrate.com/dev/sources/Member%20Awards/MemberAwards_2-0/upgrade_2-1-6.xml
NOOOOOO no more edits!!!! :P LOL!!!!!!!!!!!!!!!! OK DOKIE!
Dammit, I'm off to the beach for the evening. I guess I'll do it tomorrow!
BTW, Thanks for clearing that up for me!
Quote from: Fustrate on August 12, 2009, 09:00:31 PM
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)
It's CHMOD to 755 with a temp directory in place. Perhaps it's a host issue. I will try to find out. Thanks.
Oh, update was made just for v2.1.6? Will be version v1.1 updated too?
Once I have time, yes. Classes just started this week, and I'm sitting in a lecture right now :D
Great job, Fustrate! I was finally able to update the mod to the current 2.1.7!
What/where is the Awards List? Wasn't this always there? I went to a profile and under summary, clicked on the Show Awards of that member and see the same thing I've always seen. Is this something that regular members couldn't do? (or are you talking about something else?)
Quote from: Fustrate on August 25, 2009, 12:20:43 PM
Once I have time, yes. Classes just started this week, and I'm sitting in a lecture right now :D
Great, can't wait.
BTW, is there any way to make auto assign awards? I use Awards for various things, like post count, time online,... Is there any way to set Awards for those things automatically, so for example when member reaches post count 1000 he gets "Post Award"... And might when he goes below 1000 he looses the award (not only assign also remove would be automatic).
I installed the mod, and everything installed fine. i hit the home button, and i now have a 500 internal system error. i have over 20 other mods installed which could be the problem, however there was no problems with the installer. it said everything was fine before i actually installed it. any way you could help me out here? i know how to manually uninstall it i just dont want to because i want to use the mod. i run SMF 2.0 RC1.2, and used the latest version of this mod.
Hello,
I'm unable to see member awards below anyone's posts in any topic. I've looked all over this thread but cannot find a solution. One person (Chaos Dragon) said they figured it out, but didn't say why. :(
I'm running SMF 2.0 RC1-1.
Thanks.
Fiddled around with it but to no avail. :/ Still having this error.
Quote from: NephilimDM on July 11, 2009, 05:00:08 AM
Quote from: robinrobin on July 07, 2009, 03:36:24 PM
I get these errors in 2.0 RC1-1 which i guess is the reason for why i get the error above:
index.php?action=admin;area=awards;sa=assign;step=2
2: Invalid argument supplied for foreach()
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
8: Undefined index: recipient_to
File: Sources/ManageAwards.php
Line: 444
444: foreach($_POST['recipient_to'] as $recipient)
Same error here... I'm using a fresh RC1 (no update).
Bye,
Nephilim
I still have this problem ... Can someone help me?
Bye,
Nephilim
Quote from: Existence. on August 28, 2009, 11:55:20 PM
Hello,
I'm unable to see member awards below anyone's posts in any topic. I've looked all over this thread but cannot find a solution. One person (Chaos Dragon) said they figured it out, but didn't say why. :(
I'm running SMF 2.0 RC1-1.
Thanks.
Are you using a custom theme? If so, you will need to add the edits manually for your theme's template files. (such as Display.template.php and so on)
Hey there, great mod, thanks for sharing. :)
I'm having an issue with the awards on the members page - If I click on the award, it takes me to their profile and displays this message:
"Unable to load the 'awards_members' template."
Any idea how to fix this?
C4G-TK, clear your file cache in the admin center to see the new profile area.
dunamis, try contacting your host to see what they say is causing the error. Mods don't usually cause 500 errors unless they unintentionally corrupted a file or something.
NephilimDM, do you not have javascript enabled?
XaiXo, if you're using a custom theme, make sure you make the changes to that theme's Profile.template.php file.
I am getting this error with 2.1.7:
QuoteField 'filename' doesn't have a default value
File: C:\inetpub\wwwroot\smf\Sources\ManageAwards.php
Line: 164
I saw the fix for an old version back on page 43 of this thread but the ManageAwards.php looks a lot different on this version. Is there a fix for this version?
Thanks,
Mark
EDIT: I was able to fix this by changing the filename and minifile fields from tinytext to varchar(80) in the database and then setting a default value.
Make what changes? (Sorry, I'm a total PHP noob.)
Field 'filename' doesn't have a default value
File: C:\Clients\C2814\R2055\dr4gl3g3nds.com\public_html\Sources\ManageAwards.php
Line: 189
I have this error on the version 1-1
Santos
Ok, I cleared the cache, but I have another bug to report.
I have 2 pages of awards there and just like previously in the Admin area... when I click on page 2 within the profile section of the awards, it takes me to the Profile instead of page 2 of the awards.
This is what appears in the error log when I hit the 2nd page...
BTW, it says "Recognition" now on my site just because of the way I use the mod.
Hi Frustrate, can you help me on this? Every time I assign an award to a member I always encounter an error.
An Error Has Occurred!
You must select a member and/or award in order to continue!
On my first 3 tries, it is ok.. So smooth that it never open any problem but on my succeeding assigning to other members, this error always comes out.
Please advise and thank you very much.
excon
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 :(
Does anyone have a solution for this? Thanks
Justin
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 :(
You said you'd look into my forum and help me out with this a while ago. Just incase you forgot i'm reposting. Any help would be awesome!
www.teamseardelta.com
Smf Ver. 1.1.9
TinyPortal v1.0 beta 4
helios multi tp
Browesr IE8 and Firefox 3.5
Member Awards Mod:
http://custom.simplemachines.org/mods/index.php?mod=475
Hello, I have installed the Member Awards Mod this past sunday and i have noticed this morning i am recieving this error, In which template would this be refering to on how to fix this, The admin over at tinyportal pointed me here,Thank you.
Error message:
http://www.teamseardelta.com/index.php?action=profile;sa=awardsMembers;id=6
8: Undefined index: members
File: /var/www/web14/html/Themes/default/languages/TPShout.english.php (awards_members sub template - eval?)
Line: 2354
Here's the file but as you can see no line 2354:
<?php
// Version: 1.0 beta4; TPShout
$txt['tp-allshoutsbyip'] = 'All shouts by this IP';
$txt['tp-allshoutsbymember'] = 'All shouts by this member';
$txt['tp-tabs10']='Shoutbox';
$txt['tp-allowguestshout'] = 'Allow guest shouts?';
$txt['tp-shoutboxheight'] = 'Height of shoutbox in pixels';
$txt['tp-shoutboxitems'] = 'Edit/Remove last shouts:';
$txt['tp-shoutboxlimit'] = 'Limit posts in shoutbox to:';
$txt['tp-shoutboxscrollspeed'] = 'Set scroll speed 1-6 where 1 is slowest';
$txt['tp-shoutboxsettings'] = 'Shoutbox';
$txt['tp-shoutboxusescroll'] = 'Use scrolling?';
$txt['tp-show_profile_shouts'] = 'Hide shouts in the profile?';
$txt['tp-shoutboxheader'] = 'Managing Shoutbox';
$txt['tp-shoutboxhelp'] = 'Help';
$txt['tp-shoutboxdescription'] = '';
$txt['tp-shoutboxduration'] = 'Duration for the scrolling ( 500-6000 ms)';
$txt['tp-shoutboxdelay'] = 'Delay between shouts for the scrolling ( 500-6000 ms)';
$txt['tp-shoutboxdirection'] = 'Direction of scrolling';
$txt['tp-shoutboxeasing'] = 'Scrolling effect';
$txt['tp-scrollvert'] = 'Vertically';
$txt['tp-scrollhoriz'] = 'Horisontally';
$txt['permissiongroup_tpshout'] = 'TP Shoutbox';
$txt['permissionname_tp_can_admin_shout'] = 'Manage Shoutbox';
$txt['permissionhelp_tp_can_admin_shout'] = 'Allows you to manage shouts.';
$txt['cannot_tp_can_admin_shout'] = 'Sorry, you aren\'t allowed to manage shouts.';
$txt['tp-showlatest'] = 'Show 50 latest';
$txt['tp-mootools'] = 'Yes, use Mootools version';
$txt['tp-marquee'] = 'Yes, use marquee(from TP v0.9)';
?>
I did turn off eval in the phpmyadmin data base and am not recieving any errors, Will update this if i do, thanks
Hi frustrate, please advise how can i make the awards visible on ultimate profile.
thank you in advance. :)
Ok new error after disabling eval.
http://www.teamseardelta.com/index.php?action=profile;sa=awardsMembers;id=9
8: Undefined index: members
File: /var/www/web14/html/Themes/default/Profile.template.php
Line: 2354
This happens when you goto a certain award, then produces the above error, Thanks.
I have getting this error - Unknown column 'a.id_category' in 'on clause'
File: /home/twitch/public_html/forum/Sources/ManageAwards.php
Line: 97
Oh and I am on smf 2.0 rc 1-2
twitch... the SQL update was not run.
Quote from: Kindred on September 11, 2009, 07:40:00 AM
twitch... the SQL update was not run.
SQL Update??
I didn't see any sql's <.<.
I just uploaded through the package manager.
yes... and it would appear the the SQL update in the package failed.... which means that you will have to apply the SQL manually in phpmyadmin
Quote from: Kindred on September 11, 2009, 07:31:25 PM
yes... and it would appear the the SQL update in the package failed.... which means that you will have to apply the SQL manually in phpmyadmin
Humm Okay Will Do then.
Edit: Well I extracted the file to find the .sql and I couldn't find it .
it would actually be in a php file... and you will have to extract out the SQL from the php.
Alternatively, drop all of the awards tables currently in your database and re-run the php file
Quote from: Kindred on September 12, 2009, 12:58:28 AM
it would actually be in a php file... and you will have to extract out the SQL from the php.
Alternatively, drop all of the awards tables currently in your database and re-run the php file
How would I extract out the sql?
I'll look into the error, sear.
excon - you'll have to ask the Ultimate Profile person about that, I know nothing about how it works.
LightDiet - sorry, I looked, but I couldn't figure out how to make it smaller. Just thinking right now, trying adding style="display: inline;" to the fieldset tag.
NBK - it's not easy - try dropping the 3 or 4 awards tables in phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)) and running install.php by itself
Hey Fustrate,
I see that you are on hiatus according to your profile, so I'll make this quick. I'll be more than happy to keep an eye out in your Member Awards thread to help people who have problems with editing things and answering some basic questions for you.
Also, if/when you need someone to test out a fix for the pagination error I'm getting in the profile section of the Award List, I'll be more than happy to be a guinea pig.
http://www.simplemachines.org/community/index.php?topic=114701.msg2242654#msg2242654
Thanks for all your work. This mod has really been something that I and my membership really enjoys. My only suggestion is that my members have asked me why the Award List is in the member profile area and not used as a TAB on the main navigation menu?
Quote from: Fustrate on September 12, 2009, 01:37:04 AM
I'll look into the error, sear.
excon - you'll have to ask the Ultimate Profile person about that, I know nothing about how it works.
LightDiet - sorry, I looked, but I couldn't figure out how to make it smaller. Just thinking right now, trying adding style="display: inline;" to the fieldset tag.
NBK - it's not easy - try dropping the 3 or 4 awards tables in phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0)) and running install.php by itself
AWWW no one lets me try the hard things :( .[/joke]
Okay I will do this :].
Edit: Okay now it works,but when I try to assign an award it says I have to pick a member when I have.
I know Fustrate is on hiatus, so I was wondering if anyone else could point out what I'd need to add/modify in the theme's Profile.template.php file to get the member's page awards to work?
you can see the manual instructions by going to the mod download page, selecting your version of smf and clicking the show manual instructions button
QuoteOkay now it works,but when I try to assign an award it says I have to pick a member when I have.
Anyone know the fix?
Can anyone plz assist me, I installed the mod, but couldnt manage the awards coz the "Awards" was not displayed in the Admin Centre. I then uninstalled the Mod and deleted the files, but now I have the following text stuck at the top of my Forum Website:
### 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 award 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 Awards.'; // Used by: Profile $txt['showAwards'] = 'Show Awards'; ### End Awards
Assistance would really be appreciated.
Thanx in this regard.
Just a suggestion, But Looks as tho you have to goto where you got the mod and read how to manually install this, as it looks that you installed it but havent manually edited the files.
Ok well this is the whole story.
I experimented with SMF on a localhost = wamp, to get up to speed with things and to gain some confidence. Installed a full install of SMF 1.1.10 on wamp, pimped my forum and all was ok. I installed Member awards to my wamp server and all worked 100% with no editing of files or anything.
The real live forum was updated from 1.1.8 to 1.1.10 today.
I then opted to install the same mod (same version as before) onto the real live forum after it was updated.
Went to packages and downloaded the mod, installed it (nor errors) and then applied the mod.
I then noticed that the "Awards" option was not displaying in the Admin Center on the left pane.
When I tried uninstalling I got a error message in red.
I then uninstalled the mod and deleted the files, but then noted that some weird text was showing at the top of my website forum (as explained above in my previous post).
Is there anyone that could please assist me in this matter. Think that some core files got damaged or changed or something.
Here is a link to the website forum, check it out for yourself:
www.template.co.za/forums/index.php
Thank you in this regard.
in your modifications.english.php, fin the ?> and move it to the very end of the file... somehow, you added the text strings after the ?> (which should always be the last thing in any smf php file)
Quote from: Kindred on September 14, 2009, 10:56:08 PM
in your modifications.english.php, fin the ?> and move it to the very end of the file... somehow, you added the text strings after the ?> (which should always be the last thing in any smf php file)
I'm lost, I never edited any files manually. The system added those strings there. Where can I find the modifications.english.php file?
in the Themes/default/languages directory...
Yeah that seems to have been the problem. Edited those .php files, thanx.
Quote from: NBK*Twitch on September 13, 2009, 08:50:29 PM
QuoteOkay now it works,but when I try to assign an award it says I have to pick a member when I have.
Anyone know the fix?
After you type in the entire name hit your ENTER button
-OR-
select the name from the dropdown as you type in the first 3 letters
THEN, hit save.
Fustrate, is there any way an awards tally can be coded in to show in the avatar column instead of awards? Something like "Awards: 12" or something along those lines? We are already using a good amount of custom tags for usergroups that show on our avatar column and I'd like to be able to use this while also keeping the graphics to a minimum in the avatar column.
Thanks for your help and the great mod!!
Quote from: phxmaximus on September 06, 2009, 12:36:38 AM
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 :(
Does anyone have a solution for this? Thanks
Justin
Any ideas for this?
Thanks
Justin
Quote from: C4G-TK on September 16, 2009, 02:23:47 AM
After you type in the entire name hit your ENTER button
-OR-
select the name from the dropdown as you type in the first 3 letters
THEN, hit save.
*bashes head on desk*
I cannot believe I didn't figure that out lol.
Quote from: phxmaximus on September 17, 2009, 07:04:40 PM
Quote from: phxmaximus on September 06, 2009, 12:36:38 AM
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 :(
Does anyone have a solution for this? Thanks
Justin
Any ideas for this?
Thanks
Justin
Figured it out.
Go to /Themes/default/Display.template.php
find
// 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>';
Change the fieldset style border from 1px to 0px and voila, the stupid black box is gone.
Justin
I have been trying to install 1.1.1 on my SMF 1.1.10 version but it wont install properly!! It just says "test failed" at ./Sources/ManagePermissions.php when trying to install. Please help!!
that means that some other mod has changed the code that this mod is looking for.... so you will have to manually install this mod in that file.
I just installed 2.1.7 after having 2.1.6 installed in SMF 2.0 RC 1.2 and i can't change images of existing awards. The logging of the error message itself, "You must select a file to upload!", is accompanied by three other errors:
/index.php?action=admin;area=awards;sa=modify
Undefined variable: boarddir
File: /Sources/ManageAwards.php
Line: 204
/index.php?action=admin;area=awards;sa=modify
Undefined variable: boarddir
File: /Sources/ManageAwards.php
Line: 206
/index.php?action=admin;area=awards;sa=modify
Undefined variable: boarddir
File: /Sources/ManageAwards.php
Line: 210
203: // Delete the file first.
204: if (file_exists($boarddir . '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $filename))
205: @unlink($boarddir . '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $filename);
206: if (file_exists($boarddir . '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $minifile))
207: @unlink($boarddir . '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $minifile);
208:
209: // Now add the new one.
210: AwardsUpload($id_award);
The install went fine.
---
And another problem:
Clicking the [Members] link on any award when viewing the awards list simply takes you to the summary of your own profile rather than the "Members with this award:" page for each award individually, as i presume is what that link is supposed to do. Clicking the award under a post of a user that earned the reward takes you to the correct page however.
The difference between the links for one of the awards is for example:
In posts: /index.php?action=profile;area=awardsMembers;id=7
In the awards list: /index.php?action=profile;sa=awardsMembers;id=7
So I installed 1.1.1 and WOW what a hassle. For some reasons it screwed up if we went into the "My Messages" or "Members" sections and gave an error in reference to the awards (which I didn't write down cause I was too busy trying to fix it. It also would time how if you tried to click "forum"
I uninstalled and can now get back into all those sections...
Edit: The error was
Database Error: Unknown column 'aw.award_name' in 'field list'
and the error tells it all. Your database edits did not get done
Hi there, did the manual install, but the awards tab in admin panel not showing so that I can manage awards. Please assist, using 2.0 RC 1.2.
either you did not add the language strings, or you missed edits to the admin files
Wouldn't have any clue on how we could fix this ourselves, would ya?
Clicking the [Members] link on any award when viewing the awards list simply takes you to the summary of your own profile rather than the "Members with this award:" page for each award individually, as i presume is what that link is supposed to do. Clicking the award under a post of a user that earned the reward takes you to the correct page however.
The difference between the links for one of the awards is for example:
In posts: /index.php?action=profile;area=awardsMembers;id=7
In the awards list: /index.php?action=profile;sa=awardsMembers;id=7
change the link in profile.template.php
Quote from: Kindred on September 27, 2009, 08:46:41 PM
either you did not add the language strings, or you missed edits to the admin files
I checked the edited files 3 times. All seems ok, any other suggestion?
Try clearing the file cache under Routine Maintenance
Ive been working with this mod since Friday, and its flawless now :) I love it and Jay did an amazing job at it. You guys will love this :)
Hi there me again. How can I center the "Awards" text under a members avatar on a board?
Still waiting for assistance.
Just curious-Is there any way to allow automated award giving to a member when they reach a certain post count/thread count? It's no issue, just wondering if it's possible.
Cheers.
XaiXo... that's what Badges are for. The Awards must be manually assigned.
BliXem... I'd suggest playing around with the awards, looking at your site in Firefox with FireBug enabled...
Quote from: Kindred on October 03, 2009, 11:23:08 PM
XaiXo... that's what Badges are for. The Awards must be manually assigned.
BliXem... I'd suggest playing around with the awards, looking at your site in Firefox with FireBug enabled...
I am playing around with it constantly, I just really wanted to know which file I need to edit to change the "Awards" text in a forum board under a members avatar and most likely it would be the same file where I can align the text. I am very noob still yes, but every day I do learn something new. At times when I manually install files where it says I should replace text with "this text", that file at times does not contain the original text to be edited, but I do eventually figure it out myself. I appreciate all the hard work from you guys and I do think you guys are doing a great job and at times it required a great deal of patience, especially with peeps like me. I have been opening php files like you wouldn't believe, so is there anyone that would not mind telling which file I should edit to achieve my original request.
Thank you in this regard.
BliX
PS: Once again great job guys and great Mod.
well... it's probably CSS instead of one of the source files... but the template file is display.template.php
Quote from: Existence. on August 28, 2009, 11:55:20 PM
Hello,
I'm unable to see member awards below anyone's posts in any topic. I've looked all over this thread but cannot find a solution. One person (Chaos Dragon) said they figured it out, but didn't say why. :(
I'm running SMF 2.0 RC1-1.
Thanks.
Same here. There is a small awards icon under their avatar that takes you to the awards page. But no awards image under their avatar of the actual award.
that is correct. As far as I know, this mod does not display the actual awards... it displays a link to the user's awards page.
It used to.
See what happens when you don't stay updated. LOL
it used to? really?
maybe I am confusing myself... but as far as I recall, this mod never did. There are 2 other awards mods though.
I'm sure it was this mod. I still had the tables from the old version. It just gave me too many errors so I uninstalled it.
It also had an option to have the award show up in the signature area.
Oops, it was a different awards mod. :-[
This updated mod is great!! I am using v1.1.1 with SMF 1.1.10.
Only one thing that bothers me. You can still only select one favorite. The box is checked in the admin section to allow more than one favorite, but still it does not. If that could be fixed, it would be awesome.
And a suggestion: Once the favorite issue is fixed, perhaps something that allows members to display JUST favorites if they wish?
I have a problem in this mod
when I add a user name in (Select Members) & a award from (Select Award) & click to continue ,,, it say : {You must select a member and/or award in order to continue! }
Quote from: Saladine on October 11, 2009, 09:47:44 AM
I have a problem in this mod
when I add a user name in (Select Members) & a award from (Select Award) & click to continue ,,, it say : {You must select a member and/or award in order to continue! }
I had the same problem,but when you type out a members name press enter then continue.
That worked for me =].
The only issue I've found so far is the automatic upload of the award images. On the default theme it worked perfectly. But once I applied it to my custom theme it doesn't work. I can still manually upload the graphics in the format it calls for 1.png/mini-1.png into the awards directory, but the automatic functionality was lost. Not 100% sure how to fix/enable that.
I too am using 1.1.10. I am not getting the awards to show in the posts either as it does with the default theme. I think there is something missing that could go into the next update that offers functionality to Themes.
I can probably continue to tweak with it, but it would just be nice if the dev could do the upgrade.
mods only ever install in the default theme. This is true of ALL mods. You will have to manually apply the mod(s) in any custom theme.
Quote from: SgtMic on October 04, 2009, 10:16:17 PM
Quote from: Existence. on August 28, 2009, 11:55:20 PM
Hello,
I'm unable to see member awards below anyone's posts in any topic. I've looked all over this thread but cannot find a solution. One person (Chaos Dragon) said they figured it out, but didn't say why. :(
I'm running SMF 2.0 RC1-1.
Thanks.
Same here. There is a small awards icon under their avatar that takes you to the awards page. But no awards image under their avatar of the actual award.
This sounds exactly like a problem I was having. (but I am running 1.1.10) The mod WAS applied to the default theme ok, since the Awards link was showing up, but the awards themselves were not showing up. My problem was in Load.php.
The problem I had was this... manually applying the mod, (I pretty meticulously follow the search and replaces, so I am not sure how/where this got messed up) I had this in Load.php... starting around line 885
if (!empty($users))
{
// Load the member's data.
$request = db_query("
SELECT$select_columns
FROM {$db_prefix}members AS mem$select_tables
WHERE mem." . ($is_name ? 'memberName' : 'ID_MEMBER') . (count($users) == 1 ? " = '" . current($users) . "'" : " IN ('" . implode("', '", $users) . "')"), __FILE__, __LINE__);
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
$user_profile[$row['ID_MEMBER']]['awards'] = array();
}
mysql_free_result($request);
}
// if this is the user's profile screen, also grab the count of topics they've made
if (!empty($new_loaded_ids) && $set == 'profile')
{
$request = db_query("
SELECT ID_MEMBER_STARTED, COUNT( ID_TOPIC ) AS topics
FROM {$db_prefix}topics
WHERE ID_MEMBER_STARTED" . (count($new_loaded_ids) == 1 ? ' = ' . $new_loaded_ids[0] : ' IN (' . implode(', ', $new_loaded_ids) . ')') . '
GROUP BY ID_MEMBER_STARTED', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER_STARTED']]['topics'] = $row['topics'];
mysql_free_result($request);
// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = db_query("
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.ID_MEMBER, am.date_received, am.favorite
FROM {$db_prefix}awards_members AS am
INNER JOIN {$db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.ID_MEMBER IN(" . implode(',', $new_loaded_ids) . ")
ORDER BY am.favorite DESC, am.date_received DESC", __FILE__, __LINE__);
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsRequest)){
$user_profile[$row['ID_MEMBER']]['awards'][] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => '?action=profile;sa=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;sa=showAwards;u=' . $row['ID_MEMBER'],
'minifile' => $row['minifile'],
'img' => '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $row['minifile'],
);
}
mysql_free_result($awardsRequest);
}
}
if (!empty($new_loaded_ids) && $set !== 'minimal')
{
$request = db_query("
SELECT *
FROM {$db_prefix}themes
WHERE ID_MEMBER" . (count($new_loaded_ids) == 1 ? ' = ' . $new_loaded_ids[0] : ' IN (' . implode(', ', $new_loaded_ids) . ')'), __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['options'][$row['variable']] = $row['value'];
mysql_free_result($request);
}
It SHOULD have been...
if (!empty($users))
{
// Load the member's data.
$request = db_query("
SELECT$select_columns
FROM {$db_prefix}members AS mem$select_tables
WHERE mem." . ($is_name ? 'memberName' : 'ID_MEMBER') . (count($users) == 1 ? " = '" . current($users) . "'" : " IN ('" . implode("', '", $users) . "')"), __FILE__, __LINE__);
$new_loaded_ids = array();
while ($row = mysql_fetch_assoc($request))
{
$new_loaded_ids[] = $row['ID_MEMBER'];
$loaded_ids[] = $row['ID_MEMBER'];
$row['options'] = array();
$user_profile[$row['ID_MEMBER']] = $row;
$user_profile[$row['ID_MEMBER']]['awards'] = array();
}
mysql_free_result($request);
// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = db_query("
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.ID_MEMBER, am.date_received, am.favorite
FROM {$db_prefix}awards_members AS am
INNER JOIN {$db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.ID_MEMBER IN(" . implode(',', $new_loaded_ids) . ")
ORDER BY am.favorite DESC, am.date_received DESC", __FILE__, __LINE__);
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsRequest)){
$user_profile[$row['ID_MEMBER']]['awards'][] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => '?action=profile;sa=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;sa=showAwards;u=' . $row['ID_MEMBER'],
'minifile' => $row['minifile'],
'img' => '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $row['minifile'],
);
}
mysql_free_result($awardsRequest);
}
}
// if this is the user's profile screen, also grab the count of topics they've made
if (!empty($new_loaded_ids) && $set == 'profile')
{
$request = db_query("
SELECT ID_MEMBER_STARTED, COUNT( ID_TOPIC ) AS topics
FROM {$db_prefix}topics
WHERE ID_MEMBER_STARTED" . (count($new_loaded_ids) == 1 ? ' = ' . $new_loaded_ids[0] : ' IN (' . implode(', ', $new_loaded_ids) . ')') . '
GROUP BY ID_MEMBER_STARTED', __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER_STARTED']]['topics'] = $row['topics'];
mysql_free_result($request);
}
if (!empty($new_loaded_ids) && $set !== 'minimal')
{
$request = db_query("
SELECT *
FROM {$db_prefix}themes
WHERE ID_MEMBER" . (count($new_loaded_ids) == 1 ? ' = ' . $new_loaded_ids[0] : ' IN (' . implode(', ', $new_loaded_ids) . ')'), __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$user_profile[$row['ID_MEMBER']]['options'][$row['variable']] = $row['value'];
mysql_free_result($request);
}
I discovered the problem by doing a brand new install and automatically (through the package manager) installing the mod.... (the awards showed up ok there) then comparing files...
I am posting this just in case others have had the same problem (I am not sure how likely that is).
digit
Quote from: novastar on October 10, 2009, 01:06:15 AM
This updated mod is great!! I am using v1.1.1 with SMF 1.1.10.
Only one thing that bothers me. You can still only select one favorite. The box is checked in the admin section to allow more than one favorite, but still it does not. If that could be fixed, it would be awesome.
And a suggestion: Once the favorite issue is fixed, perhaps something that allows members to display JUST favorites if they wish?
Yes that would be nice. Allow the users to select which awards and in what order they are displayed.
Greetings! Thank you for the great mod. Unfortunately, i noticed 2 minor bugs here:
1. When you press 'Select user' the default smf window which let you search users will appear. After clicking on user there, his or her user name aka login will be inserted in 'select user' field. But mod looking for display name to assign awards. If display name differs from user name, operation will fail.
2. I'm running russian forum. There is drop-down list of months in Assing Award interface, but it does not select the current month. Actually there is 2 problems: in first, it uses php function 'date' to get current month, which will return english name of month. In second, months in $txt['months'] array are in genetive case, and date('F') returns month in nominative case. In result, january will always appear as selected. I use this solution:
<option value="', $key, '" ', date('F') == $month ? 'selected="selected"' : '', '>', $month, '</option>';
are replaced with:
<option value="', $key, '" ', $txt['months'][date('n')] == $month ? 'selected="selected"' : '', '>', $month, '</option>';
smf version: 1.1.10; mod version: 1.1.1
I do not know if it has been fixed in 2.x versions, but i hope this information will help others, who use non-english smf 1.1.10
I apologize for my poor English
Quote from: jolly_roger on October 14, 2009, 06:35:09 AM
When you press 'Select user' the default smf window which let you search users will appear. After clicking on user there, his or her user name aka login will be inserted in 'select user' field. But mod looking for display name to assign awards. If display name differs from user name, operation will fail.
I noticed this too actually, although I did not put it together as to what the problem was. I had a user that changed his display name, but not his user name. Had to type the display name manually to add the award, would not use the 'search member' feature properly (search came up with display name, but put username in field when clicked).
Quote from: Kindred on October 05, 2009, 12:01:28 AM
that is correct. As far as I know, this mod does not display the actual awards... it displays a link to the user's awards page.
It does display them but they are just small icons (16x16) that when you hover over them, they state what award they are.
Boy we are ALL OVER the map with this mod.
It IS supposed to show the awards. In the posts. Full size. After I found a small problem in Load.php... it works just fine ... it displays the awards, (in a nice neat little legend layout), and also displays a small 16x16 image that links to the awards list.)
Look through the parser and you can see.
Quote from: digit on October 16, 2009, 05:57:45 PM
Boy we are ALL OVER the map with this mod.
It IS supposed to show the awards. In the posts. Full size. After I found a small problem in Load.php... it works just fine ... it displays the awards, (in a nice neat little legend layout), and also displays a small 16x16 image that links to the awards list.)
Look through the parser and you can see.
Exactly, Digit. You can either have it show the full size icon for the award (for mine I had limited to the amount of awards shown in that manner) or you can show small icons for the awards. It's really a choice that the user has and certain awards can be displayed how they wish.
This of course is straight out of the box install (for me anyway), no modifications of the files for the awards mod.
Where do you see the option to show small icons?
Maybe it's different for smf2+ (I am using 1.1.10)
BTW - did NOT add the small icon that's linked to the awards page. 8) (It seems like that should be in the menu somewhere)
Quote from: digit on October 16, 2009, 06:06:37 PM
Where do you see the option to show small icons?
Maybe it's different for smf2+ (I am using 1.1.10)
BTW - did NOT add the small icon that's linked to the awards page. 8) (It seems like that should be in the menu somewhere)
You just need to make the smaller version (icon) of the award.
:) I use 1.1.10 as well.
Here's what I mean.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2F140cie1.jpg&hash=e78f87af4d3103bdea724d3e594f4b3559b88d34)
Then it will make this appear in the posts. And when you hover over them, they each have a description that will explain the award.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2F24zwthk.png&hash=46b25cfcdd89123949f9d57dd13352a8c44206ae)
You can also set how many awards you want shown (large icon or small icon)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2F2z3vpd1.jpg&hash=c6e95ff39f75e9599a8831fb5cb0a13d0963f411)
Make sense?
Oh yes! My bad! 8)
Quote from: digit on October 16, 2009, 06:25:28 PM
Oh yes! My bad! 8)
No worries, hope I helped some. :P
Of course, that small image is only 16x16 because that is the size you made it. :) It could be any size. :) (I guess that is why I was confused)
Quote from: digit on October 16, 2009, 07:28:20 PM
Of course, that small image is only 16x16 because that is the size you made it. :) It could be any size. :) (I guess that is why I was confused)
Ah I see. Well I just assumed that size would be best for the "smaller" version of the award image. Sorry for the confusion.
Not to worry, I added my share, multiple times, I think! :P
Parse function dont wanna work, regardless of version I choose? Keep saying error not compatible?
Is there any way to allow the users the ability to make more than one item a favorite?
I want everyone to be able to show up to 10 awards and mark at least 5 of those as favorites that will always show. Currently I have it setup so they can show up to 10 awards, however they can only choose 1 of them as a favorite.
Thanks and appreciate the work done on this mod!
I would like to see the ability to give more than one of the same award (post of the day awards for example) I would also like to have a comment field for each award. (like a link to the post)
I might be willing to pay for the help to accomplish these.
Thanks in advance.
by the way. if we're talking about new features, what do you think about ability to notify awarded members via PM once award are assigned? might be useful i think. with an award description as reason in message, for example
Quote from: Bolerro on October 18, 2009, 07:28:34 PM
Is there any way to allow the users the ability to make more than one item a favorite?
I want everyone to be able to show up to 10 awards and mark at least 5 of those as favorites that will always show. Currently I have it setup so they can show up to 10 awards, however they can only choose 1 of them as a favorite.
Thanks and appreciate the work done on this mod!
I know in the 2.0 version, you can select how many are displayed in the posts and also allow the member to select more than one favorite.
Quote from: C4G-TK on October 20, 2009, 02:05:25 PM
Quote from: Bolerro on October 18, 2009, 07:28:34 PM
Is there any way to allow the users the ability to make more than one item a favorite?
I want everyone to be able to show up to 10 awards and mark at least 5 of those as favorites that will always show. Currently I have it setup so they can show up to 10 awards, however they can only choose 1 of them as a favorite.
Thanks and appreciate the work done on this mod!
I know in the 2.0 version, you can select how many are displayed in the posts and also allow the member to select more than one favorite.
According to the change log, the 1,1 version is supposed to match 2.0 functionality.
Not being able to select more than one favorite was a problem previously, but it was corrected in the last update of this mod. All of my members have been able to select more than one favorite. Previously, it would only allow one despite setting the correct permission. It would just keep selecting from one to the other. Like I just said, it is working correctly now after installing the last update. Do you have the most recent version of the mod installed?
Yup, have the 1.1 version installed. I am using SMF 1.1.10
Not sure why it is not allowing anyone to choose more than one favorite
Same set up here, and only able to select one favorite.
I just did a fresh install of this mod on 1.1.10 via the package manager and I get this error in the admin panel:
Unknown column 'a.id_category' in 'on clause'
File: /home2/hinchyus/public_html/mindstage/Sources/ManageAwards.php
Line: 123
And I also get this when I access any topic:
Unknown column 'aw.award_name' in 'field list'
File: /home2/hinchyus/public_html/mindstage/Sources/Load.php
Line: 928
I'm not sure what it means... it seems like it's a database error, but I don't know what the problem is. I checked if the databases got set up right and they did. Any help would be appreciated.
Talked to Hinchy on AIM, figured out that not all of the database columns had been added.
As for the lack of multiple favorites, I have no clue how this slipped through... I'll put out a patch ASAP, I know where the problem is.
Edit: Okay, v1.1.2 is up, install it to upgrade :)
Parse still dont work for manual install any assistance please???
i got this error too in Member Award v1.1.2.
Unknown column 'a.id_category' in 'on clause'
File: .../Sources/ManageAwards.php
Line: 123
How to fix it? Mind help urgent here. Thanks.
try reading some of the previous posts or using search?
1- you possibly had a different member awards mod installed before this one...
2- run the database script once more... or add the database tables by hand in phpmyadmin
Any update on an RC2-friendly version? :D
Hi,
I just installed this to my forum and it works great creating the different awards, but not so great assigning them. Whenever I assign someone an award it comes up with this message:
QuoteMethod Not Implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 PHP/5.2.9 Server at makemiifamous.co.uk Port 80
Please could someone tell me what the problem is?
Thanks
Leon J. Fletcher
For me Member awards worked fine on RC2 except by one thing.
I can't assing Awards to Members because the mod don't search for members.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg27-3.png&hash=37f516285806a5c8de6d54647437d2f4e49ede83)
This is an image of manage member group. As you can see, when i enter a name, the forum show a list of matchs, thats what don't happens.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg28-3.png&hash=1d319cb80ba49537f8f4046035d2477659b30765)
Except by this everything works fine.
I hope this can help you to make an RC2 version soon.
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Does anyone have this up and running on their forum so I could take a look? I think it's what I'm looking for but I'm not 100% positive so I'd like to see it in action.
EDIT: Also, while Googling trying to find a working example of this, I noticed there seems to be a SQL injection exploit. Does that exploit still work and if so, how do you prevent someone from exploiting the mod?
I just got a 1.1.11 board coming from vbulliten...wondering if this is compatible yet or should I want?
Amatatomba, check out my site at clan-phx.com. You won't have to register, just go into the forums and there are some viewable by guests and you will see how my awards are displayed in the forums. I am quite happy with it, I am just hoping someone can answer my question above.
I'm trying to get this installed on RC2...
One issue in the install.php, it creates the tables without the db_prefix, after I set the create table to "smf_awards_categories"... and the 2 other tables it installed fine.
Now I have an issue where I can see the Admin settings only under the default theme. I can't wrap my head around why it would only show up on the default theme's admin panel since both themes use admin.php and the same template. Any ideas?
Which version are you guys using for RC2? I don't see that it says that it is compatible with this SMF version, yet. When I try to use the most recent package of 2.1.7 it states that it is not compatible or corrupt.
I installed 2.1.7 on RC2... just had to slighty modify the install.php to create the 3 tables with my db_prefix
The loading of members into the assign medals template isn't functioning properly yet... working on it =)
Oh, I see.
Hopefully, Fustrate will update this mod to work fully with RC2 when he has time. I'm not updating my current forum until there is a new working package with this available. This mod is one of about three that I depend on completely, so I'll wait patiently. ;)
Having trouble loading the members at the moment in RC2...
Quote from: comfort_eagle on December 17, 2009, 05:57:45 PM
Having trouble loading the members at the moment in RC2...
Let me know if you get it working. There was also a problem within the member profile area where if you hit the page number under Award List it wouldn't advance to the next page. Not sure if that was ever fixed in the mod, too. Otherwise, you might be repeating the same error on yours.
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Any thoughts?
Thanks!
Hey, i really need the help with something. I am using the Ultimate Profile mod and this Member Awards Mod:
http://custom.simplemachines.org/mods/index.php?mod=475
The thing is, i need so that ultimate profile would show all badges the same way they show on posts, under the avatar, with small images. I tried but failed, i am not that good with php. I really need to make a box of avatars on profile.
So, can anybody help me please?
I'm trying to do about the same thing as the above post. I'm decent at PHP and I'm wondering what file actually calls the function template_awards().
It has the whole template laid out, and I can figure out how to edit the template by editing that function...but when trying to figure out how the function actually gets called I am at a loss. Any help would be appreciated.
Quote from: phxmaximus on December 28, 2009, 08:49:59 PM
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Any thoughts?
Thanks!
Search this topic, I believe there was an answer to this a few pages back.
I've used the search function on this thread to find the word profile...no hits. Is there anyway to show the awards on your profile?
Actually, I think the search is broken...it just shows me the last post in the thread with the word profile...which is now my post.
Do you mean in a different area than where it already appears on the profile?
I know that in 2.0, you only need to click on PROFILE, then under PROFILE INFO you simply click on SHOW AWARDS.
I don't use 2.0 and it doesn't show in the profile. Oh, I use a profile mod by the way. Basically, I just want to create a table on my profile that does a slightly expanded version of what is shown underneath your user name when you post in a thread.
I want to know how to access the function and display only certain information.
Honestly, what I want is some kind of comprehensive tutorial to manipulating SMF, but I can't find one, so I ask specific questions on mod threads. The Online Manual is close to useless for me.
If I were attempting something like that, I would probably parse the package you are using and look at where the edits are done for the post for starters. Then, copy that into the profile area where you want it to be displayed and see where changes need to be made.
Well, I tried just copying and pasting the code directly into the profile area just to see if I could mimic it and I came up with nothing. Literally, the output was nothing, not even an error.
Quote from: Bijan641 on December 31, 2009, 03:42:11 AM
Well, I tried just copying and pasting the code directly into the profile area just to see if I could mimic it and I came up with nothing. Literally, the output was nothing, not even an error.
I have tried that too with same results...
well, if you are going to merge two mods together, you need to have some understanding of php coding.... you can't just cut and paste form one spot to another.
I do have some knowledge. Admittedly, I am still learning, but thats what I was hoping these forums could help me out with. Like, I see where the function is defined for awards template in profile.template.php, but I don't see where the function is ever called. Maybe I just don't know enough php. Its looking like I'm just going to need to spend a lot of time messing around with it. Thanks anyways.
if you view the manual instructions, look for edits to profile.php and profile.template.php
Quote from: LC on December 30, 2009, 06:33:11 AM
Quote from: phxmaximus on December 28, 2009, 08:49:59 PM
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Any thoughts?
Thanks!
Search this topic, I believe there was an answer to this a few pages back.
Thanks
I came up with nothing.
Quote from: phxmaximus on January 03, 2010, 12:51:01 PM
Quote from: LC on December 30, 2009, 06:33:11 AM
Quote from: phxmaximus on December 28, 2009, 08:49:59 PM
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Any thoughts?
Thanks!
Search this topic, I believe there was an answer to this a few pages back.
Thanks
I came up with nothing.
http://www.simplemachines.org/community/index.php?topic=114701.msg2316767#msg2316767
Read from there. :)
hmmm... I just reinstalled on RC2 and now I am getting the problem with the system accepting members... I type the members full username into the box, but the system keeps telling me that I have to pick a user.
Quote from: Kindred on January 04, 2010, 11:19:19 PM
hmmm... I just reinstalled on RC2 and now I am getting the problem with the system accepting members... I type the members full username into the box, but the system keeps telling me that I have to pick a user.
I don't think this mod is ready for RC2 yet. From the Mod page it's not listed. (I could be wrong).
well, it installed just fine.... :)
Quote from: Kindred on January 04, 2010, 11:19:19 PM
hmmm... I just reinstalled on RC2 and now I am getting the problem with the system accepting members... I type the members full username into the box, but the system keeps telling me that I have to pick a user.
Quote from: Kindred on January 05, 2010, 08:31:01 AM
well, it installed just fine.... :)
LOL, I'm confused. Are you saying that it installs, but that it has the error?
it installs (although I did have to tell it that I was running an older version... but once it is installed, I get the error with the username not being recognized.
I'm thinking of trying this out, for those that use it what types of things do you give awards for? Also how are you able to tell if the members accomplish these things?
Quote from: trebul on January 06, 2010, 08:27:58 PM
I'm thinking of trying this out, for those that use it what types of things do you give awards for? Also how are you able to tell if the members accomplish these things?
I use it for recognition of similar likes and not as an award. On my gaming site, I use it to show which players are playing similar games. The icon of the game appears on their profile and other people can see who is playing the same thing and possibly get advice, set up a match, or talk about their likes/dislikes.
Quote from: triforceguy11 on November 21, 2009, 03:53:12 PM
Hi,
I just installed this to my forum and it works great creating the different awards, but not so great assigning them. Whenever I assign someone an award it comes up with this message:
QuoteMethod Not Implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 PHP/5.2.9 Server at makemiifamous.co.uk Port 80
Please could someone tell me what the problem is?
Thanks
Leon J. Fletcher
I posted this more than a month a go and I still haven't been helped. I am now with v1.1.11
I have never seen that error...
Although I do note some mention of FrontPage, are you using FrontPage? If so, I suggest you do not...
No, I'm not using Front Page. My host says he doesn't support GET, if that helps at all
ah... how bizarre...
yes, it does appear the the mod uses the GET command in several places. You may run into the same error with more than this mod.
Is there any way to use the POST method?
Please Frustrate,could you update this to SMF 2.0 RC2??.Thanks.
I got $20 to donate (via PayPal) to whoever gets this working completely and with the previous errors fixed
-fix pagination in profile so that if you have >1 pages in Award List it will go to the next page.
-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
-although it hasn't been a problem on my forum, the Favorite award function needs to work
Anyone else want to contribute to the fund to get this updated?
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
I got $20 to donate (via PayPal) to whoever gets this working completely and with the previous errors fixed
-fix pagination in profile so that if you have >1 pages in Award List it will go to the next page.
-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
-although it hasn't been a problem on my forum, the Favorite award function needs to work
Anyone else want to contribute to the fund to get this updated?
I will. I will donate $15!
Same - I will throw $20
Can somebody tell me how to delete the award? And worst is now my browser said that the link appear to be broken.
I installed version 2.1.7 of the awards mod. Im running SMF 2.0 RC1.2. Everything installed without any errors and all seems to be working good except for this error I keep getting.
http://www.***********.com/forum/index.php?action=profile;area=listAwards;u=5
Apply Filter: Only show the errors with the same message
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /home1/********/public_html/forum/Themes/default/Profile.template.php
Line: 3106
The line causing the error is this.
==>3106: <a href="', $category['view'], '">', $category['name'], '</a>
I hope someone can help me with this error.
Thanks in advance!
I will donate 20. I am tired of begging for support. Before I donate, it will have to be working properly.
Quote from: LC on January 04, 2010, 10:26:44 PM
Quote from: phxmaximus on January 03, 2010, 12:51:01 PM
Quote from: LC on December 30, 2009, 06:33:11 AM
Quote from: phxmaximus on December 28, 2009, 08:49:59 PM
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
Any thoughts?
Thanks!
Search this topic, I believe there was an answer to this a few pages back.
Thanks
I came up with nothing.
http://www.simplemachines.org/community/index.php?topic=114701.msg2316767#msg2316767
Read from there. :)
Ah yeah thanks. Apparently I failed to be clear with you. I know about the "fix," but the "fix" didn't fix anything for me. In fact, I posted twice in the area you told me to read and my latest request for help stems from the fact that the "fix" didn't work.
Quote from: eric1234 on January 14, 2010, 12:42:28 PM
Can somebody tell me how to delete the award? And worst is now my browser said that the link appear to be broken.
In SMF2 (not sure if it is the same in 1.1.X) you can go into Admin Control for the mod. Look at the award list and on the right side of the award there are 3 or 4 options... Members, Assign, Delete, Modify. (I'm going by memory here for the order.) Click on Delete. :D
@ Kindred
Couple questions for you.
1) Did you just emulate 1.2 to get the package to install?
2) I know you said there was a problem with selecting members. Is there any workaround to get a name attached to an award w/o typing the name in the box?
3) Did you have this installed previously? I was wondering if it kept your previous awards or if the info was lost. I have about 5 pages of awards being used, so I'm trying not to lose all of them (and add them again).
Thanks for your answers.
@comfort eagle
Any progress on figuring out the ADD MEMBER function that was broken?
yes, I used the advanced drop down to tweak the version tunil I found one that the awards would install under (can't recall if it was RC1,1 or beta 4, or what)
I have not been able to get the awards selected, so it's essentially dead right now
I had two awards in the database... they are still there. :)
hello just got a quick question i installed this mod and was just woundring why it will only show 1 award in box even know the user has multi awards>
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F21jozk0.jpg&hash=77465525575acbf7c2f2749745e70514ae63eb7f)
ive resized the images with no luck (bigger and smaller) ive used the mini icons and still no luck ..any ideas?
Pretty sure in the Admin area for the mod, there is a box where you can tell it how many to show in a post. Make sure it is set to the number you want. I only show 6 awards, but the members may have more than that.
You can still see ALL the awards a person has by going to their profile and clicking the correct link under Profile Info.
Quote from: C4G-TK on January 15, 2010, 08:51:34 PM
Pretty sure in the Admin area for the mod, there is a box where you can tell it how many to show in a post. Make sure it is set to the number you want. I only show 6 awards, but the members may have more than that.
You can still see ALL the awards a person has by going to their profile and clicking the correct link under Profile Info.
yeah i had that set ..my other admin says he fixed a template .that was out of wacky so i think this is resolved now thanks for the reply>and thanks again for the mod LC
Please, add support to give awards to entire membergroups, or default awards for the member if have been singup in the forum... other good idea is if the description of the award stay on a popup
sorry for my bad english
@phxmaximus I thought you may be able to find something useful in that post area. I am guessing you have a bigger issue. :-X Hopefully Frustrate will be able to help you out.
Speaking of which.
Quote from: LC on January 08, 2010, 07:54:40 PM
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
I got $20 to donate (via PayPal)
Anyone else want to contribute to the fund to get this updated?
I will. I will donate $15!
Quote from: exteeyou on January 10, 2010, 01:22:02 PM
Same - I will throw $20
Quote from: phxmaximus on January 14, 2010, 10:37:15 PM
I will donate 20.
That's $75 bucks to get this mod working right for RC2! :P
I have another question, does this send a PM to the member when you assign them an award?
Quote from: trebul on January 19, 2010, 12:48:52 AM
I have another question, does this send a PM to the member when you assign them an award?
No, it does not.
Hello.
I have this running on a testing site as I don't want to "release" it to my live site before I've worked out all the kinks.
Currently running:
SMF 1.1.9
Member Awards 1.1.1.2
This was never touched upon I do not think, but I noticed that the images for the awards, when uploaded, are not renamed to be consistent with what the mod is looking for. Which caused my images to not be shown. I found by digging through the code that the images need to be named '1.png' for big image and '1-mini.png' for the thumbnail size. Not a major issue, but it can be confusing.
The other issue I can report is, when using the non-Default theme of SMF, the thumbnail does not show up in member's posts. It simply has a text link to Awards, and it will take you to the awards page for that user's profile. When I installed the mod to the default theme, it actually displays the image of the award under the member's avatar, which is what I want. Anyone know how to set that?
I think that's it for now.
1- you need to upgrade to v1.1.11 soon.
2- I don't know what you mean about the image filenames. I have never had any problem with the filenames (and no renaming either)
3- As with any mod... you will have to make code edits in your custom themes... you will also have o make sure that there are copies of any awards in your custom theme's directory. the mod only uploads images for the default theme,,,,
Quote from: Kindred on January 21, 2010, 02:54:31 PM
1- you need to upgrade to v1.1.11 soon.
2- I don't know what you mean about the image filenames. I have never had any problem with the filenames (and no renaming either)
3- As with any mod... you will have to make code edits in your custom themes... you will also have o make sure that there are copies of any awards in your custom theme's directory. the mod only uploads images for the default theme,,,,
Thanks for getting back to me.
The version shouldn't be much of an issue to upgrade as long is doesn't break everything....
my "awards" directory is in the root of my SMF install, so it shouldn't make a difference how the mod is set to upload and use my award images.
Are you referencing my query about having the small award image be shown in posts under the user's avatar when you mention editing the code? Are there any specifics to this edit? Does this also have to do with where my awards upload directory is?
http://sleepycode.com/PackageParser/index.php
Take your package and parse it there if the current version is not the same.
Then, make sure all the edits that have Theme/ are done for your custom theme area.
Alright. I figured it out. It's piecing through the /Themes/default/Display.template.php and placing the code where it needs to be.
Where, in my custom theme I was just getting the hyperlink with the word 'awards' I found I needed to add 'award.gif' to my /Themes/"theme"/images/ directory. Need to create my own 'award.gif' though because that thing looks like a body part. :o
Edit: The "show awards in post" did not get set automatically. I had to manually add it to get it to work. Not that big of a deal.
Still... cannot get the auto-upload to recognize my award images, but that's fine I can deal with that by manually changing the file names to '#.png' and '#-mini.png'. There is probably another setting for that, but I haven't found it yet.
Is this mod still suported by Frustrate? will it be updated to work 100% with RC2?.
I will no longer be supporting or developing my modifications, as per Thank You and Farewell (http://www.simplemachines.org/community/index.php?topic=361706.0).
:'(
Fustrate,
Are you giving your mods to people? I have someone who is willing to take the mod and upgrade it to RC2 as well as add some things to it that I need for my forum. I've kinda made a deal that would eliminate some of his debt to me if he does some things with it.
As long as he's capable. I've also got some files he might be interested in, since they add new features but are only halfway finished.
That would be great. It's almost 4am here, so I'm obviously not going to call him now.
Yeah, he's more than capable. Computer Science degree last year and now works for a certain internet company as a Level 2 programmer. I'm sure he could do it fine.
hey,
I was wondering if it's possible to make the awards appear in member profiles (and if it can be done in the Ultimate Profile to).
Thanks
Leon
Well I had some extra time today and I finally installed this mod. It worked great, I just had to manually edit the custom theme stuff.
But now I have another question, is there a place where members can view all the available awards?
Uninstallation Problem:
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.
11. Execute Modification install_display_template.xml Modification parse error
12. Execute Modification - Modification parse error
Shame there is no RC2 version. I really could have used this one :(
Spideron,
you probably installed other mods... so, you will have to manually uninstall the mod from those files.
Quote from: Kindred on January 28, 2010, 08:32:13 AM
Spideron,
you probably installed other mods... so, you will have to manually uninstall the mod from those files.
My Mods:Enhanced PM Warning Message 1.0
Proxy Blocker 1.1.4 ]
Favicon 1.3
Signature Area BBCode Buttons 1.7
SMF 1.0.19 / 1.1.11 Update 1.0
Member Awards 1.1.2
Anti-Bot Registration Puzzles 1.2.0.1
Reply Button in All Posts 1.1
Personal Messages to Membergroups 1.4
Case Insensitive Smileys 1.1
Additional Home page Title | S-Ace 1.0
Spoiler BBCode 1.1.1
Member Color Link 3.0.8
Hide SMF Version 1.0.5
Avatar Under Membergroups Rank 1.3
Quote from: Kindred on January 28, 2010, 08:32:13 AM
Spideron,
so, you will have to manually uninstall the mod from those files.
Did someone figure out how to integrate Member Awards to Ultimate Profile?
Please tell me how!!!
Please write, module Member Awards 2.1.7
can work on the forum SMF 2.0 RC2
? ???
Yes, someone please for 2.0RC2! I need this for my general discussion forum!!
hi friends. I am new to SMF.please guide me how to instal this "award system" feature to my SMF forum so that my users can use it
download the package appropriate for your version of smf
go to the package manager in your smf's admin
select download package and choose the package which you previously downloaded
select apply package
My problem is that when I select to display a medal in the user profile of the post, it looks good, looks like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F5kk9jb.jpg&hash=04f5f7bca2cce7a8f6b528e2017afdb086309d8f)
But when you choose to make them look 2 or more medals, SQUARED full post and looks bad, like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F4ilmhk.jpg&hash=a8ce1aa8fa3df06315eed6c78b45af78c40a83b3)
How can I get one next saga of the other and within the box of medals? Thank you.
Can anyone port this to SMF 2.0RC2?
I will pay $ - no problem.
plz plz plz?
Sorry, 82 pages to read is a bit too much...
Can somebody tell me where I set the permissions for letting members without admin rights to assign awards?
The "Manage Awards" setting in permissions doesn't do the trick... What am I missing?
Thanks!
nothing... as it turns out, the user must have access to the smf admin screens in order to manage the awards.
This is a frequent and lamentable problem with MANY mods which have an admin interface.
The correction is to move the permission to a different location in subs.php or admin.php, but I am not sure what move has to be made off the top of my head.
If it cannot be changed easily I will have to add them myself... :(
I just found another weird thing with this mod.
I use opera as a browser and the "label" Awards shows nice white as it is supposed to be (standard after installation).
When I switch to Internet Explorer the label is black for some reason! I use a black background so it is impossible to read.
I tried to fix this but I cannot find the right spot!
The code for the label is:
<legend>', $txt['awards'], '</legend>';
In Themes/default/Display.template.php
How to alter the code so it always shows as white?
Now RC3? I finally updated to RC3!
I saw a website where he took this system and made it run automatically, along with Facebook integration, but the kid's keeping it to himself, so auto IS possible, just complicated. I tried a few times with scheduled tasks and got no where, anyone else wanna spitball ideas on how to make this thing run on its own??
Quote from: Legend Zero on March 21, 2010, 11:06:25 PM
I saw a website where he took this system and made it run automatically, along with Facebook integration, but the kid's keeping it to himself, so auto IS possible, just complicated. I tried a few times with scheduled tasks and got no where, anyone else wanna spitball ideas on how to make this thing run on its own??
Once this is on RC3, I would like this!! make it a new feature maybe?
I just made a request for the mod in the Requests board. Here's hoping!
ME too!
Hopefully one of the two award mods will be updated to 2.0 RC 3. . .OTOH, does anyone have this one already installed in 2.0 RC 3 and running without problems?
Yeah, it works on my SMF2.0 RC2 and RC3. But I'd to enable SMF2.0 emulation in Admin area. And modified: Themes/.../Dispay.template.php manually:
Find this code:
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';
and add right after:
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Works for me.
Ok, will do in a little bit after breakfast!
EDIT:
And once I fix my facebook connect mod problem...
I manually installed this today and still have the same two problems on RC2 that no one has posted a fix to since page 79. Does anyone have a fix to these?
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix pagination in profile so that if you have more than 1 page in Award List it will go to the next page and not back to member profile.
Error-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
If we could get these two things fixed, I'm pretty sure it would work on RC2 and RC3 completely.
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"
Quote from: Prosoi on March 25, 2010, 05:01:41 AM
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"
Is it not working with old award generally? This would be a problem for me as I have 100s of them and have been waiting to upgrade.
Quote from: Cutter65 on January 14, 2010, 03:23:18 PM
I installed version 2.1.7 of the awards mod. Im running SMF 2.0 RC1.2. Everything installed without any errors and all seems to be working good except for this error I keep getting.
http://www.***********.com/forum/index.php?action=profile;area=listAwards;u=5
Apply Filter: Only show the errors with the same message
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /home1/********/public_html/forum/Themes/default/Profile.template.php
Line: 3106
The line causing the error is this.
==>3106: <a href="', $category['view'], '">', $category['name'], '</a>
I hope someone can help me with this error.
Thanks in advance!
Bump!!
I still need to fix this error it happens when your viewing a members profile and under profile info you select awards list.
Quote from: Prosoi on March 25, 2010, 05:01:41 AM
Quote from: C4G-TK on January 08, 2010, 05:24:14 PM
Error-fix the Assign function, so that typing in a recipient of the award works. Currently people are reporting that the current RC2 version doesn't when assigning it.
No problem on my SMF2 RC2 and RC3, but I can't edit award and upload new image for old awards, this error message appears: "You must select a file to upload!"
Hmm, I previously had this installed on my forum, so all I did was do the edits. I checked every function and those are the only two things that still don't work in RC2 was the search function to select a member for the award and the pagination in profile on the award lists.
I was able to upload new awards without any problem. I'm going to try to get this going in the next 14 days, but I'm traveling a lot in the next 3-8 days, so it may not be done til closer to the end of that timeframe.
Installed, but I get this error now:
Quote
Database Error
Unknown column 'aw.award_name' in 'field list'
File: /home/content/k/c/m/kcm93/html/Sources/Load.php
Line: 1034
When trying to view memberlist, admin memberlist, or individual profiles!
This mod was a casualty of January 16th, 2010. As such, it is no longer developed or maintained, and permission is not given for anyone to take it over.
:( I would have loved this mod, it would be better than Simple Awards Mod, as you don't have to load a award from your computer or a flash drive everytime... I hate that, is someone allowed to make a new award mod fustrate, but not basing it off of yours?
Quote from: Kcmartz on March 28, 2010, 12:46:05 PM
is someone allowed to make a new award mod fustrate, but not basing it off of yours?
Yes, there is no restriction on there being a completely new mod that does something similar.
Yay! Thanks, ill put in a mod request!
Is there a way you can edit the /default/Display.template.php file so the awards being displayed in Posts are arranged in a certain order.
Like group them by Award Category? Or maybe just display them in the order they appear on the adminCP awards page.
sure, there is always a way.... however, since the mod author is not supporting this mod, you'll have to code it yourself.
His sig does say one could request via PM to take it over.
Quote from: Lordmiller on April 02, 2010, 01:01:10 AM
His sig does say one could request via PM to take it over.
Quote from: Fustrate on March 28, 2010, 03:40:17 AM
This mod was a casualty of January 16th, 2010. As such, it is no longer developed or maintained, and permission is not given for anyone to take it over.
Unless I'm misunderstanding something...
Quote
Steven Hoffman - The Last Legitimate Lead Customizer
If you would like to take over my modifications, please contact me via PM.
Perhaps nobody has asked. . . .
About time I changed that signature.
Well, that's a horse of a different color.
Did you know the Emerald City was pure white?
They were not rose colored glasses, but they had a similar effect. . .
hmm, It's installed in the 1.1 forum, but it'll be lost in the upgrade to 2.0 , really wanted to install this mod on the new version, or something like it, but I'll just have to take a pass and use some other factor to reflect what I was using it for. Perhaps a karma mod.
This'd be a real important mod on my site :(
I've manually changed this mod, and it works perfectly on 2.0 RC2-RC3 without any errors.
Wow.. this mod could become a money maker cos it will definitely spice up the forum with a lot of possibility, if the author's broke he can create paid upgrade for this mod he wud make big bucks in no time like 20.000 x $5 holy molly $_$
the author has officially given up on this mod. However, he has not released his rights to the mod...
So, you will have to either modify it yourself or find someone else to re-write it from scratch
Not even paid upgrade ? thats too bad..
grrr... maybe I should switch to phpBB...
Quote from: Kcmartz on April 09, 2010, 07:13:57 PM
grrr... maybe I should switch to phpBB...
Traitor :D
Have a look at the best 3 mod.
Quote from: Kcmartz on April 09, 2010, 07:13:57 PM
grrr... maybe I should switch to phpBB...
Kcmartz, would you really switch to phpBB over one Mod that currently is not available for two specific (non-fully-stable, non-final) SMF sub-versions? I cannot make your decision(s) for you regarding your personal website, but I do want to make sure you aren't making a hasty decision that you will regret later out of temporary frustration. Now, if you've really thought it through and are sure you want to switch, go ahead.
/me apologizes for contributing to the thread hijacking. :P
/me was just mad and being sarcastic, I used to like it, but hate the admin...
It's depressing, overall. This is a great mod and a vital one to MANY sites, and to see it pretty much dead in the water is tear-inducing, for multiple reasons.
Like me :(
Theres a guy who offered me help for money to make this mod working on my smf2 forum, but if he charge it too much id rather not having this mod at all.
Ok
someone can re-write this mod... but "making it work" can not be redistributed
But they could like email it to me, is that ok?
Quote from: Kcmartz on April 11, 2010, 02:12:49 PM
But they could like email it to me, is that ok?
That would be redistributing, I would think.
Then a "tutorial" on editing it correctly?
if you convince someone to modify your own forum directly, then it's OK (for free or paid).
If you convince someone to post a set of instructions indicating how to make the existing mod work correctly, then it would probably be OK, as long as no actual files were included.
Ok, could someone do that?
Yeah, someone, i need help from that someone cos im not an IT person i cant go further with advance editing without any help..
I know PHP Include and Require, Echo, and that is about all I know about PHP
On the second thought, nah.. i dont really need it.
User is not authorized to redistribute instructions to edit this modification. Please remove this post and further responses, and inform the user that this is not allowed.
Ah ok. If you want you could email me the edits and images and instructions, and I will do it manually, to keep Fustrate happy. Thanks! (pming you my email)
@C4G-TK:
I just sent you a pm with my email as well
@C4G-TK: Im dropping an email too, i appreciate A LOT if youre willing to help (not forcing though..).
Does anybody know if the problem was solved or not?
What problem?
@C4G-TK, you're not authorized to distribute instructions to modify this modification, unless you can somehow do so with redistributing a single line of code present in the modification (i.e. those found in a "find" instruction).
I'm upset, this mod is basically a MUST for my website if I can't have it I might switch to phpBB....
Quote from: C4G-TK on April 15, 2010, 04:17:42 PM
User is not authorized to redistribute instructions to edit this modification. Please remove this post and further responses, and inform the user that this is not allowed.
BTW, if you go ahead an edit someone's post, you should then follow through and do what you say which is to "inform the user that this is not allowed" This was never done since no one sent me any messages telling me it was not allowed.
I guess the person was Kat who said he/she would be doing that since that was the person who made the edit.Also, it seems like people of different levels are sending all types of mixed messages, so you should probably all get on the same page. I'm referring to this post specifically which lead to KC and I thinking that we were allowed to exchange the information on the edits needed to make it work. I would not be sending him a new mod, but telling him how to make it work.
Quote from: Kindred on April 11, 2010, 03:15:02 PM
if you convince someone to modify your own forum directly, then it's OK (for free or paid).
If you convince someone to post a set of instructions indicating how to make the existing mod work correctly, then it would probably be OK, as long as no actual files were included.
I'm so glad that SMF is still the most helpful place around. ;) (Oh yeah, that was sarcasm.)
@KC
After moving my friend, we finally have internet and we will be working on my forum this Friday. When we get it to work, I will let you know. If someone tells me whether or not I am allowed to tell you how we got it to work, I will be letting you know, too. I won't be packaging this up into a package like other have done on other mod threads. I will just be telling you what was done to make it work.
Just a question. Since people are saying that the mods are no longer being supported by the authors, shouldn't the mods be taken off of the site so that these problems don't happen and people don't get their panties in a tizzy?
Kat edited your post due to this post by the Mod author:
Quote from: Fustrate on April 20, 2010, 05:01:46 PM
What problem?
@C4G-TK, you're not authorized to distribute instructions to modify this modification, unless you can somehow do so with redistributing a single line of code present in the modification (i.e. those found in a "find" instruction).
Had he not posted that, Kindred's statement may have been valid. But, since Fustrate posted that after Kindred posted what he did, it ruled out the ability to distribute instructions if they used any of the code from the package.
Quote from: Fustrate on March 28, 2010, 03:40:17 AM
This mod was a casualty of January 16th, 2010. As such, it is no longer developed or maintained, and permission is not given for anyone to take it over.
I see that you updated Advanced Reputation System for other newer versions, so I'm wondering why that mod didn't suffer the same consequence as this one?
Would it be possible for me to send you the working version of this mod when I get it working in order to have you update it for others? Or, are you not updating the mod in order to somehow snub the powers that be? To me, it just seems like the only people that are getting snubbed here are the users since obviously, the powers that be could care less.
I have always held you in very high regard. You have been extremely helpful with your mods and others in the past when help was needed. I truly hope that if someone send you a WORKING VERSION of this mod that you go ahead and use that version to update it. I'm just hoping to do good for others and don't want anything in return. I always thought you did the same.
Just asking since I'm wondering what the reason would be for not updating it if you've updated other mods and you would still not have to do anything for this as far as support. I mean, if someone else is willing to do the work for you and you still don't update it, I just can't fathom the reason.
ARS is being updated because Ha² took it over. I'm just listed as an Additional Author on that one.
I was intentionally stalling this mod because of the ****** TPTB pulled in January, but now that some progress is being made, I'd probably let someone else take over this mod under the same conditions (myself as an AA, credit JayBachatero and myself in the readme).
@C4K-TK:
Thanks for the input
-sent from my phone
It's reckless to accuse C4G-TK for stealing/hijacking/taking over/redistributing this mod.. C4G-TK is NOT going to give us the actual files. She's willing to help meaning she's ONLY going to TEACH us how to make it work in 2.0 RCx like EVERYBODY ELSE have done the same in Support Forum.
Somebody else has offered me a paid help to make this mod work in 2.0RC2 but he ignored me since i couldnt afford a lot of money to give him, so I appreciate C4G-TK's sincere help offer SO MUCH since NO OTHER PERSON is able to. So Yes, EVERYBODY ELSE should Thank her and her Ex for willing to put their time and skill to make this mod compatible with newer SMF versions.
Thank you in advanced C4G-TK for trying to help us ;)
Quote from: anakmacan on May 08, 2010, 05:23:26 PM
It's reckless to accuse C4G-TK for stealing/hijacking/taking over/redistributing this mod.. C4G-TK is NOT going to give us the actual files. She's willing to help meaning she's ONLY going to TEACH us how to make it work in 2.0 RCx like EVERYBODY ELSE have done the same in Support Forum.
Except that, while I understand your frustration, it is still legally Fustrate/JayBachatero's work and distributing instructions on modifying it is technically a breach of copyright without permission.
Quoteso I appreciate C4G-TK's sincere help offer SO MUCH since NO OTHER PERSON is able to.
Don't confuse "no-one else is able to" with "no-one else wants to". I'd offer to take the mod over, as I think I have the necessary skill, but I don't want to have to support it too, because frankly I'm fed up of supporting mods because all that happens is a list of "ME ME ME I WANTZ IT LIKE
THIS *foot stamp foot stamp* AND I'LL SCREAM AND SCREAM UNTIL I'M SICK", which I've avoided mostly on SimpleDesk with the answer 'It wasn't planned' and frequently 'That's not something we really want to implement'.
I do know every mod owners have done a marvelous job and deserve a "Thanks", and C4G-TK's the one who's willing to make it work (since currently no one wants or have time to do it) so no one should "punish"/scold her or stop her from doing it. So thank you to both C4G-TK and Fustrate.
I agree, thanks normally in order. And normally mod authors don't care about instructions being posted for upgrading mods.
But this time is different, the credited mod author specifically said it wasn't allowed to even post such instructions, which is why the scolding came out. The team have to enforce the wishes of authors in this case.
Oh, and despite that mod owners all do marvelous jobs and deserve thanks, it's so rarely given.
QuoteBut this time is different, the credited mod author specifically said it wasn't allowed to even post such instructions,
well... it wont prevent from anyone doing it quietly.. from my perspective i honestly still dont see why C4K's wrong. This is the same like if i had tenants with issue that the house has plumbing problem, i had no time or money to work on it, one tenant was a terrific plumber and he fixed it perfectly although i didnt approve it. When i checked my house, the plumbing's fine and i was happy that it 'fixed itself' and the tenants were happy. Next time when i get new tenants, i wouldnt have to do all the dirty work cos i could just use the old plumbing that one of my old tenant has fixed it without me knowing.
It's not quite the same. If you note, the reason such things were not allowed isn't because of a lack of time or money, but based on the stuff that happened earlier this year, which was a cause of insult, frustration and hurt for a lot of people. So, really, your analogy doesn't entirely hold up.
To make your analogy accurate, let's say you're the managing agent but you have an issue with the actual landlord, he was giving you trouble, so although you know there's a leak you refuse to let your terrific tenant plumber fix it. That's where the problem comes in.
Then the problem's only between me and my landlord, and it still wont prevent my 'tenants' to fix it themselves with or without my acknowledgment cos my tenants're basically the people who live in that house.. -edited- unless i could burn the house along with my tenants in it O:)
*headdesk*
Not if you have legal right to forbid your tenant to do the work. Seriously, there is no point in arguing on this one, it is how it is.
Hummm, okay then if no one will fix it, me, Kcmartz, etc will pack our things and try together to find a new house until the agents kiss and make up with the 'landlord'.
I've allowed JBlaze to take over this mod.
Thanks Fustrate :)
I'll be working on a rewrite over the next week. Keep your eyes peeled! :D
for those of you who complained... Please realize that the author of a piece of software (or a mod, in this case) can specify ANY license/use terms that he/she feels like and, in order to legally use the mod, you must comply with those terms.
My original post about what you could or could not do was general and was based on the standard smf "accepted policy". However, once Fustrate posted his specific forbiddings, those took precedence. I know that this is a useful mod (I use it myself), and you wanted it updated, but you have to follow the author's wishes.
Now that JBlaze has officially taken over, I am sure you'll see some movement (C4K, if you'd like to share what the "fixes" were, JBlaze might incorporate them).
Anyone got any feature requests for this mod before I make it final?
Thanks for posing the question, JBlaze.
- How hard would it be to make the names of those that appear as a recipient of an award to be shown in alphabetical order for people to find their names or others easier? Currently, I think it is listed by date received in the list.
- Was the pagination error in the Awards List in the Personal Profile area corrected? It was working before the RC2 and RC3 were released, but then broke. So, if you went into PROFILE > PROFILE INFO > AWARDS LIST and then clicked on page 2 or more... it would just take you back to the profile and not to the next page of the Awards List.
- I'm assuming the ability to add an award to someone has been fixed. That was another error prior to you taking it over.
OK, so far I've redone the admin and profile template to conform with Curve. I also have fixed the AutoSuggest bug as well as some pagination and assignment issues.
I'll hopefully have this updated by tomorrow :)
Well if you're keeping an eye on the update/new version of this system (pretty sure I saw you posting there) some of the stuff over there would be awesome, but I understand that will take a while probably.
I'll get that list editing into this post for easy reference for you, soon.
Quote from: Legend Zero on May 11, 2010, 01:00:57 AM
Well if you're keeping an eye on the update/new version of this system (pretty sure I saw you posting there)
New version of what system?
Quote from: Kindred on May 11, 2010, 08:24:11 AM
Quote from: Legend Zero on May 11, 2010, 01:00:57 AM
Well if you're keeping an eye on the update/new version of this system (pretty sure I saw you posting there)
New version of what system?
There was a request made in the mod requests board when this was a no-touch situation for a mod similar but with a few more features, including automation of award awarding.
Updated
Version 2.2 May 11th, 2010
> Mod taken over by JBlaze
- Fixed pagination error in profile
- Fixed auto-suggest feature in admin
- Fixed other small errors
+ Rewrote admin and profile templates to be more "curvy"
I'm getting one error when looking at an Award while in the profile. Below is the error that I am getting along with the portion of code.
This is on the forum below that uses RC3 on Sudden Curve theme which is using all the default Curve files that were changed. This is the first mod that I have installed on this site, so it is a fresh install.
It is assigning correctly and it is going to correct pages though! Other than the one error, no errors.
OK thanks. Didn't notice that one :/
I'll add it to the tracker.
I've tried adding, deleting, looking at all pages, hitting icons, etc etc and that's the only thing that is appearing on my forum, so good job! If anything else pops up, I'll let ya know.
Quote from: C4G-TK on May 11, 2010, 09:27:08 PM
I've tried adding, deleting, looking at all pages, hitting icons, etc etc and that's the only thing that is appearing on my forum, so good job! If anything else pops up, I'll let ya know.
Thanks :)
Many many thanks for the work you guys put into this.
This is really one of my favourite mods.
I installed it. There was some problem with the Display.template.php modification but it still allowed me to install, which I did.
Now, I get this error when trying to set the image for the award
QuoteYou must select a file to upload!
(after selecting a file, of course :) )
P.S.
Assigning awards work fine
Quote from: Golan 1st on May 12, 2010, 08:04:22 AM
Many many thanks for the work you guys put into this.
This is really one of my favourite mods.
I installed it. There was some problem with the Display.template.php modification but it still allowed me to install, which I did.
Now, I get this error when trying to set the image for the award
QuoteYou must select a file to upload!
(after selecting a file, of course :) )
P.S.
Assigning awards work fine
Were you trying to update a previous award -OR- were you adding a new award?
The reason that I ask is because I've had that error only when I tried to update an existing image on an award that was already added and not when adding a new award. I'm not sure what the fix would be, but JBlaze would be able to tell ya. Whenever I've updated an image on an existing award, I've usually just made a new entry and assigned it to people again. Then, deleted the old award. (It's kinda my own workaround for these instances.) I think it has something to do with the database and the "copying over" the info that is already saved in it, so to speak.
to update an old award, you could always just use FTP to upload the new image file with the same name as the original...
I got it while trying to update an existing award.
I will try again with new awards and let you know how it works.
Quote from: Kindred on May 12, 2010, 09:45:07 AM
to update an old award, you could always just use FTP to upload the new image file with the same name as the original...
Yeah, I've done that, too.
Yeah, it does work with new awards.
I cannot change the images in the edit screen, though. It does not give me any error message. The image just does not change.
Quote from: Golan 1st on May 12, 2010, 11:36:50 AM
Yeah, it does work with new awards.
I cannot change the images in the edit screen, though. It does not give me any error message. The image just does not change.
I'll track this in the tracker and have it fixed in next release.
want it to look so look where it says
mis medallas - actualmente tengo estas medallas
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F2nl7gna.jpg&hash=576fa9f0abb491b1ff25c9a8b39d607d1ca47e45)
Thanks
Fantastic work JBlaze, great decision Fustrate. Ill be using this mod in the future, after ive upgraded my rc2 forum to rc3.
I've attached a pic of what I'm getting.
Picture 1: In Admin Page with the Awards List.
Picture 2: The SHOW AWARDS Page under Profile is distorted.
Picture 3: Same thing as Picture 3 for the AWARDS LIST Page under Profile.
Picture 4: When you click on the MEMBERS of an Award, it shows the Member List of a specific award correctly though.
RC3 w/ Sudden Curve
What version SMF are you using?
Quote from: luuuciano on May 13, 2010, 03:15:50 PM
Quote from: JBlaze on May 13, 2010, 02:55:23 PM
What version SMF are you using?
2.0rc3
the install was without problems... no errors reported
That's odd... there must be some other JS that is conflicting with the autosuggest...
What other mods are you using?
How did you remove ENotify exactly?
Definitely removed from all the index.template.php files?
I have a bug. This is the only mod I have installed on my board. It comes up when looking at the list of awards.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.deloaded.com%2Faward_bug.png&hash=d0d4fc37603b31c5215cdedb403db6a32cc1d6ed)
Any idea how to fix this? It looks like a piece of code to close a row or div may have been left out? I have not modified the code in any way. I am using the Inferno theme.
@luuuciano - Send me a PM with your admin login.
@Coolie - What page is that on? Admin or Profile?
@luuuciano - I tried it and it works for me. See attached screenshots.
What browser are you using? It may be a browser bug in SMF. I used Firefox 3.6.2 and Opera 10.5
Not too sure. I'm not very familiar with Linux myself...
Great mod mate. :D
I wanted to add the awards at the bottom of the profile.
When i try to do so, only the frame moves, not the image awards.
Can you give me a hand?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F35lvl7k.jpg&hash=5c5be4fdab0a77368709ef81fbb85834e17a22e7)
BTW where do i change the color / size of the awards black frame?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2Fnwaasl.jpg&hash=4151ac197f85dee1136f3f6002a8b77e32cdc157)
@luuuuciano, OK let me know how it goes.
@psyxeon, you have to copy/paste the entire awards code, not just the fieldset.
It is on the awards list page in profile view.
add
global $scripturl;
a few lines before it.
Unknown column 'aw.award_name' in 'field list'
File: /usr/local/www/web__com/Sources/Load.php
Line: 1098
any ideas on this one? i got no error at install time
Smf version? Also make sure that the tables installed into the database.
I am using 2.0 RC3.
Awsome mod :) , i wish awards add based on things ... ( like Facebook Connect used , 20 topic opened etc... )
here is Turkish Translate
### Awards - CodeName : WeWantItTurkish - Antes
// Used by: Errors
$txt['cannot_manage_awards'] = 'Ödülleri yönetme izniniz bulunmamaktadır.';
// Used by: Help
$helptxt['awards'] = 'Bu alan ödülleri yönetmenize, atamanıza ve kategorize etmenizin yanında, bazı ayarları düzenlemenize de yarar.';
// Used by: ManagePermissions
$txt['permissionname_manage_awards'] = 'Ödülleri Yönet';
$txt['permissionhelp_manage_awards'] = 'Bu üyelere yeni ödüller eklemesine, düzenlemesine ve atamasına yarar.';
// Used by: Multiple Areas
$txt['awards'] = 'Ödüller';
$txt['awards_view_album'] = 'Üye\'nin Nişan Albümünü Göster.';
$txt['awards_main'] = 'Ana';
$txt['awards_modify'] = 'Ekle/Düzenle';
$txt['awards_assign'] = 'Ata';
$txt['awards_categories'] = 'Kategoriler';
$txt['awards_settings'] = 'Ayarlar';
$txt['whoallow_awards'] = '<a href="' . $scripturl . '?action=awards">Ödülleri</a> düzenliyor.';
// Used by: Profile
$txt['showAwards'] = 'Ödülleri Göster';
$txt['listAwards'] = 'Ödül Listesi';
### End Awards
also i'll open topic in local-forum ( here (http://www.simplemachines.org/community/index.php?board=168.0) )
im on RC3, installed with no errors :S
Hey Mr. JBlaze,
I'm running this on a custom theme'd RC3 and its working fine until you try to add a person who has a single character letter as their name. I changed the name, yet it still will not auto-suggest the name to add to an award. Is there a way I can get around this?
Also, I have broken images for the "assign, edit, delete and so on" for the buttons to operate the mod. Let me know if you need to look at any of my files.
Thanks. :)
LC
Quote from: LC on May 18, 2010, 04:51:44 PM
Hey Mr. JBlaze,
I'm running this on a custom theme'd RC3 and its working fine until you try to add a person who has a single character letter as their name. I changed the name, yet it still will not auto-suggest the name to add to an award. Is there a way I can get around this?
Also, I have broken images for the "assign, edit, delete and so on" for the buttons to operate the mod. Let me know if you need to look at any of my files.
Thanks. :)
LC
Im having the exact same problem, but it doesn't matter if its a single character name or not. The auto-suggest feature is not working, full stop on mine. Not sure what the problem is, can anybody help?
Auto suggest only kicks in as standard for 3 letters since it appears to be invoking the standard SMF code.
If it's not working full stop that would imply there's some other Javascript it's breaking on. Does it work for sending personal messages?
Quote from: Arantor on May 18, 2010, 05:48:27 PM
Auto suggest only kicks in as standard for 3 letters since it appears to be invoking the standard SMF code.
If it's not working full stop that would imply there's some other Javascript it's breaking on. Does it work for sending personal messages?
Yeah personal messages are working perfectly on my install. Have absolutely no idea what could be causing this. If I give you my admin login details, is there any way you can detect what could be causing the issue, please?
Quote from: luuuciano on May 18, 2010, 05:51:49 PM
swiftmed, I had the same issues using a firefox package of my linux distro (archlinux), had to switch to icecat... (the same behavior in konqueror, and opera too)
Yeah I saw your posts - I re-tried using several differnt browsers - latest versions of Safari, Firefox, Chrome and Opera - didn't work in any of them. Im running on the Mac OSX platform. With regards to PMs in WYSIWYG - works perfectly for me.
In fact, I have never realized of that problem until I tried to use member awards... then switched to icecat, and now I can use it, send smf PM properly, see the "wysiwyg" editor....
Sorry, but I really don't have the time to debug a mod I don't even use ;)
Quote from: Arantor on May 18, 2010, 05:52:43 PM
Sorry, but I really don't have the time to debug a mod I don't even use ;)
Yeah thats cool. Can anybody give me a rough Idea of where I should be looking please?
P.S. - How does the 'charter member' badge appear beside your post on here? Are they using an awards mod of some sort, because thats exactly what Im trying to get on my forum.
All it is is a different primary membergroup with that as the 'star' image, repeated once. Exactly how it is for all the team members here, in fact.
Quote from: Arantor on May 18, 2010, 05:59:11 PM
All it is is a different primary membergroup with that as the 'star' image, repeated once. Exactly how it is for all the team members here, in fact.
Ah I see. So it's a bit of a work-around, not really something that could be used as an awards system.
Not really a workaround, just using the system that's there how it was designed. It's not an awards system, it's about assigning a primary group to a user, which carries permissions (in the case of Charter members, it carries access to the Charter only boards, plus access to the helpdesk here)
Quote from: Arantor on May 18, 2010, 06:03:45 PM
Not really a workaround, just using the system that's there how it was designed. It's not an awards system, it's about assigning a primary group to a user, which carries permissions (in the case of Charter members, it carries access to the Charter only boards, plus access to the helpdesk here)
Yeh I understand. I think my best bet is to try and get this awards mod working. Every other aspect of it is fine, just this choosing of the members is the problem. Im hoping somebody here can point me in the right direction...
Quote from: Arantor on May 18, 2010, 05:48:27 PM
Auto suggest only kicks in as standard for 3 letters since it appears to be invoking the standard SMF code.
If it's not working full stop that would imply there's some other Javascript it's breaking on. Does it work for sending personal messages?
Thanks Arantor. I did change the name I kinda figured a single lettered name was disliked by SMF"s auto suggest :P, but it won't show up. Other names will. So odd. :| I wonder if I need to reinstall the mod or something to get it to "catch" the new name...
Hmm, don't know.
Best ask the man with the code :P
Haha. Looks like I will have ta stalk him a little. :P
I've managed to fix my problem. I did a manual install and made a mistake at the end. I put the awards.js file into the images folder instead of the scripts folder.
Feel a right idiot now, but I managed to fix it, so thats all that matters. :D
Quote from: LC on May 18, 2010, 04:51:44 PM
Hey Mr. JBlaze,
I'm running this on a custom theme'd RC3 and its working fine until you try to add a person who has a single character letter as their name. I changed the name, yet it still will not auto-suggest the name to add to an award. Is there a way I can get around this?
Also, I have broken images for the "assign, edit, delete and so on" for the buttons to operate the mod. Let me know if you need to look at any of my files.
Thanks. :)
LC
The broken images just means that you have to add the ./images/awards directory to your custom theme's ./images directory.
As for the auto-suggest, as stated above, it only kicks in after 3 characters since it's the same script from SMF. I'll see if I can get it to work without auto-suggest as well in a later version.
Quote from: LC on May 18, 2010, 06:21:30 PM
Haha. Looks like I will have ta stalk him a little. :P
As if you don't enough already :P
See the thing is I did change the name to a much longer one, about 6 letters, but it still won't show up on the auto-suggest. /facepalm I wish I could figure out how to "make" it catch the new name.
Quote
As if you don't enough already :P
You wish! :)
Edit: I was able to assign the name after I cleared out my browser's cache and did a hard restart. So weird. But at least it's fixed. As far as the images, I did not have the folder in there. Must have not stuck when I did the install. Der. Thanks Arantor and Jblaze, I owe ya for my newbiness. :)
Hey guys,
Finally got pretty much all my awards system working as I want, however Im having a problem with the award image link which appears under a persons avatar.
The image link takes people to a page not found error on my website. Im using prettyurls. I need to change that link somehow. The page I would like it to link to is the awards page on a users profile, the page that shows the awards that user has won before.
Wrong Link: www.cherylanncole.co.uk/forums/index.php?action=profile;area=awardsMembers;id=4
Correct Link: www.cherylanncole.co.uk/forums/index.php?action=profile;area=showAwards;u=70
Basically I need it to link to the same url as the 'Show Awards' link on the user profile. How exactly can I do that please?
I know the area of code which needs to be changed in the display.template.php page, but im not sure what to change it to?
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
Any idea what is causing the problem I'm having, JBlaze?
I'll be able to respond to your support questions when I am done moving my family to their new home.
Until then, I cannot help you.
@JBlaze
This may help people with the problem in the profile area for the Awards List and the Show Awards. I compared the last version of Fustrate's Profile.template.php file with yours. I know that you changed some coding and such, but after mixing and matching both of them, I have two pages that are now working on my forum. This may at least get you started on where things need fixed as all of my columns are now fixed and the images appear in the correct order.
Please note, my earlier post about it interfering possibly with the Ad Management Mod was not the case, so I edited that part out of my previous reply.
Here is the code that I used in order to get my pages working. I'm going to check it on my other forum that has 6 pages of awards tomorrow. Also, I attached two pictures of what it looks like now. (A few posts back, you can see what it looked like previously.)
****If anyone uses this to correct your problem and it does not work in the PROFILE AREA just find this code again and replace it with what JBlaze originally had.
Replace the code in Profile.template.php:
// This is the template for the awards
function template_awards(){
global $context, $modSettings, $txt, $settings;
echo '
<div class="cat_bar">
<h3 class="catbg">
' ,$txt['awards'], '
</h3>
</div>';
// Show the amount of awards that a member has
if (!empty($context['count_awards']))
echo '
<p class="description">
', sprintf($txt['awards_count_badges'], $context['count_awards']), '
</p>';
// Check if this member has any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_no_badges_member'], '
</p>';
else {
foreach($context['categories'] as $category){
echo '
<div class="cat_bar">
<h3 class="catbg">
', $category['name'], '
</h3>
</div>
<table class="table_grid" width="100%">
<thead>
<tr class="catbg">
<th scope="cols" class="smalltext" width="15%">', $txt['awards_image'], '</th>
<th scope="cols" class="smalltext" width="15%">', $txt['awards_mini'], '</th>
<th scope="cols" class="smalltext" width="20%">', $txt['awards_name'], '</th>
<th scope="cols" class="smalltext" width="45%">', $txt['awards_description'], '</th>
<th scope="cols" class="smalltext" align="center" width="5%">', $txt['awards_favorite2'], '</th>
</tr>
</thead>
<tbody>';
$which = true;
foreach ($category['awards'] as $award){
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><a href="', $award['more'], '"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></a></td>
<td align="center"><a href="', $award['more'], '"><img src="', $award['mini'], '" alt="', $award['award_name'], '" /></a></td>
<td><strong>', $award['award_name'], '</strong></td>
<td><em>', $txt['months'][$award['time'][1]], ' ', $award['time'][2], ', ', $award['time'][0], '</em>: ', $award['description'], '</td>
<td align="center">', $context['allowed_fav'] ? '<a href="' . $award['favorite']['href'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $award['favorite']['img'] . '</a>' : '', '', ($award['favorite']['fav'] == 1 ? ' <img src="' . $settings['images_url'] . '/star.gif" alt="' . $txt['awards_favorite']. '" />' : ''), '</td>
</tr>
</tbody>
</table>';
}
}
// Show the pages
echo '
<p class="catbg">
<span class="smalltext">', $txt['pages'], ': ', $context['page_index'], '</span>
</p>';
}
}
function template_awards_members()
{
global $context, $scripturl, $txt;
// Open the form
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['awards_members_with'], ': ', $context['award']['name'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content" align="center">
<img src="', $context['award']['img'], '" alt="', $context['award']['name'], '" /><br />
<strong>', $context['award']['name'], '</strong><br />
', $context['award']['description'], '
</div>
<span class="botslice"><span></span></span>
</div>
<div class="cat_bar">
<h3 class="catbg">
', $txt['members'], '
</h3>
</div>';
// Check if there are assigned members
if (empty($context['award']['members']))
echo '
<p class="description">
', $txt['awards_no_assigned_members2'], '
</p>';
else {
$which = true;
$counter = 0;
echo '
<table class="table_grid" width="100%">
<tbody>';
// Loop through the members
foreach($context['award']['members'] as $member){
if ($counter < 1)
echo '
<tr class="windowbg', $which ? '2' : '', '">';
echo '
<td width="*">', $member, '</td>';
$counter++;
if ($counter == $context['columns']){
echo '
</tr>';
$counter = 0;
$which = !$which;
}
}
// If $counter is not = 0 then we must close the last tr
if ($counter != 0)
echo '
<td colspan="', ($context['columns'] - $counter), '"> </td>
</tr>';
}
echo '
</tbody>
</table>';
}
function template_awards_list(){
global $context, $modSettings, $txt, $settings;
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['awards_title'], '
</h3>
</div>';
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
else {
foreach($context['categories'] as $key => $category){
echo '
<div class="title_bar">
<h3 class="titlebg">
<a href="', $category['view'], '">', $category['name'], '</a>
</h3>
</div>
<table class="table_grid" width="100%">
<thead>
<tr class="catbg">
<th scope="cols" class="smalltext" width="15%">', $txt['awards_image'], '</th>
<th scope="cols" class="smalltext" width="15%">', $txt['awards_mini'], '</th>
<th scope="cols" class="smalltext" width="25%">', $txt['awards_name'], '</th>
<th scope="cols" class="smalltext" width="40%">', $txt['awards_description'], '</th>
<th scope="cols" class="smalltext" width="5%"> </th>
</tr>
</thead>
<tbody>';
$which = false;
foreach ($category['awards'] as $award){
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></td>
<td align="center"><img src="', $award['small'], '" alt="', $award['award_name'], '" /></td>
<td>', $award['award_name'], '</td>
<td>', $award['description'], '</td>
<td class="smalltext">
<a href="', $award['view_assigned'], '">', $txt['awards_button_members'], '</a>
</td>
</tr>
</tbody>
</table>';
}
}
// Show the pages
echo '
<span class="smalltext">', $txt['pages'], ': ', $context['page_index'], '</span>';
}
}
With this code:
// This is the template for the awards
function template_awards(){
global $context, $modSettings, $txt, $settings;
echo '
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" class="bordercolor">
<tr class="titlebg">
<td colspan="5">' ,$txt['awards'], '</td>
</tr>';
// Show the amount of awards that a member has
if (!empty($context['count_awards']))
echo '
<tr class="windowbg">
<td colspan="5" align="center">
', sprintf($txt['awards_count_badges'], $context['count_awards']), '
</td>
</tr>';
// Check if this member has any awards
if (empty($context['categories']))
echo '
<tr class="windowbg2">
<td colspan="5">', $txt['awards_no_badges_member'], '</td>
</tr>';
else {
foreach($context['categories'] as $category){
echo '
<tr class="catbg">
<td colspan="5">', $category['name'], '</td>
</tr>
<tr class="windowbg3">
<td width="15%">', $txt['awards_image'], '</td>
<td width="15%">', $txt['awards_mini'], '</td>
<td width="20%">', $txt['awards_name'], '</td>
<td width="45%">', $txt['awards_description'], '</td>
<td align="center" width="5%">', $txt['awards_favorite2'], '</td>
</tr>';
$which = true;
foreach ($category['awards'] as $award){
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><a href="', $award['more'], '"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></a></td>
<td align="center"><a href="', $award['more'], '"><img src="', $award['mini'], '" alt="', $award['award_name'], '" /></a></td>
<td><strong>', $award['award_name'], '</strong></td>
<td><em>', $txt['months'][$award['time'][1]], ' ', $award['time'][2], ', ', $award['time'][0], '</em>: ', $award['description'], '</td>
<td align="center">', $context['allowed_fav'] ? '<a href="' . $award['favorite']['href'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $award['favorite']['img'] . '</a>' : '', '', ($award['favorite']['fav'] == 1 ? ' <img src="' . $settings['images_url'] . '/star.gif" alt="' . $txt['awards_favorite']. '" />' : ''), '</td>
</tr>';
}
}
// Show the pages
echo '
<tr class="catbg">
<td align="left" colspan="5">
<b>', $txt['pages'], ':</b> ', $context['page_index'], '
</td>
</tr>';
}
echo '
</table>';
}
function template_awards_members()
{
global $context, $scripturl, $txt;
// Open the form
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['awards_members_with'], ': ', $context['award']['name'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content" align="center">
<img src="', $context['award']['img'], '" alt="', $context['award']['name'], '" /><br />
<strong>', $context['award']['name'], '</strong><br />
', $context['award']['description'], '
</div>
<span class="botslice"><span></span></span>
</div>
<div class="cat_bar">
<h3 class="catbg">
', $txt['members'], '
</h3>
</div>';
// Check if there are assigned members
if (empty($context['award']['members']))
echo '
<p class="description">
', $txt['awards_no_assigned_members2'], '
</p>';
else {
$which = true;
$counter = 0;
echo '
<table class="table_grid" width="100%">
<tbody>';
// Loop through the members
foreach($context['award']['members'] as $member){
if ($counter < 1)
echo '
<tr class="windowbg', $which ? '2' : '', '">';
echo '
<td width="*">', $member, '</td>';
$counter++;
if ($counter == $context['columns']){
echo '
</tr>';
$counter = 0;
$which = !$which;
}
}
// If $counter is not = 0 then we must close the last tr
if ($counter != 0)
echo '
<td colspan="', ($context['columns'] - $counter), '"> </td>
</tr>';
}
echo '
</tbody>
</table>';
}
function template_awards_list(){
global $context, $modSettings, $txt, $settings;
echo '
<table border="0" cellspacing="1" cellpadding="4" align="center" width="100%" class="bordercolor">
<tr class="titlebg">
<td colspan="5">' ,$txt['awards_title'], '</td>
</tr>';
// Check if there are any awards
if (empty($context['categories']))
echo '
<tr class="windowbg2">
<td colspan="5">', $txt['awards_error_no_badges'], '</td>
</tr>';
else {
foreach($context['categories'] as $key => $category){
echo '
<tr class="catbg">
<td colspan="5">', $category['name'], '</td>
</tr>
<tr class="windowbg3">
<td width="15%">', $txt['awards_image'], '</td>
<td width="15%">', $txt['awards_mini'], '</td>
<td width="20%">', $txt['awards_name'], '</td>
<td width="45%">', $txt['awards_description'], '</td>
<td align="center" width="5%">', $txt['awards_members2'], '</td>
</tr>';
$which = false;
foreach ($category['awards'] as $award){
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><a href="', $award['more'], '"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></a></td>
<td align="center"><a href="', $award['more'], '"><img src="', $award['small'], '" alt="', $award['award_name'], '" /></a></td>
<td><strong>', $award['award_name'], '</strong></td>
<td><strong>', $award['description'], '</strong></td>
<td class="smalltext">
<a href="', $award['view_assigned'], '">', $txt['awards_button_members'], '</a>
</td>
</tr>';
}
}
// Show the pages
echo '
<tr class="catbg">
<td align="left" colspan="5">
<b>', $txt['pages'], ':</b> ', $context['page_index'], '
</td>
</tr>';
}
echo '
</table>';
}
UPDATE: I couldn't wait and something is up with adding attachments right now, so hopefully I didn't just triple post here.
I went ahead and did the edit on my other forum that has a LOT of awards to see if the pageination and Profile pages worked with the edit in the previous post.
(Didn't realize that I had 7 pages of awards, yikes.)
Here are BEFORE and AFTER pics of the error and what it now looks like on the forum. Much better!
Quote from: C4G-TK on May 21, 2010, 01:40:06 AM
@JBlaze
This may help people with the problem in the profile area for the Awards List and the Show Awards. I compared the last version of Fustrate's Profile.template.php file with yours. I know that you changed some coding and such, but after mixing and matching both of them, I have two pages that are now working on my forum. This may at least get you started on where things need fixed as all of my columns are now fixed and the images appear in the correct order.
Please note, my earlier post about it interfering possibly with the Ad Management Mod was not the case, so I edited that part out of my previous reply.
Here is the code that I used in order to get my pages working. I'm going to check it on my other forum that has 6 pages of awards tomorrow. Also, I attached two pictures of what it looks like now. (A few posts back, you can see what it looked like previously.)
Thanks so much for your post with the new code. That totally fixed my problem with regards to the dodgy page layout too, so thank you!!
Quote from: swiftmed on May 21, 2010, 10:25:53 AM
Quote from: C4G-TK on May 21, 2010, 01:40:06 AM
@JBlaze
This may help people with the problem in the profile area for the Awards List and the Show Awards. I compared the last version of Fustrate's Profile.template.php file with yours. I know that you changed some coding and such, but after mixing and matching both of them, I have two pages that are now working on my forum. This may at least get you started on where things need fixed as all of my columns are now fixed and the images appear in the correct order.
Please note, my earlier post about it interfering possibly with the Ad Management Mod was not the case, so I edited that part out of my previous reply.
Here is the code that I used in order to get my pages working. I'm going to check it on my other forum that has 6 pages of awards tomorrow. Also, I attached two pictures of what it looks like now. (A few posts back, you can see what it looked like previously.)
Thanks so much for your post with the new code. That totally fixed my problem with regards to the dodgy page layout too, so thank you!!
No need to thank me. Thank JBlaze and Fustrate. I just figured I'd compare file since I had an older version of the mod for RC1 I think it was. JBlaze uses different code to do the same thing in his edit there. I just "Frankensteined" the two together to get it to look/work correctly until he has time to fix it. It worked for me, so figured I'd post it, so he could take his time not worry about it for a bit since it does the job.
Glad it worked for you, too though!
thx for share :)
Before installing I am getting an error replacing sources\subs.php it just says replace. I checked the content of what is going to replace and it look the same. Should I worry.
This is the details
7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
FIND:
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
REPLACE:
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
Quote from: droganto on May 24, 2010, 07:10:17 PM
Before installing I am getting an error replacing sources\subs.php it just says replace. I checked the content of what is going to replace and it look the same. Should I worry.
This is the details
7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
FIND:
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
REPLACE:
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
Before you manually edit, check to make sure that the FIND file is exactly the same. That line sometimes has a lot of additions to it depending on what mods you have installed. If there is anything extra in that line, add the extra info to the REPLACE line and then save the edit.
Oh I see. Well I tried anyways and it did crashed my site :( lucky I backup the file, but when I uninstalled it I guess it put it back to normal so website is up and running. I dont know Now I am afraid of the Mod, is a cool mod tho :(
What version of SMF are you using?
What theme?
Quote from: C4G-TK on May 24, 2010, 07:30:12 PM
What version of SMF are you using?
What theme?
SMF2 RC3 Default Theme, But I have installed
1. To-Do List 1.1
2. Member Color Link 3.0.8
3. SMF4iPhone-Mod 1.0
4. Aeva Media 1.1b
5. Treasury 2.06
6. E-Arcade Beta4-SMF2rc1
7. SimplePortal 2.3.2
1) Was that the only error you received on install?
2) Did you do the edit for Display.template.php in the previous post?
3) Did you check to make sure that the other files are in the correct directories?
Create a directory "awards" in "the root directory".
Move the included file "ManageAwards.php" to "./Sources".
Move the included file "ManageAwards.template.php" to "./Themes/default".
Move the included file "ManageAwards.english.php" to "./Themes/default/languages".
Move the included file "ManageAwards.english-utf8.php" to "./Themes/default/languages".
Move the included file "award.gif" to "./Themes/default/images".
Move the included file "awards.gif" to "./Themes/default/images/admin".
Move the included file "awards.js" to "./Themes/default/scripts".
Move the included directory "awards" to "./Themes/default/images".
If you want, I will check your edits for the install if you attach them. (Please note: I won't be able to do this until either later tonight (around 11pm eastern time) or tomorrow afternoon.
Wow C4 I think that will be too much asking for you. BTW I do appreciate the help and how fast you are responding.
1. During the install, yes that was the only error only on that file. the other ones were success or skip
2. Not after the upgrade from 1.1.11 to 2. None of the other packages gave me errors at all.
3. No I didnt check the directory I didnt know.
What you mean with edits for the installs. I dont mind doing it. Im not in a hurry, this is just a will like to have mode not a must have. So whenever you have the time is fine
When you upgrade from 1.1.11 (or anything else) to RC3, your mods are lost. You would need to reinstall them. In this case, there is a Mod package for the 1.1.XX series and the SMF 2.0 series. You would need to upload the RC3 version to your site and install for the mod to work correctly. If you are simply using the package from the 1.1.XX series, it won't work.
If you go to the Mod Site here:
Member Awards (http://custom.simplemachines.org/mods/index.php?mod=475)
You should download the package that says:
member_awards_2-0_rc3_v2.2.zip Also, if you then make sure the select button is chosen to the same package and use the dropdown to select the RC3 version and hit PARSE, it will show you the edits. All those edits will be done in the package, but if you scroll to the bottom of the page you will see any additional components to complete the install.
Quote from: droganto on May 24, 2010, 07:54:12 PM
What you mean with edits for the installs. I dont mind doing it. Im not in a hurry, this is just a will like to have mode not a must have. So whenever you have the time is fine
I have no problem checking your edits which would mean attaching the files that are listed in the PARSE of the mod.
Oh thats the one I downloaded for the RC3.
I guess I see if I can figure the installation and look at the coding manually then. Thanks for your help C4
QuoteThe file you tried to save generated the following error:
Fatal error: Cannot redeclare template_awards() (previously declared in /***/***/public_html/***/board/Themes/default/tmp_ces8emh96gvbtvpe67pblags81.php:2938) in Profile.template.php on line 3078
This is what happens when I try to replace the code. :(
QuoteUnknown column 'aw.award_name' in 'field list'
File: /home2/roryjs5/hsnaruto/Sources/Load.php
Line: 954
My SMF version is 1.1.11. This error shows up when I click the "awards" field in the admin control panel as well as try to look at any posts on my board. Before this, I was getting an error that my database needed updating, which I did.
@C4G-TK, thanks for all the help you are providing and that fix while I'm away. I'll be updating the package as soon as I get my internet back :)
No problem, only know a little, so try to help when I can, bud.
Coolie, you double installed... you will have to remove one of the installations by hand to fix the problem.
Mechanical Karasu, the database tables did not get installed.
Hi I'm using SMF 1.1.11
when I try to install the mod:
1. Execute Modification ./Themes/default/Profile.template.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
And I was looking at the author page and I could not parse for that version :(
can someone help me out please?
thanks.
Make sure you have the correct version and PACKAGE of the Mod selected.
There are two packages listed. The top package is for SMF 1.1.XX. The bottom package is for version SMF 2.0 RC3. Sounds like you have the package for RC3 selected when parsing because the top package parses fine on the Mod Page for 1.1.11
Quote from: Kindred on May 25, 2010, 02:21:36 AM
Coolie, you double installed... you will have to remove one of the installations by hand to fix the problem.
Mechanical Karasu, the database tables did not get installed.
I see. What do I do to fix that? Sorry, I'm pretty dumb when it comes to all of this, so you'll have to be explicit. :P
yea thanks...
I get an error on my forum and it crash on Subs.php
I don't know what is wrong, it's installed and everything and i edit all the files.. but it crash on Subs.php
:(
I only installed it once.
Quote from: Coolie on May 26, 2010, 07:26:41 PM
I only installed it once.
Well, obviously not... since a "redeclare" error only happens when you have the same code inserted twice...
of course this file:
/***/***/public_html/***/board/Themes/default/tmp_ces8emh96gvbtvpe67pblags81.php:2938
is not a valid file... so I do not know why it is there or why the template_awards() function would be declared in it.... or why it would be called... so you may have been hacked and bad files have been added.
Kindred, do you have a idea what can be wrong with my my issue ?
enCyde, you would have to list the ACTUAL error, not just "an error in subs.php"
Mechanical Karasu, look at the manual install instructions and run the database portion
Kindred, this is what I get after I upload the modified Subs.php to my web server.
Parse error: syntax error, unexpected ',' in /home/w139901/public_html/forum/Sources/Subs.php on line 3177
enCyde, what that means is that you did not perform one of the edits correctly. Look at the 10 lines before and 5 lines after that line count for a bad edit.
oh I'm not good at that.. would you like to take a look? I can attach it...
I would be very happy..
Ok guys i try to give it another chance to the mod since is been updated and Im still receiving the Test Error in the Subs.php file. Last time I ignored the error it mess up my website. I know one of the guys was willing to help, but I didnt have time to reply on time. The mod since very good for what we are planning to do on our site. But so far every Mod I installed on my site has no error. This one those and when this one edited the sub.php then the other aplications I try to install after that were erroring in the same file.
If anyone want to help I will appreciate it.
P.S. Im not a guru in editing the codes, and normally I dont like to manually change stuff, cause then it wont make it compatible with other mods or is difficult to uninstall. So it will be great that is just get fix so I can install it without any error :-\ Thanks in advance for any help.
chances are that another mod has alreayd made changes to the spot that this mod is trying to change as well.... THAT is the normal reason for the error and there is really no way to work around it except to install manually, or uninstall the other mods and install this one first.
More specifically... there is nothing in this mod to "fix" since the error is due to previous changes on your side, which are not knowable to the (or any other) mod author when he makes his install file.,
OK Kind, then what you pro, need in order for me to have it fix and dont crash the site.
I dont know which of the mods are stopping this one from working, but as long it work I dont mind doing it. What information you guru people need from me :D
Attach your Subs.php file here and I'll take a look.
Quote from: JBlaze on May 27, 2010, 01:33:06 PM
Attach your Subs.php file here and I'll take a look.
Quote from: JBlaze on May 27, 2010, 01:33:06 PM
Attach your Subs.php file here and I'll take a look.
FINALLY!!!! DOWNLOADING!!!!
Quote from: Mechanical Karasu on May 24, 2010, 10:26:47 PM
QuoteUnknown column 'aw.award_name' in 'field list'
File: /home2/roryjs5/hsnaruto/Sources/Load.php
Line: 954
My SMF version is 1.1.11. (...)
Quote from: Kindred on May 27, 2010, 04:09:10 AM
Mechanical Karasu, look at the manual install instructions and run the database portion
I have the same problem on 1.1.11. When I go to Manual Install Instructions for SMF and choose a version to parse, I constantly get following message for any smf 1.1.x:
An Error Has Occurred!
Sorry, but this modification does not appear to be compatible with the selected version.http://custom.simplemachines.org/mods/index.php?action=parse
How can I manually update my DB with award filed?
Thanks in advance!
EDIT:
AAAAA WAIT!
OK, I've decided to give it one more try before hitting the sack, so I've read install.php and compared with my DB in phpmyadmin and there were some minor differences. So, I've manually deleted (dropped) all tables with "award" in their name, and then I've tried to install this mod in regular manner and now it seems to be working OK!
If I may ask for few things, either to add features or to explain me how to implement in SMF 1.1.11...
(sorry if it is already ask and answered)
1. Awards menu - on a menu button bar, next to Forum, Search, Help, Admin. One can click on it and see all awards.
2. To assign an award, instead of going to Admin > Awards, to use above Awards page
3. Under avatar in post, I have text only "Awards", and I would like to have a small pic there.
Thanks
OK I tried to install it again and see if after the installation I can just edit the subs.php file. Which I did, but still was getting this error
Unknown column 'aw.award_name' in 'field list'
File: /home/xecoflc/public_html/forum/Sources/Load.php
Line: 1098
Every time I click on any link about Forums, or whos online, etc. Glad that when I uninstall it, everything works again
@ droganto - thats the same problem I had. Check part "EDIT: AAAAA WAIT!" in my post, two prior to yours.
Quote from: Babalui on May 28, 2010, 05:25:40 AM
@ droganto - thats the same problem I had. Check part "EDIT: AAAAA WAIT!" in my post, two prior to yours.
Thank you Babalui, but I dont know what to edit or where. I opened the install.php and opened the phpadmin but idk what Im looking. I dose a lot of awards_columns and awards_members_colums inside the install.php but Im not sure what IM doing. If you can help that will be great. Thanks in advance. btw Im using R2 C3, so idk if is the same process you did.
Yeah, but no :)
I mean, I've spotted those columns in install.php, but I did nothing with it - as I did not know how to. Instead, I've opened up pahpmyadmin to directly examine my SMF DB. There, I saw three "award" tables, but their filed names did not fully match names in install.php. I've come to conclusion that they were leftovers from previous award mods, as I experimented with many.
I guess that install.php from this mod was not able to "adjust" tables - they had the same names as used by other award mod or previous version of this one? Dunno for sure.
So, in phpmyadmin, I've deleted those three tables. You can do that when you click DB name (yourweb_forumsmf on attached pic), and then click X mark in row of that table (terminology is "drop table").
After I have deleted (dropped) all three tables, I went back to smf forum admin page > packages and run the regular install, and then it was OK.
Pic below shows what a table look like at this moment, that is correctly. It differed slightly before.
As for phpmyadmin usage, it is simple, but how to access it depends on your hosting provider....
yes... if you had previously installed another awards mod, the left-over tables will cause this one to fail because the database portion can not create new tables with the correct columns. (That has been noted several times in this thread)
Bubalui I do appreciate the answer and the time you took to make the picture and everything. Maybe since I upgraded from 1.1.11 I have some awards table. So I will check that now in my DB. Yes I do use CPanel so is the same process that you explained.
Kindred, Im new into this editing databases and php files. Im the type of user that need things stupid proof, Just install and forget about it. Sorry it was mentioned befored in the thread and I didnt take the time to read the 91 pages of post. To get an answer that someone like Bubalui did it in few post.
Bubalui.
OFFICIALLY THANK YOU
I did find the 3 awards databases and delete them. Then installed the Mod again and links are working. Thanks a lot for your help. Now I just need to find a webiste where I can download badges and awards so I dont have to make them all :-\
Is theres anyway to create some menu for the members to click and check the decals of the members whithout going to each individual member. Like from the Top menu or maybe a SimplePortal Code to add the lates Awards, that way members get interested and want to gain awards. Or maybe in the list of members that show something like a link or the awards.
But Thinking about it, it will be easy if someone can make me a PHP Code or HTML Code that I can add into my SimplePortal so I can put it in the first page. Like I said maybe the latest awards. Then people Click on a link and see the type of awards and who has them.
OK I started adding the Awards to my server, and everything was looking fine until I click under Award List then I noticed this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg89.imageshack.us%2Fimg89%2F2250%2Fawardshot.jpg&hash=9ed0f0a1a4b271a9c76f22342eba2f127e5f9f17) (http://img89.imageshack.us/i/awardshot.jpg/)
At the beginning my icons were Big 200 and Mini 40, so I though it was the size of the icon so I resized it to Big 125 and Mini 20. And that didnt make a difference
Glad to help on above :)
Quote from: droganto on May 29, 2010, 01:03:42 AM
Is theres anyway to create some menu for the members to click and check the decals of the members whithout going to each individual member. Like from the Top menu or maybe a SimplePortal Code to add the lates Awards, that way members get interested and want to gain awards. Or maybe in the list of members that show something like a link or the awards.
Thats what I've also asked for. Currently, I've managed to add Awards button according to this instructions:
http://docs.simplemachines.org/index.php?topic=564.0
But, it is linked to awards management, and if you are not admin, you cannot see all awards. I would really like to be able to show a full ist of all existing awards on forum and members that have them.
Yes Im an admin. Let me see the doc you sent. Did you also have the view issue I posted :(
What doc?
No, no such graph issue with this mod, but had similar with something else. I guess it is theme related. What smf/theme do you have?
Quote from: droganto on May 29, 2010, 03:17:30 AM
OK I started adding the Awards to my server, and everything was looking fine until I click under Award List then I noticed this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg89.imageshack.us%2Fimg89%2F2250%2Fawardshot.jpg&hash=9ed0f0a1a4b271a9c76f22342eba2f127e5f9f17) (http://img89.imageshack.us/i/awardshot.jpg/)
At the beginning my icons were Big 200 and Mini 40, so I though it was the size of the icon so I resized it to Big 125 and Mini 20. And that didnt make a difference
Two pages previous to this page a fix was posted in reply #1765. Did you do that edit?
(Please read most recent pages when asking questions. It keeps repeated fixed problems from clogging up the support topic and makes it easier for everyone to find answers to their problems.)
Updated. v2.2.1 now available
hello,
Just a quick one, teh "awards" tab is not showing up in my admin > config drop down. I am in as an adminsitrator, so i have full permissions and have taken teh forum to the default theme, but i still cant access the awards admin. Any help or pointer in which files i should be looking at to fix?
Thx
SMF 2.0RC3
T
Quote from: twotonetwo on May 29, 2010, 04:04:16 PM
hello,
Just a quick one, teh "awards" tab is not showing up in my admin > config drop down. I am in as an adminsitrator, so i have full permissions and have taken teh forum to the default theme, but i still cant access the awards admin. Any help or pointer in which files i should be looking at to fix?
Thx
SMF 2.0RC3
T
Make sure the edit to Admin.php was made when installing. Other than that, all I can suggest is to make sure that you have the 'manage_awards' permission as well.
also... English (as opposed to English UTF8) and the default theme may make a difference
Quote from: twotonetwo on May 29, 2010, 04:04:16 PM
hello,
Just a quick one, teh "awards" tab is not showing up in my admin > config drop down. I am in as an adminsitrator, so i have full permissions and have taken teh forum to the default theme, but i still cant access the awards admin. Any help or pointer in which files i should be looking at to fix?
Thx
SMF 2.0RC3
T
I have the articles mode installed and for some reason the members award menu appears as a submenu of the Articles Configuration menu.
Another thing, there is still a problem when trying to update an existing award.
Hi, few questions:
1) Any ideas how to display a page with all available awards on forum to any member/guest? I've added a Menu button "Awards", but it is accessible only to admin.
2) I would like to add awards in member profile, below all text (sigpic), in full, like on Awards Main page.
@Babalui, I don't do custom edits for people. I may however consider such things for future features.
JB: Any place to get some good sample awards (I'm probably not going to use the big picture, just mini for most awards...
Quote from: Kcmartz on May 29, 2010, 10:18:07 PM
JB: Any place to get some good sample awards (I'm probably not going to use the big picture, just mini for most awards...
Depends on what kind of awards you want. Google is your friend.
I googled:
"forum awards"
"mini awards"
"mini forum awards"
"awards"
"awards for forums"
"free forum awards"
I even asked on vark.com:
"What is a good website to get free awards for forums, in the profile"
http://www.google.com/search?q=forum+award+images
found one to test, and works.
Is there a way to make a membergroup to be able to assign awards, I have two members whom I can trust besides me right now that I would like to allow to assign awards, not create/edit/delete them, just assign them to other members. If not, in a future version, that would be nice!
EDIT:
JB: I still haven't recieved a activation email from your website, and it has been a monthish....
Quote from: Kcmartz on May 29, 2010, 10:37:13 PM
found one to test, and works.
Is there a way to make a membergroup to be able to assign awards, I have two members whom I can trust besides me right now that I would like to allow to assign awards, not create/edit/delete them, just assign them to other members. If not, in a future version, that would be nice!
Create a membergroup and assign it the 'manage_awards' permission. But they must also be able to view the admin control panel as well.
Quote from: Kcmartz on May 29, 2010, 10:37:13 PM
EDIT:
JB: I still haven't recieved a activation email from your website, and it has been a monthish....
What email did you use and which website?
jblaze.net, only one of yours I know about
I think my
[email protected] one, but my webmaster email never recieves emails half of time, could you change it to
[email protected]?
Yes, I only want them to see awards, not whole admin, but for now I did that;...
It's activated now. You can change it yourself ;)
Thanks JB! (most questions for this will be directed there, is that ok?)
Made a topic in Member Awards board, needs a moderator review...
Done.
Thanks! (looked at my reply?)
Parse error: syntax error, unexpected ',' in /home/w139901/public_html/forum/Sources/Subs.php on line 3177
can someone see what is wrong with the code? when I have parsed and modified it manual.
I've attached the Subs.php if someone would like to take a look and help
Quote from: JBlaze on May 29, 2010, 04:31:19 PM
Quote from: twotonetwo on May 29, 2010, 04:04:16 PM
hello,
Just a quick one, teh "awards" tab is not showing up in my admin > config drop down. I am in as an adminsitrator, so i have full permissions and have taken teh forum to the default theme, but i still cant access the awards admin. Any help or pointer in which files i should be looking at to fix?
Thx
SMF 2.0RC3
T
Make sure the edit to Admin.php was made when installing. Other than that, all I can suggest is to make sure that you have the 'manage_awards' permission as well.
thx i did have to manualy edit the admin php, could you tell me if this is correct please. (i only have 3 mods installed, TP, karma description and gallery lite if that helps)
),),
),
'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']), ), ),
'title' => $txt['layout_controls'],
'layout' => array(
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(
I am logged in as admin so have full permissions. Thx for the quick response and a great mod ;)
okey I'm getting this to work now :) only one thing, is the awards suppose to show up on the profile? or do I have to goto the profile and click on "awards" to see the members profile.
@twotonetwo, check this out: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
@enCyde, awards are shown in the profile section under 'showAwards' and 'listAwards'. There are links in the main profile menu.
Quote from: Babalui on May 29, 2010, 09:51:47 AM
What doc?
No, no such graph issue with this mod, but had similar with something else. I guess it is theme related. What smf/theme do you have?
Im Sorry I meant to say the link you sent.
Quote from: C4G-TK on May 29, 2010, 12:42:09 PM
Quote from: droganto on May 29, 2010, 03:17:30 AM
OK I started adding the Awards to my server, and everything was looking fine until I click under Award List then I noticed this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg89.imageshack.us%2Fimg89%2F2250%2Fawardshot.jpg&hash=9ed0f0a1a4b271a9c76f22342eba2f127e5f9f17) (http://img89.imageshack.us/i/awardshot.jpg/)
At the beginning my icons were Big 200 and Mini 40, so I though it was the size of the icon so I resized it to Big 125 and Mini 20. And that didnt make a difference
Two pages previous to this page a fix was posted in reply #1765. Did you do that edit?
(Please read most recent pages when asking questions. It keeps repeated fixed problems from clogging up the support topic and makes it easier for everyone to find answers to their problems.)
Thank you C4. Sorry for not searching, but when I see 91 pages of posting is not very appealing to me to read all of them until I find the possible solution. But next time at least I will go backtrack 4 pages at least but that doesnt guarantee that I will find the solution immediately if the answer is in page 47 :-) But Thanks I will read that reply now.
Help Please
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F21d4rck.png&hash=3ec26a709300f2ff63b8d42232a4464d38bb89b0)
Help want to look so
And change this in the display.template.php
Search:
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';
and down
//Emepezamos el mostraje de premios
$resulty = db_query("SELECT it.gameName, it.filename, it.ID_AWARD FROM {$db_prefix}awards_members AS adw, {$db_prefix}awards AS it WHERE adw.ID_MEMBER = {$message['member']['id']} AND adw.ID_AWARD = it.ID_AWARD LIMIT 24", __FILE__, __LINE__);
if(mysql_num_rows($resulty) > 0){
$miramoss = mysql_query("SELECT * FROM {$db_prefix}awards_members WHERE ID_MEMBER='".$message['member']['id']."'");
$total_premios = mysql_num_rows($miramoss);
echo'
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbleft.gif" alt="left" width="8" height="18" /></td>
<td style="background: rgb(116, 169, 192) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(255, 255, 255); font-size: 11px; font-weight: bold;"><div align="center">Mi colección de premios - Actualmente tengo '.$total_premios.' premio(s)</div></td>
<td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbright.gif" width="8" height="18" /></td>
</tr>
</tbody>
</table>';
while ($roww = mysql_fetch_assoc($resulty)){
echo "<center><img src='{$boardurl}/awards/{$roww['filename']}'title='{$roww['gameName']}'></center>";
}
}
//Fin del mostraje de premios.
From there I went to the folder display.php sources and put
Search:
mysql_free_result($request);
$posters = array_unique($posters);
and add below
// Load the members awards
$awards_request = db_query("
SELECT pab.filename, pam.ID_MEMBER
FROM {$db_prefix}awards_members AS pam
LEFT JOIN {$db_prefix}awards AS pab ON (pab.ID_AWARD = pam.ID_AWARD)
WHERE pam.ID_MEMBER IN (" . implode(', ', $posters) . ")
AND pam.favorite = 1
GROUP BY pam.ID_MEMBER", __FILE__, __LINE__);
$context['awards'] = array();
while ($row = mysql_fetch_assoc($awards_request))
$context['awards'][$row['ID_MEMBER']] = '<img src="' . dirname($scripturl) . '/' . (empty($modSettings['pa_awardsDir']) ? '' : $modSettings['pa_awardsDir'] . '/') . $row['filename'] . '" alt="' . $row['filename'] . '" />';
mysql_free_result($awards_request);
and went to see a post and I came
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND adw.ID_AWARD = it.ID_AWARD LIMIT 24' at line 1
Archivo: /home/a9526973/public_html/foros/Sources/Load.php(1776) : eval()'d code
Línea: 522
@thejoker.emerson, I don't do custom edits for people. This software is provided as-is.
Quote from: JBlaze on May 30, 2010, 03:56:59 PM
@thejoker.emerson, I don't do custom edits for people. This software is provided as-is.
Please help me
This is a great mod, but I had a quick question.
Is there a way to remove the "Awards" and black line frame around the actual awards under the avatar?
Also, the edit/delete/add new etc icons only seem to be appearing in the default "curve" theme for RC3; any work around for that?
Thanks!
-JD
Quote from: Jdracup on May 30, 2010, 06:24:46 PM
This is a great mod, but I had a quick question.
Is there a way to remove the "Awards" and black line frame around the actual awards under the avatar?
Remove the <fieldset> element.
Quote from: Jdracup on May 30, 2010, 06:24:46 PM
Also, the edit/delete/add new etc icons only seem to be appearing in the default "curve" theme for RC3; any work around for that?
Make sure that you either install the mod on custom themes, or copy the ./Themes/default/images/awards directory to your custom theme.
Forgive me - total noob; remove <fieldset> element from what file?
Thanks for the prompt reply.
Quote from: Jdracup on May 30, 2010, 07:13:28 PM
Forgive me - total noob; remove <fieldset> element from what file?
Thanks for the prompt reply.
./Themes/default/Display.template.php
That did it, thank you very much. If I may offer a suggestion - some of my awards look different (awards in different categories have a different appearance); I think it would be a neat feature if you could set it up somehow so that under the avatar, awards in category A are shown next to/under each other before awards from category B are shown.
Quote from: JBlaze on May 29, 2010, 05:38:45 PM
@Babalui, I don't do custom edits for people. I may however consider such things for future features.
Roger on that, but I was wandering if you have any or anybody else may have ideas on that.
It would be very nice to to display a page with all available awards on forum to any member/guest.
Thanks for your effort!
JB...when trying to add awards it brings a "You must select a file to upload!" even when "Don't have a small image? Leave this empty, and it will use the regular one:" says I don't need one.
And oh...there's a weird image showing in the "assign" tab.
Quote from: Dismal Shadow on May 30, 2010, 09:17:43 PM
JB...when trying to add awards it brings a "You must select a file to upload!" even when "Don't have a small image? Leave this empty, and it will use the regular one:" says I don't need one.
And oh...there's a weird image showing in the "assign" tab.
Hmm.. I can't seem to reproduce that. I'll keep trying tonight. As for the image, that's where the award image is supposed to show. Could be an error when there are no awards to assign.
the error also apply when you try to edit and replace a new images.
Quote from: Dismal Shadow on May 31, 2010, 12:17:11 AM
the error also apply when you try to edit and replace a new images.
Just for kicks, make sure /awards is CHMOD properly. Could be a problem that the file is not getting uploaded.
Quote from: JBlaze on May 31, 2010, 12:22:45 AM
Quote from: Dismal Shadow on May 31, 2010, 12:17:11 AM
the error also apply when you try to edit and replace a new images.
Just for kicks, make sure /awards is CHMOD properly. Could be a problem that the file is not getting uploaded.
It's on 755 :)
Should i try 777?
Nevermind. That error is fixed with the fix I provided here: http://www.jblaze.net/forum/member-awards/errors-logs.-97.msg260.html#msg260
what a great mod, awesome!
thanks and God bless you.
can someone please share what tables need to be removed from other awards mod???
Tables added: {db_prefix}awards_members, {db_prefix}awards, {db_prefix}awards_categories
$modSettings added: awards_dir, awards_favorites, awards_in_post
what it actually means is, if you have ever tried to install an awards mod before this one, you should go remove ANY tables with the term awards in them
What do I have to edit and how to add row for textfields Award Title and Award Description, when Adding or Editing awards?
EDIT:
Managed to figure it out by myself :)
In ManageAwards.template.php
find:
<input type="text" name="award_name" id="award_name" value="', $context['award']['award_name'], '" size="30" />
replace with:
<TEXTAREA NAME="award_name" ROWS=2 COLS=40>', $context['award']['award_name'], '</TEXTAREA>
find:
<input type="text" name="description" id="description" value="', $context['award']['description'], '" size="30" />
replace with:
<TEXTAREA NAME="description" ROWS=4 COLS=40>', $context['award']['description'], '</TEXTAREA>
In above, adjust values for ROWS COLS up to your liking.
So far, it is working OK, but I would be grateful for confirmation.
Quote from: luismanson on May 31, 2010, 03:40:25 PM
can someone please share what tables need to be removed from other awards mod???
Inside the database I removed all the ones that said smf_awards. If I remember right I think they are three. If you want just rename them backup_smf_awards_
And then install the mod. Than worked for me
thanks! :D
Another question...
On uploading/editing award, if someone does not upload small pic, a large one will be used instead.
Any way to change this? I would prefer a small predefined image (like, blank_award.gif) or none at all.
Cos, when I want to edit an award, I have to upload BOTH pics each time. An if I forget to upload small one...
whenever i try to assign an award to a person, it gives me error that, "please select the award and/or member"
even though i am selecting the award and the right member?
any help?
@ukhalik2, http://www.jblaze.net/forum/member-awards/errors-logs.-97.msg260.html#msg260
"You must select a member and/or award in order to continue!"
and http://www.jblaze.net/forum/member-awards/errors-logs.-97.msg260.html#msg260 Doesn't fix that O.o
Quote from: hayu on June 05, 2010, 01:26:31 PM
"You must select a member and/or award in order to continue!"
and http://www.jblaze.net/forum/member-awards/errors-logs.-97.msg260.html#msg260 Doesn't fix that O.o
Make sure that the ./awards directory is writable.
Ok, my shoutbox mod cause this problem in this award modification.
Is about this code in the index.template.php file:
<script type="text/javascript"><!-- // --><![CDATA[
window.onload=function(){loadChat();};
var shoutFile="',$shoutFile,'";
var yshout_php="',$scriptpath,'?yshout',$args,'";
// ]]></script>
If anyone know how to fix this problem I will be very gratefull.
Quote from: ukhalik2 on June 04, 2010, 01:47:01 PM
whenever i try to assign an award to a person, it gives me error that, "please select the award and/or member"
even though i am selecting the award and the right member?
any help?
I had the same error. Solved by:
Type correct DISPLAY NAME (not username) and hit ENTER (do not click on Submit button).
Awesome mod, maybe you can help me with something here. For some reason, one of the pages comes out a bit funny:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Flh4.ggpht.com%2F_bfRfDMPKEKM%2FTAyQIzm0I0I%2FAAAAAAAAAh8%2FKGG1ViCt7dU%2FCapture.jpg&hash=9ff5847333ff9114b074fcb612ae3350a46d7311)
I was thinking maybe it has something to do with TinyPortal, but there were no errors on installation and all the other pages look fine. Any ideas? Thanks!
Also as an idea (not a request) - a little icon linking to "all awards" that the user has like by where the contact icons are in the user bar in posts would be a cool addition. :)
seems to be very beautiful but you think it work in my smf 2 rc1 ?
edi67, you need to upgrade to RC3 ASAP for security reasons.
Ehm, how to display awards in members profile page? Small pics under avatar, and the full table under signature?
I've tried to copy/paste/edit code from Display.template.php but I'm messing it up....
I DID IT!
Small step for monkey, but huge for donkey :)
Clicking on award icon (yellow medal on pic) will show you all medals for that member.
Clicking on any medal (ribbon on pic) will show you detailed info for that medal.
In file Profile.template.php find:
// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '
</td>
</tr>';
replace with:
// Now print the second column where the members avatar/text is shown.
echo '
<td class="windowbg" valign="middle" align="center" width="150">
', $context['member']['avatar']['image'], '<br /><br />
', $context['member']['blurb'], '<br /><br />';
// Show their awards?
echo '<br /><br />
<legend>', $txt['awards'], '</legend>';
// Awards!
echo '
<a href="', $scripturl, '?action=profile;sa=showAwards;u=', $context['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>', '<br /><br />', ' ';
// Couldn't limit it in Load.php, so let's do it here.
foreach ($context['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</td>
</tr>';
Works OK on my forum, but I'm not an expert, so I cannot gurantee if above code is secure, safe, stable or anything positive, apart from what you can see on the pic.
Any idea how to sort awards?
Like, I would prefer for a certain award(s) to be in first position(s).
Quote from: phxmaximus on December 06, 2009, 01:20:39 AM
Hello Friends,
I installed the new version but I still cannot select more than one favorite. Any ideas?
I upgraded my forums from 1.1.10 to 1.1.11. There were some errors with the awards in the log, so I removed the mod. Then I manually reinstalled it with the package I downloaded, because the package manager was giving errors with a couple of files. Everything is working perfect and error free, except for the above issue.
Thanks!
I have read the thread since being taken over by Jblaze and didn't notice if anything in the version for those of us not using 2.0RC3 has been corrected. If I missed it, I apologize. That said, now that we have support again, is there any information that could help me with the issue noted here? Thank you for your time.
Also, is it possible to rotate which awards are displayed on the forums?
Quote from: phxmaximus on June 13, 2010, 03:38:10 PM
Also, is it possible to rotate which awards are displayed on the forums?
It will rotate depending on how many you select as showable and how many you select as favorite.
Example...
If you allow 6 awards (in admin) to show in the post profile and you don't have any marked as favorite (in profile), the images will keep changing (if you have more than 6 awards obviously)
If you have three marked as favorites, it will ALWAYS show those three, but the other three will change each time the screen refreshes (if you have more than 6 awards obviously.
I hope this makes sense to you.
Yeah makes sense. Then I need help with my other issue, that of only being able to select one favorite.
Quick and nice question... if I want to give an award to everyone in my forum, do I have to enter name by name?
or... how can I do it?
(Sorry if this question was already answered...).
@venex, you will have to do it user by user. There is no mass-award function. It is planned for 3.0 though.
Wow...
I hope it comes out early...
Other question... can the "mass-award function" be possible at least with a sql query? sorry for the annoyance lol (my forum's birthday is in 1 hour and I want to give an award to everyone).
Any ideas why I can't select more than 1 favorite using smf 1.1.11 and the latest version compatible with that? Thanks
I wanna make donation for this mod, any paypal link ?
Quote from: anakmacan on June 17, 2010, 08:20:36 AM
I wanna make donation for this mod, any paypal link ?
Yes, you can find a donation button on the front page of http://www.jblaze.net/
Quote from: phxmaximus on June 16, 2010, 11:27:37 PM
Any ideas why I can't select more than 1 favorite using smf 1.1.11 and the latest version compatible with that? Thanks
I haven't had the time or interest to look into 1.1.x bugs, but I may take a stab at it sometime next week. Right now, I have alot of projects to work on.
Can we get integration for this into the Ultimate Profiles Mod, it would be nice if you go to a members profile, if thumbnails or something automaticly showed up in the Media (Gallery) Table on the ultimate profile.
SMF 2.0RC3 Please
Quote from: Tearstar on June 17, 2010, 07:20:36 PM
Can we get integration for this into the Ultimate Profiles Mod, it would be nice if you go to a members profile, if thumbnails or something automaticly showed up in the Media (Gallery) Table on the ultimate profile.
SMF 2.0RC3 Please
You could try parsing the Member Award mod and under the Display.template file, try finding the code that enters the Awards into the post.
Then, go into Profile.template and work on adding the code into the area of where you want it in the Ultimate Profile code.
Not everyone uses both mods and people use all different sizes of images. The way in which JBlaze has kept the mod with the Awards a person has listed in their profile is really nice because not everyone uses the same size images. But, what I described above should work with maybe a little tweak here or there.
Another plan for 3.0 is to have compatibility with other profile mods, such as Ultimate Profile.
Can't wait for v3!
I can't wait either, so I will look into the manual edits, now that I have a better idea of what I'm looking for . . . I don't KNOW php, but I can hack up code :)
Quote from: rm -rf on June 17, 2010, 01:17:42 PM
Quote from: anakmacan on June 17, 2010, 08:20:36 AM
I wanna make donation for this mod, any paypal link ?
Yes, you can find a donation button on the front page of http://www.jblaze.net/
Quote from: phxmaximus on June 16, 2010, 11:27:37 PM
Any ideas why I can't select more than 1 favorite using smf 1.1.11 and the latest version compatible with that? Thanks
I haven't had the time or interest to look into 1.1.x bugs, but I may take a stab at it sometime next week. Right now, I have alot of projects to work on.
Meh don't worry about it, it isn't that big of a deal. I should just upgrade to RC3 once and for all anyway. I have just been nervous about it because my site is a popular gaming site and I have quite a number of mods and I am afraid of screwing everything up.
Ok I went ahead and upgraded my site to RC3, and now want to install member awards again. My question is, since I am using a custom theme, do I need to do the install manually, like I had to under 1.1.11? Thanks!
1) Install the mod as you normally would.
2) Parse the mod and manually do the edits for the Theme files in your Custom Theme.
(If your Custom Theme does not have those files, you will not have to do the edits because it will pull the info from the default files)
3) Add any directories and images into the correct location on your Custom Theme. (Look at bottom of the page where you parse the mod)
Should then work fine.
Awesome thanks!
language files...
Whelp I have played around and I can't seem to get it out of the gallery drop down menu, without getting a syntax error. So here is the code currently, which works perfectly fine. But, if possible, I would like to get the awards menu where it belongs. Any help would be greatly appreciated.
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
),
),
),
),
'gallery' => array(
'title' => $txt['smfgallery_admin'],
'permission' => array('smfgallery_manage'),
'areas' => array(
'gallery' => array(
'label' => $txt['smfgallery_admin'],
'file' => 'Gallery2.php',
'function' => 'GalleryMain',
'custom_url' => $scripturl . '?action=admin;area=gallery;sa=adminset;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(
'adminset' => array($txt['gallery_text_settings']),
'admincat' => array($txt['gallery_form_managecats']),
'approvelist' => array($txt['gallery_form_approveimages']),
'commentlist' => array($txt['gallery_form_approvecomments']),
'filespace' => array($txt['gallery_filespace']),
'catpermlist' => array($txt['gallery_text_catpermlist2']),
'batchftp' => array($txt['gallery_ftp']),
),
),
'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']),
),
),
),
),
'layout' => array(
Also, when I go to view my profile to see the testing award I have there, the following error shows up in the error log;
http://www.clan-phx.com/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: /home/clanphxc/public_html/cache/lang_ManageAwards_english-utf8_darkmodern_203.php (awards_list sub template - eval?)
Line: 3104
Any thoughts? Thanks for your help!
1- please do not serial post. If no one has responded, then modify your last post rather than posting a new one.
2- if you are using a UTF-8 language, that may be your problem. Most mods only install in "english" (which is different from english utf-8, as has been said about 20,000 times in nearly every mod thread)
lastly - you are missing TWO closing ), in the gallery portion. Every opening ( must have a closing ), in an array.
ok. I don't know what " I may be using UTF-8" means, but thanks anyway.
I have a request for V3... I remember that long ago when I used this in my 1.1.11, or so (can't remember lol), the MOD had the ability to be displayed either in the profile next to every post or below the signature.. I had it below the signature... and now, I have to have it in the "mini-profile". I would really want to have it where I had it ;D... if u could make that possible in the next version, I would really appreciated.
Quote from: venex on June 22, 2010, 01:01:01 AM
I have a request for V3... I remember that long ago when I used this in my 1.1.11, or so (can't remember lol), the MOD had the ability to be displayed either in the profile next to every post or below the signature.. I had it below the signature... and now, I have to have it in the "mini-profile". I would really want to have it where I had it ;D... if u could make that possible in the next version, I would really appreciated.
That's already planned with "Custom fields".
Quote from: rm -rf on June 22, 2010, 01:10:50 AM
Quote from: venex on June 22, 2010, 01:01:01 AM
I have a request for V3... I remember that long ago when I used this in my 1.1.11, or so (can't remember lol), the MOD had the ability to be displayed either in the profile next to every post or below the signature.. I had it below the signature... and now, I have to have it in the "mini-profile". I would really want to have it where I had it ;D... if u could make that possible in the next version, I would really appreciated.
That's already planned with "Custom fields".
You mean that it will be for next version or that I can do that with the available version?
Sorry, didn't quite get it lol.
Sorry, it's planned for 3.0 ;)
Quote from: rm -rf on June 22, 2010, 01:19:32 AM
Sorry, it's planned for 3.0 ;)
Thanks a lot!
Can't wait to see it ;D!!!!!
You can keep track of the development at http://www.jblaze.net/
Hi, I installed this for SMF2RC3, but when I try to look into my profile it gives...
Unknown column 'aw.award_name' in 'field list'
File: .../Sources/Load.php
Line: 1023
Help?
Quote from: chinaren on June 22, 2010, 06:54:05 PM
Hi, I installed this for SMF2RC3, but when I try to look into my profile it gives...
Unknown column 'aw.award_name' in 'field list'
File: .../Sources/Load.php
Line: 1023
Help?
Make sure that the tables were installed correctly in your database. Did you install this mod manually or via the package manager?
Quote from: rm -rf on June 22, 2010, 07:11:16 PM
Make sure that the tables were installed correctly in your database. Did you install this mod manually or via the package manager?
Mmm, I'll go and check, see what tables I have. I installed it mostly by the PM, but had to manually do two files, er... Load and Subs I think.
This is an upgrade of a 1.1.11 forum that had this installed previously.
I put the member awards like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F1746ee.png&hash=379c7ac33f582a95ab07df22a000de38a1f7f86d)
How I can do?
Dilber MC Theme
Version 1.1.11
I really am interested in this mod and it seems that it would make things much more convenient. However I get my first test failed message and just wanted to know if I should just not use this or is there a way to make it work manually? The files that fail the tests are ./Sources/Admin.php and ./Sources/Subs.php. Thanks in advance.
simply go into the file that fails, after installing the mod, and edit the file manually to include the changes that failed. Most of the time it's because a mod "already" modified the Source files, and the installer cannot find the place it needs to make the change.
Hope that helps
I'm not sure of the reasoning, but when you have both the Google Route Map installed and Member Awards, the Member Awards is broken in the Admin area where you assign the award. I'm going to post this in that thread as well in order for people to be aware.
I uninstalled GoogleRoute Map and Member Awards miraculously worked on both of my forums, but with GRMap installed both did not work. However, both of the versions of the GRMap worked on both forums while both were installed.
Like I said, the problem comes into play when you type in the member name of the person you are assigning the award. It doesn't work. I double clicked inside the text box and the info that I had typed for the 2nd Destination popped up, so I'm going to assume that this is where the conflict takes place. Somehow they cross wires there perhaps???
Am using RC3
Awesome mod, thanks!
Quote from: Tearstar on July 05, 2010, 05:34:57 PM
simply go into the file that fails, after installing the mod, and edit the file manually to include the changes that failed. Most of the time it's because a mod "already" modified the Source files, and the installer cannot find the place it needs to make the change.
Hope that helps
Yes it does. I am in the middle of the "Add before" in admin.php and I found where it is supposed to go but I can't tell exactly where to add it. There are a couple of .)'s just before the layout=> section.
Okay so I added the lines of code and it may need some slight tweaking. I don't see the options for this anywhere. I can't seem to issue awards or set anything up but I can now click "show awards" and awards list. Let me know if you need me to attach anything.
Quote from: C4G-TK on July 06, 2010, 12:15:19 AM
I'm not sure of the reasoning, but when you have both the Google Route Map installed and Member Awards, the Member Awards is broken in the Admin area where you assign the award. I'm going to post this in that thread as well in order for people to be aware.
I uninstalled this mod and Member Awards miraculously worked on both of my forums, but with GRMap installed both did not work. However, both of the versions of the GRMap worked on both forums.
Like I said, the problem comes into play when you type in the member name of the person you are assigning the award. It doesn't work. I double clicked inside the text box and the info that I had typed for the 2nd Destination popped up, so I'm going to assume that this is where the conflict takes place. Somehow they cross wires there perhaps???
Am using RC3
Could be a javascript conflict.
Hey guys, I got that issue fixed it was just a couple characters off. I was missing the ,) or what ever so I fixed that and then realized that I accidentally put in the gallery drop down menu lol. Which is fine I can fix it later. I was wondering though, how I would go about changing the word "awards" to "Titles". If you could post that for me that would be great. BTW great mod.
Just change it in the language strings.
What file would that be in? And what line should I be looking for?
try Modification.english.php
look for:
$txt['awards'] = 'Awards';
and change the Awards to Titles
Awesome thanks I'm tryin it now. :-)
EDIT: Nope that didn't work.
You may need to clewr your forum cache.
Admin -> Maintenance -> Routine -> Clesr cache
Okay so then edit the php file and then do the clear cache feature. Could you please specify which "Awards" I should change.
$txt['awards'] = 'Awards';
Should I be chamging the one in the brackets or should I change the other one or both?
Quote from: tRu3_sKiTz0 on July 09, 2010, 11:59:37 AM
Okay so then edit the php file and then do the clear cache feature. Could you please specify which "Awards" I should change.
$txt['awards'] = 'Awards';
Should I be chamging the one in the brackets or should I change the other one or both?
The second one!
Then, clear cache as it might still be pulling the previous info...or sometimes just hit Control F5 works, too to clear your browser cache.
Translations for 1.1.11:
- Portuguese_brazilian
- Portuguese_pt
### Awards (Prêmios)
global $scripturl;
// Used by: Errors (Erros)
$txt['cannot_manage_awards'] = 'Você não tem permissão para modificar Prêmios.';
// Used by: Help (Ajuda)
$helptxt['awards'] = 'Esta área permite manipular, assinar e categorizar os prêmios, assim como mudar algumas opções.';
// Used by: ManagePermissions (Editar permissões)
$txt['permissionname_manage_awards'] = 'Editar Prêmios';
$txt['permissionhelp_manage_awards'] = 'Você pode permitir usuários adicionarem, editarem e assinarem novos prêmios.';
// Used by: Multiple Areas (Múltiplas Áreas)
$txt['awards'] = 'Prêmios';
$txt['awards_view_album'] = 'Ver álbum de prêmios do membro.';
$txt['awards_main'] = 'Principal';
$txt['awards_modify'] = 'Adicionar/Modificar';
$txt['awards_assign'] = 'Assinar';
$txt['awards_categories'] = 'Categorias';
$txt['awards_settings'] = 'Opções';
$txt['whoallow_awards'] = 'Gerenciar <a href="' . $scripturl . '?action=awards">Prêmios</a>.';
// Used by: Profile (Perfil)
$txt['showAwards'] = 'Mostrar Prêmios';
$txt['members'] = 'Membros';
### End Awards
Hugs.
Hey all,
I'm attempting to install on 2.0 RC3 and the issue I have is that I'm not seeing an "Awards" or "Manage Awards" link in the Admin section. I've tried accessing the url directly (?action=admin;area=awards) and it just refreshes the page.
I had to do some manual install steps and I've went through line by line to ensure I did all the right changes. I'm obviously missing something but I can't pinpoint it. The awards links and sections seem to be showing up fine but I can't modify or change them. I'm logged in as an administrator so I didn't think I'd need to check permissions. Help?
I'm using the default theme.
EDIT: Here is a screenshot of the first errors I got on install. I went ahead with install and verified what I could using the manual install instructions.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.skitch.com%2F20100724-xs9efgyaxxr55q7ckrss56at6w.png&hash=50fcc98003d20324a0a759b925ae3fcc71ca9258)
Your mod is great, JBlaze. Thank you!
I don't want to let members see the "Awards List" (option at profile menu). What should I do?
I wanna make it apear in Ultimate Profile, what I do?
Hugs.
Quote from: Arkhan Holycross on August 01, 2010, 10:50:34 PM
I wanna make it apear in Ultimate Profile, what I do?
Hugs.
http://www.simplemachines.org/community/index.php?topic=114701.msg2670861#msg2670861
Quote from: blow on July 28, 2010, 11:54:45 AM
Your mod is great, JBlaze. Thank you!
I don't want to let members see the "Awards List" (option at profile menu). What should I do?
http://www.simplemachines.org/community/index.php?topic=114701.msg2648649#msg2648649
@bwana, looks like you may need to do a manual install of the mod. Have a read of this: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Quote from: JBlaze on August 05, 2010, 01:43:05 PM
Quote from: blow on July 28, 2010, 11:54:45 AM
Your mod is great, JBlaze. Thank you!
I don't want to let members see the "Awards List" (option at profile menu). What should I do?
http://www.simplemachines.org/community/index.php?topic=114701.msg2648649#msg2648649
The funny thing is that you have made a custom edit five posts below that one (http://www.simplemachines.org/community/index.php?topic=114701.msg2648863#msg2648863).
But there is no problem, I made it by myself. Thanks anyway.
Quote from: JBlaze on August 05, 2010, 01:43:05 PM
Quote from: Arkhan Holycross on August 01, 2010, 10:50:34 PM
I wanna make it apear in Ultimate Profile, what I do?
Hugs.
http://www.simplemachines.org/community/index.php?topic=114701.msg2670861#msg2670861
Do you have a release date for version 3.0?
Hugs.
Quote from: blow on August 05, 2010, 05:00:58 PM
The funny thing is that you have made a custom edit five posts below that one (http://www.simplemachines.org/community/index.php?topic=114701.msg2648863#msg2648863).
But there is no problem, I made it by myself. Thanks anyway.
I wouldn't call that a custom edit... Anyways, that's my decision.
Quote from: Arkhan Holycross on August 06, 2010, 01:22:12 AM
Do you have a release date for version 3.0?
Hugs.
Not yet.
This is really nice mod. :D
Nice mod! I'll use it!
How do I center the 'Awards' word at profile? Now it's on the left side
http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146852;image
Can someone post a link to some good award images. I would like to find a pack for this if there is one.
there is no "pack" all of us have either created our own of found common domain images
Okay well I have been googling for a while now and I am not having much luck. Could you tell where I might find these "common domain images"?
http://lmgtfy.com/?q=forum+award+badges
Thanks, I didn't use the word badges. I appreciate the help and I know how to use google. As I said, I just didn't use the word "badges". But thanks all the same.
BTW nothing there was of any use to me since I don't run an rpg forum nor a do I support any sort of Nazi propaganda.
Okay, this is for anyone who is looking for award images. Instead of posting videos illustrating how to use google, here is a link to a particular VB section that contains many useful images. You have to sign up to download them but it is worth it since it is a fairly extensive collection of posts containing images.
link deleted by author: check below for image pack link
but are those images free and in the public domain?
As I said, you have to sign up to download them but they are free. Well the ones that I have looked at so far.
Also another site I found for images and graphics is:
Link deleted by author, check below for image packs
Quote from: tRu3_sKiTz0 on August 08, 2010, 06:20:36 PM
Can someone post a link to some good award images. I would like to find a pack for this if there is one.
I will browse the net put them in a ZIP (with attribution to author, and if they are allowed to be redistributed) and maybe make some. Would that help?
That would AWESOME! I just don't have the time to make them myself. Thank you so much!
No problem, starting now...
Here is version 1! (next one might contain twice as many!)
Kcmartz you are NOT suppose to redistribute the modified mods in any ways, shapes or form.
It isn't a modified mod. IMAGES for the mod. That is all!
Quote from: giovannie_1 on August 08, 2010, 04:59:33 PM
Nice mod! I'll use it!
How do I center the 'Awards' word at profile? Now it's on the left side
http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146852;image
Anyone?
Thank you so much Kcmartz!!! Members like you are the reason I chose to use this forum software.
@givannie_1 try this mod. It will center all use info.
http://custom.simplemachines.org/mods/index.php?mod=1780
Quote from: tRu3_sKiTz0 on August 09, 2010, 09:55:15 AM
Thank you so much Kcmartz!!! Members like you are the reason I chose to use this forum software.
@givannie_1 try this mod. It will center all use info.
http://custom.simplemachines.org/mods/index.php?mod=1780
Yep, I have that mod installed already. Just the word 'Awards' is left..., I want that word in center :)
http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146852;image Look please (at the word 'Awards') :)
Hmmm, I wish I could help. Unfortunately I am a noob also so that was the only thing I could think of. I am not using any awards yet but if I come across anything, I will post it.
Okay, I deleted the links that I posted above because they were not as reliable as I thought but a close friend of mine helped me to find about 2500 differebt images that may be used for awards. Here are the links for both of the packs. 2 links, 2500 images.
http://hotfile.com/dl/60714484/c2dae73/hgicn.part1.rar.html
and
http://hotfile.com/dl/60714487/2fe2880/hgicn.part2.rar.html?expire=1
I don't know if these will be there permanently so grab them now while you can!
Many thanks to John Doe of AIOLab
Quote from: JBlaze on August 05, 2010, 01:43:05 PM
@bwana, looks like you may need to do a manual install of the mod. Have a read of this: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
OK, I went over my changes again and it seems I misplaced one of the manual changes. It seems to be working now.
Feature request: Please let us assign awards to Membergroups. Thanks. :)
I installed the mod with no issues. I can add awards with no issues. However when I go to add another catagory or give a member an awards or something I get an HTTP 501/HTTP 505 error when the page tries to load. Any clue?
Is there anywhere that still has the 2.0 RC1.2 version?
Also, is this the correct place to ask for support about this mod?
Quote from: XaiXo on August 18, 2010, 02:35:44 PM
Is there anywhere that still has the 2.0 RC1.2 version?
Also, is this the correct place to ask for support about this mod?
All support for this mod is being redirected to http://www.jblaze.net :)
Ah, marvellous. Thanks!
hi i installed this but am getting this when going into settings
Database Error :
Unknown column 'a.id_category' in 'on clause'
File: /home/appfuzio/public_html/Sources/ManageAwards.php
Line: 99
Edit: Fixxed
...and does your database actually have the awards tables? if you had a different or previous awards mod, I suspect that your database tables were not created correctly.
that was it !!!!
i had simple awards installed on RC2 so i had to uninstall it manually then reinstall this mod and all is working great now
thank you!!!!!
Quote from: richie80 on August 16, 2010, 12:29:41 PM
I installed the mod with no issues. I can add awards with no issues. However when I go to add another catagory or give a member an awards or something I get an HTTP 501/HTTP 505 error when the page tries to load. Any clue?
im also getting this error message to. Any help please
Ok...I'm using 2.0rc3 and the latest release of this mod. After hours and hours of trying to get it to work last night, I wound up scrapping all my mods and replacing a lot of the .php's with fresh ones. Package manager install doesn't work for me, says I need to provide FTP information when I try, but then won't connect to the server, so I manually installed. Now, I can assign awards to people like I should, but the awards don't show on posts or on user profiles, and when I click on show awards or awards list in profiles, it says I'm not allowed to access this section...looked through this thread and can't find anything more than a couple mentions of this issue with no fix, any ideas?
Problem with my 2.0rc3
Excecute
Modification /sources/admin.php
add after Text Failed
the codes screen shot below!
I DIDNT KNW EDITING, MY FIRST EDIT FORUM BLANKED, ANY WAY TO SOLVE THIS PROBLEM INSTED OF EDITING!
just re-copy the forum files from the large upgrade pack and overwrite your current files. This will remove the mod(s) and have a clean forum set up
Did me uninstall my modifications in large upgrading time
WTF happened with JBlaze?
JBlaze has decided to leave the team and the community. Someone will be along shortly to take over his mods.
abhi,
It's hard to help when we have absolutely no idea what you even tried to say, let alone what your problem is. Please indicate your problem in a detailed manner, using clear English
Dear tell me what is the benefit of using
"Large Upgrade"?
Me already running a forum! And any problem in overwriting that?
using the large upgrade package will overwrite all of your forum files, thus resetting the FILES back to the standard installation. Your data like posts and members will remain untouched. This is the easiest way to clear out errors due to a mod, especially if you don't have any other mods.
Thank you very much . . Dear
Me deleted upgrade.php
hello, nice mod, only have one issue that I am aware of at this time. I can not gibe anyone an award. When I select the award, type in a user name, cause there is no look up, or anything for member names there, I hit save, and it tells me I have to either select an award or select a member. Should I see a member list or something? cause I do not. The award graphic shows, just does not seem to recognize it. I am running rc3 with Wisper grey template from Shortie from GM that uses all the default stuff real nice. Install went very smooth with no errors. Just can not assign awards. I can edit them, make categories and all, just can not assign them. Please advise. Thanks.
Mods list attached.
edit - if I switch back to my default temp, all works well, so my problem is that it does not recognize my user names when typed in in my Graphics mayhem template. Is there an easy fix i can put in that template or something?
as with any mod and smf 1.1.x, you will have to manually apply the mod changes to that theme's template files
Thanks for the quick response. Since this installed smoothly, I do not know much about coding, can you tell me what I need to add to which files to make it recognize the members names since that seems to be the only part that does bot work?
sorry to be a noob at this, but thank you for your help.
it sounds like one of the js files needs to be moved into your custom theme directory.
I get the same issue. I tried putting award.js in my custom theme folder but still didn't work. I managed to assign it once but since then i've not been able to.
Well, I have tried by putting any js file in many of my template folders with no progress. the file structure is different with my add on theme. I can use it just fine if I go back to default temp, make corrections, then go back to my add on temp. All works then. I can just not get it to add members in my add on temp admin page. I can just do it this way since it will not work for me the other way. I wish I knew more about code, I would probably get it working if i did. Thanks anyways.
I get the following error when i try to assign an award now.
QuoteMethod Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
that sounds like a security misconfiguration on your host...
i get this error:
Parse error: syntax error, unexpected '[' in /www/99k.org/s/i/s/siskoplanet/htdocs/SMF/Sources/Subs.php on line 3868
the "[" is in line 3868 is :
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups', 'profile_title_own', 'profile_title_any'));
help? :(
looks like jblaze.com has gone.
ok,i got it to work, but now when i install:
Fatal error: require(): Failed opening required '/www/99k.org/s/i/s/siskoplanet/htdocs/SMF/Packages/temp/install.php' (include_path='.:/usr/lib/php') in /www/99k.org/s/i/s/siskoplanet/htdocs/SMF/Sources/Packages.php on line 957
this happens to me on every mod!
paying 5$ if someone fixes that to me!
Create a "temp" directory on "Packages" folder and CHMOD to 777
installed works fine here,however can anyone please tell how to remove the border around the awards in the postbit,I have looked in the awards template but found no border to remove
use firebug, find out what css tag is causing it and change it.
Thanks for reply I tried but found no reference to awards
do you know how to use firebug? right click on the award image, choose inspect element, and find the CSS that causes the border.
yeah I understand that bit,it tells me the reference is in index.css?rc3.I have looked in the index.css for the default style I am using and can't find it.I assumed this was the correct css file.Thanks again for reply
I suspect it may be a little higher in the order or a default that needs to be turned off (i.e. image links have a border by default, so the img a or a img needs a border: 0; added.
Just wanted to make a note;
Anyone using RC3 + EzPortal + Member Awards
It won't install if EzPortal goes in first; uninstall EzPortal, install Awards, and re-install EzPortal.
Just wanted to share, because it was driving me insane.
=)
Curious question:
Would it be at all possible, to use the Awards as a "key" to boards? Eg, if you don't have a selected award, you can't view a particular board.
It's probably difficult/not possible, but I figured I'd ask for curiosities sake.
=)
it would definitely involve some coding...
Hi Kindred, :D
We have "lost control of Member Awards". :(
Without a "control area", we can't give or retract awards. ???
We have attached screen shots to show what is happening. ;)
Would it be best to un-install and re-install?
Thanks in advance. O:)
Be Well,
Cloud 8)
Sorry,SurvivorOfAbuse, I don't know... this isn't my mod and I don't even have it installed any more. I can make general suggestions, but I have no idea what could be wrong with your installation.
Quote from: Kindred on September 10, 2010, 11:41:35 AM
Sorry,SurvivorOfAbuse, I don't know... this isn't my mod and I don't even have it installed any more. I can make general suggestions, but I have no idea what could be wrong with your installation.
Kindred, :)
Thank you anyway, as I have learned it is always better to say "I don't know", O:)
than to um, guess or fake it. :o
I can wait. ;)
Be Well,
Cloud 8)
SurvivorOfAbuse, is there this code in your Admin.php?
'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']),
),
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
If no then add it...
Quote from: Bugo on September 10, 2010, 12:58:57 PM
SurvivorOfAbuse, is there this code in your Admin.php?
'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']),
),
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
If no then add it...
CRASHED :'(
See attached screen shots
What's next?
Thanks,
Cloud 8)
cloud.... that't not the place to add that code... the reason you got an error is that you added code which is intended to be part of the admin array into open code...
If you want support directly from JBlaze, then visit http://www.jblaze.net/forum/member-awards/
Quote from: Kindred on September 10, 2010, 07:34:51 PM
cloud.... that't not the place to add that code... the reason you got an error is that you added code which is intended to be part of the admin array into open code...
Kindred, :)
Is okay. ;) One of the things we do
before any changes are made, is to save admin.php as admin09-09-10.php. O:)
This creates a working copy with the date reference. ;D
Will rename admin09-09-10.php to admin.php and it will all be good again. ;D
Well, sort of. ???
Be Well,
Cloud 8)
Quote from: IrateZebra on September 11, 2010, 01:06:53 AM
If you want support directly from JBlaze, then visit http://www.jblaze.net/forum/member-awards/
IrateZebra, :)
Thank you so much for the link. :D
Will go there tomorrow morning, or is it tomorrow morning already ;D
Be Well and Walk In Beauty,
Cloud 8)
Hi,
I would like to display awards on memberlist. I've tried and failed. Any way to do this?
I'm using smf 1.1.11, but if you can make it work for 2.x, I'll be happy :)
thanks in advance!
it would actually be a moderate piece of coding, because you have to adjust the entire memberlist to have one (or more) additional columns
I've tried that. I used that mod to show avatars in memberlist, but I managed to show anything but awards :)
I've managed to insert awards into member profile, so I thought this one could be alike, but I keep messing it up.
Hello! I downloaded Awards mode for SMF 2 RC3 and it works great but i cant use latters like "āčšķļ" cuz i think it isnt utf-8. I went to phpMyAdmin and checked some on tables isnt utf8-general_ci i tried to change but some doesnt change... What to do?
If some one can help please pm me on skype please or reply here! Skype: arturs4093! Thanks!
hello.
i was installing this mod.. but i found this error line :
Unknown column 'aw.award_name' in 'field list'
File: /home/thesims/public_html/Sources/Load.php
Line: 1019
what is that mean?
please help :)
sounds like the database edits did not get completed. Did you have one of the other award mods installed previously? You will have to drop all of the aw.award tables and re-run the database edits for this mod.
Hello
I installed this MOD today member_awards_rc3_v2.2.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146856) about 30 minutes ago & no errors on the install
I added a member to an awards all good
but if i view this members profile like in the image url
http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146852;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146852;image)
I don't see the awards box like you can see in here.
what I do see is all members have a gold button that looks like a trophy next to the PM button that you can click on to see if
that member has any awards.
How do I change this so all members can see the award image i want to use in the members profile only that has been awarded
list of buttons?
maybe there is an option a can change but i just can't find anything
Admin -> Configuration -> Awards -> Settings -> Awards in post (set to number other than 0)
Nothing is changing
Awards Directory:
This is the directory where awards are stored - just the name without the trailing slash. [awards]
Favorite Award:
Check this if you want to allow users to have more than one favorite award. [tick or no tick] & i have tried both options
Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none. i have tried 0 1 & 2
changing any of the options doesn't change anything in the post member board
I could be wrong, but I think that this mod just shows a general link to the profile-awards section, not the actual award in the post... at least it did when I had it installed.
Quote from: Kindred on October 17, 2010, 08:49:35 AM
I could be wrong, but I think that this mod just shows a general link to the profile-awards section, not the actual award in the post... at least it did when I had it installed.
Under your profile menu on the left of this page you have a red manager image I see how it should look, that's how I want mine to work as well
_____________________________________________________________________________________________________________________
maybe this will help, just had a look at my logs and this error shows
http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=assign;step=2 (http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=assign;step=2)
2: Invalid argument supplied for foreach()
File: /home1/krajinal/public_html/aussierampage/smf/Sources/ManageAwards.php (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUxL2tyYWppbmFsL3B1YmxpY19odG1sL2F1c3NpZXJhbXBhZ2Uvc21mL1NvdXJjZXMvTWFuYWdlQXdhcmRzLnBocA==;line=446)
Line: 446
http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=modify (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;desc;filter=message;value=ODogVW5kZWZpbmVkIHZhcmlhYmxlOiBib2FyZGRpcg==)
8: Undefined variable: boarddir
File: /home1/krajinal/public_html/aussierampage/smf/Sources/ManageAwards.php (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUxL2tyYWppbmFsL3B1YmxpY19odG1sL2F1c3NpZXJhbXBhZ2Uvc21mL1NvdXJjZXMvTWFuYWdlQXdhcmRzLnBocA==;line=206)
Line: 206
http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=modify (http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=modify) 8: Undefined variable: boarddir File: /home1/krajinal/public_html/aussierampage/smf/Sources/ManageAwards.php (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUxL2tyYWppbmFsL3B1YmxpY19odG1sL2F1c3NpZXJhbXBhZ2Uvc21mL1NvdXJjZXMvTWFuYWdlQXdhcmRzLnBocA==;line=208)
Line: 208
http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=modify (http://www.aussierampage.com/smf/index.php?action=admin;area=awards;sa=modify)
8: Undefined variable: id_award
File: /home1/krajinal/public_html/aussierampage/smf/Sources/ManageAwards.php (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUxL2tyYWppbmFsL3B1YmxpY19odG1sL2F1c3NpZXJhbXBhZ2Uvc21mL1NvdXJjZXMvTWFuYWdlQXdhcmRzLnBocA==;line=212)
Line: 212
as this file ManageAwards.php is a part of the MOD I wouldn't think it isn't the problem
rather somewhere else is not right
I am aslo getting this error
File: /home1/krajinal/public_html/aussierampage/smf/Themes/default/Profile.template.php (http://www.aussierampage.com/smf/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUxL2tyYWppbmFsL3B1YmxpY19odG1sL2F1c3NpZXJhbXBhZ2Uvc21mL1RoZW1lcy9kZWZhdWx0L1Byb2ZpbGUudGVtcGxhdGUucGhw;line=3541)
Line: 3541
3528: // Check if there are any awards
3529: if (empty($context['categories']))
3530: echo '
3531: <p class="description>
3532: ', $txt['awards_error_no_badges'], '
3533: </p>';
3534: else
3535: {
3536: foreach($context['categories'] as $key => $category)
3537: {
3538: echo '
3539: <div class="title_bar">
3540: <h3 class="titlebg">
==>3541: <a href="', $category['view'], '">', $category['name'], '</a>
3542: </h3>
3543: </div>
3544: <table class="table_grid" width="100%">
3545: <thead>
3546: <tr class="catbg">
3547: <th scope="cols" class="smalltext" width="15%">', $txt['awards_image'], '</th>
3548: <th scope="cols" class="smalltext" width="15%">', $txt['awards_mini'], '</th>
3549: <th scope="cols" class="smalltext" width="25%">', $txt['awards_name'], '</th>
3550: <th scope="cols" class="smalltext" width="40%">', $txt['awards_description'], '</th>
3551: <th scope="cols" class="smalltext" width="5%"> </th>
3552: </tr>
3553: </thead>
3554: <tbody>';
3555:
3556: $which = false;
3557:
3558: foreach ($category['awards'] as $award)
3559: {
3560: $which = !$which;
When I have time tomorrow I think I should go over this MODs install step by step
until then any idea's would be good
reefie: i believe it is a Fieldset, search for that, fieldset in code not css
sorry but i don't know what you mean by a fieldset
do you mean look for the word fieldset in the coding of the php install
Not exactly, i dont know jb's code. it looks like one to me. (i do some web design in html :) )
@techno489, which version are you using and on what version of SMF?
You should not be getting those errors with 2.2.1.
I am using the mod member_awards_rc3_v2.2.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146856) with my forum 2.0 RC3
I found my error
I decided to uninstall and reinstall the mod & then do the error part of the install again
going over each file tree I found something I have never seen before & will look out for it
on every mod I install from now on.
NOW
All PHP installs said - Test successful
apart from Display.template.php
It only showed the one error and the rest of the tree was collapsed for that same file
what didn't show was the other errors in the rest of the Display.template.php
I expanded the rest of the Display.template.php tree and found this for the next 3 parts of the Display.template.php
Replace ./Themes/default/Display.template.php Test failed (Ignore Errors)
Replace ./Themes/default/Display.template.php Test failed (Ignore Errors)
Replace ./Themes/default/Display.template.php Test failed (Ignore Errors)
Why was the errors told to be Ignored?
I then did the all the Display.template.php changes my self & now the mod works perfect
Thankyou all for your support
Hello. I have a new question
not to important... it just looks ugly
In my image you will see there is white text (awards) How do I remove it?
and bring my image of (player of the month) up closer to the avatar.
click on the image to see it better
Doesn't matter, I found the fix for this my self
find this
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';
replace it with this
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<fieldset style="border: 0px solid black; padding: 0px;">
<legend></legend>';
I was looking over someones site (linked below) who uses this mod and I noticed soemthing weird with it.
http://www.asanctuary.net/ypyc/forum/index.php?topic=185.msg377#msg377
When you click the awards it, I believe, is mistaking award ID's for profile ID's and is trying to link to non existent profiles or soemthing. Best way to see what I see is click the above link then click on any one of the awards shown.
Quote from: MoreBloodWine on October 23, 2010, 05:47:06 PM
I was looking over someones site (linked below) who uses this mod and I noticed soemthing weird with it.
http://www.asanctuary.net/ypyc/forum/index.php?topic=185.msg377#msg377
When you click the awards it, I believe, is mistaking award ID's for profile ID's and is trying to link to non existent profiles or soemthing. Best way to see what I see is click the above link then click on any one of the awards shown.
What's funny is that they are using SMF Team badges as awards :o
Quote from: IrateZebra on October 23, 2010, 09:57:37 PM
Quote from: MoreBloodWine on October 23, 2010, 05:47:06 PM
I was looking over someones site (linked below) who uses this mod and I noticed soemthing weird with it.
http://www.asanctuary.net/ypyc/forum/index.php?topic=185.msg377#msg377
When you click the awards it, I believe, is mistaking award ID's for profile ID's and is trying to link to non existent profiles or soemthing. Best way to see what I see is click the above link then click on any one of the awards shown.
What's funny is that they are using SMF Team badges as awards :o
I saw that but I also check it out on another site using this mod and the same thing. It would appear SMF is mistaking award ID's for profile ID's so when you click an award you get a error message.
Edit: What's surprising is no one appears to have noticed this before.
I believe it is set up so that guests cannot view the users awards via profile. If you log into the forum, then you can view the awards.
hmmm, it works exactly how i would expect it to, i use this mode & if you read back a few posts
in this topic I had some errors with the install but all fixed & working now.
the awards image shows under the users name in the posts as it should and if i click on the award image
it takes me to the users profile as it should, so i can see what the awards are for
in more detail.
I don't see this is an error
I am running SMF 1.1.11 with Simple Protal 2.3.2. I used to have the Simple Awards system, but when I upgraded to 1.1.11 from 1.1.10, it stopped working and there has not been any additional mod changes for this version of SMF. Although RC2.0 has the ability to run this.
Let me get to the point.
With Simple Awards, when a user posted in the forums, all the images or awards would post under their avatar.
1) Does this system have that capability or does it do the same?
2) Does this mod fully install on its own without having to do any code changes, as I am not at all proficient with the .php coding.
Thanks for the prompt reply.
with 1, it would seem that it does
as for 2... that really depends on your system.
If you are running on a theme other than default, then you will have to manually install *ANY* mod... plus, depending on what other mods you have installed, the auto install may or may not work on all files.
I hope that it will. I will try it, well well well... I just found out that I can not uninstall the simple awards system because there is no uninstaller.... Hope the members awards will work without a conflict.....
Well I just tried to install it on 1.1.11, would not install because the system is incompatible with the version of SMF I am running
Quote from: emjan101 on October 25, 2010, 06:57:41 PM
I hope that it will. I will try it, well well well... I just found out that I can not uninstall the simple awards system because there is no uninstaller.... Hope the members awards will work without a conflict.....
There will be a conflict. The only way to uninstall that mod is to parse the install instructions from the mod site, then reverse them manually and remove the tables in the database via phpMyAdmin.
Quote from: emjan101 on October 25, 2010, 07:00:33 PM
Well I just tried to install it on 1.1.11, would not install because the system is incompatible with the version of SMF I am running
Member Awards works on all versions of 1.1.x, so you should not have a problem at all. What is the exact error you are receiving?
i got this error on my smf 2.0rc3...what should i do?
try using search
this question has been answered dozens of times in almost every mod thread. It means that you will have to manually install the mod in those locations.
I used search but couldn't find an answer to my question. I must be awfully dense so late in the evening and this is probably right in front of my face but how the hell do i remove members from an award?
Quote from: jeri on October 28, 2010, 11:19:25 PM
I used search but couldn't find an answer to my question. I must be awfully dense so late in the evening and this is probably right in front of my face but how the hell do i remove members from an award?
On the main Admin page, look for the "users" icon next to the award you want to remove from members. It's pretty self-explanitory from there.
! Updated for RC4 and 1.1.12
Quote from: IrateZebra on October 25, 2010, 10:00:45 PM
Quote from: emjan101 on October 25, 2010, 06:57:41 PM
I hope that it will. I will try it, well well well... I just found out that I can not uninstall the simple awards system because there is no uninstaller.... Hope the members awards will work without a conflict.....
There will be a conflict. The only way to uninstall that mod is to parse the install instructions from the mod site, then reverse them manually and remove the tables in the database via phpMyAdmin.
Quote from: emjan101 on October 25, 2010, 07:00:33 PM
Well I just tried to install it on 1.1.11, would not install because the system is incompatible with the version of SMF I am running
Member Awards works on all versions of 1.1.x, so you should not have a problem at all. What is the exact error you are receiving?
Now we are getting out of my expertise and well league here. I wish they would have just not skipped over the Sinmple award system for 1.1.11. It was a great mod and my members loved it, It's a shame that I can't use it now.
Is there an easy picture generator site that can produce the pictures for these awards?
Quote from: TheMortician4 on November 05, 2010, 02:08:45 PM
Quote from: IrateZebra on October 25, 2010, 10:00:45 PM
Quote from: emjan101 on October 25, 2010, 06:57:41 PM
I hope that it will. I will try it, well well well... I just found out that I can not uninstall the simple awards system because there is no uninstaller.... Hope the members awards will work without a conflict.....
There will be a conflict. The only way to uninstall that mod is to parse the install instructions from the mod site, then reverse them manually and remove the tables in the database via phpMyAdmin.
Quote from: emjan101 on October 25, 2010, 07:00:33 PM
Well I just tried to install it on 1.1.11, would not install because the system is incompatible with the version of SMF I am running
Member Awards works on all versions of 1.1.x, so you should not have a problem at all. What is the exact error you are receiving?
Now we are getting out of my expertise and well league here. I wish they would have just not skipped over the Sinmple award system for 1.1.11. It was a great mod and my members loved it, It's a shame that I can't use it now.
I am having a problem finding the parse instructions for the version I am running.Simple Award System 2.1. Any suggestions?
I have SMF 2.0 RC4 and MemberAwards 2.2.2
In my errorlog:
http://х.com/forum/index.php?action=profile;u=1089;area=listAwards
8: Undefined index: view
File: /home/х/public_html/forum/Themes/default/languages/ManageAwards.russian.php (awards_list sub template - eval?)
line: 3204
.
In file ManageAwards.russian.php no this line.
@sharks, have you tried Googling (http://www.google.com/search?q=awards+image+generator)?
@TheMortician4, this is Member Awards, not Simple Awards. Try posting in the proper support topic (http://www.simplemachines.org/community/index.php?topic=127054.0).
@Joker002, you will have to translate the language strings into your language. There are only English and English_UTF-8 strings packaged with the mod.
Quote from: IrateZebra on November 07, 2010, 03:31:19 PM
@sharks, have you tried Googling (http://www.google.com/search?q=awards+image+generator)?
@TheMortician4, this is Member Awards, not Simple Awards. Try posting in the proper support topic (http://www.simplemachines.org/community/index.php?topic=127054.0).
Understood, my initial post was an issue with Members awards, the response was about the conflict between the 2 mods. If I can not uninstall the Simple Awards, I can't run the Member Awards.... That was where that response came from, if you read back a bit. I need to find the parse instructions for that system to manually uninstall it (Simple Awards) since it jumped over 1.1.11, and went to 2.0. So there ar conflict issues that requires me to uninstall the Simple system in order to run the Member system.
. It has
@Joker002, you will have to translate the language strings into your language. There are only English and English_UTF-8 strings packaged with the mod.
Quote from: TheMortician4 on November 07, 2010, 03:57:12 PM
Quote from: IrateZebra on November 07, 2010, 03:31:19 PM
@TheMortician4, this is Member Awards, not Simple Awards. Try posting in the proper support topic (http://www.simplemachines.org/community/index.php?topic=127054.0).
Understood, my initial post was an issue with Members awards, the response was about the conflict between the 2 mods. If I can not uninstall the Simple Awards, I can't run the Member Awards.... That was where that response came from, if you read back a bit. I need to find the parse instructions for that system to manually uninstall it (Simple Awards) since it jumped over 1.1.11, and went to 2.0. So there ar conflict issues that requires me to uninstall the Simple system in order to run the Member system.
Ah, sorry.
To remove any trace of Simple Awards, you will have to drop any tables in the database using "awards" as a name. Then, make sure there is no remaining code in your forum's source files. Then you can go ahead and install Member Awards.
Quote from: IrateZebra on November 07, 2010, 04:27:56 PM
Quote from: TheMortician4 on November 07, 2010, 03:57:12 PM
Quote from: IrateZebra on November 07, 2010, 03:31:19 PM
@TheMortician4, this is Member Awards, not Simple Awards. Try posting in the proper support topic (http://www.simplemachines.org/community/index.php?topic=127054.0).
No problem...That is exactly what I am trying to do, previously a member suggested I look at the parse instructions and remove them individually. Well I went to find them and was unsuccessful. therein lies my dilemma.
If I can not remove the parses, then I am it a quandary... I am not a coder by the least bit of the term... I have dabbled, but not to the level that I would consider myself able to modify an SQL table let alone the php file without expecting a complete crash.
My luck and expertise has before this time proven my ability all too well. That is why I was hoping that there was an uninstaller for the system so that I could use the members awards system as I was the simple awards system. Just change the icons and the award types per say.
Where would I find any such tool, if it even exists? That would be the biggest set in the right direction for me, if you could help.
Thanks Irate
Understood, my initial post was an issue with Members awards, the response was about the conflict between the 2 mods. If I can not uninstall the Simple Awards, I can't run the Member Awards.... That was where that response came from, if you read back a bit. I need to find the parse instructions for that system to manually uninstall it (Simple Awards) since it jumped over 1.1.11, and went to 2.0. So there ar conflict issues that requires me to uninstall the Simple system in order to run the Member system.
Ah, sorry.
To remove any trace of Simple Awards, you will have to drop any tables in the database using "awards" as a name. Then, make sure there is no remaining code in your forum's source files. Then you can go ahead and install Member Awards.
@TheMortician4, your quoting is a bit off :P
Anyways, if you cannot parse it on the mod site, then there are a number of members who have package parsers on their site.
http://sleepycode.com/PackageParser/
http://resourcez.biz/PackageParser/
http://www.leaderless.net/PackageParser/
Just to name a few :)
Quote from: IrateZebra on November 07, 2010, 06:30:31 PM
@TheMortician4, your quoting is a bit off :P
Anyways, if you cannot parse it on the mod site, then there are a number of members who have package parsers on their site.
http://sleepycode.com/PackageParser/
http://resourcez.biz/PackageParser/
http://www.leaderless.net/PackageParser/
Just to name a few :)
Ahhhh, thus is why I have come for help. If I am a bit off there, just imagine the damage I could do to the site...!!! ;-)
Do either of these have the parser for the simple awards? offhand if you know I mean...
Thanks again Irate
Quote from: TheMortician4 on November 07, 2010, 06:42:35 PM
Quote from: IrateZebra on November 07, 2010, 06:30:31 PM
@TheMortician4, your quoting is a bit off :P
Anyways, if you cannot parse it on the mod site, then there are a number of members who have package parsers on their site.
http://sleepycode.com/PackageParser/
http://resourcez.biz/PackageParser/
http://www.leaderless.net/PackageParser/
Just to name a few :)
Ahhhh, thus is why I have come for help. If I am a bit off there, just imagine the damage I could do to the site...!!! ;-)
Do either of these have the parser for the simple awards? offhand if you know I mean...
Thanks again Irate
okay Irate I tried the first 2 parsers...
The First when gave me this message..
Warning: fopen(/home/sites/sleepycode.com/backend/temp/packageparser/AwardSystemdb.php): failed to open stream: No such file or directory in /home/sites/sleepycode.com/public_html/Forum/Sources/Subs-Package.php on line 2495 Warning: package_flush_cache(): some files are still not writable in /home/sites/sleepycode.com/public_html/Forum/Sources/Subs-Package.php on line 2499 parseArchive(): No package-info.xml in this mod! Is it corrupted?
The 2nd one said this:
Error: This package is not Uninstallable on SMF 1.1.11!
Am I out of luck here? Am I permanently stuck with this install that won't release? I originated with 1.1.9, upgraded to 1.1.10, went to 1.1.11, and when I tried to go to 1.1.12 from the admin > packages link, I got the invalid package error. So is this my problem, any ideas?
Hi there,
Is not working on 2.0 RC4 on the default theme
http://yfrog.com/myawardsp
whenever i click on the item, try the edit it, assign it to member or view members who has it
i get "501 method not implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
nvm i searched this topic and people mentioned it's the mod_security that my host has installed
i will contact them and ask
has anyone successfully overcame this problem?
@TheMortician4, here is the parse link (http://custom.simplemachines.org/mods/index.php?action=parse;mod=539;attach=123580;smf_version=1.1.10) for Simple Awards. Since there are only minor changes between 1.1.x versions, there should be no problem using the 1.1.10 instructions to uninstall this mod. Simply reverse the edits. As for dropping the tables in the database, using a program like phpMyAdmin can help. If you need help with it, let me know.
@vaesir, that error means that either the database was not updated for this mod, the tables not created, or there is a conflict with another mod like Simple Awards. Try uninstalling then reinstalling again.
IrateZebra
I have the language strings into my language.
http://x.com/forum/index.php?action=profile;u=701;area=listAwards
8: Undefined index: view
File: /home/x/public_html/forum/Themes/default/Profile.template.php
Line: 3204
I really need a mod like this but I have a couple of mods that might be affected by it. I have Ultimate Profile and Show additional member groups on profile. Do you think this will conflict with any of them?
Member Awards 2.2.2, Language: English, SMF: 2.0 RC4.
Add any award (to any user) and go to Profile » Profile Info » Awards List, then see in Error Log:
Quote
***/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: ***/www/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3165
Solution:Open Profile-View.php, find block:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
and replace with:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
Quote from: flutter on November 08, 2010, 09:16:39 AM
I really need a mod like this but I have a couple of mods that might be affected by it. I have Ultimate Profile and Show additional member groups on profile. Do you think this will conflict with any of them?
I don't believe it will conflict with either of these mods.
@Bugo, thanks.
thanks
Error Log: Undefined boarddir.
Solution:
ManageAwards.php, find block:
function AwardsModify()
{
global $smcFunc, $context, $scripturl, $txt, $modSettings, $settings;
and replace with:
function AwardsModify()
{
global $smcFunc, $context, $scripturl, $txt, $modSettings, $settings, $boarddir;
because $boarddir is use in this function.
v2.2.3 Released
! Minor bugfixes (thanks to Bugo (http://www.simplemachines.org/community/index.php?action=profile;u=229017))
Don't hurry. I was just beginning :)
ManageAwards.english.php has two same variables:
Line 5: $txt['awards_description']
and Line 76: $txt['awards_description']
After fresh install, if no one award, go to Profile » Awards List and see corrupted template (look at screenshot). Please fix it.
Quote from: Bugo on November 08, 2010, 09:57:43 AM
Member Awards 2.2.2, Language: English, SMF: 2.0 RC4.
Add any award (to any user) and go to Profile » Profile Info » Awards List, then see in Error Log:
Quote
***/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: ***/www/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3165
Solution:
Open Profile-View.php, find block:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
and replace with:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
This operation should be done 2 times (2 replaces).
This fails on my sources admin, the code I need to find to add isn't there. I can add my admin file here for you to see if you like
Valid XHTML Fix.
ManageAwards.template.php, find block:
<table class="table_grid" width="100%">
<thead>
<tr class="titlebg">
<th scope="col" class="smalltext" width="15%">', $txt['awards_image'], '</td>
<th scope="col" class="smalltext" width="15%">', $txt['awards_mini'], '</td>
<th scope="col" class="smalltext" width="25%">', $txt['awards_name'], '</td>
<th scope="col" class="smalltext" width="35%">', $txt['awards_description'], '</td>
<th scope="col" class="smalltext" width="10%">', $txt['awards_modify'], '</td>
</tr>
</thead>
<tbody>';
and replace all </td> with </th>...
Find this line:
<h3 class="catbg" valign="middle">
and replace with:
<h3 class="catbg">
because there is no attribute "valign"...
Quote from: flutter on November 08, 2010, 03:32:10 PM
This fails on my sources admin, the code I need to find to add isn't there. I can add my admin file here for you to see if you like
This text is not for you...
what text is not for me? I'm talking about when I try to install the mod with my package manager, it fails on the sources-admin. I would think that would mean I will not be able to administrate it, will it not?
Quote from: IrateZebra on November 07, 2010, 10:58:30 PM
@TheMortician4, here is the parse link (http://custom.simplemachines.org/mods/index.php?action=parse;mod=539;attach=123580;smf_version=1.1.10) for Simple Awards. Since there are only minor changes between 1.1.x versions, there should be no problem using the 1.1.10 instructions to uninstall this mod. Simply reverse the edits. As for dropping the tables in the database, using a program like phpMyAdmin can help. If you need help with it, let me know.
Thank you Irate, just got in and will do this first thing tomorrow. Again thank you for the support...!!!
@vaesir, that error means that either the database was not updated for this mod, the tables not created, or there is a conflict with another mod like Simple Awards. Try uninstalling then reinstalling again.
@TheMortician4, please learn how to use quotes?
Quote from: flutter on November 08, 2010, 04:18:22 PM
what text is not for me? I'm talking about when I try to install the mod with my package manager, it fails on the sources-admin. I would think that would mean I will not be able to administrate it, will it not?
You will have to manually edit that section if it is failing on install. It means that there is another mod conflicting, most likely with where the setting link is placed.
yes of course I have to edit it manually. The problem is, the code I am looking for isn't there and I don't know where I should put the code for the mod, you know the bit add after, add after what? This is why I asked about compatibility in the first place
This is what I have, it's impossible to add code in a post right now, there must be something wrong. Please don't anyone tell me how to add the tags, I've just tried several times
Where am I supposed to put the manual edits in if I can't find the sentence I've to add before or after. I'll attach the sources > admin
Flutter the admin.php file you uploaded was able to add the code fine.
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']),
),
),
Find
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum',
Add After
'manage_awards',
I was able to make the edits without having to worry about conflicts
here is your Admin.php file done for you
I'm using dreamweaver it it won't find it, I'll try in wordpad, thanks
Quote from: Kindred on November 08, 2010, 08:21:03 PM
@TheMortician4, please learn how to use quotes?
Explain
It's because you put your comment insdie the quote tags as well, you should only have had the quote inside them and your comment outside :D
Quote from: flutter on November 09, 2010, 11:08:32 AM
It's because you put your comment insdie the quote tags as well, you should only have had the quote inside them and your comment outside :D
Is this correct? I am entering after the "[/quote]"
yep, you got it. Hey don't think I was joining in there, it's just that I have this on notify to keep an eye on it and saw your post.
You know how to do it now and you learn something new every day ;D
Quote from: flutter on November 09, 2010, 12:15:17 PM
yep, you got it. Hey don't think I was joining in there, it's just that I have this on notify to keep an eye on it and saw your post.
You know how to do it now and you learn something new every day ;D
That is why I am here, to learn from those who know how to do what I hope to learn and someday be able to do as well....
I apologize for the erred quote earlier, I will be more cautious from here on. Thank you for the constructive criticism.....
I deleted my reply to you as it isn't valid anymore. Rather than deleting your post and redoing it below mine, you could have hit modify on your post, and just fixed it ;D
Quote from: flutter on November 09, 2010, 02:58:58 PM
I deleted my reply to you as it isn't valid anymore. Rather than deleting your post and redoing it below mine, you could have hit modify on your post, and just fixed it ;D
Sorry, caught my error immediately and wanted to correct it ASAP. Unfortunately the system was dragging so I figured I would start fresh
I've got this installed but I can't find anywhere to input the permissions so can't add any awards images and can't actually give anyone an award. If I go to profiles I can see the awards panel but can't do a thing with it. On the profile is show awards but in admin I have no options at all on this and can't add any images to awards nor apply them to anyone. I can see the awards folders on the server
Sorry, I found out the issue, the admin.php I was given to download with the code in place, didn't actually have the code in place.
Now the issue is that I can add the category, I can add the award and I can add the images, but when I try to assign it I'm getting an error message
error, you must select a user and an award
I have downloaded the most recent file with Bogo's edits in it. I'm on rc3 and wondering if those edits were more for rc4
QuoteInstall 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.
I've downloaded this to my forums, but I am getting messages like this in the "Main" section for this mod...
Unknown column 'a.id_category' in 'on clause'
File: /home/cievqdka/public_html/secondfleetonline.com/forum/Sources/ManageAwards.php
Line: 100
I also get the same thing for the "Assign" section (line 430) and on the "Categories" section (line 711).
I honestly have no clue what to do as I'm not exactly a pro when it comes to coding and such. I've tried this on a test forum that we run and it runs perfectly. It's just this particular forum (our main forum) and I don't know why (as I've already said).
Any help on this is greatly appreciated. I've also attached the ManageAwards.php file to the post in hopes of someone finding a solution for me.
Thanks a bunch,
Wayne
sounds like the database portion did not get run correctly.
Did you have another awards mod installed previously?
Nope. This is the first awards mod that I've tried altogether. :)
-Wayne
then you should be able to re-run the db instruction file included with the mod
Unfortunately, I do not see this particular file in the folder that it came in.
I found a little bug that should be fixed as soon as possible: The awards are not visible in the PM list. I am using SMF 1.1.11 and the awards do not appear under the members' avatar when viewing the list of PMs that i have received. Please fix that as it can be very confusing for all of my members and me as we suddenly find their awards missing and have to go check their profiles for anything that might be missing. Having the list of awards visible in the PM list makes it easier for me and my staff to make decisions when receiving PMs from members.
And please add a link in the top menu of the forum, where all members can see the list of available awards, and in the adjacent column, list the members who have won the respective award/s and a permission system to it, so that only certain forum membergroups are allowed to see that link in their menu.
Quote from: sharks on November 19, 2010, 11:49:04 AM
I found a little bug that should be fixed as soon as possible: The awards are not visible in the PM list. I am using SMF 1.1.11 and the awards do not appear under the members' avatar when viewing the list of PMs that i have received. Please fix that as it can be very confusing for all of my members and me as we suddenly find their awards missing and have to go check their profiles for anything that might be missing. Having the list of awards visible in the PM list makes it easier for me and my staff to make decisions when receiving PMs from members.
First question i can help with.
In themes/default/PersonalMessage.template.php
Find
// This shows the popular messaging icons.
Add BEFORE
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Or, you can check around the miniprofile options you can place it before any of the profile header options in this file. I just placed the code where it shows above their messenger icons.
And, if you're interested, I've made a modifications to the display in the sigantures, which adds a text above the block for members to view that specific member's entire Awards.
http://www.brawldomain.com/index.php?topic=5811.0 <--- check my sig in the first post
Personally, I felt awards in mini profiles made it too overcrowded. :) but, members have the option to also put their favorite award in their mini profile with another feature we have,.
Hello all. I'm running Member Awards 2.2.3 on SMF 2.0 RC4, with the setting Awards in Post set to 1.
If I have multiple awards, and none are set as a favorite - should the awards be displayed randomly under the users avatar in posts? They seem to be static and not changing (on different visits or page loads). We previously had this mod (not sure what version) running on SMF 1.1.11 and I *thought* the awards would randomly change, but I could be wrong.
If they are supposed to be randomized, can someone point me to the code location where that happens? And I'll check to make sure it installed correctly.
Thanks!
Thanks for this great mod.
I would like to know how to change the image file for an award that is already in used. Everytime I try to edit, select new image file and save it, there will always have "An Error Has Occurred!", "You must select a file to upload!". How can I fix this?
Quote from: DaleM on November 30, 2010, 01:46:34 PM
Hello all. I'm running Member Awards 2.2.3 on SMF 2.0 RC4, with the setting Awards in Post set to 1.
If I have multiple awards, and none are set as a favorite - should the awards be displayed randomly under the users avatar in posts? They seem to be static and not changing (on different visits or page loads). We previously had this mod (not sure what version) running on SMF 1.1.11 and I *thought* the awards would randomly change, but I could be wrong.
If they are supposed to be randomized, can someone point me to the code location where that happens? And I'll check to make sure it installed correctly.
Thanks!
From what i understand, if members select a favorite award, then that will be the only award to show, if they don't have a favorite selected, then it will always show the last reward that member received.
trying to install with rc4 2.0, so far there are subs.php and sources/admin.php errors :)
newbie here what do these mean? i also get this from smfshop mod even if its the 2.0rc4 mod, im using the "reference" theme from this site fwiw
very nice mod its just sad i keep running into these "now compatible with 2.0rc4" when it should be "now compatible with 2.0rc4 if you're good at coding" :( i have rc4 but yeah insta errors even when i dont have anything installed. .
Quote from: Blade_Runner on December 01, 2010, 07:19:10 AM
Thanks for this great mod.
I would like to know how to change the image file for an award that is already in used. Everytime I try to edit, select new image file and save it, there will always have "An Error Has Occurred!", "You must select a file to upload!". How can I fix this?
I am also having issues with this error too. I lost all my images when I updated the site from 3.0 to 4.0
Installing on SMF2RC3.
When I installed member_awards_v2.2.3.zip with the default core theme there was this one failed test:
QuoteFind[Select]
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
Replace[Select]
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
I then found the following line and added 'manage_awards' to the end:
Quote$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'sp_admin', 'sp_manage_settings', 'sp_manage_blocks', 'sp_manage_articles', 'sp_manage_pages', 'sp_manage_shoutbox', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
I can setup the new category and add the images etc but I cant assign without getting the following error:
QuoteMethod Not Implemented
GET to /rc3/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The awards werent showing in the default core theme so I changed the theme to curve and the awards appear on the assigned profile. But I am still constantly getting this GET error everytime I assign or try to delete a category no matter what theme I use. I also receive the GET error on the awards Main menu when I click the Add/Modify icons for Edit, Assign or Members.
Any suggestions anyone? Would love to have this working with the core and the curve without these fatal errors.
To simplify this I have now installed this mod to rc4. The same subs.php fail and an admin.php fail showed up. I manually edited exactly as shown and everything works perfectly in rc4.
Except, the same Get error shows up everytime I click assign or try to delete a category or when I click the Add/Modify icons on the main menu for Edit, Assign or Members.
I read here that its a server side problem yet my host says that its a file problem and isnt interested.
Besides this error the mod is working perfectly. Is there any way whatsoever that I can prevent this error arising?
Quote from: Bugo on November 08, 2010, 03:27:40 PM
Quote from: Bugo on November 08, 2010, 09:57:43 AM
Member Awards 2.2.2, Language: English, SMF: 2.0 RC4.
Add any award (to any user) and go to Profile » Profile Info » Awards List, then see in Error Log:
Quote
***/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
File: ***/www/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3165
Solution:
Open Profile-View.php, find block:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
and replace with:
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
This operation should be done 2 times (2 replaces).
I was getting the same error with the most recent version of the mod on RC4. Every time I went into the Awards List inside a person's profile, I got the error. I went to do this fix and the first edit for it was updated in the package, but the second time you do it, it was like the previous version, so I went ahead and only did it once. It worked like a charm. If this is a fix for everyone, I think it should be included in the package the next go around. Otherwise, this error really fills up your log quick when people are looking at a new award you posted.
Thanks for that C4G-TK.
Sadly it doesnt seem to make any difference for me at all for either rc3 or rc4. The same as you found the first one already had the replacement and I replaced the second.
As a bodge, if I cant get this solved, how do I prevent the linking of the award in the users profile? Like you say this error really fills up the log quick when people are clicking on a new award thats been posted to someone.
Hello,
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on 1.1.12. Thanks in advance. :>
hi i have installed this with only one error
i had to make this edit manually in the subs.php
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
but it is like the mod is not even installed i have no reference to it anywhere in my admin/settings
can someone help please i just upgraded to RC4 ad really want an awards mod
thanks
ok finally got it to show in settings however i get this now '
An Error Has Occurred!
Unable to load the 'main' template.
what the hell is going on i mean i had no errors during install and it seems like it isn't installing
where do i see this awards tab? im trying to look for it and i dont see it in the main admin
please help, i can attach files if whoever needs it to see why i cant see the "manage awards" tab in admin, everything installed and did the correct edits already
First of all, please don't bump within 24 hours. Please wait that long before you post again, or just edit your post.
Second: What edits did you do? and yes can you provide some screenshots?
Quote from: Zeruda on December 20, 2010, 03:28:52 PM
Hello,
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on SMF1.1.12. Thanks in advance. :>
I'm just bumping my question- I hope I waiting long enough. I searched through the thread and not finding a solution (maybe I'm seeing wrong).
Quote from: sattninja on December 26, 2010, 08:26:30 PM
ok finally got it to show in settings however i get this now '
An Error Has Occurred!
Unable to load the 'main' template.
what the hell is going on i mean i had no errors during install and it seems like it isn't installing
can someone tell me how to fix this please !!!!
im trying to install this mod on 2.0 RC4 but i got this error.
Quote7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
any help please? thanks..
requires manual installation on that file.
how will i do that sir?
Hi I'm a beginner with SMF and I'm wondering how do I install these mods?
I would be so happy if someone depots cos I really want awards for my forum!
Thanks ;)
elguapo,
use FTP + text editor or your site's cpanel file editor
do the edits as listed in the link that was also displayed along with the error.
My LG Cookie Fresh,
use the package manager.
http://docs.simplemachines.org/index.php?topic=93
I have installed it successfully,.. :)
where i can find images for it?
Quote
My LG Cookie Fresh,
use the package manager.
http://docs.simplemachines.org/index.php?topic=93
Thank you very much!
Can't wait till my PC is back so I an use!
I find a big bug on this mode :(
Im using Persian language and my members user name or shown name are persian but this mode cant select these members. we can just select english usernames !!!!!!
how can I fix this big bug?
running flawlessly, now does anyone know where to get images for this?
Quote from: eyo on January 14, 2011, 08:20:47 AM
running flawlessly, now does anyone know where to get images for this?
http://www.google.com/images?hl=en&source=imghp&q=free+trophy+icons
no one support this mode?
Quote from: Zeruda on December 20, 2010, 03:28:52 PM
Hello,
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on SMF1.1.12. Thanks in advance. :>
bumping. solution anyone?
Quote from: Zeruda on January 15, 2011, 12:26:56 PM
Quote from: Zeruda on December 20, 2010, 03:28:52 PM
Hello,
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on SMF1.1.12. Thanks in advance. :>
bumping. solution anyone?
It's been answered in multiple places in this topic. Do a search.
Installed without errors. RC4
Award list it's ok, but can't see my award on posts.
Version: Member Awards v2.2.3
SMF: 2.0 RC4
Any ideas? ???
cant see awards in admin at all. what function should i call for this since users dont need to see the actual tabs for this?
Quote from: Gorgsus on January 16, 2011, 09:32:18 PM
Installed without errors. RC4
Award list it's ok, but can't see my award on posts.
Version: Member Awards v2.2.3
SMF: 2.0 RC4
Any ideas? ???
Solved!! Was a ./Themes/default/Display.template.php error during installation :P
ok i would like to add a fetcher to this if somebody can help
hover the small award image to view the large award image i use
<table align="left"><tr>
<TD>Hover</TD></tr>
<td><div id="bfbc">
<a class="small" href="#nogo" title="small image"><img src="http://icthus-777.com/customicons/steam.png" title="small image"/>
<img class="large" src="http://www.site-jump.com/banners/mw2_1/steam_statimage.php?p={INPUT}&s=mw2_1
" title="large image" /></a>
</div></tr>
</table>
with some css like
#bfbc {width:32px; height:32px; background-color:transparent;}
#bfbc a.small, #bfbc a.small:visited { display:block; width:32px; height:32px; text-decoration:none; background:transparent; top:0; left:0; border:0;}
#bfbc a img {border:0;}
#bfbc a.small:hover {text-decoration:none; background-color:transparent; color:#fff;}
#bfbc a .large {display:block; position:absolute; width:0; height:0; border:0; top:0; left:0;}
#bfbc a.small:hover .large {display:block; position:relative; top: -50px; left:75px; width:auto; height:auto; }
in a custom profile field
could this be done in this mod to
Thanks for this great mod. My forum get the following error every time a member view their award in the profile section. How can I fix this?
------------------------------------
http://modcarclub.com/forums/index.php?action=profile;area=listAwards;u=68
8: Undefined index: view
File: /home/xxx/public_html/modcarclub.com/forums/Themes/default/Profile.template.php
Line: 3157
Quote from: JBlaze on January 15, 2011, 12:38:37 PM
Quote from: Zeruda on January 15, 2011, 12:26:56 PM
Quote from: Zeruda on December 20, 2010, 03:28:52 PM
Hello,
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on SMF1.1.12. Thanks in advance. :>
bumping. solution anyone?
It's been answered in multiple places in this topic. Do a search.
I have searching all pages and did not find the answer. I found the suggestion for a display but now how to. Please help or direct me to a post? :)
I have this mod installed, and I have some awards added, with both large and small images, but when I select an award and a member to assign the award to, I get this error "You must select a member and/or award in order to continue!" What is causing this and how do I correct it?
I am using 1.1.12 smf version and I got a problem with using award system. Wherever I add an award to a member it shows it 2 times. For example if someone has 4 different awards and another member only 2, then it will show 4 in total but the same ones. Can you help me to solve this problem, I guess there is some bug.
I am using RC2 4 and I am using Fuzzy theme.
I can't assign an award. I installed this mod and I got this message.
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I tried manually installing the mod but still got the same problem..
I am not sure if this is caused by the errors I got after installing simplead mod.
I would like to know if it is also possible to remove a frame around awards?
Yeah done.
I still got 1 more question.
I installed the " Member Awards" mod ( http://custom.simplemachines.org/mods/index.php?mod=475)
and realized that there're no "Awards" in Configuration ( it show in the SS of the mods in the website ) then i soon also realize that during the installation of the mods , Add Before ./Sources/Admin.php) ( test failed ) and Replace ./Sources/Subs.php ( Test failed ) . Therefore, i went to settle it. Unfortunately after i solve the error , i still unable to see the "award" in the configuration . Did something goes wrong? I suspect the Sources Admin.php file got problem.
http://custom.simplemachines.org/mods/index.php?action=parse
can i use this one and another one where its stars at the same time?
Quote from: champion0052 on January 30, 2011, 07:27:58 PM
can i use this one and another one where its stars at the same time?
Which other mod are you referring too?
Quote from: Zeruda on January 22, 2011, 05:32:58 PM
Love this mod. Very useful! I'm wondering how to have that modification to make the awards appear in signatures instead of miniprofile? I saw it on the Brawl site and like it much better. I have version 1.1.2 on SMF1.1.12. Thanks in advance. :>
I'm not uptight. :) You coulda sent me a PM and I'd show you how.
For smf 1 , Under Themes/default/Display.template.php
First remove the awards from mini profiles.
Find & REMOVE
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
And find & REMOVE
// Awards!
echo '
<a href="', $scripturl, '?action=profile;sa=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>';
Now, to add them below member's signatures, in the same file
Find
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
Add AFTER ( below the signature) OR BEFORE ( above the signature) <--- your prefernece
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<hr>
<fieldset>
<legend><a href="', $scripturl, '?action=profile;sa=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
I edited it so you can click the text in the awards bar to view all of that members awards.
Quote from: cloksin on January 25, 2011, 10:29:31 AM
I have this mod installed, and I have some awards added, with both large and small images, but when I select an award and a member to assign the award to, I get this error "You must select a member and/or award in order to continue!" What is causing this and how do I correct it?
http://www.simplemachines.org/community/index.php?topic=114701.msg2184203#msg2184203
^ Have no idea why the MOD author did it this way, but after you type the name, you have to click the name you typed, wait for the window with the matching name appear, then click on it.
the other mod im referring to is called Simple awards system its like Stars
hcfwesker, you are my hero. Many thanks for very helpfulness. It looks great!
Quote from: Zeruda on January 30, 2011, 09:39:43 PM
hcfwesker, you are my hero. Many thanks for very helpfulness. It looks great!
You're welcome. I just happened to randomly check this topic, so was glad when I could actually finally help someone :o
Also, the line in the code
<legend><a href="', $scripturl, '?action=profile;sa=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
View Awards/Achievements <--- change that to whatever you want the text to say that links to that members awards. that's just the text we use on our forum.
Quote from: hcfwesker on January 30, 2011, 07:58:39 PM
Quote from: cloksin on January 25, 2011, 10:29:31 AM
I have this mod installed, and I have some awards added, with both large and small images, but when I select an award and a member to assign the award to, I get this error "You must select a member and/or award in order to continue!" What is causing this and how do I correct it?
http://www.simplemachines.org/community/index.php?topic=114701.msg2184203#msg2184203
^ Have no idea why the MOD author did it this way, but after you type the name, you have to click the name you typed, wait for the window with the matching name appear, then click on it.
you are right
but it dose not show Persian usernames on my forum so I cant award them ! it just work with english usernames . do you have any suggestion for me ? how ca I fix this bug?
I still need help please... :(
I tried installing this mod in my forum
------------------------------------------
I am using RC2 4 and I am using Fuzzy theme.
I can't assign an award. I installed this mod and I got this message.
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I tried manually installing the mod but still got the same problem..
I am not sure if this is caused by the errors I got after installing simplead mod.
------------------------------------------
I tried to install the mod in a freshly installed smf and it is working fine.
just having the above mentioned problem in the my old forum..
Quote from: reinner on January 31, 2011, 02:18:03 AM
I still need help please... :(
I tried installing this mod in my forum
------------------------------------------
I am using RC2 4 and I am using Fuzzy theme.
I can't assign an award. I installed this mod and I got this message.
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I tried manually installing the mod but still got the same problem..
I am not sure if this is caused by the errors I got after installing simplead mod.
------------------------------------------
I tried to install the mod in a freshly installed smf and it is working fine.
just having the above mentioned problem in the my old forum..
Read the post DIRECTLY above yours ;)
hi hcfwesker,
Thanks for your reply.
I did tried to do the 'install.php' thing from the link just above my previous post.
I am still having the same problem.. Please bare with me since I am really new
with this..
i got this error message:
Quote
Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
and
Quote
http://www.ourbabybits.net/index.php?action=admin;area=awards;sa=assign;step=2
8: Undefined index: recipient_to
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
I never said anything about install.php ???
just install the MOD, and awards, when you type in a members name (must be their username (not display name) ; click the name, and a box below will appear to click that name. kinda like on vB forums, when typing in aname to send a PM nto.
Dumb, i know, but it's how it's set up.
oh.. I did every possible solution i read in the link given above my previous post.
now i really felt stupid.
About the mod. I installed it on a freshly installed and fresh theme that I am using for my
forum. It went smooth and I can add awards on it...
The problem that I have now is with my old forum which btw got lots of problem (errors)
after installing the simplead mod which sad to say got no support to fix my problems...
I tried adding my member username and the supposedly box that would display below
the name is not showing (the one with the small 'x')
Quote from: eric1234 on January 28, 2011, 11:45:48 AM
Yeah done.
I still got 1 more question.
I installed the " Member Awards" mod ( http://custom.simplemachines.org/mods/index.php?mod=475)
and realized that there're no "Awards" in Configuration ( it show in the SS of the mods in the website ) then i soon also realize that during the installation of the mods , Add Before ./Sources/Admin.php) ( test failed ) and Replace ./Sources/Subs.php ( Test failed ) . Therefore, i went to settle it. Unfortunately after i solve the error , i still unable to see the "award" in the configuration . Did something goes wrong? I suspect the Sources Admin.php file got problem.
http://custom.simplemachines.org/mods/index.php?action=parse
Can somebody help me please? Have a look at my admin.php file .
Quote from: reinner on January 31, 2011, 12:49:48 PM
oh.. I did every possible solution i read in the link given above my previous post.
now i really felt stupid.
About the mod. I installed it on a freshly installed and fresh theme that I am using for my
forum. It went smooth and I can add awards on it...
The problem that I have now is with my old forum which btw got lots of problem (errors)
after installing the simplead mod which sad to say got no support to fix my problems...
I tried adding my member username and the supposedly box that would display below
the name is not showing (the one with the small 'x')
I've attached an image below, to show you what to look for. the problem is, the member name pops up randomly (just make sure you're clicking the cursor on the box you're typing the name in. . I used a small name to show you, "Sora". What I did, was type "S", clicked the box, "So" clicked the box, "Sor" clicked the box, then "Sora" clicked the box. I tested all 4 different ways, and sometimes it showed one way, then wouldn't; while it showed another way, and vice versa. It's stupid and random. But, the persian names, you're most likely going to have a problem with it.
Quote from: eric1234 on January 28, 2011, 11:45:48 AM
Yeah done.
I still got 1 more question.
I installed the " Member Awards" mod ( http://custom.simplemachines.org/mods/index.php?mod=475)
and realized that there're no "Awards" in Configuration ( it show in the SS of the mods in the website ) then i soon also realize that during the installation of the mods , Add Before ./Sources/Admin.php) ( test failed ) and Replace ./Sources/Subs.php ( Test failed ) . Therefore, i went to settle it. Unfortunately after i solve the error , i still unable to see the "award" in the configuration . Did something goes wrong? I suspect the Sources Admin.php file got problem.
http://custom.simplemachines.org/mods/index.php?action=parse
If you made the edits correctly, this is most likely going to be a "languagaes" issue. Check your Server Settings under your AdminCP, make sure you default language is set to "English". If not, then let me know what it is set to.
hi hcfwesker,
Please see the attached
hey no one hear me ?!!!
reinner, are you using not english forum ? if yes sothis mod dose not work for you ! when your users have unicode name or user name they dont show on the members list of this mod .
no one reply to this bug!!!
Quote from: amiralib on February 01, 2011, 02:14:56 AM
hey no one hear me ?!!!
reinner, are you using not english forum ? if yes sothis mod dose not work for you ! when your users have unicode name or user name they dont show on the members list of this mod .
no one reply to this bug!!!
It is in english... you can see the attached image i posted just above your post.
It is working fine in my test smf forum.. i think i just mess up something when
I tried to fix the error done by the simplead mod I installed earlier...
I would like to know if it is also possible to remove a frame around awards?
Quote from: bharatforum on February 01, 2011, 10:41:13 AM
I would like to know if it is also possible to remove a frame around awards?
This is for SMF2 RC4 , since you didn't specifiy which smf version
/Themes/default/Display.template.php
Find
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';
Change 1px to 0px, and see if that works. If not, then try changing to this.
<fieldset>
<legend>', $txt['awards'], '</legend>';
I haven't tested, just a theory. So be sure to have a backup of the file in case it doesn't work.
I clicked already and i didn't find anything relating to default language. I am using SMF 2.0 RC4 . Did you check the admin.php file? :)
Quote from: eric1234 on February 01, 2011, 02:24:17 PM
I clicked already and i didn't find anything relating to default language. I am using SMF 2.0 RC4 . Did you check the admin.php file? :)
Admin > Configuration > Security Settings > Default Forum Language
Yes , the default language is English. >.< So what should i do now? T,T
hi @hcfwesker,
just checking if you got to see the image file I attached in my previous post?
Please let me know if there's a way to fix my problem... I really appreciate
your help in answering questions in here..
Cheers,
Quote from: reinner on February 01, 2011, 02:59:49 PM
hi @hcfwesker,
just checking if you got to see the image file I attached in my previous post?
Please let me know if there's a way to fix my problem... I really appreciate
your help in answering questions in here..
Cheers,
The red X mark is normal. it's just there if you clicked the wrong name to add, and want to remove it before assigning the award.
hi hcfwesker,
I think we are having some mis-understanding.
Forget everything I poster and asked earlier.
Let's start all over again...
I installed simplead mod 4 days ago and it ruined my forum.
I did fixed my forum in my own way (this is where the problem starts)
My forum is now working fine (I think) except for this member award mod
that I just installed recently and found out that I can't add assign award
to any members... what i did was I installed A fresh SMF and fresh theme
to an add on domain to see if the member awards mod is working fine,
and yes it did worked without any problem (that's the image with the 'x').
I think I messed something in after I 'fixed' the error made by simpleads
that's why I cannot use the member awards mod correctly...
Quote from: reinner on February 01, 2011, 04:02:36 PM
hi hcfwesker,
I think we are having some mis-understanding.
Forget everything I poster and asked earlier.
Let's start all over again...
OK, I understand now. You'll just need to be patient with me, i JUST upgraded my site from 1.1.11 to 2RC4, so kinda busy with doing that. If you would, send me a PM with all your listed MODs. I'll see what I can do when I have time.
Also, what errors in your Error Log pop up when you view that page when assigning awards.
Quote from: eric1234 on February 01, 2011, 02:47:55 PM
Yes , the default language is English. >.< So what should i do now? T,T
Somebody help me please?
Quote from: eric1234 on February 01, 2011, 10:50:02 PM
Quote from: eric1234 on February 01, 2011, 02:47:55 PM
Yes , the default language is English. >.< So what should i do now? T,T
Somebody help me please?
Make sure this file installed correctly ./Themes/default/languages/ManageAwards.english.php
I'm sorry, but without forum/adminCP/cpanel access to your forum... all I can do is guess. I won't ask for any of that info, anyways.
OR
you can re-upload a fresh copy of /Souces/Admin.php from the SMF install zip, and redo all the edits that any of your MOds made in that file.
Quote from: hcfwesker on February 01, 2011, 04:46:29 PM
OK, I understand now. You'll just need to be patient with me, i JUST upgraded my site from 1.1.11 to 2RC4, so kinda busy with doing that. If you would, send me a PM with all your listed MODs. I'll see what I can do when I have time.
Also, what errors in your Error Log pop up when you view that page when assigning awards.
It's ok, I understand. I really appreciate your help and your time helping.
I am just posting everything in here just in case there's somebody who
has the same problem. Below are my SMF details you requested.
Installed mods:1. Member Awards 2.2.3
2. Aeva ~ Auto-Embed Video & Audio 7.1
Error logs:Quote
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
Quote
8: Undefined index: recipient_to
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
Quote from: hcfwesker on February 01, 2011, 11:23:01 PM
Quote from: eric1234 on February 01, 2011, 10:50:02 PM
Quote from: eric1234 on February 01, 2011, 02:47:55 PM
Yes , the default language is English. >.< So what should i do now? T,T
Somebody help me please?
Make sure this file installed correctly ./Themes/default/languages/ManageAwards.english.php
I'm sorry, but without forum/adminCP/cpanel access to your forum... all I can do is guess. I won't ask for any of that info, anyways.
OR
you can re-upload a fresh copy of /Souces/Admin.php from the SMF install zip, and redo all the edits that any of your MOds made in that file.
I did not see this ManageAwards.english.php in the parse of the mods >.< Which mean i got no idea whether it got installed correctly or not
Quote from: hcfwesker on February 01, 2011, 11:44:29 AM
Quote from: bharatforum on February 01, 2011, 10:41:13 AM
I would like to know if it is also possible to remove a frame around awards?
This is for SMF2 RC4 , since you didn't specifiy which smf version
/Themes/default/Display.template.php
Find
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';
Change 1px to 0px, and see if that works. If not, then try changing to this.
<fieldset>
<legend>', $txt['awards'], '</legend>';
I haven't tested, just a theory. So be sure to have a backup of the file in case it doesn't work.
I am using 1.1.12 version of SMF, is there a way to remove a frame?
Quote from: bharatforum on February 02, 2011, 11:40:17 AM
I am using 1.1.12 version of SMF, is there a way to remove a frame?
I don't see hopw you couldn't follow the SMF2 instructions. Pretty much the same thing :P
Themes/default/Display.template.php
Find
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt
Change 1px to 0px, and see if that works. If not, then try changing to this.
<fieldset>
<legend>', $txt
I haven't tested, just a theory. So be sure to have a backup of the file in case it doesn't work.
Quote from: eric1234 on February 02, 2011, 03:08:03 AM
I did not see this ManageAwards.english.php in the parse of the mods >.< Which mean i got no idea whether it got installed correctly or not
It's at the VERY bottom of the package parser, it installs on it's own. If you manually installed it yourself, without the zip, and ONLY used the package aprser, then you're missing a couple of files.
Move the included file "ManageAwards.php" to "./Sources".
Move the included file "ManageAwards.template.php" to "./Themes/default".
Move the included file "ManageAwards.english.php" to "./Themes/default/languages".
Move the included file "ManageAwards.english-utf8.php" to "./Themes/default/languages".
Move the included file "award.gif" to "./Themes/default/images".
I've attached them all at the bottom of my post, in case you missed them. Just read the package name , and upload thenm in the directory listed above for each one.
I delete and replace all the files that you listed except "ManageAwards.english-utf8.php .
So far still the same, i still cant see the Awards button in my admin >.<
Quote from: eric1234 on February 02, 2011, 03:08:06 PM
I delete and replace all the files that you listed except "ManageAwards.english-utf8.php .
So far still the same, i still cant see the Awards button in my admin >.<
If you'd like you can PM with me a test account with admin permissions. I did this for someone last night, and fixed his problem in minutes. But, it's whether you trust me or anyone with that access. If no, I'll understand. I'd just like to help, and as I said, there's only so much I can do from my end.
you can trust hcfwesker with his words, he's the one you fixes my members reward and others issues.. thanks a lot bud hcfwesker.. :D
Quote from: hcfwesker on February 02, 2011, 06:35:18 PM
Quote from: eric1234 on February 02, 2011, 03:08:06 PM
I delete and replace all the files that you listed except "ManageAwards.english-utf8.php .
So far still the same, i still cant see the Awards button in my admin >.<
If you'd like you can PM with me a test account with admin permissions. I did this for someone last night, and fixed his problem in minutes. But, it's whether you trust me or anyone with that access. If no, I'll understand. I'd just like to help, and as I said, there's only so much I can do from my end.
Do you need my cpanel? I mean the file manager in cpanel?
Quote from: eric1234 on February 03, 2011, 07:27:42 AM
Do you need my cpanel? I mean the file manager in cpanel?
PM sent.
still busy bud hcfwesker?
I think eric1234's problem was resolved, haven't heard back, so i'm assuming the tweaks we did worked.
Quote from: elguapo on February 03, 2011, 10:42:21 PM
still busy bud hcfwesker?
Since it's not related to this topic, I'm sure the MOD author, and SMF helpers would prefer you contact me through PM for additional help on other stuff not related to this MOD ;)
I am assuming this mod is still not compatible with 1.1.12?
hi hcfwesker,
Can you please help me out with my forums award mod please?
let me know if you're not busy. i will make an admit account for you
Cheers,
Just PM me the link, log in details, and explain the current situation.
Hello hcfwesker!
I have a problem...
Why are you 2pro?
Thanks and Good Luck ;)
This may well have been asked in the past 109 pages but searching I didn't find the answer...
When I try to edit an award to change the graphics the system doesn't accept it. It keeps telling me that I must upload an image with the award and I am doing so.
Any fixes for this? It would save me a lot of time from having to create a new award and re-assign it to the members that had the original award when I need to change the award image.
Thanks,
SMF RC4
How come when i try and look at manual install instructions for SMF 1.1.12 i get "Sorry, but this modification does not appear to be compatible with the selected version." But then it says Compatible With: 1.1.12, 2.0 RC4 sorry i'm fairly new to the SMF community and when i try and install this mod on my 1.1.12 forum i get this:
(Note #3,7, and 8 failed so i'm guessing i would have to manually do these?)
Type Action Description
1. Execute Code install.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test failed
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Execute Modification ./Sources/Who.php Test successful
7. Execute Modification ./Sources/Profile.php Test failed
8. Execute Modification ./Themes/default/Display.template.php Test failed
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
12. Create Tree ./awards
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/languages/ManageAwards.english-utf8.php
17. Extract File ./Themes/default/images/award.gif
Any help is much appreciated!
Thanks
Quote from: An0nymousHelper on February 08, 2011, 07:47:09 PM
How come when i try and look at manual install instructions for SMF 1.1.12 i get "Sorry, but this modification does not appear to be compatible with the selected version." But then it says Compatible With: 1.1.12, 2.0 RC4 sorry i'm fairly new to the SMF community and when i try and install this mod on my 1.1.12 forum i get this:
I believe the zip on the bottom is for sfm2, and the zip up top
member_awards_v1.1.2.zip <-- is for smf1 versions (i parsed it, and showed the manual instructions just fine.
Hi hcfwesker,
I sent you a PM.
Hello. Sorry for my language, I'm using google. Can you tell me how to put the medals below the signatures on the version of RC4? Probe into the code of the version RC3 and gives me errors. Thank you very much
Suggestion: There should be a notification that pops up when a user is assigned an award.
Another suggestion: On the awards list page(from the profile) there should be an "request for this award button/option". It's hard to keep track of everyone's action so this would be very helpful. Admins could review the request and see if that member meets the requirements for the award. :)
Hiya,
I'm getting an error when viewing profiles that has to do with this mod (I've just installed it, SMF 1.1.12). Is there anyone who can help me with this? I'd really love to be able to use this mod.
This is the error:
Fatal error: Cannot redeclare template_awards() (previously declared in /home/nsmith729/backstage.nofse.com/Sources/Load.php(1787) : eval()'d code:2354) in /home/nsmith729/backstage.nofse.com/Sources/Load.php(1787) : eval()'d code on line 2554
TIA!
you have apparently installed it twice.
You will have to manually remove the duplicated code (use the package parser, find what code is installed where and verify that only one of each edit is present
ay ay ay... how in the world.
Thank you very much. I'll check it out and see if I can fix it.
Ok, found a quick way around it by simply ftp'ing the new image to the awards folder to replace the one that I want to edit in the Members Awards, so it's all good.
Quote from: City Builder on February 08, 2011, 01:01:48 PM
This may well have been asked in the past 109 pages but searching I didn't find the answer...
When I try to edit an award to change the graphics the system doesn't accept it. It keeps telling me that I must upload an image with the award and I am doing so.
Any fixes for this? It would save me a lot of time from having to create a new award and re-assign it to the members that had the original award when I need to change the award image.
Thanks,
SMF RC4
Ok (I'm so sorry I'm not php savvy) I have removed everything (I did a backup of the originals, thankfully) and have tried to install it via my admin panel.
This is what I'm getting:
QuoteError 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.
Quote1. Execute Code install.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/Subs.php Test successful
4. Execute Modification ./Sources/Load.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test failed
6. Execute Modification ./Sources/Who.php Test successful
7. Execute Modification ./Sources/Profile.php Test successful
8. Execute Modification ./Themes/default/Display.template.php Test failed
9. Execute Modification ./Themes/default/Profile.template.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
12. Create Tree ./awards
13. Extract File ./Sources/ManageAwards.php
14. Extract File ./Themes/default/ManageAwards.template.php
15. Extract File ./Themes/default/languages/ManageAwards.english.php
16. Extract File ./Themes/default/languages/ManageAwards.english-utf8.php
17. Extract File ./Themes/default/images/award.gif
So does that mean I should manually make the changes to those two files?
yes
Awesome! Thank you so much for your help! I'm very php illiterate and was really pulling my hair out. YOU ROCK! ;D
I still need help. hfswesker was helping me but I think he's busy ATM
If somebody could help me please.
Problem:
1. Can't assign award.
2. No smileys, bbcode, text, color, size option at my reply both message and post replies.
Installed mods:1. Member Awards 2.2.3
2. Aeva ~ Auto-Embed Video & Audio 7.1
Error logs:Quote
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
Quote
8: Undefined index: recipient_to
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
hello
i got this error:
Quotehttp://mysite.com/index.php?pretty;action=profile&amp;area=listAwards;u=18: Undefined index: viewFile: /home/mysite/public_html/Themes/default/languages/Facebook.english.php (awards_list sub template - eval?)
Line: 3190
i have SMF 2.0 RC4 with SA Facebook connect mod
any ideas?
Hello! Just installed this mod on a new SMF RC4 forum. There were a couple issues with installing which were resolved by manually making the code edits, however some issues remain. In setting up the first award I got all the way to the "assign" step only to be stopped.
When I type in the member name field, nothing ever comes up to select the name. If I type it out and hit "Save" it tells me: You must select a member and/or award in order to continue!
I've attached a screen of what I see. I am using a custom theme and made sure that I copied the scripts files to the theme's /scripts folder.
Can you help? I am thinking it's a simple thing I'm missing here.
Thanks!!!
Hey everyone, I really like the looks of this mod and really wan't it on my site. I am using SMF 1.1.12. The only issue is that i get errors when i try to install it. These are the errors:
3. Execute Modification ./Sources/Subs.php Test failed
7. Execute Modification ./Sources/Profile.php Test failed
8. Execute Modification ./Themes/default/Display.template.php Test failed
I believe that 3. is because I have the paid subscriptions mod installed.
And i'm not sure why 7 is getting an error it may be because i have the ultimate profile installed but thats the only thing that comes to mind.
And for 8. I think i can just do manually my self.
I uploaded my Subs.php and my Profile.php in hopes that maybe someone could do these manual changes for me. If you have a couple extra minutes it would really help me out if you could take a look at them. Thanks very much and it is very appreciated if anyone can!
Love this mod. :) Using it on my forum for future awards. :D
<333
AnonymousHelper:
In Subs.php:
if (allowedTo('manage_bans'))
if (allowedTo('admin_forum'))
$context['admin_areas']['members']['areas']['paid_subscriptions'] = '<a href="' . $scripturl . '?action=paidsubscribe">' . $txt['paid_subscriptions'] . '</a>';
if (allowedTo('manage_awards'))
$context['admin_areas']['layout']['areas']['manage_awards'] = '<a href="' . $scripturl . '?action=awards">' . $txt['awards'] . '</a>';
'manage_bans', 'manage_permissions', 'admin_forum'
, 'manage_awards'
'manage_attachments', 'manage_smileys'
, 'manage_awards'
In Profile.php:
'showPermissions' => array(array('manage_permissions'), array('manage_permissions')),
'showAwards' => array(array('profile_view_any', 'profile_view_own'), array('profile_view_any')),
'awardsMembers' => array(array('profile_view_any', 'profile_view_own'), array('profile_view_any')),
$context['profile_areas']['info']['areas']['showPosts'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=showPosts">' . $txt['showPosts'] . '</a>';
$context['profile_areas']['info']['areas']['showAwards'] = '<a href="' . $scripturl . '?action=profile;u=' . $memID . ';sa=showAwards">' . $txt['awards'] . '</a>';
?>
function showAwards($memID){
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// Do they want to make a favorite?
if (isset($_GET['makeFavorite']) && allowedTo(array('profile_extra_any', 'profile_extra_own'))){
checkSession('get');
$award = (int) $_GET['id'];
$favorite = ($_GET['makeFavorite'] > 0) ? 1 : 0;
// Do they only allow one fav?
if (empty($modSettings['awards_favorite']))
db_query("
UPDATE {$db_prefix}awards_members
SET favorite = 0
WHERE ID_MEMBER = " . $memID, __FILE__, __LINE__);
// Now make this one a fav.
db_query("
UPDATE {$db_prefix}awards_members
SET favorite = {$favorite}
WHERE id_award = {$award}
AND ID_MEMBER = {$memID}
LIMIT 1", __FILE__, __LINE__);
// To make changes appear redirect back to that page
redirectexit('action=profile;sa=showAwards;u=' . $memID);
}
// Load language
loadLanguage('ManageAwards');
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = {$memID}", __FILE__, __LINE__);
list ($context['count_awards']) = mysql_fetch_row($request);
mysql_free_result($request);
// Calculate the number of results to pull up.
$max_awards = 25;
// Construct the page index
$context['page_index'] = constructPageIndex($scripturl . '?action=profile;sa=showAwards;u=' . $memID, $_REQUEST['start'], $context['count_awards'], $max_awards);
$context['start'] = isset($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
// Load the awards
$request = db_query("
SELECT
aw.id_award, aw.award_name, aw.description, aw.filename, aw.minifile,
am.ID_MEMBER, am.date_received, am.favorite,
c.category_name, c.id_category
FROM {$db_prefix}awards AS aw
LEFT JOIN {$db_prefix}awards_members AS am ON (am.id_award = aw.id_award)
LEFT JOIN {$db_prefix}awards_categories AS c ON (c.id_category = aw.id_category)
WHERE am.ID_MEMBER = {$memID}
ORDER BY am.favorite DESC, c.category_name DESC, aw.award_name DESC
LIMIT {$context['start']}, {$max_awards}", __FILE__, __LINE__);
$context['categories'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($request)){
if(!isset($context['categories'][$row['id_category']]['name']))
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
$context['categories'][$row['id_category']]['awards'][$row['id_award']] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['id_award'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=showAwards;id=' . $row['id_award'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['awards_favorite'] . '" title="' . $txt['awards_favorite'] . '" />',
),
'filename' => $row['filename'],
'time' => list ($year, $month, $day) = sscanf($row['date_received'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['awards_dir'] . '/' . $row['filename'],
'mini' => dirname($scripturl) . '/' . $modSettings['awards_dir'] . '/' . $row['minifile'],
);
}
mysql_free_result($request);
$context['page_title'] = $txt[79] . ' - ' . $txt['awards_title'];
$context['sub_template'] = 'awards';
$context['allowed_fav'] = ($context['user']['is_owner'] && allowedTo('profile_view_own')) || allowedTo('profile_extra_any');
}
function awardsMembers(){
global $context, $db_prefix, $modSettings, $scripturl, $txt;
// Load language
loadLanguage('ManageAwards');
$id = (int) $_REQUEST['id'];
// An award must be selected.
if (empty($id) || $id <= 0)
fatal_lang_error('awards_error_no_award');
// Load the award info separately
$request = db_query("
SELECT *
FROM {$db_prefix}awards
WHERE id_award = {$id}", __FILE__, __LINE__);
// Check if ths award actually exists
if (mysql_num_rows($request) < 1)
fatal_lang_error('awards_error_no_award');
$context['award'] = array();
// Fetch the award info just once
$row = mysql_fetch_assoc($request);
$context['award'] = array(
'id' => $row['id_award'],
'name' => $row['award_name'],
'description' => $row['description'],
'filename' => $row['filename'],
'img' => dirname($scripturl) . '/' . $modSettings['awards_dir'] . '/' . $row['filename'],
'mini' => dirname($scripturl) . '/' . $modSettings['awards_dir'] . '/' . $row['minifile'],
'members' => array(),
);
mysql_free_result($request);
// Now load the info.
$request = db_query("
SELECT
m.realName, a.id_member, a.date_received
FROM {$db_prefix}awards_members AS a
LEFT JOIN {$db_prefix}members AS m ON (m.ID_MEMBER = a.id_member)
WHERE a.id_award = {$id}
ORDER BY m.realName DESC", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
$context['award']['members'][] = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['realName'] . '</a>';
mysql_free_result($request);
// Set the context values
$context['page_title'] = $txt['awards'] . ' - ' . $context['award']['name'];
$context['sub_template'] = 'awards_members';
$context['columns'] = 3;
}
Thanks a lot for that help, unfortunately when I go to a post and then I see under the users name and stuff a little box called awards when i click it links me to http://MYSITE.com/forums/profile/?sa=showAwards;u=1 and i get this error...
Fatal error: Cannot redeclare showawards() (previously declared in /home/content/a/n/0/an0nymoushelp/html/forums/Sources/Profile.php:3573) in /home/content/a/n/0/an0nymoushelp/html/forums/Sources/Profile.php on line 3814
Any ideas on how i could fix this? I will upload my modified Profile.php and maybe you could take a look at it?
Thanks a lot in advance if anyone could help me it is much appreciated!!!
EDIT: Never mind i managed to fix it on my own, Thanks a tun though!
Quote from: Stigmartyr on February 11, 2011, 04:23:49 PM
Hello! Just installed this mod on a new SMF RC4 forum. There were a couple issues with installing which were resolved by manually making the code edits, however some issues remain. In setting up the first award I got all the way to the "assign" step only to be stopped.
When I type in the member name field, nothing ever comes up to select the name. If I type it out and hit "Save" it tells me: You must select a member and/or award in order to continue!
I've attached a screen of what I see. I am using a custom theme and made sure that I copied the scripts files to the theme's /scripts folder.
Can you help? I am thinking it's a simple thing I'm missing here.
Thanks!!!
Hai :D *waves*
What errors did you get when first installing the mod?
Quote from: Mari-chi on February 13, 2011, 06:28:58 PM
What errors did you get when first installing the mod?
To be perfectly honest I cannot recall which .php files errored. I did find where the parser couldn't complete the edits and finished them carefully.
If it would help I can uninstall and reinstall again.
Before you do that, one question: In your screenshot, it looks like you just left the username in the textbox. Did you get a dropdown below the textbox? It's the auto-complete form that pops up when you enter a member's name. You need to select that so it appears like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1127.photobucket.com%2Falbums%2Fl635%2Firinaqueer%2Fmisc%2Fmemberaward.png&hash=bd543484e7cad93a4be6683b5be8c6bad8eb7565)
If you have done that and it still gives you an error, then you might want to try uninstalling and reinstalling again.
Quote from: Mari-chi on February 13, 2011, 08:44:38 PM
Before you do that, one question: In your screenshot, it looks like you just left the username in the textbox. Did you get a dropdown below the textbox? It's the auto-complete form that pops up when you enter a member's name. You need to select that so it appears like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1127.photobucket.com%2Falbums%2Fl635%2Firinaqueer%2Fmisc%2Fmemberaward.png&hash=bd543484e7cad93a4be6683b5be8c6bad8eb7565)
If you have done that and it still gives you an error, then you might want to try uninstalling and reinstalling again.
Ok I will try it again. I actually did it twice that night trying to sort it out.
I do NOT get the autocomplete function to work. Infact it doesn't work anywhere on the site anymore. Not even in PM's
Hm, then it's probably not the Member Awards mod at all. Did you recently install any other mods before the Member Awards? Are there any errors in your error log?
Quote from: Mari-chi on February 13, 2011, 09:18:01 PM
Hm, then it's probably not the Member Awards mod at all. Did you recently install any other mods before the Member Awards? Are there any errors in your error log?
Yes - I installed about 20 mods on http://blacksungameschicago.com/
It's possible that another mod did it, but I'm kinda anal with the package manager. I will check each file to make sure it actually did what it said it was gonna do. Prior experience with this :P
I could probably give you an account to poke around with it that helps. I turned error logging off because there always seem to be errors in it that make no ryhme or reason.
No, I'm not experienced enough to be given an account to poke around with. o.o Who knows what damage I will do. XD
If it's a problem with the forum itself (or so it seems at this point), then you should make a new topic in 2.x support. :D
Can anyone help me with my problem please? :(
My post on page before this. I appreciate any help.
Good day to all
For the missing WYSIWYG editor, try:
Admin > Configuration > Themes & Layout > Your Theme > Change current options for all members using this theme
Look for "Show WYSIWYG editor on post page by default.", choose "Change" from the dropdown menu and make sure the checkbox beside it is checked. If it still doesn't bring up the WYSIWYG editor, then you're better off asking someone in the Support board (whichever version of SMF you have), and not here. This thread is a support thread for the Member Awards mod. :)
As for the Member Awards error... What version of SMF are you using? Have you altered ManageAwards.php in any way? Can you reproduce the problem? You should be more specific for someone to be able to help you. :D
Quote from: Mari-chi on February 14, 2011, 12:40:55 PM
As for the Member Awards error... What version of SMF are you using? Have you altered ManageAwards.php in any way? Can you reproduce the problem? You should be more specific for someone to be able to help you. :D
Version: SMF2 RC4
Site: www.blacksungameschicago.com
I have not altered the mod or its files in any way. I had posted a screenshot, and somehow think it's related to the name not autopopulating however I'm not sure what that feature is called so I can search or report on it.
Sorry Stig, that post was meant for reinner. But I think it might have something to do with that auto complete feature. :/ I can't say for sure since I don't have a lot of experience with SMF, but hopefully someone else will be able to solve the problem for you. :)
Quote from: Mari-chi on February 14, 2011, 12:40:55 PM
For the missing WYSIWYG editor, try:
Admin > Configuration > Themes & Layout > Your Theme > Change current options for all members using this theme
Look for "Show WYSIWYG editor on post page by default.", choose "Change" from the dropdown menu and make sure the checkbox beside it is checked. If it still doesn't bring up the WYSIWYG editor, then you're better off asking someone in the Support board (whichever version of SMF you have), and not here. This thread is a support thread for the Member Awards mod. :)
As for the Member Awards error... What version of SMF are you using? Have you altered ManageAwards.php in any way? Can you reproduce the problem? You should be more specific for someone to be able to help you. :D
Sorry I really didn't include the details in my last post since I posted them twice in here.. :)
anyways, here is the details and the errors that I got.
I still need help. hfswesker was helping me but I think he's busy ATM
If somebody could help me please.
Problem:
1. Can't assign award.
2. No smileys, bbcode, text, color, size option at my reply both message and post replies.
Installed mods:1. Member Awards 2.2.3
2. Aeva ~ Auto-Embed Video & Audio 7.1
Error logs:Quote
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
Quote
8: Undefined index: recipient_to
Apply Filter: Only show the errors from this file
File: /home/ourbabyb/public_html/Sources/ManageAwards.php
Line: 451
Yep, I already looked back and read that post. Could you do what I suggested? Also, please answer the questions from my post. :D I wont' say I'm a whiz at this, but I'll try and help. XD
Quote from: Mari-chi on February 14, 2011, 03:51:48 PM
Yep, I already looked back and read that post. Could you do what I suggested? Also, please answer the questions from my post. :D I wont' say I'm a whiz at this, but I'll try and help. XD
hi mari-chi,
yes I did what you've suggested
QuoteAdmin > Configuration > Themes & Layout > Your Theme > Change current options for all members using this theme
also, I am not sure if hfseeker modify something on the ManageAwards.php
I am current version is 2.0 RC 5
current theme fuzzy theme
let me know if you need more details or if you want to see my forum. ;)
Quote from: reinner on February 15, 2011, 05:02:57 AMalso, I am not sure if hfseeker modify something on the ManageAwards.php
the only changes I made were in Admin.php ... was fixed the manual install errors you made when adding the Awards menus to the Admin panel. ;)
Sorry I haven't been able to help; as I explained my internet went into a coma, and couldn't mess with cPanels in fear of slow uploading that would cause only half the file to upload, and leaving your forum with a template parse error. Just got it fixed today, so once I get caught up with my forum stuff I've had to put off, I'll try and take another look.
You will notice now when you goto admin>awards>Main you have more options. but it's still not bringing up the drop down box when I type in a members name. I'm 'almost' tempted to just copy my Awards php folders and over write yours, since mine has the fixes, but just can't remember what I did long ago, lol.
hey hcfwesker,
I am now thinking to re-install a fresh SMF copy to my forum may be it will solve all my problems.. I am not just sure if it will though...
btw, I am thinking that maybe the problem is from the myphpadmin...
Cheers
Hi,
Is there a way to display more than 20 awards on one page when viewing the list of awards from the Awards list option in a users profile?
I thought it might be
// Calculate the number of results to pull up.
$maxAwards = 20;
In the ManageAwards.php file however changing that to 50 still only displays 20 on a page.
Is there something I can change in one of the php files to make it show more than 20 per page in the Awards List page?
posting again with my problem
i have this error:
http://mysite.com/index.php?pretty;action=profile&u=146;area=listAwards8:
Undefined index: view
File: /home/mysite/public_html/Themes/default/languages/Facebook.english.php (awards_list sub template - eval?)
Line: 3190
in one of the pictures atached you can see the the awards tab of the user 146 and in the other the admin awards tab. as you can see, the user doesn't have any awards still, he's profile shows a screen that it shouldn't be there.
any ideas?
i have SMF RC4.0 with the security update, member awards, facebook connect as well as some other mods.
http://www.simplemachines.org/community/index.php?topic=114701.msg2843978#msg2843978
thanks, Bugo. you're my hero.
Hi to all again,
I still can't use this mod. Can't assign award. :(
Anyone who can help me with this?
hcfwesker has already tried to help me fix this problem, but I think now he is too busy.
I need some help please. I would really appreciate it if this award mod will run in my forum
Good day to all.
Just to recap what i've posted earlier.
/index.php?pretty;action=admin&area=awards;sa=assign;step=2
You must select a member and/or award in order to continue!
Invalid argument supplied for foreach()
File: /public_html/Sources/ManageAwards.php
Line: 451
Undefined index: recipient_to
File: public_html/Sources/ManageAwards.php
Line: 451
I am running SMF 2 RC 5
Global Headers Footers 2.0
Sitemap 2.2.0
Member Awards 2.2.3
Pretty URLs 1.0RC5
TinyPortal 1.102
SMF 2.0 RC4 Security Patch
Aeva ~ Auto-Embed Video & Audio 7.1
Show your social networks 2.0
I had no problems when installing this onto my forum. (SMF 1.1.13)
Adding an award was no problem either, but any of the links behind it turn into;
Quote
Method Not Implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is a problem with a thing called mod_security blocking the requests. You can try asking your host to turn it off, but I doubt they will.
What it needs is for the mod maintainer to update the mod to not use ;id= in the URLs
Quote from: Arantor on March 11, 2011, 09:50:38 AM
This is a problem with a thing called mod_security blocking the requests. You can try asking your host to turn it off, but I doubt they will.
What it needs is for the mod maintainer to update the mod to not use ;id= in the URLs
So, I gotta wait till they update it before I can use it. poo. Thanks though.
well this mod work in rc5
So I installed this on my SMF RC3 forums and I don't see anything concerning the mod in the admin panel. Please help me out here... Also I keep getting this notice on one of my Tiny Portal PHP blocks:
Notice: Undefined variable: scripturl in /home/super849/public_html/Themes/default/languages/Modifications.english.php on line 345
Oh and also when I click on "Award List" in my profile, it brings this up:
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18989650-3']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
I'm crying for help here so someone please support me. My site: http://www.superheroalliance.net
QuoteOh and also when I click on "Award List" in my profile, it brings this up:
Uninstall the Google Analytics Code mod, delete it, grab the updated version from this site, and reinstall that.
Fatal error: Cannot redeclare showawards() (previously declared in /home/xxxxxxxxxx/public_html/foorumi/Sources/Profile.php:2950) in /home/xxxxxxxxxx/public_html/foorumi/Sources/Profile.php on line 3321
Any way fixing this one? I've tried to reinstall and so...
you appear to have installed the mod twice. You will have to manually remove the duplicated code.
Is there rc 5 soon? I really love this mod!
it ads smile to my members getting some awards, even if it's only an icon added under their name..
thanks for this mod! :)
Is it possible to give award for a whole group?
For example give award for group named "Administrators"
By the way this works fine on RC5 .
hi i need help with my instalution. i get the error message
AMc9fa61d4ae1bc74757b1331e35e2d4cd
http://battlezoneplayliveforum.com/index.php?action=awards;sa=assign;step=2
You must select a member and/or award in order to continue!
yes i have selected a member
please help
Quote from: Dreadfear on March 19, 2011, 11:40:43 AM
Is it possible to give award for a whole group?
For example give award for group named "Administrators"
By the way this works fine on RC5 .
How did you get it work in rc 5
Anybody knows how to make badges appear and make them scrolling at ultimate profile page ?
i am using this mod on my site forum.studentlife.co.in its working fine there only icon representing member award link in profile is not visible. Please help me which file needed to move
Quote from: CrazieGrafix on March 27, 2011, 05:58:32 PM
Quote from: Dreadfear on March 19, 2011, 11:40:43 AM
Is it possible to give award for a whole group?
For example give award for group named "Administrators"
By the way this works fine on RC5 .
How did you get it work in rc 5
Just upload it, go to package manager, go to VERY bottom "Advanced" link, emulate this: SMF 2.0 RC4
Found some nice air force style ribbons! http://bohemianresources.deviantart.com/art/Air-Force-Ribbons-Brush-Set-177059064?q=boost%3Apopular%20award%20images&qo=30
I'm working on labeling and seperating and zipping them up and then it'll be easier for you :)
I wish there was an option to set up automatic mile-stone awards.
Awards that user's automatically get when they reach a certain post count, or create a certain mount of topics, or even give a certain about of karma.
I would also like to see an option that allows the admin which usergroup can assign awards. This way, they can be used as gifts.
Anyone have any ideas why the awards don't show under the avatar - I'm using 1.1.13
I'm also using the Classic YaBB SE Theme.
Quote from: Honcho on April 03, 2011, 06:33:46 PM
I'm using 1.1.13
I'm also using the Classic YaBB SE Theme.
that would be why...
you will have to manually install the mod into that theme.
Quote from: Kindred on April 03, 2011, 07:56:35 PM
Quote from: Honcho on April 03, 2011, 06:33:46 PM
I'm using 1.1.13
I'm also using the Classic YaBB SE Theme.
that would be why...
you will have to manually install the mod into that theme.
Yep, got it sussed now. many thanks.
Quote from: neteater on April 01, 2011, 10:38:33 AM
i am using this mod on my site forum.studentlife.co.in its working fine there only icon representing member award link in profile is not visible. Please help me which file needed to move
hey my problem is still there
you will need to MANUALLY apply the mod changes to your custom theme - specifically display.template.php, but possibly other template files as well.
Hi,
I was using this mod perfectly but after I installed a mod (i forgot which mod i am thinkg referral system)
the 'award' option is not showing anymore in my admin panel.
How do i get this back?
Good day to all
The mods' working perfectly fine for me except that it doesn't display the award in the post page under the user's avatar.
My site URL: http://www.superheroalliance.net
And if changes have to be made manually, could someone please be kind enough to note changes.
Thanks in advance
Oh and BTW +1 to Xarcell's point. I was about to state the exact same.
I'm assuming you tried the install in other themes option when you installed the mod? If you did and it did not work you are going to have to do some manual edits as well as some hunting for where to place them.
The file that you will edit is Display.template.php in your Themes/??? directory, whatever the directory name is for the custom theme you are running
Look in the package for a file named install_display_template.xml, it will show you two edits that you will need to make to the install_display_template.xml
You will be adding the following blocks of code to the Display.template.php file
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
<br />';
}
and
// 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>';
Now where to add those is the question. You need to look in the install_display_template.xml file, it gives two examples of where to add the above code based on the default themes. You will need to search your custom Display.template.php for similar blocks (the stuff in the <search></search> sections and add the above code before those blocks.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
EDiT: Nevermind buddy. I think I may have fixed it :)
Thanks alot Spudds. This is a tremendous mod, only thing if you can add a feature so that it auto-awards a member per basis, it would be wicked-ass :)
Nevertheless brilliant mod, hats off to you, sir.
Glad its working for you.
Just a note .... I just recently took over ownership for the care and feeding of this mod. The work to date is actually from 3 different authors who have moved the mod forward over the years.
My "plan" is to work on a V3 of this mod which adds in some auto awards for things like top poster, top topic starter, 1,5,10 year membership awards, things like that. Now all I need is time to do all that stuff :)
Quote from: Spuds on April 11, 2011, 09:06:48 PM
Glad its working for you.
Just a note .... I just recently took over ownership for the care and feeding of this mod. The work to date is actually from 3 different authors who have moved the mod forward over the years.
My "plan" is to work on a V3 of this mod which adds in some auto awards for things like top poster, top topic starter, 1,5,10 year membership awards, things like that. Now all I need is time to do all that stuff :)
I think I love you Spuds lol.. You'll be my hero. I have so many suggestions... can I put them here or where??
Thanks for taking over... this is an AWESOME MOD and it's a waste if no one is taking care of it.
Your are welcome to post your suggestions here ... right now I'm just going through the code so I understand everything it does before I get to messing with anything! I'm looking for what folks would like to see added to the mod, don't know how much I will get added in the end, depends on how complex things get, but need those suggestions :)
unsure if this is support so much as I was wondering since it says no more 1.1 what about 2.0? Are you updating it to RC5?
It should work fine in RC5 but you need to install it with emulation mode.
So upload it, on the package browse screen go to bottom and find "Advanced" link, the emulate as: SMF 2.0 RC4
Will there be an RC5? To be honest I'm not targeting an RC5 per say, I'm looking to add new features and when I get them done I'll release it for what the current release is ... if thats still RC5 then so be it.
Well... where can I start? lol
-First of all, massive award (to a whole group).
-Award when the user gets to X comments (posts).
-Timed award (award that last X minutes/hours/days/years... or award that last until X date).
-auto awards (like you described above).
-Programed awards (awards given to X user on X day)
Obviously you don't have to include all of them (although it would be pretty awesome if you do) but those are some ideas that I thought or that I actually saw that the last owner of this MOD was planning on doing (for example the timed awards).
Thanks again for taking over :D!
I just installed this mod on my 2.0 RC4 forum and definitely love it. However, is there any way to change the order that awards display in on the mini-profile next to the post? I'd like for the awards to automatically display in the same order that they show up on the awards list, but at the moment it looks like they're ordered by when they were added to the account?
Quote from: Goss on April 16, 2011, 11:32:04 AM
I just installed this mod on my 2.0 RC4 forum and definitely love it. However, is there any way to change the order that awards display in on the mini-profile next to the post? I'd like for the awards to automatically display in the same order that they show up on the awards list, but at the moment it looks like they're ordered by when they were added to the account?
I'm sure that can be changed under the portion of the sources/Load.php
ORDER BY am.favorite DESC, am.date_received DESC',
i might take a look at it, and let you know what I find.
EDIT:::
(this is just a theory, I haven't had a chance to test it.
Under Sources/Load.php
find
ORDER BY am.favorite DESC, am.date_received DESC',
replace with
ORDER BY am.favorite DESC, am.id_award ASC',
If it doesn't change anything, just revert back to the original line, and I'll take another look at it.
Quote from: Spuds on April 11, 2011, 11:37:09 AM
I'm assuming you tried the install in other themes option when you installed the mod? If you did and it did not work you are going to have to do some manual edits as well as some hunting for where to place them.
The file that you will edit is Display.template.php in your Themes/??? directory, whatever the directory name is for the custom theme you are running
Look in the package for a file named install_display_template.xml, it will show you two edits that you will need to make to the install_display_template.xml
You will be adding the following blocks of code to the Display.template.php file
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
<br />';
}
and
// 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>';
Now where to add those is the question. You need to look in the install_display_template.xml file, it gives two examples of where to add the above code based on the default themes. You will need to search your custom Display.template.php for similar blocks (the stuff in the <search></search> sections and add the above code before those blocks.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Was this comment for me? sorry to ask such question, but i am kinda lost. :(
Is it support for RC3 or RC5 ver?
This mod is useable,.. really nice!
I really need this one,..
Quote from: reinnerWas this comment for me? sorry to ask such question, but i am kinda lost.
No it was not ... in your case you should uninstall the mods you installed after this mod to determine which one broke this. Or you will have to follow this http://docs.simplemachines.org/index.php?topic=402.0 topic and see where this mods edits were changed by another mod.
Quote from: poetra on April 18, 2011, 05:04:00 AM
Is it support for RC3 or RC5 ver?
RC3 no (current version) but it works fine on RC5. For RC5 you need to install it using emulation mode. Upload it, on the package browse screen go to bottom and find the "Advanced" link, and then emulate as: SMF 2.0 RC4 and install as normal.
Oke Thanks,...
I'll try it on RC5 ver using emulation mode.
Quote from: hcfwesker on April 17, 2011, 05:12:09 PM
Quote from: Goss on April 16, 2011, 11:32:04 AM
I just installed this mod on my 2.0 RC4 forum and definitely love it. However, is there any way to change the order that awards display in on the mini-profile next to the post? I'd like for the awards to automatically display in the same order that they show up on the awards list, but at the moment it looks like they're ordered by when they were added to the account?
I'm sure that can be changed under the portion of the sources/Load.php
ORDER BY am.favorite DESC, am.date_received DESC',
i might take a look at it, and let you know what I find.
EDIT:::
(this is just a theory, I haven't had a chance to test it.
Under Sources/Load.php
find
ORDER BY am.favorite DESC, am.date_received DESC',
replace with
ORDER BY am.favorite DESC, am.id_award ASC',
If it doesn't change anything, just revert back to the original line, and I'll take another look at it.
That worked perfectly! Thank you!
Quote from: Goss on April 18, 2011, 07:46:51 PM
That worked perfectly! Thank you!
Sweet!!!
You're Welcome. :)
Also, if you're worried about too many awards piling up in the mini profile, you might like my modification to place them underneath the sigs.
http://www.simplemachines.org/community/index.php?topic=114701.msg2934038#msg2934038 <--- instructions for SMF1 , i can show for SMF2
http://www.brawldomain.com/AASMF2/index.php?topic=33.msg148#msg148 <--- preview on my test site (only tested with 1 award, but they line up side by side)
Is there anyway to get the awards to show up in the sig area?
I found an error when try to install it on RC5 version.
I have set it to using emulation mode but when installing I found 2 errors.
(Load.php)
Find
}
if (!empty($new_loaded_ids) && $set !== 'minimal')
Add before // I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.id_member IN({array_int:members})
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);
// Fetch the award info just once
while ($row = $smcFunc['db_fetch_assoc']($awardsRequest)){
$user_profile[$row['id_member']]['awards'][] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => '?action=profile;area=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;area=showAwards;u=' . $row['id_member'],
'minifile' => $row['minifile'],
'img' => '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $row['minifile'],
);
}
$smcFunc['db_free_result']($awardsRequest);
}
(Subs.php)
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
there i attach the capture image.
@poetra ... it installs on a fresh install of RC5 just fine, so the errors mean that another mod changed those areas of those files so the package manager can't find where to make the edits.
You will have to follow this http://docs.simplemachines.org/index.php?topic=402.0 topic to manually install the modification.
I found a small bug in Profile.template.php:
Search:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
Replace:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
Thanks for the report ... I had noted that myself and corrected it in my local copy for the next update.
Hi
The package uploads fine and then When i click install i get this error :
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
I'm on 2.0 RC5 With a custom theme from dzinerstudio , this one actually http://www.dzinerstudio.com/index.php?board=22.0
Any ideas guys?
Cheers
Brett.
Hi,
I'm using SMF 1.1.13, and I love the idea for member awards, so I installed this mod.
Question though: Is it possible to give members the ability to assign awards to members but not give them the ability to upload/create your own? I cannot find this anywhere in the options. I only see "Manage Awards" as a checkbox for permissions.
Maybe I'm not finding where to look?
-Jorge
Quote from: bretttina on May 07, 2011, 05:56:08 AM
Hi
The package uploads fine and then When i click install i get this error :
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
I'm on 2.0 RC5 With a custom theme from dzinerstudio , this one actually http://www.dzinerstudio.com/index.php?board=22.0
Any ideas guys?
Cheers
Brett.
You need to install it with "emulation"mode ... At the bottom of the package browse page there is an advanced button, click it, in the emulate version box enter SMF 2.0 RC4 and apply ... install the mod and then you can go back to advanced, and select revert to set it back to RC5
Quote from: Jorge D. Fuentes on May 07, 2011, 11:32:24 AM
Hi,
I'm using SMF 1.1.13, and I love the idea for member awards, so I installed this mod.
Question though: Is it possible to give members the ability to assign awards to members but not give them the ability to upload/create your own? I cannot find this anywhere in the options. I only see "Manage Awards" as a checkbox for permissions.
Maybe I'm not finding where to look?
-Jorge
Yeah I don't think thats available, I'll see if I can add that in the next release, whenever that is (but it will happend :) )
Quote from: callteg4 on August 31, 2008, 12:28:05 AM
Quote from: YodaOfDarkness on July 06, 2007, 09:11:42 PM
From my earlier post - changed $maxAwards to 1 to just show the favorite (it'll show a random badge if they don't set a favorite)
Quote from: YodaOfDarkness on June 29, 2007, 11:25:59 PM
EDIT: I just figured it out :) Here's how to display (#) awards under a person's avatar. It's a modification of code found in... whichever file has the awards() function :D
All in Display.template.php (it all works the same anyways...)
find:
function template_main()
and add before (this is right at the top):
function show_awards_in_message($memID)
{
global $context, $db_prefix, $txt, $scripturl, $modSettings, $settings;
// How many awards to pull up? 1 for Favorite
$maxAwards = 1;
// Count the number of items in the database for create index
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}awards_members
WHERE ID_MEMBER = $memID", __FILE__, __LINE__);
list ($countAM) = mysql_fetch_row($request);
mysql_free_result($request);
// The count of awards per member
$context['countAwards'] = $countAM;
// 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 0, $maxAwards", __FILE__, __LINE__);
// Set the $context['awards'] var
$context['awards'] = array();
// Fetch the award info just once
while ($row = mysql_fetch_assoc($awardsSelect))
{
$context['awards'][$row['ID_AWARD']] = array(
'id' => $row['ID_AWARD'],
'awardName' => $row['awardName'],
'gameName' => $row['gameName'],
'more' => $scripturl . '?action=profile;sa=awardsMembers;id=' . $row['ID_AWARD'],
'favorite' => array(
'fav' => $row['favorite'],
'href' => $scripturl . '?action=profile;sa=awards;id=' . $row['ID_AWARD'] . ';makeFavorite=' . ($row['favorite'] == 1 ? '0' : '1') . (isset($_REQUEST['u']) ? ';u=' . $_REQUEST['u'] : ''),
'img' => '<img src="' . $settings['images_url'] . '/' . ($row['favorite'] == 1 ? 'collapse' : 'expand') . '.gif" alt="' . $txt['pa_favorite'] . '" />',
),
'filename' => $row['filename'],
'width' => $row['width'],
'height' => $row['height'],
'time' => list ($year, $month, $day) = sscanf($row['dateReceived'], '%d-%d-%d'),
'img' => dirname($scripturl) . '/' . $modSettings['pa_awardsDir'] . '/' . $row['filename'],
);
}
mysql_free_result($awardsSelect);
if (!empty($context['awards'])){
foreach ($context['awards'] as $award){
echo '<a href="', $award['more'], '"><img src="', $award['img'], '" width="', $award['width'], '" height="', $award['height'], '" alt="', $award['awardName'], '" title="', $award['awardName'], '" /></a> ';
}
echo '<br />
<br />';
}
}
then go down a bit farther, find:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
add after:
show_awards_in_message($message['member']['id']);
You can actually put the second part wherever you like, but I personally like how the personal text seperates the avatar from the awards. It's also possible to make them stand out using a fieldset and a legend, which is what I did with mine.
This is why I love SMF... I get to learn while I tinker with things :D
EDIT: Fixed the error I was having with second/third/etc. pages - it was using $context['start'] when it should have used 0, and I condensed the code :)
Thanks alot been trying to do this for a while
this does not work for smf2 rc4 :'( any help plz I want to preview the awards big images under the signature
Thanks got it now but it is throwing up a few errors , and telling me not to proceed!
is this because of my theme?
Quote from: bretttina on May 09, 2011, 08:18:31 AM
Thanks got it now but it is throwing up a few errors , and telling me not to proceed!
is this because of my theme?
Most likely that is the cause ... if the errors you are seeing are only on Display.template.php then you will have to manually make the changes to that file as the package manager can't find where to do it ... see this for some tips.
http://www.simplemachines.org/community/index.php?topic=114701.msg3015126#msg3015126
does anyone have an answer to my question ?
thanks
Quote from: BaghdadGhost on May 10, 2011, 02:01:51 AM
does anyone have an answer to my question ?
thanks
U just said that it's not working (I have RC4 and it works just fine).. can u at least say why it isnt working for you? Any displayed error or something?
I am going to re ask my question? Do you think there is anyway that awards could be shown in the sig?
Quote from: Melissa524 on May 13, 2011, 09:09:57 AM
I am going to re ask my question? Do you think there is anyway that awards could be shown in the sig?
Yes, but you have to make some custom edits. an example is on my forum under my sig http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168
what smf version are you using? I'll be happy to share the edits with you.
if you're on SMF 1.1.XX i added the edits to this post awhile back. http://www.simplemachines.org/community/index.php?topic=114701.msg2934038#msg2934038
Please make 2.0 rc5 supportable really want this!
Quote from: wii123 on May 19, 2011, 11:11:34 PM
Please make 2.0 rc5 supportable really want this!
it's compatible, i'm using it on my rc5 forum right now
Quote from: Eudemon on May 19, 2011, 11:13:08 PM
Quote from: wii123 on May 19, 2011, 11:11:34 PM
Please make 2.0 rc5 supportable really want this!
it's compatible, i'm using it on my rc5 forum right now
umm nope says corrupt or not compatible with this version (rc5)
Quote from: wii123 on May 19, 2011, 11:18:15 PM
Quote from: Eudemon on May 19, 2011, 11:13:08 PM
Quote from: wii123 on May 19, 2011, 11:11:34 PM
Please make 2.0 rc5 supportable really want this!
it's compatible, i'm using it on my rc5 forum right now
umm nope says corrupt or not compatible with this version (rc5)
it's supportable, i'm using it on my rc5 forum right now
the above reply was a joke ;D
if u r having issue with install button not appearing
unpack the mod, open package-info.xml
find
<install for="2.0 RC3, 2.0 RC4">
change it to
<install for="2.0 RC3, 2.0 RC4, 2.0 RC5">
do this also to uninstall
Quote from: Eudemon on May 19, 2011, 11:27:24 PM
Quote from: wii123 on May 19, 2011, 11:18:15 PM
Quote from: Eudemon on May 19, 2011, 11:13:08 PM
Quote from: wii123 on May 19, 2011, 11:11:34 PM
Please make 2.0 rc5 supportable really want this!
it's compatible, i'm using it on my rc5 forum right now
umm nope says corrupt or not compatible with this version (rc5)
it's supportable, i'm using it on my rc5 forum right now
you downloaded v2.2.3 or the earlist version of the mod?
http://www.simplemachines.org/community/index.php?topic=114701.msg3049959#msg3049959
u missed my latest reply
Quote from: Eudemon on May 19, 2011, 11:30:13 PM
the above reply was a joke ;D
if u r having issue with install button not appearing
unpack the mod, open package-info.xml
find
<install for="2.0 RC3, 2.0 RC4">
change it to
<install for="2.0 RC3, 2.0 RC4, 2.0 RC5">
do this also to uninstall
worked thanks! but how is this mod supposed to work? cuz the features dont work after i have selcted permissions and some check boxes
Quoteworked thanks! but how is this mod supposed to work? cuz the features dont work after i have selcted permissions and some check boxes
be specific
Quote from: Eudemon on May 20, 2011, 12:09:21 AM
Quoteworked thanks! but how is this mod supposed to work? cuz the features dont work after i have selcted permissions and some check boxes
be specific
Oh woops what I posted about it working it did but I posted other part in wrong section (was supposed to be on a karma mod thread sorry)
Quote from: Spuds on May 07, 2011, 09:42:12 PM
Quote from: Jorge D. Fuentes on May 07, 2011, 11:32:24 AM
Hi,
I'm using SMF 1.1.13, and I love the idea for member awards, so I installed this mod.
Question though: Is it possible to give members the ability to assign awards to members but not give them the ability to upload/create your own? I cannot find this anywhere in the options. I only see "Manage Awards" as a checkbox for permissions.
Maybe I'm not finding where to look?
-Jorge
Yeah I don't think thats available, I'll see if I can add that in the next release, whenever that is (but it will happend :) )
Rocking! Thanks. :D Don't forget that I'm still on 1.1.13 though (so don't make the update only for the newer versions... that would be mean :P)
Another question, can you make it such that members can give other members awards, but unable to give themselves awards? So basically you cannot grab an award for yourself, someone must give it to you?
Says "cant be downloadable one of the files are not writable"
I installed this recently for my SMF 2.0 RC5 forum... everything seems to be working, but the Admin CP does not have a link displayed for me to acess the Control Panel for this mod. Can someone help me? I'm using Crip's "Legend" theme if that can help/has any relation.
None default themes can require you to do some manual edits ..... when you installed it make sure you selected the install in other themes option from the package install page. If you did and it still is not working then see this for help.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
can you upgrade the mods to be SMF 2.0 compatible?
I have a big update in the works that I hopped to have done for 2.0 but its not there yet. Adds in several new features that I think everyone will like :) I hope to have a package together for TESTING ONLY in the coming days but that will be intended for review and testing on none live sites.
I'll look to do a quick repackage of what we have today so it installs in 2.0 but it will not have any of the new features nor the host of little fixes to templates and functions that I've made to date.
:) excited to see the big update
good job, spuds
If you need a detailed review of your TEST MOD, I'm here to help :)
I am excited to see the big update too ^^ Hopefully, the update will able to release soon ^^ Thank you and appreciated. :)
Question for all that may use this feature:
Today you must select each member by entering in the display name, one after another. You can do multiple on each award assignment, but you still must type in each name. So the request to assign by membergroup was given.
There are two ways to implement this ...
1) one is to select a membergroup and then each member of that group, at that time, will get the award. You can then go and see all members with an award and remove it from specific members should you want. This is just a quick select option as adding a member to a group, or removing them will not change their award status.
2) the second is to select a membergroup and then as above each member in that group will get the award but you do not have the option to remove the award from that member while they remain in that group, all members in that group will have the award. The only way to add/remove is .... remove a member from the group removes the award, adding a member to the group gives them the award.
Option 1 can be thought of as a multi select to quickly assign an award to a large group of members, where adding or removing members is a manual process.
Option 2 is a true membergroup award, members are added or removed automatically by being in that specific group, but there is no option for a member in that group not to have the award.
Any preferences?
Personally I'd prefer option 1. It's nice to be able to remove an award from somebody without having to remove it from the whole membergroup.
By the way, I'm curious if this is because it's outdated but I installed this on 2.0 using emulation and when people visit their "award list" page, the error log records the following;
http://www.holo-federation.com/index.php?action=profile;area=listAwards;u=1
8: Undefined index: viewFile: /home/khamseen/public_html/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3231
Thought I'd let you know in case something needs changed there.
EDIT: If you're needing more testers let me know, I use two dummy forums to test everything we use before putting it on our live forums.
Another vote for option #1...thanks for the great work on this mod and I'll look forward to seeing the big update!
#1
would like to assign award individually
Appears to be working in 2.0 fine. I simply emulated RC4 for install.
I would vote number 1 as well. Great work Spuds. I still would love to be able to set the default layout of awards to display in a order of precedence so to speak. Also on the listing in their profile of the awards they have with the dates, would be great to have it show there in chronological order.
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..
What's going wrong??
http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new (http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new)
I uninstalled this mod after a while.. it's extremely tiring to set each award for each members one by one :(
Quote from: Bruggenwirth on June 20, 2011, 07:08:23 PM
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..
What's going wrong??
http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new (http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new)
One of two things ...
1) in the mod settings make sure you have Awards in Post: set to > 0 as zero means show none
-or-
2) The edits to the display template failed and you will have to manually add them in Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Thanks for the feedback on the options ... still working on things, have not had much free time over the last couple of weeks but have made some progress so keep watching for a test release.
Quote from: Spuds on June 24, 2011, 09:55:26 AM
Quote from: Bruggenwirth on June 20, 2011, 07:08:23 PM
I actually have a problem with it... I uploaded, installed all without any errors or manual installs.. but now, my award isn't showing up in the left of the post.. with all the posters details..
What's going wrong??
http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new (http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.msg3#new)
One of two things ...
1) in the mod settings make sure you have Awards in Post: set to > 0 as zero means show none
-or-
2) The edits to the display template failed and you will have to manually add them in Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
BUT!!! When I did the install for the mod... and everything was fine.. no errors whatsoever .. And my settings are set to 2 ..
Maybe they somehow disappeared, happened to me for several other mods. check displaytemplate.php and find the edits, if they aren't there, then you'll have to add the edits (and then the awards should appear)
But what should I put in manually?? All the files were installed successfully.. so I'm really confused!
*EDIT* ... what line of could SHOULD be in the Display.template.php file??
Quote from: Bruggenwirth on June 24, 2011, 03:42:55 PM
But what should I put in manually?? All the files were installed successfully.. so I'm really confused!
*EDIT* ... what line of could SHOULD be in the Display.template.php file??
In your blackrain directory you will need to find the display.template.php file and make the following edit.
// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';
and *add after* that
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Case closed.. that worked.. I didn't know what to add in the display.template.php. But it's fixed now :)
http://bruggenwirth-fotografie.nl/smf/index.php?topic=1.0
good to hear :) can't wait to see the new roll out.
Hey there,
I keep getting "You must select a member and/or award in order to continue!" anytime I try to assign an award. With some searching, I learnt that I have to click the name in the dropdown box for it to work - but when I type in a name I don't GET a dropdown box.
I'm using 2.0 RC5, installed the mod with emulation. Any help would be greatly appreciated.
Hi all....
Just wondering if there is a release planned for version 2. I have just updated from SMF 1.1.x to SMF 2 final and would love to have this mod up and running again.
Colin.
Quote from: Uncle Buck on July 01, 2011, 01:53:23 AM
Hi all....
Just wondering if there is a release planned for version 2. I have just updated from SMF 1.1.x to SMF 2 final and would love to have this mod up and running again.
Colin.
I second that.
We'd be very interested as well.
Would it be possible to add a field in the AdminCP that lets us change the 'Awards' string?
To be honest, we'd really like to be able to list all the groups a member is a part of, but your MOD really looks great as an alternative to creating special groups just to identify functions.
Cal
can't assign awards. I get this:
Method Not Implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I would *guess* that you have mod_security enabled on your server, the mod currently uses id= in the links which mod security will flag and reject. (really causing a 501 error but you don't have a 501 error page so it reports a 404 on the 501 it can't find, dumb huh?)
Anyway thats one of the things that I have that fixed in the 2.0 update that I'm working on.
Can confirm that it did install in v2.0 by emulation of v2.4 RC4.
BUT
It put the menu option under the "Configuration" menu so all the Global Moderators could no longer manage the awards.
Once I manually edited the admin.php file to put the option under "Main" all worked great.
Still can't wait for the next release though..
Colin
The mod installation edited the admin.php file incorrectly. The Awards menu was located under Simple Audio Video Embedder. I noticed that since the Video Embedder array/menu is located above 'layout' => array(, the Awards array/menu got installed inside that array/menu instead of the Configuration array/menu. I had to manually edit the file so that the menu appears under Configuration. If anyone else experiences this problem, here's the manual edit you need to do.
Instead of using:
),
),
'layout' => array(
'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']),
),
),
Use:
'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
'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']),
),
),
Other than that, all is good. Great mod.
Thanks for the report, the problem is because Audio Video Embedder butchers the code layout in admin.php ....
it starts as
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(
and once it is installed it looks like
),
),
'layout' => array(
'title' => $txt['layout_controls'],
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(
See all those extra newlines in the array and even inside of code (e.g. layout) that it is not even supposed to change. Makes it difficult to other mods to find the placeholders to make other edits.
Anyway in the new version it will use the integration hooks to overcome this issue.
Spuds,
Will the new version put the link under the Main or Configuration menu?
The reason I ask is that I would like the Global Moderators on the site to be able to manage the awards.
Colin
I currently have it in two places ... the first is now under admin->members->awards since it seemed like the proper place to put it, member awards with members, but only admins can get that far down in the menu.
.... but I also added it under admin main menu to make sure it will show up for global moderators as well (still have to check that works for global/moderators but the intention is in place to provide what you are asking for).
That's kinda what I did, too, spuds. But then I made all kinds of edits cause I felt G.Mods didn't need access to the Admin panel, at all. What I did, was actually place it under the 'Members' tabs in the main menu of the forum, so it reads like this when hovering the members menu tab for those who can manage awards.
View the Memberlist
Search for Members
Manage Awards
Or, if you want to make it even simpler, just add it under the 'Moderate' tab for G.Mods, and those who "can manage awards" will only be able to see the menu and access it.
Sources/Subs.php
Find
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
'is_last' => true,
),
Replace with
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => !empty($user_info['mod_cache']) && $user_info['mod_cache']['bq'] != '0=1',
),
'awards' => array(
'title' => $txt['permissionname_manage_awards'],
'href' => $scripturl . '?action=admin;area=awards',
'show' => allowedTo('manage_awards'),
'is_last' => true,
),
Then to get the Manage Awards text to appear in the sub menu ( noy, sure, but this may already have been done, but double check)
Themes/default/languages//Modifications.english.php
Find
?>
Add BEFORE
$txt['permissionname_manage_awards'] = 'Manage Awards';
Thanks, putting under the main menu member tab makes more sense, should have thought of that myself :o Plus it matches what I did in the admin menu!
Can I install the latest version 2.2.3 in my SMF 2.0 or should I rather wait until a new version of this mod comes out? How great were the changes between the 2.2.3 and the new version be?
I feel like the 2.0 final update of this mod is never going to be released :-\
Quote from: Paladin212 on July 18, 2011, 07:32:16 PM
I feel like the 2.0 final update of this mod is never going to be released :-\
Thats the encouragement I needed ... you have motivated me Private Pile ... motivated me to watch TV tonight :P
Quote from: Spuds on July 18, 2011, 07:56:55 PM
Quote from: Paladin212 on July 18, 2011, 07:32:16 PM
I feel like the 2.0 final update of this mod is never going to be released :-\
Thats the encouragement I needed ... you have motivated me Private Pile ... motivated me to watch TV tonight :P
I'm just kidding, you can finish all the coding in 1 hour because you are so pro! :laugh:
Curious question...unless I mised something...
Is there a way to allow members to assign awards but not add/delete them?
I want to give certain forum leaders the ability to assign current awards, but I want a separate group of moderators to be able to create and delete them.
Is that something that exists that I'm not seeing or something that could be done?
Seconding that!
I'm looking for a way for members to indicate they are on holiday or hiatus. I was looking at using membergroups, but if a member could assign the "On Holiday" award to themselves, that would solve my problem and eliminate creating a bunch of membergroups.
Cal
QuoteIs there a way to allow members to assign awards but not add/delete them?
Not currently, there is only a single permission and that gives full access to the awards panel. I'll see whats involved in adding that permission, just not sure I really want to add in a bunch of complication to the permissions, tends to confuse everyone.
Quotebut if a member could assign the "On Holiday" award to themselves,
Yeah thats just gets messy, allowing members to assign awards to themselves. You would probably only want to have certain awards self assignable and thats gets messy as well. What I'm looking to add is request-able awards, they could request an award and then someone with award manage permissions could approve the request.
Quote from: Spuds on July 21, 2011, 02:49:37 PM
QuoteIs there a way to allow members to assign awards but not add/delete them?
Not currently, there is only a single permission and that gives full access to the awards panel. I'll see whats involved in adding that permission, just not sure I really want to add in a bunch of complication to the permissions, tends to confuse everyone.
That would be great if it were possible. I understand it might confuse the users who will be using it for basic awards. I have been looking at this mod for a few years now as it's changed hands hoping it might evolve to what I need. It's really close now.
If it looks to be something that would be somewhat easily implemented, would it be possible to perhaps create a one-off mod that would separate the permissions of assign and create that my forum might be able to add? If you'd like we can talk via PM on possible reimbursement for time working on it?
I did some messing around with it today and added a new permission assign_awards in addition to the existing manage_awards permission. The assign_award will give the member group with that permission that ability to assign and view available awards but not edit, add or delete awards or remove awards from members. It also does not give them access to the new member group assign nor the mass assign functions, but only the basic assign function (the one thats available today)
I have one more thing to add before I get a beta out for testing, maybe this weekend if things go well, we will see.
Quote from: Spuds on July 21, 2011, 09:18:19 PM
I did some messing around with it today and added a new permission assign_awards
I really like the sound of that. I think something else member's were looking for, cause i get PM'd for it all the time, is displaying the awards in signatures option (instead of posts profiles)
Example is in my Sig. http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168
I do get many members thjat request this edit from me, and even added it somewhere in the topic. As you can see, I added a title to the box, that clicks to show all that member's awards.
Really appreciate all you're doing with this MOD. And giving members the basic function panel sounds great.
Was wondering if you might consider adding a flag to each badge, saying whether it is visible to regular members to assign? The flag would be set in the edit/create panel. Then the only thing needed in the assign code for regular members is to check the flag before displaying it. Hopefully this doesn't sound rude, just thought if I was going to offer a request, if I could offer a suggestion that minimises your effort (and hopefully improves the chance you would consider it :) ).
Being able to do this would allow us to have multiple badges such as "Admin Team", "Linguist", "Member of the Month", (which we want to control) and "On Holiday", "Away" (which members would be allowed to assign or drop for themselves).
Again, thanks for enhancing this MOD!
Cal
Quoteis displaying the awards in signatures option (instead of posts profiles)
I had noticed that :D and took the hint. In the new version when you define an award, you also define where you want it to appear, below the avatar, above the avatar (like a badge) or with the signatures, figure this would give folks flexibility in how they want them to appear. There are also some basic formatting options with how they are grouped (titled y/n, boxed y/n).
QuoteWas wondering if you might consider adding a flag to each badge, saying whether it is visible to regular members to assign?
Yeah I knew that would be coming, without that its kind of a scarey permission if you give it to a large group of members. Let me see about adding one more award creation flag and then updating all of the database querys (yuk) ...
Works nice on SMF 2.0
Thanks
But i have 2 Errors.
1. Error
Award modify look at the Screenshot
2. Error
On the Award List
Quotehttp://smf-2.0.xyz.de/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
Quote from: Eclipse16V on July 22, 2011, 04:20:10 AM
Works nice on SMF 2.0
2. Error
On the Award List
Quotehttp://smf-2.0.xyz.de/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
Sources/Profile-View.phpFind
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
Replace With
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
That code is listed twice, but you'll notice on the 2nd one of them, the 'view' line didn't get readded.
Well, since Eclipse said it works fine on 2.0 I went ahead and tried it.
I updated the package_info so it would be able to install on 2.0, but once I try and installing it.. I get the following errors
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=114701.0;attach=182948;image)
Can someone help me with this issue? I've already tried doing what it said to "add before" "add after" "replace" but im still getting the errors. :(
Hello all,
i installed this mod on SMF 1.1.14 i cannot get where to add awards and how to award members
I'm using Actualism theme by Crip
can anyone tell me where to add awards and how to award to members
regards
Lokesh
QuoteCan someone help me with this issue? I've already tried doing what it said to "add before" "add after" "replace" but im still getting the errors. :(
Those mean that another mod changed those areas so the package manager can not determine where to make the edits. Only thing you can to is Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
sir can you please help me regarding my issue too :)
Quote from: lokeshch on July 23, 2011, 10:36:44 AM
Hello all,
i installed this mod on SMF 1.1.14 i cannot get where to add awards and how to award members
I'm using Actualism theme by Crip
can anyone tell me where to add awards and how to award to members
regards
Lokesh
In 1.1.14 the awards menu is in your admin panel under the forum section ... look for awards, select it, add an award and then assign the award
Please see these pictures
pic while installation:
http://i53.tinypic.com/mh3l9c.jpg
pic after installation:
http://i56.tinypic.com/2nvcim1.jpg
it's the second mod I'm installing on my forum. the first mod i installed was an update from SMF 1.1.13 to SMF 1.1.14
so what shall i do now sir?
thanks for your time sir :)
Quote from: Spuds on July 23, 2011, 10:42:37 AM
QuoteCan someone help me with this issue? I've already tried doing what it said to "add before" "add after" "replace" but im still getting the errors. :(
Those mean that another mod changed those areas so the package manager can not determine where to make the edits. Only thing you can to is Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Erm. This is very odd. In the second step, it says
Quoteopen the .mod file with any text editor and search for <edit file>...</edit file> , you will find a file name after the tag. What we need here is looking for a template file i.e. index.template.php, BoardIndex.template.php ..etc.
I've opened all xml files and no where do I see <edit file></edit file> :-\
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Quote from: lokeshch on July 23, 2011, 11:44:38 AM
Please see these pictures
pic while installation:
http://i53.tinypic.com/mh3l9c.jpg
pic after installation:
http://i56.tinypic.com/2nvcim1.jpg
it's the second mod I'm installing on my forum. the first mod i installed was an update from SMF 1.1.13 to SMF 1.1.14
so what shall i do now sir?
thanks for your time sir :)
You did select install now and are viewing that panel with your admin account?
Quote from: SIMul8rReviews on July 23, 2011, 12:03:56 PM
Quote from: Spuds on July 23, 2011, 10:42:37 AM
QuoteCan someone help me with this issue? I've already tried doing what it said to "add before" "add after" "replace" but im still getting the errors. :(
Those mean that another mod changed those areas so the package manager can not determine where to make the edits. Only thing you can to is Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Erm. This is very odd. In the second step, it says Quoteopen the .mod file with any text editor and search for <edit file>...</edit file> , you will find a file name after the tag. What we need here is looking for a template file i.e. index.template.php, BoardIndex.template.php ..etc.
I've opened all xml files and no where do I see <edit file></edit file> :-\
open the install.xml file, look for <file name="$sourcedir/Admin.php"> and <file name="$sourcedir/Subs.php"> its those two sections of edits that need to be manually added.
Quote from: Spuds on July 23, 2011, 12:20:26 PM
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)Quote from: lokeshch on July 23, 2011, 11:44:38 AM
Please see these pictures
pic while installation:
http://i53.tinypic.com/mh3l9c.jpg
pic after installation:
http://i56.tinypic.com/2nvcim1.jpg
it's the second mod I'm installing on my forum. the first mod i installed was an update from SMF 1.1.13 to SMF 1.1.14
so what shall i do now sir?
thanks for your time sir :)
You did select install now and are viewing that panel with your admin account?
yes i am the only Admin of the forum and i installed using my account only. BTW i tried to uninstall it gives me error.
i want to clarify one thing: installed mods: SMF 1.1.14 update and Member awards
i installed Members awards today i got NO error while installation but while uninstallation i am getting errors:
1. Execute Modification install_display_template.xml Modification parse error
2. Execute Modification - Modification parse error
i have installed NO other mod after Member awards
please help me to get it displayed. BTW I'm on Actualism theme by Crip and i tried using default Core but results are same
thanks for your time sir :)
How do you get to show the award in the postprofile on the right.I installed ieverything went great created an award and assigned it.If you goto the profile it says show awards and list awards but nothing shows in the postprofile.
Quoteplease help me to get it displayed.
Sorry, don't know what else to tell you to try. I Just installed it on a 1.1.14 forum and it installed, functioned and uninstalled just fine.
Quote from: CrazieGrafix on July 23, 2011, 01:26:55 PM
How do you get to show the award in the postprofile on the right.I installed ieverything went great created an award and assigned it.If you goto the profile it says show awards and list awards but nothing shows in the postprofile.
If you are asking how to get awards to display on the profile summary screen, they don't and you would have to write a modification to the summary template to add that functionality.
no they don't display in the postbit.
Thanks hcfwesker
Quote from: CrazieGrafix on July 23, 2011, 03:14:24 PM
no they don't display in the postbit.
Admin > Awards > Settings
You have to check the option to show it in the post bit. (Though, I think they make the postbit profile too cluttered, so I have them display in signatures on our forum.)
@ Eclipse16V, You're Welcome, bud. :)
i don't have that option just these
QuoteAwards Directory:
This is the directory where awards are stored - just the name without the trailing slash. Favorite Award:
Check this if you want to allow users to have more than one favorite award. Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.
"Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none"
Did you change the 0 to something else?
I changed it to 4
Quote from: CrazieGrafix on July 23, 2011, 08:10:35 PM
I changed it to 4
are you using a custom theme? If so, try going to the SMF Default theme, and check there. If that doesn't work, then Parse the MOD, and check the edits for Themes/default/
Display.template.php file, and make sure they were added.
Thanks hcfwesker for trying to help but to many edits for me to get this working.
Quote from: Spuds on July 23, 2011, 12:28:38 PM
Quote from: SIMul8rReviews on July 23, 2011, 12:03:56 PM
Quote from: Spuds on July 23, 2011, 10:42:37 AM
QuoteCan someone help me with this issue? I've already tried doing what it said to "add before" "add after" "replace" but im still getting the errors. :(
Those mean that another mod changed those areas so the package manager can not determine where to make the edits. Only thing you can to is Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Erm. This is very odd. In the second step, it says Quoteopen the .mod file with any text editor and search for <edit file>...</edit file> , you will find a file name after the tag. What we need here is looking for a template file i.e. index.template.php, BoardIndex.template.php ..etc.
I've opened all xml files and no where do I see <edit file></edit file> :-\
open the install.xml file, look for <file name="$sourcedir/Admin.php"> and <file name="$sourcedir/Subs.php"> its those two sections of edits that need to be manually added.
O_o im so sorry.. but im a bit confused. Im not that great at this :/
I might just wait for the 2.0 Gold update
Hello sir,
i installed this mod but i cannot see the options. i tried with default theme but also same. i tried to parse the mod to see if some thing was not added i get this error: Sorry, but this modification does not appear to be compatible with the selected version.
i tied to parse and then see if anything was not added, but evrything in theme files was added :-\
can i know what is happening please help me sir
thanks a lot :)
lokeshch,
Refreshing your post so it sends out an alert every few minutes is NOT going to get you a faster response.
Remember, these MODs are created by people who VOLUNTEER their time. They are NOT paid to do all the great work they are doing. They have lives outside of SMF and writing MODs.
Have some patience.
Cal
ok no problem I'll wait :)
Quote from: CrazieGrafix on July 23, 2011, 09:29:40 PM
Thanks hcfwesker for trying to help but to many edits for me to get this working.
Upload & Attach your Display.template.php file from your default theme, I'll take a look at it.
Here you go and thanks for your help :)
here ya go
Any update on when this will be released for the latest version of SMF?
lol, we are on 2.0 and this still says compatible with smf rc 4!
Outdated ...
Quote from: CrazieGrafix on July 24, 2011, 11:29:16 AM
here ya go
I need Display.template.php from your Themes/default/ folder , you attached Sources/Display.php
Or, if you really wanna fix this, quicker, just PM me, if you're willing to give me a temp admin access account to your forum.
Quote from: Sisko Punk on July 24, 2011, 07:45:21 PM
lol, we are on 2.0 and this still says compatible with smf rc 4!
Outdated ...
I know, man. It's crazy to think some MOD authors have busy lives of their own. ::) 2-3 pages back author already commented on the late update, and he's working on it
hcfwesker, is this the mod you used on the forum in your signature? If so, is there an option in the mod to place it above the signature or did you code that in? Just want to make sure before I install.
Quote from: hcfwesker on July 24, 2011, 07:54:00 PM
Quote from: Sisko Punk on July 24, 2011, 07:45:21 PM
lol, we are on 2.0 and this still says compatible with smf rc 4!
Outdated ...
I know, man. It's crazy to think some MOD authors have busy lives of their own. ::) 2-3 pages back author already commented on the late update, and he's working on it
Yeah you would actually have to read back a few posts to see that someone took over the mod and has been working on getting a large update with all the requests and fixes folks have been asking for. Nah much easier to be a troll and leave a negative post for no reason. now that is LOL.
PS THANKS hcfwesker for helping with support !!
Quote from: digitalmikey on July 24, 2011, 10:53:06 PM
hcfwesker, is this the mod you used on the forum in your signature? If so, is there an option in the mod to place it above the signature or did you code that in? Just want to make sure before I install.
It's my own custom edit, and would be glad to share the edits with you (only 2 edits in the same file, actually ). After you Install this MOD, just tell me exactly where you want it, above/below signature, and which SMF version you're on. Also, wouldn't hurt if you attached you Display.template.php file from your Themes/default folder, just in case there are MOd eidts to the signature that I'd be unaware of.
@ spuds, thanx, bro, that means a lot. :) Not trying to steal your thunder, I just like helping when I can actually help, lol, it's very rare when i actually know what i'm doing :P
sorry about that :D
Quote from: CrazieGrafix on July 25, 2011, 03:11:41 PM
sorry about that :D
Attached. Since you did request for the signature display, I rearranged you sig options, so it went in this order
signature
custom profile fields under sig
awards
shop items
Just make sure to have your backup file ready in case something goes wrong. Let me know if it works, bud. :)
It added it under the post and streched the page a bit here is a link for ya
http://mympz.com/index.php?topic=1.0
alright give me a few minutes to correct this. Its just so much easier if i can see the edits as soon as i make them :P
try the one attached below
sorry was eating dinner but worked great thanks
You're welcome, and you can remove the admin access if you like. Good Luck with your site. :)
Thank you so much.
THIS MOD IS LOOKING GOOOODDD!!! Can't wait :B!!! :D
thanks for this great mod but I have a question, How I can make the awards show on the user's signature?
I'm use the SMF 2.0
Quote from: MaNaRa on July 28, 2011, 11:55:59 AM
thanks for this great mod but I have a question, How I can make the awards show on the user's signature?
I'm use the SMF 2.0 and this is my Display.template.php
I'll post the edits I made for them, to appear on my site, for ya when I get home later tonight. Do you want them above, or below the signature?
Also, the 2.0 update plans on adding this, but it's up to you, if you want to wait.
Quote from: hcfwesker on July 28, 2011, 08:04:41 PM
Quote from: MaNaRa on July 28, 2011, 11:55:59 AM
thanks for this great mod but I have a question, How I can make the awards show on the user's signature?
I'm use the SMF 2.0 and this is my Display.template.php
I'll post the edits I made for them, to appear on my site, for ya when I get home later tonight. Do you want them above, or below the signature?
Also, the 2.0 update plans on adding this, but it's up to you, if you want to wait.
Hi hcfwesker, I prefer below the signature. Take a long time to get the 2.0 update?
If take a long time I could help to implement it manually? Here are my new display.template.php.
If it takes a few days do not mind waiting but I really need this modification
Info: Im use an aditional theme but this theme don't have the display.template, this is of default theme ;)
Is anyone else having the "Add/Modify" field in the wrong place at the admin section?
For me its at the wrong spot, but it still works o.O .
ive followed instructions, but on posts there are two award boxes, which file have i duplicated the code in?
Quote from: MaNaRa on July 29, 2011, 02:10:52 PMHi hcfwesker, I prefer below the signature. Take a long time to get the 2.0 update?
If take a long time I could help to implement it manually? Here are my new display.template.php.
If it takes a few days do not mind waiting but I really need this modification
Info: Im use an aditional theme but this theme don't have the display.template, this is of default theme ;)
Ok, question, though, have you installed the Member Awards MOd to your site, yet. I don't see any of the edits in the file you attached. If I make these edits, then you install the MOd afterwards, you'll have awards showing in post profiles and under signatures.
I'll just show you the manual edits. This is for AFTER you install the MOD.
Display.template.phpStep 1Find & REMOVE
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Step 2Find & REMOVE
// 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>';
Step 3Find
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
Add AFTER
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}
Quote from: matthewj234 on July 29, 2011, 06:27:43 PM
ive followed instructions, but on posts there are two award boxes, which file have i duplicated the code in?
the MOd seems to add duplicates, according to the Parse. Just look above in my post, and follow steps 1 & 2 to remove the duplicate codes.
Quote from: hcfwesker on July 29, 2011, 07:48:16 PMI don't see any of the edits in the file you attached. If I make these edits, then you install the MOd afterwards, you'll have awards showing in post profiles and under signatures.
I'll just show you the manual edits. This is for AFTER you install the MOD.
Yeah no problem with this, I uninstalled the mod because not show the awards under the signature preferred to wait to find the solution to install later, but now it is installed and working perfectly, but I have a problem...
Only shows one award, Is it possible to show all awards under the signature and not just one?, and is it possible to eliminate the framework of the awards?"
Quote from: MaNaRa on July 29, 2011, 10:34:47 PMYeah no problem with this, I uninstalled the mod because not show the awards under the signature preferred to wait to find the solution to install later, but now it is installed and working perfectly, but I have a problem...
Only shows one award, Is it possible to show all awards under the signature and not just one?
,
Admin > Awards > Settings > should be the last option about how many awards to display,
Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.just set it to a higher number
Quoteand is it possible to eliminate the framework of the awards?"
This may work, but will remove the frame and frame title.
in the same file....
Find & REMOVE
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
But Awards will merge with sigs without a divider separating them. looks really tacky when i just tested.
Now it's perfect! thank you so much :)
Quote from: hcfwesker on July 29, 2011, 11:30:57 PMBut Awards will merge with sigs without a divider separating them. looks really tacky when i just tested.
And couldn't put a dividing line and a little jump page similar to this?
Yeah, a line could be added, or is that what you did, already.
No, I still have not done it because not know much about php code, but if you could add a little to separate them would be perfect ;)
Quote from: MaNaRa on July 30, 2011, 03:38:26 AM
No, I still have not done it because not know much about php code, but if you could add a little to separate them would be perfect ;)
I'm not home to test, but you can try this ...
in the same file, with the awards under sig edit
Find
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
change to
<hr><a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
Now looks good, but But I think one </hr> is missing, because the line doesn't end.
Try just using this, for the entire awards code ...
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<div class="signature"></div>';
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</li>';
}
Perfect!! Now works excellent :D
Just a tip: I already have changed but I've noticed there's an extra <li>
<li>
<div class="signature"></div>';
I deleted it and works great, thank you very much for your patience and support ;)
Too Pro. I just left the <li></li> both in there, since 1 was opening and the other was closing, and didn't seem to make any difference when testing.
And, you're welcome. Glad I could help.
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.
when is this updated for 2.0
Works on my SMF 2.0 Final Version
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!
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
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.
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."
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.
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
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.
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.
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. :)
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!
Quote10) guaranteed to have bugs :)
i laughed..
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?
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.
dammit, any chance I can get a copy of the update that was taken down?
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.
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?
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.
Quote from: Sisko Punk on August 07, 2011, 07:39:07 AM
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.
Thanks for your help! I'll do that.
Got a couple of things not showing properly in my admin panel so I'm parsing my various mod changes to a clean copy of admin.php to see if that helps.
Here's what I have for Member Awards:
/Sources/Admin.php
Find: [Select]
),
),
'layout' => array(
Add Before: [Select]
'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']),
),
),
Find: [Select]
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum',
Add After: [Select]
'manage_awards',
'manage_awards' shows as an Add After - which I've finally learnt means put it in BEFORE the stuff you had to find. However common sense says it goes in after 'moderate_forum' - so now I'm trying to decide whether I've done the right thing by putting the main chunk of code in the first change in AFTER 'layout' => array(
Anyone know for sure please?
Quote'manage_awards' shows as an Add After - which I've finally learnt means put it in BEFORE the stuff you had to find.
Actually it's the opposite. The code listed under "FIND", just find it, and the code you edit in, whether labeled Add AFTER (means below the original lines of code you FOUND), or Add BEFORE (means above the original lines of code you FOUND)
Add After, for this particular edit, means it should be edited to look like this.
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_awards',
BUT, if you got an install error, it probably means another MOD got added in it's place which means you just add it after the last thing added.
For example, if you had the advance prefic MOD installed.
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_prefixes',
^ the 'manage_prefixes' was added, and the MOD installation will bring back an error, since it's originally looking for CLEAN/Fresh php files. So, do manually edit it corfrectly, you would do this
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_prefixes','manage_awards',
About the Awards menu appearing, it's just for the order of how you want it to appear in the admin page. This will install it UNDERNEATH the 'themes' menu in your admin panel.
FIND
'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
ADD (the following code) AFTER ( the code above)
'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']),
),
),
I think that was what you were asking explanation on?
Quote from: hcfwesker on August 08, 2011, 03:56:55 PM
Add After, for this particular edit, means it should be edited to look like this.
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_awards',
BUT, if you got an install error, it probably means another MOD got added in it's place which means you just add it after the last thing added.
For example, if you had the advance prefic MOD installed.
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_prefixes',
^ the 'manage_prefixes' was added, and the MOD installation will bring back an error, since it's originally looking for CLEAN/Fresh php files. So, do manually edit it corfrectly, you would do this
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum','manage_prefixes','manage_awards',
That is really helpful! Thanks. I thought I had the correct page to edit, but it seems I don't. Just to clarify, it's the sources.admin.php file I need, right? Where do I find this file?
I edited my reply above with other info that may help.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:01:42 PM
That is really helpful! Thanks. I thought I had the correct page to edit, but it seems I don't. Just to clarify, it's the sources.admin.php file I need, right? Where do I find this file?
One thing that I found out the hard way, is when you have to manually install an ERROR. When you open the file to edit, don't search the entire line of code, just try searching the first line, or a portion ...
// You have to be able to do at least one of the below to see this page.
^^ Then, once you find it, just examine the lines with it, to see if it reflects a majority of what you were suppose to find.
The file you're looking for, will be under your Cpanel, under File Manager, or Legacy File Manager. Or if you have FTP access (which i never use, myself,)
You'll want to look under public_html > Sources > Admin.php <--- click the file to open and edit it. Always note changes, or download the file before editing, just so you have a backup ready and if you make a mistake, you can simply upload the file to overwrite it.
Quote from: hcfwesker on August 08, 2011, 04:06:15 PM
I edited my reply above with other info that may help.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:01:42 PM
That is really helpful! Thanks. I thought I had the correct page to edit, but it seems I don't. Just to clarify, it's the sources.admin.php file I need, right? Where do I find this file?
One thing that I found out the hard way, is when you have to manually install an ERROR. When you open the file to edit, don't search the entire line of code, just try searching the first line, or a portion ...
// You have to be able to do at least one of the below to see this page.
^^ Then, once you find it, just examine the lines with it, to see if it reflects a majority of what you were suppose to find.
The file you're looking for, will be under your Cpanel, under File Manager, or Legacy File Manager. Or if you have FTP access (which i never use, myself,)
You'll want to look under public_html > Sources > Admin.php <--- click the file to open and edit it. Always note changes, or download the file before editing, just so you have a backup ready and if you make a mistake, you can simply upload the file to overwrite it.
Thanks for the advice. I'll try that now.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:08:29 PM
Quote from: hcfwesker on August 08, 2011, 04:06:15 PM
I edited my reply above with other info that may help.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:01:42 PM
That is really helpful! Thanks. I thought I had the correct page to edit, but it seems I don't. Just to clarify, it's the sources.admin.php file I need, right? Where do I find this file?
One thing that I found out the hard way, is when you have to manually install an ERROR. When you open the file to edit, don't search the entire line of code, just try searching the first line, or a portion ...
// You have to be able to do at least one of the below to see this page.
^^ Then, once you find it, just examine the lines with it, to see if it reflects a majority of what you were suppose to find.
The file you're looking for, will be under your Cpanel, under File Manager, or Legacy File Manager. Or if you have FTP access (which i never use, myself,)
You'll want to look under public_html > Sources > Admin.php <--- click the file to open and edit it. Always note changes, or download the file before editing, just so you have a backup ready and if you make a mistake, you can simply upload the file to overwrite it.
Thanks for the advice. I'll try that now.
Ah, it seems that was OK in my admin.php file. In fact, it was the first part that errored on install.
It says I need to find this:
),
),
'layout' => array(
and add this 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']),
),
),
However, I can't find the first bit of code in the file.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:17:23 PM
Quote from: Sci-Fi_Fan on August 08, 2011, 04:08:29 PM
Quote from: hcfwesker on August 08, 2011, 04:06:15 PM
I edited my reply above with other info that may help.
Quote from: Sci-Fi_Fan on August 08, 2011, 04:01:42 PM
That is really helpful! Thanks. I thought I had the correct page to edit, but it seems I don't. Just to clarify, it's the sources.admin.php file I need, right? Where do I find this file?
One thing that I found out the hard way, is when you have to manually install an ERROR. When you open the file to edit, don't search the entire line of code, just try searching the first line, or a portion ...
// You have to be able to do at least one of the below to see this page.
^^ Then, once you find it, just examine the lines with it, to see if it reflects a majority of what you were suppose to find.
The file you're looking for, will be under your Cpanel, under File Manager, or Legacy File Manager. Or if you have FTP access (which i never use, myself,)
You'll want to look under public_html > Sources > Admin.php <--- click the file to open and edit it. Always note changes, or download the file before editing, just so you have a backup ready and if you make a mistake, you can simply upload the file to overwrite it.
Thanks for the advice. I'll try that now.
Ah, it seems that was OK in my admin.php file. In fact, it was the first part that errored on install.
It says I need to find this:
),
),
'layout' => array(
and add this 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']),
),
),
However, I can't find the first bit of code in the file.
Ah! After some experiementing and rejigging of the code (with a backup ready, of course!), I finally managed to get it to work properly. Thanks for all of your help and support!
Thank you Hcfwesker - I was told the same when I asked a similar question yesterday on the Edit Emails thread.
I've spent ages trying to train myself that Before = After, only to discover yesterday that the rule only applies to making manual edits from the .xml file in a package.
I finally understand why my carefully modified files create the chaos that they do! :-[ :D
Hi, it's me again! Sorry to keep bothering you with my problems, but I can't get the mod to display awards in topic view. I have it installed and working fine, apart from that. I can add/edit awards, assign them and view them in a member's profile, just not in topic view. I'm running SMF 2.0 if that helps.
Thanks in advance!
You're Welcome, treehugger. :)
Quote from: Sci-Fi_Fan on August 09, 2011, 06:55:07 AM
Hi, it's me again! Sorry to keep bothering you with my problems, but I can't get the mod to display awards in topic view. I have it installed and working fine, apart from that. I can add/edit awards, assign them and view them in a member's profile, just not in topic view. I'm running SMF 2.0 if that helps.
Thanks in advance!
Try checking this post, and the 4 posts that follow, to see if that helps. http://www.simplemachines.org/community/index.php?topic=114701.msg3117407#msg3117407
Parse the MOD and make sure all language file edits were made. Particularly languages/Admin.english.php , or whichever is your default language.
[/quote]
okay, tried this, I still get same result, text doesnt show up under features and options only a blank space. When i click the blank see the url http://www.psvita-mod.com/forums/index.php?action=admin;area=featuresettings;sa=awards;b571fe07be=155c5f15bba0ac1d6438d7f842fa0b59
but it redirects to the configuration page in admin panel, any ideas or do i need to wait on a update, or will there be one?
Quote from: thecoo1est on August 09, 2011, 04:20:26 PM
okay, tried this, I still get same result, text doesnt show up under features and options only a blank space. When i click the blank see the url http://www.psvita-mod.com/forums/index.php?action=admin;area=featuresettings;sa=awards;b571fe07be=155c5f15bba0ac1d6438d7f842fa0b59
but it redirects to the configuration page in admin panel, any ideas or do i need to wait on a update, or will there be one?
Sorry, it's under this file, actually. Themes/default/languages/Modifications.english.php <---- the language edits of that file. Also, check on 'server settings' to see what your forum's default language is.
yea, I manually did the subs.php and admin.php, all others including "default/languages/Modifications.english.php" were edited correctly from what I seen, I parsed the file and checked all my files against the parsed files, but it just wouldnt work, I guess I will wait on a update or something unless someone can figure this out before then, thanks for your advice.
*Would my portal or anything have something to do with it?
Quote from: thecoo1est on August 10, 2011, 09:17:57 PM
yea, I manually did the subs.php and admin.php, all others including "default/languages/Modifications.english.php" were edited correctly from what I seen, I parsed the file and checked all my files against the parsed files, but it just wouldnt work, I guess I will wait on a update or something unless someone can figure this out before then, thanks for your advice.
*Would my portal or anything have something to do with it?
I'm having the same exact problem. It just won't show up in the posts. Profiles...no issues. Admin section, no issues. What good is it if you can't display them in the posts below the avatar??
Quote from: David111567 on August 13, 2011, 02:58:20 AM
Quote from: thecoo1est on August 10, 2011, 09:17:57 PM
yea, I manually did the subs.php and admin.php, all others including "default/languages/Modifications.english.php" were edited correctly from what I seen, I parsed the file and checked all my files against the parsed files, but it just wouldnt work, I guess I will wait on a update or something unless someone can figure this out before then, thanks for your advice.
*Would my portal or anything have something to do with it?
I'm having the same exact problem. It just won't show up in the posts. Profiles...no issues. Admin section, no issues. What good is it if you can't display them in the posts below the avatar??
Yeah I'm afraid I have to second this. I attempted to do the edits manually, but I gave up after a short while. There's too much to edit to make this happen. Will it be possible to fix this in a future update?
QuoteI'm having the same exact problem. It just won't show up in the posts. Profiles...no issues. Admin section, no issues. What good is it if you can't display them in the posts below the avatar??
Make sure that under award settings, the show awards in post value is > 0 or nothing will show up.
QuoteYeah I'm afraid I have to second this. I attempted to do the edits manually, but I gave up after a short while. There's too much to edit to make this happen. Will it be possible to fix this in a future update?
Unlikely .... the edits to the template files are required and there is no integration hook way around that. If another mod or a custom theme has made the search points unavailable its manual edit time. Its why those specific edits were placed in a separate .xml file.
Quote from: Spuds on August 13, 2011, 11:50:35 AM
QuoteI'm having the same exact problem. It just won't show up in the posts. Profiles...no issues. Admin section, no issues. What good is it if you can't display them in the posts below the avatar??
Make sure that under award settings, the show awards in post value is > 0 or nothing will show up.
QuoteYeah I'm afraid I have to second this. I attempted to do the edits manually, but I gave up after a short while. There's too much to edit to make this happen. Will it be possible to fix this in a future update?
Unlikely .... the edits to the template files are required and there is no integration hook way around that. If another mod or a custom theme has made the search points unavailable its manual edit time. Its why those specific edits were placed in a separate .xml file.
okay, Im on smf 2.0 gold, I installed this emulated on rc4, the only file that faile were admin.php and subs.php, I manually edited those and I have a blank space in the tab where the awards text is supposed to be, when i hover over it I can see the link "myurl/sa=awards" I click the blank space and it redirects to admin panel features and settings, in essence refreshing the page im on really, I checked all the edits in every other file to make sure install edited them right and they all were correct but I still have this problem, I even tried uninstalling and reinstalling as 2.0. Im not that new to this but Ive done all I can except rewrite php code which I would have no idea where to start with that, is there a known bug with another mod I might have? I just dont understand it honestly because everyting is there.
If the only problem you are having is the missing text string, that would indicate that either (or both) of the following things happened. Also you should not have to emulate rc4 but it does not hurt either.
1) The edits to Modifications.english.php did not happen
2) The file ManageAwards.english.php file did not get copied to the language file directory (if you are using a custom there place a copy in there as well, should not have to do this but ...)
there are utf8 versions of the above if you are using that on your forum.
Those languages files will be under Themes\default\languages
Hello, Spuds! :)
Please write in this modification the ability to add in the future such functions:
to reward one person of the same award more than once?
Screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi24.fastpic.ru%2Fbig%2F2011%2F0815%2Fd1%2Ff5c7889da3c6d284451f3afbf3218fd1.jpg&hash=f7c795a7a573f357e0ea3c7a9114a42fba7bd9ba)
P.S. Sorry for my english.
Quote from: Spuds on August 13, 2011, 12:31:03 PM
If the only problem you are having is the missing text string, that would indicate that either (or both) of the following things happened. Also you should not have to emulate rc4 but it does not hurt either.
1) The edits to Modifications.english.php did not happen
2) The file ManageAwards.english.php file did not get copied to the language file directory (if you are using a custom there place a copy in there as well, should not have to do this but ...)
there are utf8 versions of the above if you are using that on your forum.
Those languages files will be under Themes\default\languages
I checked all the files, they all had the edits in them, i will just wait for update if there ever is one, Ive been through this thing 5 or 6 times uninstalling reinstalling triple checking ever single edit manually, it just will not work with my setup for whatever reason.
QuotePlease write in this modification the ability to add in the future such functions:
to reward one person of the same award more than once?
Not planning on adding that .... you can always define another award with the same image, and assign that to the member.
QuoteI checked all the files, they all had the edits in them, i will just wait for update if there ever is one, Ive been through this thing 5 or 6 times uninstalling reinstalling triple checking ever single edit manually, it just will not work with my setup for whatever reason.
Pretty strange ... only other thing it could be is some old cache file on the server. I've put the update on the shelf for the time being, its was not working and I just don't have the desire to do any work on it ATM, just have to many other projects going on.
I'm trying to figure out if I should install the current version of this mod or hold off until the next main version is released. Is there an estimation as to when the next version will be released? September, October, etc?
I appreciate all the hard work!
Is the text on each of these awards generated by the 'Award Name' field when filled in or would I have to make custom ones in Photoshop etc to change the text on it?
A couple of questions:
The awards section in topic view, is there a way to adjust the width of it? My awards are showing, but there is a big gap between the end of my awards and the "border" of the section.
Additionally, is there a way to extend the length of the award description? The current length seems very short.
Okay I am trying to get the "Awards" link to show in its own tab, yet I can only seem to put it in a drop down of another menu item. Right now I have it under "Configuration" but I'd like it to have it's own link by itself in the admin menu. How would I go about doing this? Here is my Admin.php:
<?php
/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines
*
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0
*/
if (!defined('SMF'))
die('Hacking attempt...');
/* This file, unpredictable as this might be, handles basic administration.
void AdminMain()
- initialises all the basic context required for the admin center.
- passes execution onto the relevant admin section.
- if the passed section is not found it shows the admin home page.
void AdminHome()
- prepares all the data necessary for the administration front page.
- uses the Admin template along with the admin sub template.
- requires the moderate_forum, manage_membergroups, manage_bans,
admin_forum, manage_permissions, manage_attachments, manage_smileys,
manage_boards, edit_news, or send_mail permission.
- uses the index administrative area.
- can be found by going to ?action=admin.
void AdminSearch()
- allocates out all the search stuff.
void AdminSearchInternal()
- a complicated but relatively quick internal search.
void AdminSearchMember()
- pass through to manage members.
void DisplayAdminFile()
- get one of the admin information files from Simple Machines.
*/
// The main admin handling function.
function AdminMain()
{
global $txt, $context, $scripturl, $sc, $modSettings, $user_info, $settings, $sourcedir, $options, $smcFunc, $boarddir;
// Load the language and templates....
loadLanguage('Admin');
loadTemplate('Admin', 'admin');
// No indexing evil stuff.
$context['robot_no_index'] = true;
require_once($sourcedir . '/Subs-Menu.php');
// Some preferences.
$context['admin_preferences'] = !empty($options['admin_preferences']) ? unserialize($options['admin_preferences']) : array();
// Define all the menu structure - see Subs-Menu.php for details!
$admin_areas = array(
'forum' => array(
'title' => $txt['admin_main'],
'permission' => array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'),
'areas' => array(
'index' => array(
'label' => $txt['admin_center'],
'function' => 'AdminHome',
'icon' => 'administration.gif',
),
'credits' => array(
'label' => $txt['support_credits_title'],
'function' => 'AdminHome',
'icon' => 'support.gif',
),
'news' => array(
'label' => $txt['news_title'],
'file' => 'ManageNews.php',
'function' => 'ManageNews',
'icon' => 'news.gif',
'permission' => array('edit_news', 'send_mail', 'admin_forum'),
'subsections' => array(
'editnews' => array($txt['admin_edit_news'], 'edit_news'),
'mailingmembers' => array($txt['admin_newsletters'], 'send_mail'),
'settings' => array($txt['settings'], 'admin_forum'),
),
),
'packages' => array(
'label' => $txt['package'],
'file' => 'Packages.php',
'function' => 'Packages',
'permission' => array('admin_forum'),
'icon' => 'packages.gif',
'subsections' => array(
'browse' => array($txt['browse_packages']),
'packageget' => array($txt['download_packages'], 'url' => $scripturl . '?action=admin;area=packages;sa=packageget;get'),
'installed' => array($txt['installed_packages']),
'perms' => array($txt['package_file_perms']),
'options' => array($txt['package_settings']),
),
),
'search' => array(
'function' => 'AdminSearch',
'permission' => array('admin_forum'),
'select' => 'index'
),
),
),
'config' => array(
'title' => $txt['admin_config'],
'permission' => array('admin_forum'),
'areas' => array(
'corefeatures' => array(
'label' => $txt['core_settings_title'],
'file' => 'ManageSettings.php',
'function' => 'ModifyCoreFeatures',
'icon' => 'corefeatures.gif',
),
'shoutbox' => array(
'label' => $txt['sba_link'],
'file' => 'ManageShoutbox.php',
'function' => 'ManageShoutbox',
'icon' => 'support.gif',
),
'featuresettings' => array(
'label' => $txt['modSettings_title'],
'file' => 'ManageSettings.php',
'function' => 'ModifyFeatureSettings',
'icon' => 'features.gif',
'subsections' => array(
'basic' => array($txt['mods_cat_features']),
'layout' => array($txt['mods_cat_layout']),
'MemberColorLinks' => array($txt['MemberColorLinkHeadline']),
'karma' => array($txt['karma'], 'enabled' => in_array('k', $context['admin_features'])),
'sig' => array($txt['signature_settings_short']),
'profile' => array($txt['custom_profile_shorttitle'], 'enabled' => in_array('cp', $context['admin_features'])),
),
),
'securitysettings' => array(
'label' => $txt['admin_security_moderation'],
'file' => 'ManageSettings.php',
'function' => 'ModifySecuritySettings',
'icon' => 'security.gif',
'subsections' => array(
'general' => array($txt['mods_cat_security_general']),
'spam' => array($txt['antispam_title']),
'moderation' => array($txt['moderation_settings_short'], 'enabled' => substr($modSettings['warning_settings'], 0, 1) == 1),
),
),
'languages' => array(
'label' => $txt['language_configuration'],
'file' => 'ManageServer.php',
'function' => 'ManageLanguages',
'icon' => 'languages.gif',
'subsections' => array(
'edit' => array($txt['language_edit']),
'add' => array($txt['language_add']),
'settings' => array($txt['language_settings']),
),
),
'serversettings' => array(
'label' => $txt['admin_server_settings'],
'file' => 'ManageServer.php',
'function' => 'ModifySettings',
'icon' => 'server.gif',
'subsections' => array(
'general' => array($txt['general_settings']),
'database' => array($txt['database_paths_settings']),
'cookie' => array($txt['cookies_sessions_settings']),
'cache' => array($txt['caching_settings']),
'loads' => array($txt['load_balancing_settings']),
),
),
'feedsadmin' => array(
'label' => $txt['smfrssposter_admin'],
'file' => 'FeedPoster2.php',
'function' => 'FeedsMain',
'custom_url' => $scripturl . '?action=admin;area=feedsadmin;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(),
),
'comment' => array(
'label' => $txt['pcomments_admin'],
'file' => 'ProfileComments2.php',
'function' => 'CommentsMain',
'custom_url' => $scripturl . '?action=admin;area=comment;sa=admin;sesc=' . $sc,
'icon' => 'server.gif',
'subsections' => array(),
),
'current_theme' => array(
'label' => $txt['theme_current_settings'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=settings;th=' . $settings['theme_id'],
'icon' => 'current_theme.gif',
),
'theme' => array(
'label' => $txt['theme_admin'],
'file' => 'Themes.php',
'function' => 'ThemesMain',
'custom_url' => $scripturl . '?action=admin;area=theme;sa=admin',
'icon' => 'themes.gif',
'subsections' => array(
'admin' => array($txt['themeadmin_admin_title']),
'list' => array($txt['themeadmin_list_title']),
'reset' => array($txt['themeadmin_reset_title']),
'edit' => array($txt['themeadmin_edit_title']),
),
),
'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']),
),
),
'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'general' => array($txt['mods_cat_modifications_misc']),
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
'sitemap' => array($txt['sitemap']),
'enotify' => array('ENotify'),
),
),
),
),
'store' => array(
'title' => $txt['smfstore_admin'],
'permission' => array('smfstore_manage'),
'areas' => array(
'store' => array(
'label' => $txt['smfstore_admin'],
'file' => 'Store2.php',
'function' => 'StoreMain',
'custom_url' => $scripturl . '?action=admin;area=store;sa=admin;sesc=' . $sc,
'icon' => 'server.gif',
),),
),
'mediapro' => array(
'title' => $txt['mediapro_admin'],
'permission' => array('admin_forum'),
'areas' => array(
'mediapro' => array(
'label' => $txt['mediapro_settings'],
'file' => 'AutoEmbedMediaPro2.php',
'function' => 'MediaProMain',
'custom_url' => $scripturl . '?action=admin;area=mediapro;sa=settings;sesc=' . $sc,
'icon' => 'server.gif',
'permission' => array('admin_forum'),
'subsections' => array(
'settings' => array($txt['mediapro_settings']),
),
),
),
),
'layout' => array(
'title' => $txt['layout_controls'],
'permission' => array('manage_boards', 'admin_forum', 'manage_smileys', 'manage_attachments', 'moderate_forum'),
'areas' => array(
'manageboards' => array(
'label' => $txt['admin_boards'],
'file' => 'ManageBoards.php',
'function' => 'ManageBoards',
'icon' => 'boards.gif',
'permission' => array('manage_boards'),
'subsections' => array(
'main' => array($txt['boardsEdit']),
'newcat' => array($txt['mboards_new_cat']),
'settings' => array($txt['settings'], 'admin_forum'),
),
),
'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings']),
'bbc' => array($txt['manageposts_bbc_settings']),
'censor' => array($txt['admin_censored_words']),
'topics' => array($txt['manageposts_topic_settings']),
),
),
'managecalendar' => array(
'label' => $txt['manage_calendar'],
'file' => 'ManageCalendar.php',
'function' => 'ManageCalendar',
'icon' => 'calendar.gif',
'permission' => array('admin_forum'),
'enabled' => in_array('cd', $context['admin_features']),
'subsections' => array(
'holidays' => array($txt['manage_holidays'], 'admin_forum', 'enabled' => !empty($modSettings['cal_enabled'])),
'settings' => array($txt['calendar_settings'], 'admin_forum'),
),
),
'managesearch' => array(
'label' => $txt['manage_search'],
'file' => 'ManageSearch.php',
'function' => 'ManageSearch',
'icon' => 'search.gif',
'permission' => array('admin_forum'),
'subsections' => array(
'weights' => array($txt['search_weights']),
'method' => array($txt['search_method']),
'settings' => array($txt['settings']),
),
),
'smileys' => array(
'label' => $txt['smileys_manage'],
'file' => 'ManageSmileys.php',
'function' => 'ManageSmileys',
'icon' => 'smiley.gif',
'permission' => array('manage_smileys'),
'subsections' => array(
'editsets' => array($txt['smiley_sets']),
'addsmiley' => array($txt['smileys_add'], 'enabled' => !empty($modSettings['smiley_enable'])),
'editsmileys' => array($txt['smileys_edit'], 'enabled' => !empty($modSettings['smiley_enable'])),
'setorder' => array($txt['smileys_set_order'], 'enabled' => !empty($modSettings['smiley_enable'])),
'editicons' => array($txt['icons_edit_message_icons'], 'enabled' => !empty($modSettings['messageIcons_enable'])),
'settings' => array($txt['settings']),
),
),
'manageattachments' => array(
'label' => $txt['attachments_avatars'],
'file' => 'ManageAttachments.php',
'function' => 'ManageAttachments',
'icon' => 'attachment.gif',
'permission' => array('manage_attachments'),
'subsections' => array(
'browse' => array($txt['attachment_manager_browse']),
'attachments' => array($txt['attachment_manager_settings']),
'avatars' => array($txt['attachment_manager_avatar_settings']),
'maintenance' => array($txt['attachment_manager_maintenance']),
),
),
),
),
'members' => array(
'title' => $txt['admin_manage_members'],
'permission' => array('moderate_forum', 'manage_membergroups', 'manage_bans', 'manage_permissions', 'admin_forum'),
'areas' => array(
'viewmembers' => array(
'label' => $txt['admin_users'],
'file' => 'ManageMembers.php',
'function' => 'ViewMembers',
'icon' => 'members.gif',
'permission' => array('moderate_forum'),
'subsections' => array(
'all' => array($txt['view_all_members']),
'search' => array($txt['mlist_search']),
),
),
'membergroups' => array(
'label' => $txt['admin_groups'],
'file' => 'ManageMembergroups.php',
'function' => 'ModifyMembergroups',
'icon' => 'membergroups.gif',
'permission' => array('manage_membergroups'),
'subsections' => array(
'index' => array($txt['membergroups_edit_groups'], 'manage_membergroups'),
'add' => array($txt['membergroups_new_group'], 'manage_membergroups'),
'settings' => array($txt['settings'], 'admin_forum'),
),
),
'permissions' => array(
'label' => $txt['edit_permissions'],
'file' => 'ManagePermissions.php',
'function' => 'ModifyPermissions',
'icon' => 'permissions.gif',
'permission' => array('manage_permissions'),
'subsections' => array(
'index' => array($txt['permissions_groups'], 'manage_permissions'),
'board' => array($txt['permissions_boards'], 'manage_permissions'),
'profiles' => array($txt['permissions_profiles'], 'manage_permissions'),
'postmod' => array($txt['permissions_post_moderation'], 'manage_permissions', 'enabled' => $modSettings['postmod_active']),
'settings' => array($txt['settings'], 'admin_forum'),
),
),
'regcenter' => array(
'label' => $txt['registration_center'],
'file' => 'ManageRegistration.php',
'function' => 'RegCenter',
'icon' => 'regcenter.gif',
'permission' => array('admin_forum', 'moderate_forum'),
'subsections' => array(
'register' => array($txt['admin_browse_register_new'], 'moderate_forum'),
'agreement' => array($txt['registration_agreement'], 'admin_forum'),
'reservednames' => array($txt['admin_reserved_set'], 'admin_forum'),
'settings' => array($txt['settings'], 'admin_forum'),
),
),
'ban' => array(
'label' => $txt['ban_title'],
'file' => 'ManageBans.php',
'function' => 'Ban',
'icon' => 'ban.gif',
'permission' => 'manage_bans',
'subsections' => array(
'list' => array($txt['ban_edit_list']),
'add' => array($txt['ban_add_new']),
'browse' => array($txt['ban_trigger_browse']),
'log' => array($txt['ban_log']),
),
),
'paidsubscribe' => array(
'label' => $txt['paid_subscriptions'],
'enabled' => in_array('ps', $context['admin_features']),
'file' => 'ManagePaid.php',
'icon' => 'paid.gif',
'function' => 'ManagePaidSubscriptions',
'permission' => 'admin_forum',
'subsections' => array(
'view' => array($txt['paid_subs_view']),
'settings' => array($txt['settings']),
),
),
'sengines' => array(
'label' => $txt['search_engines'],
'enabled' => in_array('sp', $context['admin_features']),
'file' => 'ManageSearchEngines.php',
'icon' => 'engines.gif',
'function' => 'SearchEngines',
'permission' => 'admin_forum',
'subsections' => array(
'stats' => array($txt['spider_stats']),
'logs' => array($txt['spider_logs']),
'spiders' => array($txt['spiders']),
'settings' => array($txt['settings']),
),
),
),
),
'maintenance' => array(
'title' => $txt['admin_maintenance'],
'permission' => array('admin_forum'),
'areas' => array(
'maintain' => array(
'label' => $txt['maintain_title'],
'file' => 'ManageMaintenance.php',
'icon' => 'maintain.gif',
'function' => 'ManageMaintenance',
'subsections' => array(
'routine' => array($txt['maintain_sub_routine'], 'admin_forum'),
'database' => array($txt['maintain_sub_database'], 'admin_forum'),
'members' => array($txt['maintain_sub_members'], 'admin_forum'),
'topics' => array($txt['maintain_sub_topics'], 'admin_forum'),
),
),
'scheduledtasks' => array(
'label' => $txt['maintain_tasks'],
'file' => 'ManageScheduledTasks.php',
'icon' => 'scheduled.gif',
'function' => 'ManageScheduledTasks',
'subsections' => array(
'tasks' => array($txt['maintain_tasks'], 'admin_forum'),
'tasklog' => array($txt['scheduled_log'], 'admin_forum'),
),
),
'mailqueue' => array(
'label' => $txt['mailqueue_title'],
'file' => 'ManageMail.php',
'function' => 'ManageMail',
'icon' => 'mail.gif',
'subsections' => array(
'browse' => array($txt['mailqueue_browse'], 'admin_forum'),
'settings' => array($txt['mailqueue_settings'], 'admin_forum'),
),
),
'reports' => array(
'enabled' => in_array('rg', $context['admin_features']),
'label' => $txt['generate_reports'],
'file' => 'Reports.php',
'function' => 'ReportsMain',
'icon' => 'reports.gif',
),
'logs' => array(
'label' => $txt['logs'],
'function' => 'AdminLogs',
'icon' => 'logs.gif',
'subsections' => array(
'errorlog' => array($txt['errlog'], 'admin_forum', 'enabled' => !empty($modSettings['enableErrorLogging']), 'url' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc'),
'adminlog' => array($txt['admin_log'], 'admin_forum', 'enabled' => in_array('ml', $context['admin_features'])),
'modlog' => array($txt['moderation_log'], 'admin_forum', 'enabled' => in_array('ml', $context['admin_features'])),
'banlog' => array($txt['ban_log'], 'manage_bans'),
'spiderlog' => array($txt['spider_logs'], 'admin_forum', 'enabled' => in_array('sp', $context['admin_features'])),
'tasklog' => array($txt['scheduled_log'], 'admin_forum'),
'pruning' => array($txt['pruning_title'], 'admin_forum'),
),
),
'repairboards' => array(
'label' => $txt['admin_repair'],
'file' => 'RepairBoards.php',
'function' => 'RepairBoards',
'select' => 'maintain',
'hidden' => true,
),
),
),
);
// Any files to include for administration?
if (!empty($modSettings['integrate_admin_include']))
{
$admin_includes = explode(',', $modSettings['integrate_admin_include']);
foreach ($admin_includes as $include)
{
$include = strtr(trim($include), array('$boarddir' => $boarddir, '$sourcedir' => $sourcedir, '$themedir' => $settings['theme_dir']));
if (file_exists($include))
require_once($include);
}
}
// Let them modify admin areas easily.
call_integration_hook('integrate_admin_areas', array(&$admin_areas));
// Make sure the administrator has a valid session...
validateSession();
// Actually create the menu!
$admin_include_data = createMenu($admin_areas);
unset($admin_areas);
// Nothing valid?
if ($admin_include_data == false)
fatal_lang_error('no_access', false);
// Build the link tree.
$context['linktree'][] = array(
'url' => $scripturl . '?action=admin',
'name' => $txt['admin_center'],
);
if (isset($admin_include_data['current_area']) && $admin_include_data['current_area'] != 'index')
$context['linktree'][] = array(
'url' => $scripturl . '?action=admin;area=' . $admin_include_data['current_area'] . ';' . $context['session_var'] . '=' . $context['session_id'],
'name' => $admin_include_data['label'],
);
if (!empty($admin_include_data['current_subsection']) && $admin_include_data['subsections'][$admin_include_data['current_subsection']][0] != $admin_include_data['label'])
$context['linktree'][] = array(
'url' => $scripturl . '?action=admin;area=' . $admin_include_data['current_area'] . ';sa=' . $admin_include_data['current_subsection'] . ';' . $context['session_var'] . '=' . $context['session_id'],
'name' => $admin_include_data['subsections'][$admin_include_data['current_subsection']][0],
);
// Make a note of the Unique ID for this menu.
$context['admin_menu_id'] = $context['max_menu_id'];
$context['admin_menu_name'] = 'menu_data_' . $context['admin_menu_id'];
// Why on the admin are we?
$context['admin_area'] = $admin_include_data['current_area'];
// Now - finally - call the right place!
if (isset($admin_include_data['file']))
require_once($sourcedir . '/' . $admin_include_data['file']);
$admin_include_data['function']();
}
// The main administration section.
function AdminHome()
{
global $sourcedir, $forum_version, $txt, $scripturl, $context, $user_info, $boardurl, $modSettings, $smcFunc;
// You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'));
// Find all of this forum's administrators...
require_once($sourcedir . '/Subs-Membergroups.php');
if (listMembergroupMembers_Href($context['administrators'], 1, 32) && allowedTo('manage_membergroups'))
{
// Add a 'more'-link if there are more than 32.
$context['more_admins_link'] = '<a href="' . $scripturl . '?action=moderate;area=viewgroups;sa=members;group=1">' . $txt['more'] . '</a>';
}
// Load the credits stuff.
require_once($sourcedir . '/Who.php');
Credits(true);
// This makes it easier to get the latest news with your time format.
$context['time_format'] = urlencode($user_info['time_format']);
$context['current_versions'] = array(
'php' => array('title' => $txt['support_versions_php'], 'version' => PHP_VERSION),
'db' => array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => ''),
'server' => array('title' => $txt['support_versions_server'], 'version' => $_SERVER['SERVER_SOFTWARE']),
);
$context['forum_version'] = $forum_version;
// Get a list of current server versions.
require_once($sourcedir . '/Subs-Admin.php');
$checkFor = array(
'gd',
'db_server',
'mmcache',
'eaccelerator',
'phpa',
'apc',
'memcache',
'xcache',
'php',
'server',
);
$context['current_versions'] = getServerVersions($checkFor);
$context['can_admin'] = allowedTo('admin_forum');
$context['sub_template'] = $context['admin_area'] == 'credits' ? 'credits' : 'admin';
$context['page_title'] = $context['admin_area'] == 'credits' ? $txt['support_credits_title'] : $txt['admin_center'];
// The format of this array is: permission, action, title, description, icon.
$quick_admin_tasks = array(
array('', 'credits', 'support_credits_title', 'support_credits_info', 'support_and_credits.png'),
array('admin_forum', 'featuresettings', 'modSettings_title', 'modSettings_info', 'features_and_options.png'),
array('admin_forum', 'maintain', 'maintain_title', 'maintain_info', 'forum_maintenance.png'),
array('manage_permissions', 'permissions', 'edit_permissions', 'edit_permissions_info', 'permissions.png'),
array('admin_forum', 'theme;sa=admin;' . $context['session_var'] . '=' . $context['session_id'], 'theme_admin', 'theme_admin_info', 'themes_and_layout.png'),
array('admin_forum', 'packages', 'package', 'package_info', 'packages.png'),
array('manage_smileys', 'smileys', 'smileys_manage', 'smileys_manage_info', 'smilies_and_messageicons.png'),
array('moderate_forum', 'viewmembers', 'admin_users', 'member_center_info', 'members.png'),
);
$context['quick_admin_tasks'] = array();
foreach ($quick_admin_tasks as $task)
{
if (!empty($task[0]) && !allowedTo($task[0]))
continue;
$context['quick_admin_tasks'][] = array(
'href' => $scripturl . '?action=admin;area=' . $task[1],
'link' => '<a href="' . $scripturl . '?action=admin;area=' . $task[1] . '">' . $txt[$task[2]] . '</a>',
'title' => $txt[$task[2]],
'description' => $txt[$task[3]],
'icon' => $task[4],
'is_last' => false
);
}
if (count($context['quick_admin_tasks']) % 2 == 1)
{
$context['quick_admin_tasks'][] = array(
'href' => '',
'link' => '',
'title' => '',
'description' => '',
'is_last' => true
);
$context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 2]['is_last'] = true;
}
elseif (count($context['quick_admin_tasks']) != 0)
{
$context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 1]['is_last'] = true;
$context['quick_admin_tasks'][count($context['quick_admin_tasks']) - 2]['is_last'] = true;
}
// Lastly, fill in the blanks in the support resources paragraphs.
$txt['support_resources_p1'] = sprintf($txt['support_resources_p1'],
'http://wiki.simplemachines.org/',
'http://wiki.simplemachines.org/smf/features2',
'http://wiki.simplemachines.org/smf/options2',
'http://wiki.simplemachines.org/smf/themes2',
'http://wiki.simplemachines.org/smf/packages2'
);
$txt['support_resources_p2'] = sprintf($txt['support_resources_p2'],
'http://www.simplemachines.org/community/',
'http://www.simplemachines.org/redirect/english_support',
'http://www.simplemachines.org/redirect/international_support_boards',
'http://www.simplemachines.org/redirect/smf_support',
'http://www.simplemachines.org/redirect/customize_support'
);
}
// Get one of the admin information files from Simple Machines.
function DisplayAdminFile()
{
global $context, $modSettings, $smcFunc;
@ini_set('memory_limit', '32M');
if (empty($_REQUEST['filename']) || !is_string($_REQUEST['filename']))
fatal_lang_error('no_access', false);
$request = $smcFunc['db_query']('', '
SELECT data, filetype
FROM {db_prefix}admin_info_files
WHERE filename = {string:current_filename}
LIMIT 1',
array(
'current_filename' => $_REQUEST['filename'],
)
);
if ($smcFunc['db_num_rows']($request) == 0)
fatal_lang_error('admin_file_not_found', true, array($_REQUEST['filename']));
list ($file_data, $filetype) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);
// !!! Temp.
// Figure out if sesc is still being used.
if (strpos($file_data, ';sesc=') !== false)
$file_data = '
if (!(\'smfForum_sessionvar\' in window))
window.smfForum_sessionvar = \'sesc\';
' . strtr($file_data, array(';sesc=' => ';\' + window.smfForum_sessionvar + \'='));
$context['template_layers'] = array();
// Lets make sure we aren't going to output anything nasty.
@ob_end_clean();
if (!empty($modSettings['enableCompressedOutput']))
@ob_start('ob_gzhandler');
else
@ob_start();
// Make sure they know what type of file we are.
header('Content-Type: ' . $filetype);
echo $file_data;
obExit(false);
}
// This allocates out all the search stuff.
function AdminSearch()
{
global $txt, $context, $smcFunc, $sourcedir;
isAllowedTo('admin_forum');
// What can we search for?
$subactions = array(
'internal' => 'AdminSearchInternal',
'online' => 'AdminSearchOM',
'member' => 'AdminSearchMember',
);
$context['search_type'] = !isset($_REQUEST['search_type']) || !isset($subactions[$_REQUEST['search_type']]) ? 'internal' : $_REQUEST['search_type'];
$context['search_term'] = isset($_REQUEST['search_term']) ? $smcFunc['htmlspecialchars']($_REQUEST['search_term'], ENT_QUOTES) : '';
$context['sub_template'] = 'admin_search_results';
$context['page_title'] = $txt['admin_search_results'];
// Keep track of what the admin wants.
if (empty($context['admin_preferences']['sb']) || $context['admin_preferences']['sb'] != $context['search_type'])
{
$context['admin_preferences']['sb'] = $context['search_type'];
// Update the preferences.
require_once($sourcedir . '/Subs-Admin.php');
updateAdminPreferences();
}
if (trim($context['search_term']) == '')
$context['search_results'] = array();
else
$subactions[$context['search_type']]();
}
// A complicated but relatively quick internal search.
function AdminSearchInternal()
{
global $context, $txt, $helptxt, $scripturl, $sourcedir;
// Try to get some more memory.
@ini_set('memory_limit', '128M');
// Load a lot of language files.
$language_files = array(
'Help', 'ManageMail', 'ManageSettings', 'ManageCalendar', 'ManageBoards', 'ManagePaid', 'ManagePermissions', 'Search',
'Login', 'ManageSmileys',
);
loadLanguage(implode('+', $language_files));
// All the files we need to include.
$include_files = array(
'ManageSettings', 'ManageBoards', 'ManageNews', 'ManageAttachments', 'ManageCalendar', 'ManageMail', 'ManagePaid', 'ManagePermissions',
'ManagePosts', 'ManageRegistration', 'ManageSearch', 'ManageSearchEngines', 'ManageServer', 'ManageSmileys',
);
foreach ($include_files as $file)
require_once($sourcedir . '/' . $file . '.php');
/* This is the huge array that defines everything... it's a huge array of items formatted as follows:
0 = Language index (Can be array of indexes) to search through for this setting.
1 = URL for this indexes page.
2 = Help index for help associated with this item (If different from 0)
*/
$search_data = array(
// All the major sections of the forum.
'sections' => array(
),
'settings' => array(
array('COPPA', 'area=regcenter;sa=settings'),
array('CAPTCHA', 'area=securitysettings;sa=spam'),
),
);
// Go through the admin menu structure trying to find suitably named areas!
foreach ($context[$context['admin_menu_name']]['sections'] as $section)
{
foreach ($section['areas'] as $menu_key => $menu_item)
{
$search_data['sections'][] = array($menu_item['label'], 'area=' . $menu_key);
if (!empty($menu_item['subsections']))
foreach ($menu_item['subsections'] as $key => $sublabel)
{
if (isset($sublabel['label']))
$search_data['sections'][] = array($sublabel['label'], 'area=' . $menu_key . ';sa=' . $key);
}
}
}
// This is a special array of functions that contain setting data - we query all these to simply pull all setting bits!
$settings_search = array(
array('ModifyCoreFeatures', 'area=corefeatures'),
array('ModifyBasicSettings', 'area=featuresettings;sa=basic'),
array('ModifyLayoutSettings', 'area=featuresettings;sa=layout'),
array('ModifyKarmaSettings', 'area=featuresettings;sa=karma'),
array('ModifySignatureSettings', 'area=featuresettings;sa=sig'),
array('ModifyGeneralSecuritySettings', 'area=securitysettings;sa=general'),
array('ModifySpamSettings', 'area=securitysettings;sa=spam'),
array('ModifyModerationSettings', 'area=securitysettings;sa=moderation'),
array('ModifyGeneralModSettings', 'area=modsettings;sa=general'),
// Mod authors if you want to be "real freaking good" then add any setting pages for your mod BELOW this line!
array('ManageAttachmentSettings', 'area=manageattachments;sa=attachments'),
array('ManageAvatarSettings', 'area=manageattachments;sa=avatars'),
array('ModifyCalendarSettings', 'area=managecalendar;sa=settings'),
array('EditBoardSettings', 'area=manageboards;sa=settings'),
array('ModifyMailSettings', 'area=mailqueue;sa=settings'),
array('ModifyNewsSettings', 'area=news;sa=settings'),
array('GeneralPermissionSettings', 'area=permissions;sa=settings'),
array('ModifyPostSettings', 'area=postsettings;sa=posts'),
array('ModifyBBCSettings', 'area=postsettings;sa=bbc'),
array('ModifyTopicSettings', 'area=postsettings;sa=topics'),
array('EditSearchSettings', 'area=managesearch;sa=settings'),
array('EditSmileySettings', 'area=smileys;sa=settings'),
array('ModifyGeneralSettings', 'area=serversettings;sa=general'),
array('ModifyDatabaseSettings', 'area=serversettings;sa=database'),
array('ModifyCookieSettings', 'area=serversettings;sa=cookie'),
array('ModifyCacheSettings', 'area=serversettings;sa=cache'),
array('ModifyLanguageSettings', 'area=languages;sa=settings'),
array('ModifyRegistrationSettings', 'area=regcenter;sa=settings'),
array('ManageSearchEngineSettings', 'area=sengines;sa=settings'),
array('ModifySubscriptionSettings', 'area=paidsubscribe;sa=settings'),
array('ModifyPruningSettings', 'area=logs;sa=pruning'),
);
foreach ($settings_search as $setting_area)
{
// Get a list of their variables.
$config_vars = $setting_area[0](true);
foreach ($config_vars as $var)
if (!empty($var[1]) && !in_array($var[0], array('permissions', 'switch')))
$search_data['settings'][] = array($var[(isset($var[2]) && in_array($var[2], array('file', 'db'))) ? 0 : 1], $setting_area[1]);
}
$context['page_title'] = $txt['admin_search_results'];
$context['search_results'] = array();
$search_term = strtolower($context['search_term']);
// Go through all the search data trying to find this text!
foreach ($search_data as $section => $data)
{
foreach ($data as $item)
{
$found = false;
if (!is_array($item[0]))
$item[0] = array($item[0]);
foreach ($item[0] as $term)
{
$lc_term = strtolower($term);
if (strpos($lc_term, $search_term) !== false || (isset($txt[$term]) && strpos(strtolower($txt[$term]), $search_term) !== false) || (isset($txt['setting_' . $term]) && strpos(strtolower($txt['setting_' . $term]), $search_term) !== false))
{
$found = $term;
break;
}
}
if ($found)
{
// Format the name - and remove any descriptions the entry may have.
$name = isset($txt[$found]) ? $txt[$found] : (isset($txt['setting_' . $found]) ? $txt['setting_' . $found] : $found);
$name = preg_replace('~<(?:div|span)\sclass="smalltext">.+?</(?:div|span)>~', '', $name);
$context['search_results'][] = array(
'url' => (substr($item[1], 0, 4) == 'area' ? $scripturl . '?action=admin;' . $item[1] : $item[1]) . ';' . $context['session_var'] . '=' . $context['session_id'] . ((substr($item[1], 0, 4) == 'area' && $section == 'settings' ? '#' . $item[0][0] : '')),
'name' => $name,
'type' => $section,
'help' => shorten_subject(isset($item[2]) ? strip_tags($helptxt[$item2]) : (isset($helptxt[$found]) ? strip_tags($helptxt[$found]) : ''), 255),
);
}
}
}
}
// All this does is pass through to manage members.
function AdminSearchMember()
{
global $context, $sourcedir;
require_once($sourcedir . '/ManageMembers.php');
$_REQUEST['sa'] = 'query';
$_POST['membername'] = $context['search_term'];
ViewMembers();
}
// This file allows the user to search the SM online manual for a little of help.
function AdminSearchOM()
{
global $context, $sourcedir;
$docsURL = 'docs.simplemachines.org';
$context['doc_scripturl'] = 'http://docs.simplemachines.org/index.php';
// Set all the parameters search might expect.
$postVars = array(
'search' => $context['search_term'],
);
// Encode the search data.
foreach ($postVars as $k => $v)
$postVars[$k] = urlencode($k) . '=' . urlencode($v);
// This is what we will send.
$postVars = implode('&', $postVars);
// Get the results from the doc site.
require_once($sourcedir . '/Subs-Package.php');
$search_results = fetch_web_data($context['doc_scripturl'] . '?action=search2&xml', $postVars);
// If we didn't get any xml back we are in trouble - perhaps the doc site is overloaded?
if (!$search_results || preg_match('~<' . '\?xml\sversion="\d+\.\d+"\sencoding=".+?"\?' . '>\s*(<smf>.+?</smf>)~is', $search_results, $matches) != true)
fatal_lang_error('cannot_connect_doc_site');
$search_results = $matches[1];
// Otherwise we simply walk through the XML and stick it in context for display.
$context['search_results'] = array();
loadClassFile('Class-Package.php');
// Get the results loaded into an array for processing!
$results = new xmlArray($search_results, false);
// Move through the smf layer.
if (!$results->exists('smf'))
fatal_lang_error('cannot_connect_doc_site');
$results = $results->path('smf[0]');
// Are there actually some results?
if (!$results->exists('noresults') && !$results->exists('results'))
fatal_lang_error('cannot_connect_doc_site');
elseif ($results->exists('results'))
{
foreach ($results->set('results/result') as $result)
{
if (!$result->exists('messages'))
continue;
$context['search_results'][$result->fetch('id')] = array(
'topic_id' => $result->fetch('id'),
'relevance' => $result->fetch('relevance'),
'board' => array(
'id' => $result->fetch('board/id'),
'name' => $result->fetch('board/name'),
'href' => $result->fetch('board/href'),
),
'category' => array(
'id' => $result->fetch('category/id'),
'name' => $result->fetch('category/name'),
'href' => $result->fetch('category/href'),
),
'messages' => array(),
);
// Add the messages.
foreach ($result->set('messages/message') as $message)
$context['search_results'][$result->fetch('id')]['messages'][] = array(
'id' => $message->fetch('id'),
'subject' => $message->fetch('subject'),
'body' => $message->fetch('body'),
'time' => $message->fetch('time'),
'timestamp' => $message->fetch('timestamp'),
'start' => $message->fetch('start'),
'author' => array(
'id' => $message->fetch('author/id'),
'name' => $message->fetch('author/name'),
'href' => $message->fetch('author/href'),
),
);
}
}
}
// This function decides which log to load.
function AdminLogs()
{
global $sourcedir, $context, $txt, $scripturl;
// These are the logs they can load.
$log_functions = array(
'errorlog' => array('ManageErrors.php', 'ViewErrorLog'),
'adminlog' => array('Modlog.php', 'ViewModlog'),
'modlog' => array('Modlog.php', 'ViewModlog'),
'banlog' => array('ManageBans.php', 'BanLog'),
'spiderlog' => array('ManageSearchEngines.php', 'SpiderLogs'),
'tasklog' => array('ManageScheduledTasks.php', 'TaskLog'),
'pruning' => array('ManageSettings.php', 'ModifyPruningSettings'),
);
$sub_action = isset($_REQUEST['sa']) && isset($log_functions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'errorlog';
// If it's not got a sa set it must have come here for first time, pretend error log should be reversed.
if (!isset($_REQUEST['sa']))
$_REQUEST['desc'] = true;
// Setup some tab stuff.
$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['logs'],
'help' => '',
'description' => $txt['maintain_info'],
'tabs' => array(
'errorlog' => array(
'url' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'description' => sprintf($txt['errlog_desc'], $txt['remove']),
),
'adminlog' => array(
'description' => $txt['admin_log_desc'],
),
'modlog' => array(
'description' => $txt['moderation_log_desc'],
),
'banlog' => array(
'description' => $txt['ban_log_description'],
),
'spiderlog' => array(
'description' => $txt['spider_log_desc'],
),
'tasklog' => array(
'description' => $txt['scheduled_log_desc'],
),
'pruning' => array(
'description' => $txt['pruning_log_desc'],
),
),
);
require_once($sourcedir . '/' . $log_functions[$sub_action][0]);
$log_functions[$sub_action][1]();
}
?>
Any help will be greatly appreciated! :)
Also I can not seem to add a Category. It just displays them but I see no button or link to add or delete them. Suggestions?
Can Spuds or wesker give me a hand?
Select categories, then on that page on the right bottom side of the table there is a big green + sign, select that
Quote from: Spuds on August 21, 2011, 02:28:03 PM
Select categories, then on that page on the right bottom side of the table there is a big green + sign, select that
Thanks Spuds. I must have overlooked that.
Also, could you give me a hand with my Admin.php I posted about? For some reason I manually put the code where it wants me too but it shows up under my Simple Audio Video Embedder menu and does not have its own link next to it. Any help with my current Admin.php to have it show as it's own tab/link and not as a sub under something else?
Thanks!
Quote from: digitalmikey on August 21, 2011, 03:24:49 PM
Also, could you give me a hand with my Admin.php I posted about?
I've attached an update to what you posted ... I put the awards after the media tab, move it if you like.
Looks like that file has been manually edited quite a lot .... note that when you go to uninstall mods (this and others) they will fail on this file file since its been tweaked .... Make a copy of your current one before using this one, I did not test this.
I have a question...
If I'd like to frame the awards at a kind of box like this, what should I do?
Quote from: Spuds on August 21, 2011, 04:41:31 PM
Quote from: digitalmikey on August 21, 2011, 03:24:49 PM
Also, could you give me a hand with my Admin.php I posted about?
I've attached an update to what you posted ... I put the awards after the media tab, move it if you like.
Looks like that file has been manually edited quite a lot .... note that when you go to uninstall mods (this and others) they will fail on this file file since its been tweaked .... Make a copy of your current one before using this one, I did not test this.
Thanks for the help Spuds but that did not work at all. The Awards link did not show after anything nor was it in a child-drop down somewhere. Any other help or suggestions?
Quote
Thanks for the help Spuds but that did not work at all. The Awards link did not show after anything nor was it in a child-drop down somewhere. Any other help or suggestions?
Yeah sorry forgot that was top level ... in that file I gave you
'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']),
),
),
'awards' => array(
'title' => $txt['awards'],
'permission' => array('manage_awards'),
'areas' => array(
'awards' => array(
'label' => $txt['awards'],
'permission' => array('manage_awards'),
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
'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']),
),
),
),
),
-OR-
'awards' => array(
'title' => $txt['awards'],
'permission' => array('manage_awards'),
'areas' => array(
'awards' => array(
'label' => $txt['awards'],
'file' => 'ManageAwards.php',
'function' => 'Awards',
'icon' => 'awards.gif',
),
),
),
for no flyouts
You will have to update that array and the main manageawards.php function if you want those flyouts as first child and not second, and no don't even ask ;)
Quote from: MaNaRa on August 21, 2011, 08:56:27 PM
I have a question...
If I'd like to frame the awards at a kind of box like this, what should I do?
Thats what it does by default unless you altered the css .... the awards should be wrapped in
<fieldset style="border: 1px solid black; padding: 5px;"> .... </fieldset>
... maybe change the black to white or grey since you are using a dark theme
Worked perfectly that time. Thanks Spuds!
Got awards to work, everything works fine but many of the buttons are missing.
imageshack.us/photo/my-images/32/unledrwg.png/
Using version RC3
Make sure the awards directory (that came with the package) is available in your custom theme ... /Themes/your theme/images/Awards ... there are 4 or 5 files in that directory for the menu system.
Nope I am missing that, what should I do?/
All fixed thx alot :)
Sorry to both Spuds or wesker again but I have one last question. I am using weskers code to place the awards above the signature. Now I got it to work in Display.template.php but now I am trying to put it at the exact same location in a users profile page (just above the signature). I tried posting:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<br/><div class="awards_bar">';
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</div>';
}
right above
// Show the users signature.
if ($context['signature_enabled'] && !empty($context['member']['signature']))
echo '
<div class="signature">
<h5>', $txt['signature'], ':</h5>
', $context['member']['signature'], '
</div>';
echo '
</div>
<span class="botslice"><span></span></span>
</div>
</div>
<div class="clear"></div>
</div>';
but that didn't work at all. If someone could please offer me a suggestion or look at my code (files attached) I would greatly appreciate it. Thanks again!
I just installed the awards mod and my question is that I don't have any images for the awards. Does any one have a collection of images that I can use for the awards.
Thanks
Joe
Friendly bump. :)
i get this:
Unknown column 'a.id_category' in 'on clause'
File: /home/mxlis4/public_html/forum/Sources/ManageAwards.php
Line: 100
Quote from: digitalmikey on August 23, 2011, 04:08:05 PM
Sorry to both Spuds or wesker again but I have one last question. I am using weskers code to place the awards above the signature. Now I got it to work in Display.template.php but now I am trying to put it at the exact same location in a users profile page (just above the signature).
I actually wanted to try this, myself. I ran into a few bumps during the time. I'll look into it when i get a chance, just can't give an estimate time.
Do you use Ultimate Profiles mod on your forum?
The mod installed without errors in SMF 2.0 using the default theme, and assigning awards as designed is working fine. Nice mod!
The only thing I have noticed is that there is an undefined error listed in the log sheets. The error appears to be generated only when electing to view the Awards List under my (and presumably other member's) profile info. See attachment below.
These are the details of the undefined error message. Any thoughts as to which file and what line should be edited to eliminate the error? Thanks!
Type of error: Undefined
forum/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3150
so , by choosing the default theme , this mod works great in 2.0 version? :)
Quote from: hcfwesker on August 26, 2011, 07:20:57 PM
Quote from: digitalmikey on August 23, 2011, 04:08:05 PM
Sorry to both Spuds or wesker again but I have one last question. I am using weskers code to place the awards above the signature. Now I got it to work in Display.template.php but now I am trying to put it at the exact same location in a users profile page (just above the signature).
I actually wanted to try this, myself. I ran into a few bumps during the time. I'll look into it when i get a chance, just can't give an estimate time.
Do you use Ultimate Profiles mod on your forum?
No I do not. Thanks wesker I appreciate your help. Keep me updated. :)
Hey!
I installed the mod on SMF 2.0 but for some reason the settings dont show under the admin panel. The awards part shows on the profiles tho. I tried re-installing it via package manager and also doing all file edits manually but to no avail. I dont get any errors, just the settings dont show up.
Any advice?
I used the
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}
code because the awards weren't showing beside posts. On my test site it worked great and they now show under the signatures but the same alts don't do anything on the main site. The display.template file is the same on both sites and I have the same mods installed - although perhaps they weren't installed in the same order.
Can anyone suggest which file I need to look at next please?
Quote from: digitalmikey on August 27, 2011, 11:27:18 AM
No I do not. Thanks wesker I appreciate your help. Keep me updated. :)
Sorry, I took a few stabs at it, on both regular profiles and tested ultimate profiles, nothing seemed to work for me, maybe spuds could take a stab at it.
Quote from: angellionel on August 26, 2011, 09:53:29 PM
The mod installed without errors in SMF 2.0 using the default theme, and assigning awards as designed is working fine. Nice mod!
The only thing I have noticed is that there is an undefined error listed in the log sheets. The error appears to be generated only when electing to view the Awards List under my (and presumably other member's) profile info. See attachment below.
These are the details of the undefined error message. Any thoughts as to which file and what line should be edited to eliminate the error? Thanks!
Type of error: Undefined
forum/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3150
Whenever you have an error in your error log, one tip I can give you to speed things up a tad, is copy the error it produces, in this case
8: Undefined index: view
^ use that line and use the 'search in this topic' option at the top. Would have brought you to a post that would fix this, i posted it below ;)
http://www.simplemachines.org/community/index.php?topic=114701.msg3116828;topicseen#msg3116828
Quote from: treehugger on August 27, 2011, 03:51:19 PMCan anyone suggest which file I need to look at next please?
Admin > Awards > Settings >
Awards in Post:^ that's usually the most overlooked setting when members can't get awards to show. Set it to a number like 10, or however many awards you want shown. You may have done the setting on your test site, but it may have been overlooked on your main site.
Quote from: hcfwesker on August 28, 2011, 01:18:28 PM
Quote from: digitalmikey on August 27, 2011, 11:27:18 AM
No I do not. Thanks wesker I appreciate your help. Keep me updated. :)
Sorry, I took a few stabs at it, on both regular profiles and tested ultimate profiles, nothing seemed to work for me, maybe spuds could take a stab at it.
Yeah same with me. Nothing I tried seemed to work and I'm no expert programmer or anything. How about it Spuds, can you give me a hand?
Quote from: hcfwesker on July 22, 2011, 11:07:20 PM
Quote from: Eclipse16V on July 22, 2011, 04:20:10 AM
Works nice on SMF 2.0
2. Error
On the Award List
Quotehttp://smf-2.0.xyz.de/index.php?action=profile;area=listAwards;u=1
8: Undefined index: view
Sources/Profile-View.php
Find
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'awards' => array(),
);
Replace With
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
That code is listed twice, but you'll notice on the 2nd one of them, the 'view' line didn't get readded.
Awesome! There are no further errors being generated. Thank you! And thank you for the tip as well. ;) Very helpful information.
Doh - I thought that setting only came into play when you wanted the awards to show under the avatar. :-[ Working fine now - many thanks Hcfwesker. :D
Quote from: angellionel on August 28, 2011, 04:29:27 PM
Awesome! There are no further errors being generated. Thank you! And thank you for the tip as well. ;) Very helpful information.
Your welcome. :)
Quote from: treehugger on August 28, 2011, 05:32:13 PM
Doh - I thought that setting only came into play when you wanted the awards to show under the avatar. :-[ Working fine now - many thanks Hcfwesker. :D
Well, true, but since we're mimicking that code, sorta, and replacing the code it calls for in mini profiles, but under sigs, it still needs to be set ;) Glad it worked, and first guess was correct lol
Another question please. Am running SMF 2.0 and Awards 2.2.3 - now that Awards are showing fine I've been trying to let one of the kids manage them for me. I did what I did for the Arcade and made a membergroup with the Manage Awards box ticked. Added Awards Manager to her [show additional membergroups] but nothing is happening.
When I try it with the test account it shows the Admin button but when clicked it shows the An Error Has Occurred! You are not allowed to access this section. message. Reading through this thread lots of people seem to have ad a similar problem but I can't figure out if it was resolved?
Quote from: treehugger on August 30, 2011, 07:57:30 AM
Another question please. Am running SMF 2.0 and Awards 2.2.3 - now that Awards are showing fine I've been trying to let one of the kids manage them for me. I did what I did for the Arcade and made a membergroup with the Manage Awards box ticked. Added Awards Manager to her [show additional membergroups] but nothing is happening.
When I try it with the test account it shows the Admin button but when clicked it shows the An Error Has Occurred! You are not allowed to access this section. message. Reading through this thread lots of people seem to have ad a similar problem but I can't figure out if it was resolved?
Try this, this is how i have access for mods to the awards page
Sources/Subs.phpFind
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),
Replace with
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
'awards' => array(
'title' => $txt['permissionname_manage_awards'],
'href' => $scripturl . '?action=admin;area=awards',
'show' => allowedTo('manage_awards'),
'is_last' => true,
),
),
),
Then, goto
Themes/default/languages/Modifications.english.php Add this somewhere
$txt['permissionname_manage_awards'] = 'Manage Awards';
This will open a new sub-menu link directly under the 'Members' menu tab, for those with permissions to manage awards, and should take them directly there.
Thanks you Hcfwesker. Have put in the code and added the line in Modifications.english - so now we have both an Admin link showing and the Manage Awards in the Member dropdown - but both of them just show the An Error Has Occurred! You are not allowed to access this section. message on my test permission account.
The girl I'm trying to give the Manage Award permission too already has the Manage Arcade permission and can get to them via the Admin link and now also via the Members/Manage Awards link - but Arcade is all she can access.
Quote from: Sci-Fi_Fan on August 17, 2011, 08:30:30 PM
Additionally, is there a way to extend the length of the award description? The current length seems very short.
Quoted for a bump of a idea, Changing varchar(80) is to short and having the description being a textarea rather then just text would help this. (course it seems I'm to tired to remember how to do this with my own install)
Quote from: Sci-Fi_Fan on August 17, 2011, 08:30:30 PM
A couple of questions:
The awards section in topic view, is there a way to adjust the width of it? My awards are showing, but there is a big gap between the end of my awards and the "border" of the section.
got a screen shot, or link to a pge where this is happening? You also have the option of removing that border completely from around the awards
QuoteAdditionally, is there a way to extend the length of the award description? The current length seems very short.
This might work
Themes/default/ManageAwards.template.phpFind
<input type="text" name="description" id="description" value="', $context['award']['description'], '" size="30" />
change the 30 to the size you want.
Any ideas re. my Reply #2469 please?
Quote from: treehugger on September 03, 2011, 06:01:34 PM
Any ideas re. my Reply #2469 please?
I could take a look on your site, if you're willing to make an admin account and pm me the log-in details, if u trust me. thats up to you. I'll understand if not.
Actually, I was able to duplicate the situation. and find a fix. Since it deals with members and changes, for some reason, you also have to give the member managing awards, the permissions "Moderate forum members" ... i think it's directly below manage awards permission.
don't worry, it doesn't add anything else for them to actually moderate anything with members, (like their profiles or posts) .. cause you have to add those permsission as well. Selecting that just allows the system to recognize they can make changes to member items that theyre assigned to.
Just add that permissions, it'll work, and only allow them to manage awards.
Sorry - fix didn't work for me so will pm you the site details (it's taken me so long because I've been figuring out how to set up the ftp account). :-[
Any help Spuds? I just want this to show in profile view as well as the posts.
Quote from: treehugger on September 04, 2011, 08:38:25 PM
Sorry - fix didn't work for me so will pm you the site details (it's taken me so long because I've been figuring out how to set up the ftp account). :-[
I posted the fix on your site, but couldn't make the changes without cPanel access. Since awards is listed on the Configuration menu, a member needs the permission "administrate forum database" to enter there, I believe. So, the temp fix is to move it under the Members menu in he AdminCP.
a more permanent fix, would be to have Awards have it's own menu in the AdminCP, like the Arcade, which was why that member had access there with no issues.
Thanks hcfwesker - fix didn't work for me and I don't want to be giving a 9 year old any more permissions than I have to. ;)
The permanent fix sounds much better - how complicated is it? We have 'moderators' for the Gallery / Arcade / Living Avatars etc without them having to have 'extra' permissions so it would be good if the same could be done with Awards.
*Listens to Europe's "The Final Countdown" as I type this post* :D
Quote from: treehugger on September 07, 2011, 06:11:12 PM
Thanks hcfwesker - fix didn't work for me and I don't want to be giving a 9 year old any more permissions than I have to. ;)
The permanent fix sounds much better - how complicated is it? We have 'moderators' for the Gallery / Arcade / Living Avatars etc without them having to have 'extra' permissions so it would be good if the same could be done with Awards.
Here ya go.
Sources/Admin.phpFIND & REMOVE any menu settinsg for Awards, first ... (should just be the code below)
'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']),
),
),
AFTER removing the above code, in the same file ...FIND 'layout' => array(
'title' => $txt['layout_controls'],
ADD ABOVE 'awards' => array(
'title' => $txt['awards'],
'permission' => array('manage_awards'),
'areas' => array(
'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']),
),
),
),
),
The member will have access to the Admin panle, but only see the Awards menu. Also, they can't just click the Award button, they have to click the sub-menu "Awards" when hovering the button. BUT ... if you left the awards menu button under the "Members" tab in the main forum menu, they'll get instant access by that.
That should get ya to where you want. ;) Hopefully lol
That worked! :D
She can now manage the Awards without having access to anything scary!
Many thanks hcfwesker.
Hi,
Is possible to find somewhere these awards??
There is a package or similar??
http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146854;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=475;id=146854;image)
Thx
No. Those badges are not distributable (most especially because they contain the trademarked logo of Simple Machines)
You must select a member and/or award in order to continue!
thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?
Quote from: thecoo1est on September 16, 2011, 02:09:55 AM
You must select a member and/or award in order to continue!
thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?
Type some of the member's name, below the input box where you're typing, a name should drop down automatically, kinda like when you type a member's name to make them a moderator of a single board. You have to click the same name that appears below. Some members complain amount never seeing this appear.
Quote from: hcfwesker on September 17, 2011, 02:08:36 PM
Quote from: thecoo1est on September 16, 2011, 02:09:55 AM
You must select a member and/or award in order to continue!
thats my error, everything else seems to work, I uploaded a award icon' when i choose assign, and I click the award i can see it. i then try to choose a member but all i have is a text box to input member name, after i do all that and hit save i get that error? Is there supposed to be a drop down list of members or do i have to manually type everyones name and assign award 1 by 1?
Type some of the member's name, below the input box where you're typing, a name should drop down automatically, kinda like when you type a member's name to make them a moderator of a single board. You have to click the same name that appears below. Some members complain amount never seeing this appear.
That worked :D haha, anyway to add a multi select feature?
Any way to add a tidbit of code to auto assign certain awards at a certain post count?
It bugs when I want to change an icon its image:
An Error Has Occurred!
"You must select a file to upload!"
Quote from: thecoo1est on September 17, 2011, 03:15:58 PManyway to add a multi select feature?
Any way to add a tidbit of code to auto assign certain awards at a certain post count?
Nah, you have to add different awards to members 1 at a time. But, you can add multiple members to one award at a time. Once you click on one members name, just type another and click their name when it appears, and just repeat.
The auto assign was tested, but was put on hold due to bugs in the initial release. We just have a request topic for when members reach a post/activity/forum award, they can post to request to alert us they have earned it, for example .. http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168
Quote from: Xarwin on September 18, 2011, 10:45:10 AM
It bugs when I want to change an icon its image:
An Error Has Occurred!
"You must select a file to upload!"
Easiest way to do this, is just overwrite the image in the awards folder in cPanel.
Quote from: hcfwesker on September 18, 2011, 08:31:59 PM
Quote from: thecoo1est on September 17, 2011, 03:15:58 PManyway to add a multi select feature?
Any way to add a tidbit of code to auto assign certain awards at a certain post count?
Nah, you have to add different awards to members 1 at a time. But, you can add multiple members to one award at a time. Once you click on one members name, just type another and click their name when it appears, and just repeat.
The auto assign was tested, but was put on hold due to bugs in the initial release. We just have a request topic for when members reach a post/activity/forum award, they can post to request to alert us they have earned it, for example .. http://www.brawldomain.com/index.php?topic=5811.msg115168#msg115168
Quote from: Xarwin on September 18, 2011, 10:45:10 AM
It bugs when I want to change an icon its image:
An Error Has Occurred!
"You must select a file to upload!"
Easiest way to do this, is just overwrite the image in the awards folder in cPanel.
oh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example
if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in
Quote from: thecoo1est on September 18, 2011, 09:33:23 PMoh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example
if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in
You must have me confused with somebody else :D I'm not the author of this mod, was just giving an answer to your question that the author attempted it in the past, but decided not to put it in a final release.
Quote from: hcfwesker on September 18, 2011, 09:58:28 PM
Quote from: thecoo1est on September 18, 2011, 09:33:23 PMoh come on man, dont hogwash me lol, lets say I have some premade trophies with names and all ready to be assigned, your saying there is no code i can put in the display file or where ever that calls on the award if there post count is a certain number? im no coder but for example
if post count is <9 call award1.png or whatever? and have that in the files that the awards use to be called in
You must have me confused with somebody else :D I'm not the author of this mod, was just giving an answer to your question that the author attempted it in the past, but decided not to put it in a final release.
hogwash! :P do you know where the code is that calls the awards to appear. like when they are assigned, what is added and where that makes them appear under that users info?
I was able to get this installed on SMF 2.0.1 with no problems - even the install.php ran smoothly...
My issue is, I am unable to find how to edit, add, change the awards!?!?!? I can't seem to find it in the admin anywhere!?!??
Lol, I prly just have some language file screwed up but it appears in the profile...
Any ideas?
Quote from: Mr_JimWest on September 21, 2011, 07:22:32 PMMy issue is, I am unable to find how to edit, add, change the awards!?!?!? I can't seem to find it in the admin anywhere!?!??
Lol, I prly just have some language file screwed up but it appears in the profile...
Any ideas?
Admin > Configuration > Awards
You'll see all the option in the Awards sub-menus.
That is the issue, it is NOT there...see the attached...I am thinking that it is a language issue...
Few things to check. See if ManageAwards.php got added to your default themes language folder. And ... Sources/Admin.php & default/languages/Modifications.english.php
Check those files and search the edits the parsed MOd calls for. Another thing to check, is your forum's default language, under Admin > Server Settings > Default Language.
Change it to English, if it's not. might be defaulted at english-utf8 somethin
No dice, I am still unable to find anything out of the ordinary! :'(
Should I be able to go to like..."index.php?action=admin;area=awards"?
You should be able to, but that shouldn't be necessary if the MOD installed correctly.
Best thing i can suggest, is check all edits, and added folders from the MOD and make sure they were edited/added.
Quote from: Mr_JimWest on September 21, 2011, 09:44:10 PM
No dice, I am still unable to find anything out of the ordinary! :'(
Should I be able to go to like..."index.php?action=admin;area=awards"?
this mod just doesnt work for some configurations for what ever reason, I still have the same problem as you with my main forum, I have 3 forums, it installed ok on one of my others, but my gaming forum it will not work after install, Im not a complete noob I went over every single edit manually and I was unsuccessful at accessing the very page in this quote no matter what I did. Best is to let it go man and wait on a update or something. Maybe they will find a more simplistic way to create the mod in the process or something, I dont know, but I spent 3 days trying everything to get it to work on my gaming forum and its just a no go.
Well it works - seemingly - I just can not access the admin part of it lol!!!!!??!?!?!
Quote from: Mr_JimWest on September 22, 2011, 01:00:09 AM
Well it works - seemingly - I just can not access the admin part of it lol!!!!!??!?!?!
i have the same issue on my main forum
Try the edits from this post ... http://www.simplemachines.org/community/index.php?topic=114701.msg3155230#msg3155230 will give the awards it's own menu in the admin panel.
If not, another route you two can try, is the package I have attached to my post. Uninstall the other version, then try this one. It's the SMF 2.0 RC4 version, so you'd have to emnulate to install ( i just preferred itover the 2.0 updated version) and see if that works.
Quote from: hcfwesker on September 22, 2011, 07:16:51 PM
If not, another route you two can try, is the package I have attached to my post. Uninstall the other version, then try this one. It's the SMF 2.0 RC4 version, so you'd have to emnulate to install ( i just preferred itover the 2.0 updated version) and see if that works.
Really??? Here is the
ONLY diff from those two files ...
Quote<install for="2.0 RC3, 2.0 RC4, 2.0 RC5, 2.0">
and
Quote<install for="2.0 RC3, 2.0 RC4">
So exactly the same mod, only one does not require emulation mode for RC5 and 2.0
I think the mod is functional, I just do not have a button to click on in the admin panel. Do you guys know what the URL is like "index.php?action=admin;area=awards"???
Hey guys, wondering if anyone can help with this problem.
Most of the links related to this mod will redirect to the main index without doing anything. Basically, anything with "id=" in the URL.
So it's impossible to view a list of members who've been assigned an award, or to modify, delete, etc any awards. If the URL contains the badge id number, it just defaults to the board index.
I've tried uninstalling the mod manually and dropping the tables, then reinstalling, to no avail. There was also a reply earlier in this thread about adding a quotation mark that was missing from the code, but that didn't help either. All I can guess is that it's some kind of conflict with another mod. Here's a list of what I currently have installed:
Reason For Editing Mod
Auto Refresh Who Index
reCAPTCHA for SMF
Stop Forum Spam
Show Joined, Location, Username In Topic View
Look But No Read
Aeva ~ Auto-Embed Video & Audio
Forum Firewall
Member Awards
Redirect Banned Users
Login Security
Inline Hover Spoiler
6 Custom buttons / tabs with Sub Menus (4)
Bookmarks
SMF 2.0.1 Update
Currently running 2.0.1. I've tried everything I can think of, but I give up. Any ideas? Thanks in advance for any help anyone can offer.
Quote from: EzoShika on September 24, 2011, 03:16:37 PM
Hey guys, wondering if anyone can help with this problem.
Most of the links related to this mod will redirect to the main index without doing anything. Basically, anything with "id=" in the URL.
So it's impossible to view a list of members who've been assigned an award, or to modify, delete, etc any awards. If the URL contains the badge id number, it just defaults to the board index.
I've tried uninstalling the mod manually and dropping the tables, then reinstalling, to no avail. There was also a reply earlier in this thread about adding a quotation mark that was missing from the code, but that didn't help either. All I can guess is that it's some kind of conflict with another mod. Here's a list of what I currently have installed:
Reason For Editing Mod
Auto Refresh Who Index
reCAPTCHA for SMF
Stop Forum Spam
Show Joined, Location, Username In Topic View
Look But No Read
Aeva ~ Auto-Embed Video & Audio
Forum Firewall
Member Awards
Redirect Banned Users
Login Security
Inline Hover Spoiler
6 Custom buttons / tabs with Sub Menus (4)
Bookmarks
SMF 2.0.1 Update
Currently running 2.0.1. I've tried everything I can think of, but I give up. Any ideas? Thanks in advance for any help anyone can offer.
it has to be a conflict, casue i have 4 forums now, it works on one forum but my main gaming forum does exactly what you describe, redirects to same page, I tried all manual edit, after trying the auto install 10 time uninstalling reinstallin, triple checked every edit that was needed and never got it to do right on my gaming forum, i agree its conflicting with another mod somehow becaue it works fine on my other forum with only a couple other mods.
thecoo1est, when you click on Awards in admin, what link comes up?
Quote from: thecoo1est on September 24, 2011, 04:30:53 PM
it has to be a conflict, casue i have 4 forums now, it works on one forum but my main gaming forum does exactly what you describe, redirects to same page, I tried all manual edit, after trying the auto install 10 time uninstalling reinstallin, triple checked every edit that was needed and never got it to do right on my gaming forum, i agree its conflicting with another mod somehow becaue it works fine on my other forum with only a couple other mods.
Actually, I've just managed to get it figured out. My site was recently moved to a new server, and mod_security was enabled by default. It will reject "id="
Spuds mentioned this earlier in the thread here: http://www.simplemachines.org/community/index.php?topic=114701.msg3097824;topicseen#msg3097824
I had it disabled on my old server, and apparently someone forgot to disable it again after the migration. After reading Spuds's post I contacted my host just to doube check, and sure enough that's exactly what it was. You might try asking yours if they'll disable mod_security, that will likely clear everything right up. Everything's working beautifully for me now since doing that.
Quote from: EzoShika on September 24, 2011, 05:25:19 PM
Quote from: thecoo1est on September 24, 2011, 04:30:53 PM
it has to be a conflict, casue i have 4 forums now, it works on one forum but my main gaming forum does exactly what you describe, redirects to same page, I tried all manual edit, after trying the auto install 10 time uninstalling reinstallin, triple checked every edit that was needed and never got it to do right on my gaming forum, i agree its conflicting with another mod somehow becaue it works fine on my other forum with only a couple other mods.
Actually, I've just managed to get it figured out. My site was recently moved to a new server, and mod_security was enabled by default. It will reject "id="
Spuds mentioned this earlier in the thread here: http://www.simplemachines.org/community/index.php?topic=114701.msg3097824;topicseen#msg3097824
I had it disabled on my old server, and apparently someone forgot to disable it again after the migration. After reading Spuds's post I contacted my host just to doube check, and sure enough that's exactly what it was. You might try asking yours if they'll disable mod_security, that will likely clear everything right up. Everything's working beautifully for me now since doing that.
Yup mod_security and
id= in the url are not compatible ... Most often you can disable mod_security on your site by adding
# Disable Mod Security
SecFilterEngine Off
SecFilterScanPOST Off
to your sites .htaccess file ... and if you do not know what that means then don't do anything, and if you do remember with all things in .htaccess be prepared to back out as any error in that file is a sure fire 501 error ;) Not all host implement things the same way.
I think the mod is functional, I just do not have a button to click on in the admin panel. Do you guys know what the URL is like when clicking on Manage Awards "index.php?action=admin;area=awards"!?!!
going from memory which is never a good thing ... try ?action=admin;area=awards;sa=main; and if that does not work attach your Admin.php file
Yea I have even gone in and created an award through the DB, added the new award to my profile, and I can see it, click it....
I was unable to get the url that you gave me to work.... :'(
Just that link in the admin section aint ther!
Admin.php is attached.
It was in the admin section as a top level menu e.g. like members etc .... you can't do that without some tweaking (I posted on how to do that should you want that). Anyway here is an updated file, the menu is under admin->configuration->awards If this does not work for you it means you have other parts that are not installed correctly.
AWESOME! ty soooo much for taking the time man!!!! ;D
if you ever need anything let me know! ;)
is there a repository of pre-made awards somewhere? some of us (me) are in no way artistic
SMF 2.0.1
I am really bogged down at the moment - but I would defiantly be up to making something if people would use them...
Hey everyone I'm having a small problem.
I have installed the awards and the directory shows up, but the awards don't show up on posts. I have assigned them and everything.
Any suggestions?
Quote from: Rashu on September 28, 2011, 09:32:06 PM
Hey everyone I'm having a small problem.
I have installed the awards and the directory shows up, but the awards don't show up on posts. I have assigned them and everything.
Any suggestions?
did u add any awards to any members? Sorry just want to make sure...
Quote from: Mr_JimWest on September 28, 2011, 09:44:12 PM
Quote from: Rashu on September 28, 2011, 09:32:06 PM
Hey everyone I'm having a small problem.
I have installed the awards and the directory shows up, but the awards don't show up on posts. I have assigned them and everything.
Any suggestions?
did u add any awards to any members? Sorry just want to make sure...
Yes I added two awards to myself.
Also, some of the images aren't showing up in the Admin Center when I go to edit the awards.
Edit: The awards box appears on the default theme, but not the core theme.
Edit2: Problem Fixed. The Awards just weren't installing to the correct theme.
I tried to install this mod, and I kept getting errors. I am not all that well with php and I also lost my forum link in my top menu. Is there someone who knows about this that can help me? I would like to get this installed
Keep getting a error when installing admin.php error
any ideas :-[
at least you get that far
Spuds, how can I get this to show in a users profile as well as topic view? I asked a few pages back but still have not got a response. Any help?
A simple question: which file controls the display of the Awards box? I wanna reduce the size or center stuff in it.
Thanks.
Quote from: unblinkable on September 28, 2011, 06:41:59 PM
is there a repository of pre-made awards somewhere? some of us (me) are in no way artistic
SMF 2.0.1
I used this Google query, it will help SOME: http://goo.gl/wSO11
Long Link: http://images.google.com/search?hl=en&gbv=2&biw=1024&bih=659&tbs=isz:i,ift:png&tbm=isch&oq=member+awards+filetype:png&aq=f&aqi=&gs_upl=13349l19411l0l19527l17l17l2l14l15l0l15l15l1l1l0&q=member%20awards
EDIT: Another page: http://www.micropctalk.com/forums/awards.php
hello!
i have a strange problem:
installed this mod in my xampp test area (SMF 2 RC5) and all was fine, only one line in sub.php was missing, that i was editing manually.
i assign two members, and the are correctly showing in the assigned-list.
the grafx-file is inside the directory "awards".
but there is no award showing next/inside the post-profile.
Please, can somebody point me in the right direction? can somebody help?
thank you in advance
Hello,
just installed the mod and when i go to assign members to an award, i cant. i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
i read a couple of pages backward that a auto suggestion will appear if i start typing the member name, but i don't see this happening.
any ideas?
Works fine except it wont show up in members posts. :(
Quotebut there is no award showing next/inside the post-profile.
The award image does not show up in the profile summary under the users avatar. You can view a members awards under profile, profile info, show awards (in the show posts, show stats area). I will not be adding the icons to the profile view in this version of the mod, they only appear in the post view
Quotejust installed the mod and when i go to assign members to an award, i cant. i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
On the assign award page, make sure an award is selected in the left panel. Then in the members section you enter the name and the auto suggestion box will appear (just like sending a PM). If it does not then either you are not entering a valid member name or the script file that is packaged with the mod did not get copied to the scripts directory.
QuoteWorks fine except it wont show up in members posts
Make sure under award settings that you have >0 set under the Awards in Post: section. If its zero thats how many will show up :) ... if thats not it then are you using a custom theme? if so you will likely have to make the edits yourself.
Quote from: digitalmikey on October 01, 2011, 01:12:55 PM
Spuds, how can I get this to show in a users profile as well as topic view? I asked a few pages back but still have not got a response. Any help?
Any response Spuds?
Hi!
I've been waiting for this mod to work with SMF2.0 Final (haven't upgraded to 2.0.1 yet).
I was using this mod on 1.1.13 a while back, but I upgraded my forum.
My problem is the following:
Once I installed the mod, I cannot get the "awards" (whether the Mini versions, the Regular versions, or even the link that goes to the awards for each user) to show up on the person's avatar/etc. section that goes next to their post.
The "Manage Awards" page works fine (it even has all the awards I had created when I was on 1.1.13 and the members they were awarded to). However, the members do not see the link or the awards at all on the side of their page.
The Manage Awards section has the "settings" page and it lists:
Awards Directory: awards
This is the directory where awards are stored - just the name without the trailing slash.
Favorite Award: Checked
Check this if you want to allow users to have more than one favorite award.
Awards in Post: 1
How many awards should be shown under a user's avatar? Set to 0 to show none.
I have other mods that change that section so maybe they're causing a conflict? I have a mod that shows your PSN Playstation Account and your XBLA Xbox Account. On 1.1.13 I had a link to the awards page there, with its own custom icon. In 2.0 nothing shows up there and the config page (which I pasted above) doesn't help.
So... help?
Quote..., they only appear in the post view
This i mean...there is nothing!
Looks like i have the same problem like Jorge D. Fuentes...
Suggestion: Sample Awards :P
That indicates that your display.template.php file was not updated when you installed the mod.
You can try to edit that file yourself using the install.display.template.xml file that was included in the mod package, it provides the details for the two edits that need to be made to the Display.template.php file.
Sadly that file is one of the most tweaked by mods so finding the proper area to edit automatically is not always possible.
If you are uncomfortable doing that attach your currrent themes Display.template and I'll take a look
Quote from: digitalmikey on October 09, 2011, 02:43:49 PM
Quote from: digitalmikey on October 01, 2011, 01:12:55 PM
Spuds, how can I get this to show in a users profile as well as topic view? I asked a few pages back but still have not got a response. Any help?
Any response Spuds?
Thats outside of the mod, you know mods to mods and such :)
Anyway you can try the following: Edit the Profile.template.php file
// What about if we allow email only via the forum??
// Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0)
{
echo '
<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 ($context['member']['awards'] as $award)
{
if ($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}[/code/
Quote from: Spuds on October 10, 2011, 01:27:49 PM
That indicates that your display.template.php file was not updated when you installed the mod.
You can try to edit that file yourself using the install.display.template.xml file that was included in the mod package, it provides the details for the two edits that need to be made to the Display.template.php file.
Sadly that file is one of the most tweaked by mods so finding the proper area to edit automatically is not always possible.
If you are uncomfortable doing that attach your currrent themes Display.template and I'll take a look
Why didn't it automatically do that, like the 1.1.1x version did?
I didn't get an error when installing it.
EDIT: Here's my Display.Template.php file, attached.
EDIT: I applied the changes as per your response, and now it works. Still not sure why didn't work the first time or why I had to edit the sheet. It's as if it just didn't find the stuff to edit (even though it was totally there). Regardless, it seems to work, now. Thanks for your help! Hopefully this won't get messed up should I remove the mod in the future...
Quote from: arcadios on October 06, 2011, 10:45:39 AM
Hello,
just installed the mod and when i go to assign members to an award, i cant. i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
i read a couple of pages backward that a auto suggestion will appear if i start typing the member name, but i don't see this happening.
any ideas?
I just installed this mod and got this exact same problem. Hmmmm.
Quote from: Spuds on October 09, 2011, 02:35:58 PM
Quotejust installed the mod and when i go to assign members to an award, i cant. i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
On the assign award page, make sure an award is selected in the left panel. Then in the members section you enter the name and the auto suggestion box will appear (just like sending a PM). If it does not then either you are not entering a valid member name or the script file that is packaged with the mod did not get copied to the scripts directory.
Quote from: Spuds on October 09, 2011, 02:35:58 PM
Quotejust installed the mod and when i go to assign members to an award, i cant. i write the member name on the "select members" box, but i get
-You must select a member and/or award in order to continue!
On the assign award page, make sure an award is selected in the left panel. Then in the members section you enter the name and the auto suggestion box will appear (just like sending a PM). If it does not then either you are not entering a valid member name or the script file that is packaged with the mod did not get copied to the scripts directory.
Ah. Well, the installation of the package apparently failed to put the proper script into the proper script directory in my case, then. I have to do this by hand now? Or...?
============
Yeah, Kindred, I get that. The question is, "installation clearly failed to properly install--now what do I do, exactly, to fix it?"
If its only the script missing problem then make sure the awards.js file from the package is in your themes /scripts directory. If it is then something else is going on ....
I cannot delete/modify awards.
Or, I do not see a way to do so.
Since there appears to be a limit to the award's description (it'd be nice if it said what that limit was so that it doesn't come out truncated after the fact), I now have to go back and edit. However, there's nothing under the "Add/Modify" tab for the awards to actually modify them.
On top of this, on the Main tab of Awards, there is this:
Image Mini Image Name Description Add/Modify
However, the "Add/Modify" column is empty. Soooooooooo what's the point of the column? Or, is there supposed to be something there like a link or something? 'cuz right now it's just an empty box.
The "Add/Modify" tab of the menu doesn't help either. It has:
---
Award Name:
Description:
Category:
Award Image:
Miniature Image
Don't have a small image? Leave this empty, and it will use the regular one:
---
There's no actual "Modify" there, at all.
There's also no "Delete". I tried to enter the same award, with the same name, only with a smaller description. Now I'm stuck with a duplicate award with no way to remove. Help?
EDIT:
It also doesn't add the awards to the Uncategorized List.
EDIT:
Looking at my error log, I see the awards is causing errors like this:
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /forums/Themes/default/languages/ManageAwards.english-utf8.php (awards_list sub template - eval?)
Line: 3264
Yeah, I also have been noticing that I can't add Categories either...but it might be related to the script problem?
Thanks, Spuds, I'll give that a shot.
QuoteI cannot delete/modify awards.
Or, I do not see a way to do so.
If you don't see the icons for delete, edit, add, assign then the images directory was not installed. Make sure you see an awards directory Themes/default/images/awards and that it has 5 files in it. If you are using a custom theme you will probably need to add it in that tree as well e.g. Themes/your theme name/images/awards
QuoteYeah, I also have been noticing that I can't add Categories either...but it might be related to the script problem?
Sadly no ... the script is only for the user select drop down (ajax) when assigning an award. To add an new category there should be a green + icon on the bottom right side of the category box to click.
Yeah that worked.
Oddly enough it installed in the default theme but not in the one I'm using (even though it's an exact clone of default).
I see the icons now.
Hey Spuds,
Do you have a default set of graphics that come with it. I have noticed this mod on other sites and the badges are interesting. I like the color and styles. Or do we have to create those ourselves
Quote from: Jorge D. Fuentes on October 11, 2011, 09:05:19 PM
Yeah that worked.
Oddly enough it installed in the default theme but not in the one I'm using (even though it's an exact clone of default).
I see the icons now.
That was the key to my problem, too, as it happens. I had to manually insert the awards folder (and 5 images in it) in the images folder as well as copy the js to the scripts folder in every danged theme I had installed. Everything worked when I did that.
Quote from: Don Houston on October 11, 2011, 10:13:44 PM
Hey Spuds,
Do you have a default set of graphics that come with it. I have noticed this mod on other sites and the badges are interesting. I like the color and styles. Or do we have to create those ourselves
Shoot, I don't mind making 'em -- I just need to know the right image size in pixels, and I'm still experimenting with that as yet. Getting a pixel size spec on what's expected would save me a lot of wheel spinning, though. What do you have in mind, design-wise?
You and I can talk off this topic Clara. thanks
Another mod hiccup:
You cannot assign an award to members with only two letters on their name; the field that auto-finds the member doesn't find them.
I have a member named "JR" and the mod won't recognize his name when I type it.
that's not a problem with the mod.... it's a problem (known) in SMF itself.
(the same thing happens when you try to auto-complete a Personal Message to the same user-name)
Yeah ... if you have short user names, here is a 'fix' ...
edit the awards.js file (the one in your current theme directory), we (meaning you) are going to add
iMinimumSearchChars: 2,
after
bItemList: true,
this should begin to populate the pull down box after you have typed in 2 characters, the default is 3 I think
Thanks! That seems to work. :)
The links are down, apparently.
Quite why the person concerned reported it to the moderators, I really don't know.
Damn. This means I'm gonna get this topic in "Replies" forever, now... :(
??? huh?
Looks like someone reported a post in this thread from back in 2008 cause the links to some award images are dead ... K@ welcome to the fun :P
Hey Spuds
I actually have some legitimate problems related to your mod on a fresh installation of SMF 1.1.15.
I come from this topic where i first asked about this same issue: http://www.simplemachines.org/community/index.php?topic=456037.0
I get hundreds of pages of this particular error, which is generated every single time that someone views any topic on my forum. I use the default theme and here is the error:
8: Undefined index: topblock
File: /home/user/serv/smf/Sources/Load.php
Line: 924
I have also attached my Load.php file in case you want to confirm that the error is indeed coming from your mod.
I know that you have dropped development for SMF 1.1.x but you state that you will still be fixing bugs, and this is definitely a seriously annoying bug as it's filling up hundreds of pages in the Error Log within minutes!! I have been using this mod for a long time and my members love it, so i really hope you can update your mod or at least help me with a solution.
I have the same problem, whenever I try to assign a member and choose the award, I get this message: -You must select a member and/or award in order to continue! I used this mod with the SMF 1.1.15 and it worked fine. How can I solve this problem, any suggestions?
Quote from: sharks on October 15, 2011, 11:59:52 AM
Hey Spuds
I actually have some legitimate problems related to your mod on a fresh installation of SMF 1.1.15.
I come from this topic where i first asked about this same issue: http://www.simplemachines.org/community/index.php?topic=456037.0
I get hundreds of pages of this particular error, which is generated every single time that someone views any topic on my forum. I use the default theme and here is the error:
8: Undefined index: topblock
File: /home/user/serv/smf/Sources/Load.php
Line: 924
I have also attached my Load.php file in case you want to confirm that the error is indeed coming from your mod.
I know that you have dropped development for SMF 1.1.x but you state that you will still be fixing bugs, and this is definitely a seriously annoying bug as it's filling up hundreds of pages in the Error Log within minutes!! I have been using this mod for a long time and my members love it, so i really hope you can update your mod or at least help me with a solution.
Thats not part of this mod ... seems some other mod you installed added a new statement in the awards query which is wrong. The mod that did this has something call topblock, something to do with boards from what I can see in this file.
Anyway I removed the extra code that that mod added to the member awards section, that should fix the error.
Quote from: bharatforum on October 15, 2011, 12:31:38 PM
I have the same problem, whenever I try to assign a member and choose the award, I get this message: -You must select a member and/or award in order to continue! I used this mod with the SMF 1.1.15 and it worked fine. How can I solve this problem, any suggestions?
Means you have to select an 1) award and 2) chose the member from the drop down list that appears. You MUST select from the drop down list and not just type in the name in the member box.
Somehow I can only type the name of the member and not choose it from the drop down list. There is only one option Select Members: and then you can type the name over there. Can I change something manually so that it works normally?
Quote from: Spuds on October 15, 2011, 01:14:11 PM
Quote from: sharks on October 15, 2011, 11:59:52 AM
Hey Spuds
I actually have some legitimate problems related to your mod on a fresh installation of SMF 1.1.15.
I come from this topic where i first asked about this same issue: http://www.simplemachines.org/community/index.php?topic=456037.0
I get hundreds of pages of this particular error, which is generated every single time that someone views any topic on my forum. I use the default theme and here is the error:
8: Undefined index: topblock
File: /home/user/serv/smf/Sources/Load.php
Line: 924
I have also attached my Load.php file in case you want to confirm that the error is indeed coming from your mod.
I know that you have dropped development for SMF 1.1.x but you state that you will still be fixing bugs, and this is definitely a seriously annoying bug as it's filling up hundreds of pages in the Error Log within minutes!! I have been using this mod for a long time and my members love it, so i really hope you can update your mod or at least help me with a solution.
Thats not part of this mod ... seems some other mod you installed added a new statement in the awards query which is wrong. The mod that did this has something call topblock, something to do with boards from what I can see in this file.
Anyway I removed the extra code that that mod added to the member awards section, that should fix the error.
Spuds, could you help me identify which mod/s might be causing this inteference with your mod?
Here is the complete list of mods that i installed (via package manager with no manual edits of any sorts).
1. Anonymize Links (1.1.11) 2.5 [ Uninstall ]
2. Hide Info Center From Guests 1.0 [ Uninstall ]
3. New Topic Button 1.0 [ Uninstall ]
4. Topic View Log 1.2 [ Uninstall ]
5. Member Awards 1.1.2 [ Uninstall ]
6. Hide Tag Special 1.8.5 [ Uninstall ]
7. Hide Tag BBC Image 1.0.1 [ Uninstall ]
8. Avatar Verification 1.4.3 [ Uninstall ]
9. Last Topics of Person 1.1 [ Uninstall ]
10. Country Flags 1.1.2 [ Uninstall ]
11. Board Notes 1.0.7 [ Uninstall ]
12. Add IP2Location to Track IP 1.3 [ Uninstall ]
13. ListCreator 1.3.1 [ Uninstall ]
14. Move Topic Notification 1.2 [ Uninstall ]
15. OS & Browser Detection 1.5 [ Uninstall ]
16. Related Topics 1.3.3 [ Uninstall ]
17. Tagging System 2.4.2 [ Uninstall ]
18. Users Online Today Mod 1.4.0 [ Uninstall ]
19. User Email System 1.3 [ Uninstall ]
20. Limit A Guests Daily PageViews Mod 2.1 [ Uninstall ]
21. DisableTemplateEval 1.2 [ Uninstall ]
Board notes .... does this edit
<search for>
'description' => $row['description'],
</search for>
<replace>
'description' => $row['description'],
'topblock' => $row['topblock'],
</replace>
and since member awards also has the line 'description' => $row['description'], in load.php it gets the topblock added to its code as well. Just one of those things really.
Quote from: bharatforum on October 15, 2011, 01:21:23 PM
Somehow I can only type the name of the member and not choose it from the drop down list. There is only one option Select Members: and then you can type the name over there. Can I change something manually so that it works normally?
Do you see the drop down list?
Quote from: Spuds on October 15, 2011, 03:02:32 PM
Board notes .... does this edit
<search for>
'description' => $row['description'],
</search for>
<replace>
'description' => $row['description'],
'topblock' => $row['topblock'],
</replace>
and since member awards also has the line 'description' => $row['description'], in load.php it gets the topblock added to its code as well. Just one of those things really.
So... If i want to have both the boardnotes and member awards mods installed, i should install board notes first and then member awards, right?
In an attempt to see if what i said above is true, i proceeded to uninstall all the mods installed, in the reverse order that i installed them. However, when i reached member awards mods, i get these errors when trying to uninstall:
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Sources/Who.php Test successful
6. Execute Modification ./Sources/Profile.php Test successful
7. Execute Modification ./Themes/default/Display.template.php Test successful
8. Execute Modification ./Themes/default/Profile.template.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
11. Execute Modification install_display_template.xml
Modification parse error12. Execute Modification -
Modification parse error13. Delete Tree ./awards
14. Delete File ./Sources/ManageAwards.php
15. Delete File ./Themes/default/ManageAwards.template.php
16. Delete File ./Themes/default/languages/ManageAwards.english.php
17. Delete File ./Themes/default/languages/ManageAwards.english-utf8.php
18. Delete File ./Themes/default/images/award.gif
QuoteSo... If i want to have both the boardnotes and member awards mods installed, i should install board notes first and then member awards, right?
I have no idea, never installed boardnotes ... you should have just used the load.php that you had me look at and edit for you to get them both to work *shrugs* Past that I have never looked at nor changed the 1.1 branch as when I took over this mod that branch of the mod's development effort had stopped so I don't know why you are getting uninstall the errors.
Thanks for your help with the fixed Load.php, Spuds. I just wanted to try and understand a possible solution to the problem without having to involve any manual edits. I will try to uninstall this mod despite the errors and hopefully it won't break my forum.
Quote from: Jessica. on July 03, 2011, 12:15:20 PM
can't assign awards. I get this:
Method Not Implemented
GET to /forum/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have this...
Quote from: Spuds on July 03, 2011, 02:08:30 PM
I would *guess* that you have mod_security enabled on your server, the mod currently uses id= in the links which mod security will flag and reject. (really causing a 501 error but you don't have a 501 error page so it reports a 404 on the 501 it can't find, dumb huh?)
Anyway thats one of the things that I have that fixed in the 2.0 update that I'm working on.
Wasnt supposed to be fixed?
Not in the current package, its fixed only in the beta package which is only available for testing (e.g. not on a live forum)
Any ETA on the release date of a fixed version?
Hmmm it does not shwo the awards list on the post just the button to go to personal gallery, :/
and on install it gave 2 test failed on load.php :/
So it gave errors on the install, and now the mod does not work Hummm, very odd :D Sounds like you will need do a manual install of the edits in load.php and see if that fixes if for you, the edits in load actually load a members awards.
Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Quote from: Spuds on October 15, 2011, 05:10:45 PM
QuoteSo... If i want to have both the boardnotes and member awards mods installed, i should install board notes first and then member awards, right?
I have no idea, never installed boardnotes ... you should have just used the load.php that you had me look at and edit for you to get them both to work *shrugs* Past that I have never looked at nor changed the 1.1 branch as when I took over this mod that branch of the mod's development effort had stopped so I don't know why you are getting uninstall the errors.
Spuds, do you think you could take a look at the errors from 1.1 branch of your mod, and maybe fix it if you get some time? :)
It would be really awesome if you could fix the uninstall (and any other reported) errors, as well as any incompatibility issues with other mods.
Hopefully it's not too much work, but i'll stay off your back. ;)
Sorry to become anyone's burden but.. I keep getting this message error on my logs.
File: ...../default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3214
Any ideas how I can resolve it? Much thanks!
Kidd, That is not the whole error... However, turn off eval first.
Sharks,
It is not the responsibility of a mod author to make his mod fit with any other mods... especially once there could be twenty dozen mods that affect the same areas of code.
Your uninstall errors are likely due to the same thing.... Other mods.
That is the only error I get on the logs? And what is Evla? :( Sorry I'm such a noob.
kidd.... stupid auto correct "turn off eval" (look it up in the wiki for instructions)
OKay man, got it. I turned it off.. now what? :/
Now, the next time the error happens, tell us the FULL error message
Noob question...
...what must be changed,in order to make it work even in sites with mod_security ?
anywhere that the mod puts an ;id= in the url it must be changed to something else like ;awardid=
then throughout the code, wherever a $_GET that grabbed 'id' it must be changed to 'awardid' but left as $id in the code processing unless you want to also update most of the query's.
So I've read the thread a little and I appear to be having the same problem many others are with the awards not showing up on thread views. Is there a fix for this?
Yes... Make the edits to your theme's display.template.ohp
Is there a method to display a page showing all awards, like a page inside a portal for smf for example; tinyportal, simpleportal, portamx in the form of an external php script even?
Thanks
If you mean a show all available awards, there is a menu selection under profile -> show awards that shows whats available .... if you want that in a portal block you could adapt that code as a starting point.
I'm doing manually this mod...
can someone tell me where may i upload install.php ????
This file comes to your root-directory from your forum (where your index.php is located) and then you need to call the file manually: type in your browser:
www. name-of-myforum . com/install.php
Quote from: Spuds on October 15, 2011, 03:03:16 PM
Quote from: bharatforum on October 15, 2011, 01:21:23 PM
Somehow I can only type the name of the member and not choose it from the drop down list. There is only one option Select Members: and then you can type the name over there. Can I change something manually so that it works normally?
Do you see the drop down list?
Has this been solved? as I have the same problem I have an awards dropdown list, but no members, just a single box
EDIT:
I read that you should type below the input box but that does not work either!
see screenshot
Only way it works for me is typing about half the members name, then, the drop box will appear just below, and click the name that appears (sometime multi-names appear, so pick the one you want.)
The names dont just appear without typing anything, and wont appear if you type the full name.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F2nl4i28.jpg&hash=a0214b7dedaaafb5a9da79729370c43b5331e49c)
I'm just giving an example of how it works for me, type the name in the orange arrowed box, type half the name , and wait for the name to appear below the input box with the green arrow ... and click the name to insert it.
I get some errors when trying to install this mod:
Quote
1. Adapt Database install.php
* 2. Execute Modification ./Sources/Admin.php Test successful
* 3. Execute Modification ./Sources/Load.php Test failed
1. Add After ./Sources/Load.php Test successful
2. Add After ./Sources/Load.php Test successful
3. Add Before ./Sources/Load.php Test successful
4. Add After ./Sources/Load.php Test failed
* 4. Execute Modification ./Sources/ManagePermissions.php Test successful
* 5. Execute Modification ./Sources/Profile-View.php Test successful
* 6. Execute Modification ./Sources/Profile.php Test successful
* 7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
* 8. Execute Modification ./Sources/Who.php Test successful
* 9. Execute Modification ./Themes/default/Profile.template.php Test successful
* 10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Skipping file
* 12. Execute Modification ./Themes/default/Display.template.php Test successful
13. Create Tree ./awards
14. Extract File ./Sources/ManageAwards.php
15. Extract File ./Themes/default/ManageAwards.template.php
16. Extract File ./Themes/default/languages/ManageAwards.english.php
17. Extract File ./Themes/default/languages/ManageAwards.english-utf8.php
18. Extract File ./Themes/default/images/award.gif
19. Extract File ./Themes/default/images/admin/awards.gif
20. Extract File ./Themes/default/scripts/awards.js
21. Extract Tree ./Themes/default/images/awards
I'm using 2.0.1
http://wiki.simplemachines.org/smf/Error_in_mod_installation
QuoteOnly way it works for me is typing about half the members name, then, the drop box will appear just below, and click the name that appears (sometime multi-names appear, so pick the one you want.)
That is correct ... its pretty much the same as when you send a PM, you need to begin to enter the name and as hcfwesker stated, you must select the name from that list, even if only one name comes up.
I had this same problem when I first installed the mod, when typing a member name in the box it DID NOT auto fill with the member's name. It turned out to be a javascript error (I was having the same problem with PMs, the to and bcc fields would not auto complete) I'm not sure of a specific fix for this, I ended up rebuilding my forum from scratch to fix other problems, and that subsequently fixed the javascript errors.
Just trying to point out what the cause of the error is, sorry I don't have a specific solution for you.
Quote from: Spuds on November 07, 2011, 10:58:19 PM
If you mean a show all available awards, there is a menu selection under profile -> show awards that shows whats available .... if you want that in a portal block you could adapt that code as a starting point.
Thanks
So there is no built in modifier ?showall or anything to that degree portal aside.
Quote from: tragidy on November 16, 2011, 10:39:22 AM
Quote from: Spuds on November 07, 2011, 10:58:19 PM
If you mean a show all available awards, there is a menu selection under profile -> show awards that shows whats available .... if you want that in a portal block you could adapt that code as a starting point.
Thanks
So there is no built in modifier ?showall or anything to that degree portal aside.
It'd actually be simple just to add your own link to it, now that you know the url
Hello Dears I have completed the Award Members mod manually and it works....
but now i want that Award mod also work with Core Theme in SMF 2.0.1,,
Can someone tell me the steps???
Just make the manual edits to Display.template.php of the core theme. Or you can try renaming the core themes file to Display1.template.php to just use the default themes file. If it messes up the core theme's post pages, just change the name back, then try the manual edits.
Can someone help me with this¿
Fatal error: Cannot redeclare template_awards() (previously declared in /home/a6070869/public_html/SMF/Sources/Load.php(2447) : eval()'d code:3012) in /home/a6070869/public_html/SMF/Sources/Load.php(2447) : eval()'d code on line 3292
When i click the orange button or member profile.. i get this error :/
Edit: i unistalled it ... and now i have only 1 orange button (b4 2) .. but now i dont get this error....
When i try to modificate awards.. i get this
Fatal error: require_once() [function.require]: Failed opening required '/home/a6070869/public_html/SMF/Sources/ManageAwards.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a6070869/public_html/SMF/Sources/Admin.php on line 602
you double installed at some point... which means that you have to go through the code, manually andf remove all of the mod-replated code additions and revert the mod-related changes -- and then you can reinstall.
Quote from: Kindred on November 27, 2011, 01:25:47 PM
you double installed at some point... which means that you have to go through the code, manually andf remove all of the mod-replated code additions and revert the mod-related changes -- and then you can reinstall.
Solved , Thanks :D
Quote from: Switch-Renn on June 27, 2011, 08:46:29 PM
Hey there,
I keep getting "You must select a member and/or award in order to continue!" anytime I try to assign an award. With some searching, I learnt that I have to click the name in the dropdown box for it to work - but when I type in a name I don't GET a dropdown box.
I'm using 2.0 RC5, installed the mod with emulation. Any help would be greatly appreciated.
Bumping this, still need some help!! :c
1- upgrade to 2.0.1
2- confirm that the js file was added to your theme directory
Quote from: Switch-Renn on December 16, 2011, 10:32:32 AM
Quote from: Switch-Renn on June 27, 2011, 08:46:29 PM
Hey there,
I keep getting "You must select a member and/or award in order to continue!" anytime I try to assign an award. With some searching, I learnt that I have to click the name in the dropdown box for it to work - but when I type in a name I don't GET a dropdown box.
I'm using 2.0 RC5, installed the mod with emulation. Any help would be greatly appreciated.
Bumping this, still need some help!! :c
http://www.simplemachines.org/community/index.php?topic=114701.msg3208645#msg3208645 see if that explanation posted on the previous page helps.
Using 2.0rc5 I was able to install this, but i can't see the the option in the admins-menu.
I've been reading throug several solutions here and tried to change some stuff manually, but that left me with errors.
I attach the admin.php here in hope for help.
Thanks in advance!
I see some of the MOD installed. Try the attached file. If all goes well, your awards admin panel will be under Admin > Members ( directly underneath 'Permissions")
Thank you very, very much. I acn manage the awards now.
Only thing not working now is that the awards aren't shown below the members avatar.
You need to activate that under the awards settings.
Awards > Settings
Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.
Is set to 3 and it does not show any award.
Are you using a custom theme. Any edits to display.template.php must be also made if your custom theme has one. check on the SMf Default Curve theme. If they don't appear there, then you'll have to add the edits , sometimes those edits dont get added. Parse the MOD for the edits
Or, you can try and do this, which I added myself to shows Awards under signature. I personally think Awards in mini-profile get too cluttered.
http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589
Ok, made that, works now, thank you once again!
No problem. Enjoy. :)
Sry to disturb one more time, but how do I remove awards or un-assign them?
Made a test-award to give myself to see if it works but I can't find any options to remove the award in general or to un-assign it from me.
Now I got it, I need to assign it first to enter a un-assign window.
strange but it works
Admin > Awards > Main
You'll have to find the award, and click the members icon. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.brawldomain.com%2FAASMF2%2FThemes%2FDark_Domain%2Fimages%2Fawards%2Fuser.png&hash=e6402ae797be633d33abc5a0a470c10f00dead3e)
then, check the box next to each name you want to remove the award from, and click "Unassign Award"
How do I add more categories?
Admin > Awards > Categories > ( bottom right, you'll see a green plus sign ) it is kinda hidden lol
I just installed it on SMF 2.0.1 and I am getting below error:-
Unknown column 'a.id_category' in 'on clause'
File: ....../Sources/ManageAwards.php
Line: 100
I had to uninstall it as all the pages started throwing some database error.
Any idea about it?
Hi there, I was was wondering does this mod allow for awards that can be assigned by members to themselves?
This mod just broke my forum.
I installed it, then uninstalled it clicking "remove all content" and now I am getting a crazy error:
QuoteTable 'lou1127201571186.smf_awards_members' doesn't exist
File: /home/content/62/8427762/html/forum/Sources/Load.php
Line: 1031
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.2, while your database is at version 2.0.1. The above error might possibly go away if you execute the latest version of upgrade.php.
This is kind of a pain...
Any suggestions on fixing this?
Ok, reinstalled the mod and now my forum works. However, in each post the members have TWO sections for Awards and when I click on them I get this error:
QuoteFatal error: Cannot redeclare template_awards() (previously declared in /home/content/62/8427762/html/forum/Sources/Load.php(2217) : eval()'d code:2984) in /home/content/62/8427762/html/forum/Sources/Load.php(2217) : eval()'d code on line 3264
How can I fix this? Is there an easy way to just delete this mod and get back to my original forum files?
Here's the link to my forum:
http://louisvillednd.com/forum
PM me for Tester login.
Ok, update:
I've successfully uninstalled and deleted the mod. The only problem I am facing now is that the "awards" link still shows on the profile in posts.
When you click on it, it takes you to an awards page, but it is empty.
Additionally, in the Profile Info the "Show Awards" and "Awards List" is still active...
And, in the Admin panel, under Configuration, there is still an Awards link, but when I click on it I get:
Quote
Fatal error: require_once() [function.require]: Failed opening required '/home/content/62/8427762/html/forum/Sources/ManageAwards.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/62/8427762/html/forum/Sources/Admin.php on line 522
How can I get rid of this stuff entirely?
Then the MOD did not successfully un-install properly. Now you're gonna have to parse the MOd from the mod page ( selecting your version of SMF for the correct edits) and search each file listed and and remove/replace any codes that weren't un-installed in those files.
Also, there's no SMF copyright on your forum. Just the smf version. I'm not sure if they change their T.O.S. about this, but the copyright has to be in the footer or your forum could be taken down.
QuoteCopyright © 2012 Louisville D&D
SMF 2.0.2 |
You're missing the rest of the SMF footer
QuoteSMF 2.0.2 | SMF © 2011, Simple Machines
Thanks for the quick response!
Quote from: hcfwesker on January 09, 2012, 12:02:18 PM
Then the MOD did not successfully un-install properly. Now you're gonna have to parse the MOd from the mod page ( selecting your version of SMF for the correct edits) and search each file listed and and remove/replace any codes that weren't un-installed in those files.
Yikes. That's rough. Must be done though I guess.
I would also like to point out that much of the functionality of this mod was not available to me. I could not Edit Categories (the "green" icon mentioned above never showed up for me), I couldn't Delete Awards and there was an error when I tried to replace one image with another that said the new file would not upload.
Not sure if it was just my theme messing this up or not, but the dev may want to look into it.
Quote from: hcfwesker on January 09, 2012, 12:02:18 PMAlso, there's no SMF copyright on your forum. Just the smf version. I'm not sure if they change their T.O.S. about this, but the copyright has to be in the footer or your forum could be taken down.
Yeah, I didn't really change anything, I guess it's the theme that set it up like that?
Is there an easy way to update the footer?
Heya guys. I installed this in SMF 2.0.2, and although some features were a little funky in the way they worked when submitting certain things, everything works as intended. However, I have found an issue. The mod seems to spam the error log on the forum whenever a user views another user's awards:
<URL removed>/index.php?action=profile;u=90;area=listAwards8: Undefined index: viewFile: <URL removed>/Themes/default/languages/ManageAwards.english.php (awards_list sub template - eval?)
Line: 3150
The users themselves don't appear to see the error, so I'm assuming it's just a bug in the code that the forum is complaining about. Has anyone else received this?
Quote from: SugarD-x on January 09, 2012, 07:14:10 PMThe mod seems to spam the error log on the forum whenever a user views another user's awards:
Sometimes when you get an undefined error, its best to ue the search function on the MOds topic pahe, would brought right to this ...
http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
^ Remember, there's 2 listings, make sure both have the added line, as in the instructions in the linked post.
Quote from: hcfwesker on January 09, 2012, 07:39:38 PM
Quote from: SugarD-x on January 09, 2012, 07:14:10 PMThe mod seems to spam the error log on the forum whenever a user views another user's awards:
Sometimes when you get an undefined error, its best to ue the search function on the MOds topic pahe, would brought right to this ...
http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
^ Remember, there's 2 listings, make sure both have the added line, as in the instructions in the linked post.
According to the topic title at that time, that was when the mod was SMF 2.0 RC4 compatible. The current title of the topic states that it is now SMF 2.0 Gold compatible, as does the mod's page itself. That means this shouldn't be arising in the mod now with an even later version of SMF if it was fixed previously.
The search result you linked me to also refers to the index error of "view", whereas mine is "viewfile" :S
Quote7. Executar modificação ./Sources/Subs.php Falha
I've tried to install in SMF 2.0.2, but it don't changes "subs.php". What I do?
Hugs.
Manually install into that file
It's works. An other MOD changed the sintaxe.
TY.
SMF 2.0.1 Version.....I tried to install Member Awards and got this error advising me not to continue install due to failure. See attached file failure.
What should I do?
Hi Spuds
I hope you can add auto-awarding, as it's the next best feature that this mod could have, since for moderate to large communities, it can be a serious hassle to manually keep track of the awarding when the member reaches a certain post count, etc. You could allow setting different conditions for the awards to be automatically added to the member's profile.
Quote from: CatHunterSteve on January 17, 2012, 12:09:01 AM
SMF 2.0.1 Version.....I tried to install Member Awards and got this error advising me not to continue install due to failure. See attached file failure.
What should I do?
Quote from: Kindred on January 14, 2012, 10:18:05 PM
Manually install into that file
Quote from: hcfwesker on January 17, 2012, 05:10:21 AM
Quote from: CatHunterSteve on January 17, 2012, 12:09:01 AM
SMF 2.0.1 Version.....I tried to install Member Awards and got this error advising me not to continue install due to failure. See attached file failure.
What should I do?
Quote from: Kindred on January 14, 2012, 10:18:05 PM
Manually install into that file
Manually installed to sources/admin.php but menu not showing up in admin center to configure awards....help!
Attach the file in your next reply please.
Admin.php attached...thank you!
Try the attached file. You were missing 2 closings under the awards code in your manual edit. Not really sure, but that could have been the issue.
You had this
'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']),
),
),
but should be this
'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']),
),
),
),
),
Also, make sure that the awards language file was installed in your default/languages folder
Parse error: syntax error, unexpected ',' in /home/bsvirgin/public_html/forum/Sources/Admin.php on line 334
Now I get this error.
Hmmm. Lets' try this one. This will put the Awards menu as a sub-menu under Members in the admin panel.
I didn't notice, but you had 4 MODs that edits that same exact line, for your gallery, bad behavior, referals, etc MODs.
Quote from: hcfwesker on January 17, 2012, 04:01:13 PM
Hmmm. Lets' try this one. This will put the Awards menu as a sub-menu under Members in the admin panel.
I didn't notice, but you had 4 MODs that edits that same exact line, for your gallery, bad behavior, referals, etc MODs.
This appears to have worked! Thanks you very much for your time and help today!
Glad it worked out for ya. Enjoy the Awards MOD.
Ok mod installed, now where can I find nice award images ?
That part you're on your own. Search for images on google.
Quote from: hcfwesker on January 18, 2012, 04:33:31 AM
That part you're on your own. Search for images on google.
I thought as much. Thanks.
Hello tried to install this Mod and I an error came up directing me not to install this mod unless I knew what I was doing. Well I do not and I admit I am a noob at this and I was wondering if an update to this mod is in the works.
Here is the item that failed when I tried to install this mod.
Execute Modification ./Sources/Subs.php Test failed
Thank you
search is your friend
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Are the awards susposed to show up under the members post count as in the attached screen shot?
And if so do the need to be a certain size to show up there?
You have the option to turn that feature on or off, or place it in member's signatures, in the Awards settings.
when uploading an award image, you have the option to upload 2, one large and one mini-award, the mini-award image is whats best to use in the awards list for members profiles.
hello, just install the member award mod 2.0 compatible and encounter some problem while browsing my forum. when i click the link awards list, the footer is not expanding its height. i attach the image of my problem. i hope someone could help me fix this one. thanks.
Hi,
I'm running this on 2.0.2 and for some reason only the last award awarded (or if the user has favorited an award) that is the award that shows up in their messages under their avatar. In 2.0 RC4 or maybe RC5, all the awards given to a user showed up in their posts under their avatar.
Is there some way to fix this to do the same as it used to do in the earlier versions of SMF?
Thanks
Quote from: City Builder on January 24, 2012, 03:06:32 AMIs there some way to fix this to do the same as it used to do in the earlier versions of SMF?
check the Award Settings. Make sure more than 1 award is in the box to display.
QuoteAwards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.
anyone know how to fix the award list page? i attached the image of my problem in my previous post here.
Oh geez, thanks. I don't know why that option would be reset, since we used to show all the awards before, but whatever... It's working now. Thanks
How to display the award in display.template.php? Did not work. Tried all that is possible, anywhere to edit the code. Modified theme cortex. No errors, even no what to know where to look. (SMF 2.0 core)
Awards are not just loaded.
echo '<pre>';
print_r($message);
echo '</pre>';
output:
[awards] => Array
(
)
Look on the MOD page and parse the MOD for your version, and see the area it goes in, in that file.
Quote from: hcfwesker on January 24, 2012, 10:03:20 AM
Look on the MOD page and parse the MOD for your version, and see the area it goes in, in that file.
I tried. did not work. All the code is automatically added with no problems at all files. The profile displays, awards are added, but the display does not work. How so then?
if you are using smf 1.1.x or if you added your theme in 2.0 after installing this mod then you will have to manually apply the changes to the display.template.php in your custom theme
Russian translation...
For
index.xml:
Quote<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
### Awards
global $scripturl;
// Used by: Errors
$txt['cannot_manage_awards'] = 'У вас нет прав на управление наградами.';
// Used by: Help
$helptxt['awards'] = 'Этот раздел позволяет вам управлять, назначать, и катализировать награды, а также изменять некоторые настройки.';
// Used by: ManagePermissions
$txt['permissionname_manage_awards'] = 'Управление наградами';
$txt['permissionhelp_manage_awards'] = 'Это позволит участникам добавлять, править или назначать новые награды';
// Used by: Multiple Areas
$txt['awards'] = 'Награды';
$txt['awards_view_album'] = 'Просмотр альбома наград этого участника.';
$txt['awards_main'] = 'Главное меню';
$txt['awards_modify'] = 'Добавить/Изменить';
$txt['awards_assign'] = 'Назначить';
$txt['awards_categories'] = 'Категорий';
$txt['awards_settings'] = 'Настройки';
$txt['whoallow_awards'] = 'Управление <a href="' . $scripturl . '?action=awards">Наградами</a>.';
// Used by: Profile
$txt['showAwards'] = 'Награды участника';
$txt['listAwards'] = 'Список доступных наград';
### End Awards]]></add>
</operation>
</file>
ManageAwards.russian-utf8.php file is attached.
i attach again the image of the problem. please have a look. what could be the problem with it?
Sorry I havent got a clue. I didn't update to the latest version cause of some feature changes i didnt like.
Have you tried changing how your menus are layed out? Click the double arrows next to "Profile Info" in the top menu box to change your menu views ( can be changed back with another simple click). This MOD may have been built around the newer SMF2 menu layout. The layout you chose to use is on SMF2, but based on SMF1
Just test it and see if it works.
now i found out the problem. i tried to install a new forum for test and got no bug. but there is some problem when i remove the sub buttons of my main menu. its the same as the image i just attached previously.
EDIT:
ouch. im wrong. i thought the problem is in the main menu but the real problem is the css of this mod because when i uninstall the ezportal, it returns to the same look as in the image i attached. :(
Is there a way show only the favorite award in a user's post?
SpudsWhy «Show Awards» in the profile always gives me this:
QuoteThis member has not received any awards
?
even if the user having awards.
what is the different between «Show Awards» and «Awards List»?
Quote from: MrCreatoR on January 29, 2012, 01:03:33 PMwhat is the different between «Show Awards» and «Awards List»?
Show Awards will show the Members Awards. Awards List will show the entire awards catalogue. It's worded confusingly, I know, which is why I edited both those link titles on my site.
"Show My Awards"
"Awards Master List"
hcfwesker [?] (http://www.simplemachines.org/community/index.php?topic=114701.msg3263681#msg3263681)
QuoteShow Awards will show the Members Awards. Awards List will show the entire awards catalogue
Thanks, so the strings should be more specific.
Updated translation (http://www.simplemachines.org/community/index.php?topic=114701.msg3261854#msg3261854).
While I translate this extension into german, could anyone tell me how to show the big image of the favorite award in a user's post?
i tried the most obvious things like adding _favorite to some 'awards' codes, but it didnt surprise me that it didnt work out :/
i am talking about this code in the display.template.php:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
edit: before i start translating: am i right when i am using codes like ö ä in the normal translation and in the utf-8 version öäü letters?
Anyone can tell me please why this mod does not support Unicode?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg444.imageshack.us%2Fimg444%2F8713%2Fcapturedselection.th.png&hash=e3568edc78bf637ed309afb76e9ffac71e31f390) (http://imageshack.us/photo/my-images/444/capturedselection.png/)
It's Russian, all changes i made converted to ?????.
And BTW, i tested the mod on localhost forum, there is no such problem.
Are you using Russian UTF8 on both sites?
Are there any plans to make this Mod fully compatible with SMF 2.02?
Thank you
Fed
:)
[?] (http://www.simplemachines.org/community/index.php?topic=114701.msg3267335#msg3267335)
QuoteAre you using Russian UTF8 on both sites?
How can i check it?
ummm... fed.... it works just fine with 2.0.2
Quote from: Kindred on February 03, 2012, 07:32:21 AM
ummm... fed.... it works just fine with 2.0.2
Not for me I will try to install it again but it is giving me an error I will copy and post it when I get the chance.
Cheers
You're going to get install errors depending on the amount of MODs you already have installed. you'll just have to make the manual edits.
Yes But I only have 6 mods installed. Regardless noobs like me are not really knowledgeable in Manual installs.
Here is the error.
Quote* 7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
It would be nice to get this mod to not have any manual install lines.
Just my 2 cents worth.
Thank you.
Quote from: Fed Drago on February 03, 2012, 10:17:12 AMIt would be nice to get this mod to not have any manual install lines.
MODs are designed to install on fresh forum installs. Once you add 1 MOD, it alters the files, therefore other MODs being installed afterwards cant find the original code line, because a previously installed MOD altered it.
that code in
Sources/Subs.php, is at tghe VERY TOP of the file. You previously installed a MOD that added an admin menu or permission.
Find the line that resembles this
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
you'll probabllu see that something got added after
, 'manage_smileys' due to another MOd being installed
all you have to do is add this inside that list of other admin permissions. easy as it gets ;)
, 'manage_awards
Then install the MOD. It will still show the install error, but as long as you made the manual edit, just install the MOD.
Alright I will give it a shot :)
Quote from: Fed Drago on February 03, 2012, 11:15:30 AM
Alright I will give it a shot :)
since i know you have skype, if you want, PM me your skype id, and I'll help show you how to do this, along with some basics on how to install MODs with install errors, for when you get them on future installs.
Quote from: hcfwesker on February 03, 2012, 01:03:35 PM
Quote from: Fed Drago on February 03, 2012, 11:15:30 AM
Alright I will give it a shot :)
since i know you have skype, if you want, PM me your skype id, and I'll help show you how to do this, along with some basics on how to install MODs with install errors, for when you get them on future installs.
Thank you or that offer I will take you up on that later down the line.
Anyone?
Ho is the mods author now?
Is there any eta of a fix for the mod_security error or could anyone give me the files modified that would need fixing? I've tried to do so myself but I might have made some errors
Quote from: natzy24 on February 03, 2012, 11:01:55 PM
Is there any eta of a fix for the mod_security error
this is the first I've ever heard of this coming from this MOD
I'll reword slightly then
On a url like this: http://dragonagerpg.amazeart.net/index.php?action=profile;area=awardsMembers;id=1
I get the following error:
QuoteMethod Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Is there any fixes for this?
very strange, because the link works on my site.
http://www.brawldomain.com/index.php?action=profile;area=awardsMembers;id=5 ( we deleted our first 4 awards)
when I read back it was hinted that it might be something to do with Mod_Security or something similar and that there was a beta version that 'fixed' this
I never updated, and never had an issue with tyhe Awards MOD i have installed. Perhaps you can try and test it. I'll attach it. You'll have to emulate to SMF 2 RC5 to get it installed. then just revert back to 2.0.2 after installed.
Tried this, tried even doing a clean install after totally uninstalling to install again come across two errors now:
First of all none of the images for assign etc show, second of all I click on the modify link
and get this in response
Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
it's due to a silly (mis)configuration on the host's side.....
Quote from: Kindred on February 04, 2012, 02:55:25 AM
it's due to a silly (mis)configuration on the host's side.....
Which means in English? Would you be able to help me fix it?
Only your host can fix it.... They think that mod_security makes the server safe.... It doesn't and us not necessary if the server is configured correctly to start with.
Should I contact them what do I say?
Just like Kindred said, its an incompatibility with mod_security, specifically mod_security does not like ;id= in a url .... it thinks thats all hacky.
You can try adding the following to the top of your .htaccess file
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
That will either a) fix it b) do nothing c) create a 500 /404 error. If c then remove those lines
Quote from: hcfwesker on February 03, 2012, 11:31:36 PM
I never updated, and never had an issue with tyhe Awards MOD i have installed. Perhaps you can try and test it. I'll attach it. You'll have to emulate to SMF 2 RC5 to get it installed. then just revert back to 2.0.2 after installed.
That version and the one on the download site are 99.9% the same so its not going to change a thing expect the old version has even more HTML validation errors then the current one and the old one requires emulation mode while the current one does not. Use whatever version floats your boat but there are no real function changes.
Quote from: MrCreatoR on February 03, 2012, 07:17:22 PM
Anyone?
That looks more like you did not save the translation file as UTF8 or the forum is not in UTF8 mode or what you uploaded did not upload correctly, other than that I don't know, its not something the mod is doing.
Quotebeta version that 'fixed' this
Never got out of Beta :P .... still intend to get back to it one of these days.
Quote from: hcfwesker on February 03, 2012, 11:31:36 PM
I never updated, and never had an issue with tyhe Awards MOD i have installed. Perhaps you can try and test it. I'll attach it. You'll have to emulate to SMF 2 RC5 to get it installed. then just revert back to 2.0.2 after installed.
Quote from: Spuds on February 04, 2012, 08:05:59 PMThat version and the one on the download site are 99.9% the same so its not going to change a thing expect the old version has even more HTML validation errors then the current one and the old one requires emulation mode while the current one does not. Use whatever version floats your boat but there are no real function changes.
Around that time was when you took up the MOD, and were working with test versions of newer features you were wanting to add. like auto-add awards and stuff. but it never went through. So, I just stuck with the version I had until there were actual new things to warrant a new install version. that's all. nothing to do with what "floats my boat" :P
Quote from: Spuds on February 04, 2012, 08:05:59 PM
Just like Kindred said, its an incompatibility with mod_security, specifically mod_security does not like ;id= in a url .... it thinks thats all hacky.
You can try adding the following to the top of your .htaccess file
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
That will either a) fix it b) do nothing c) create a 500 /404 error. If c then remove those lines
Hey - thanks for the advice however I have made contact with the person who looks after the servers and they seem willing to turn mod_security off for that domain
QuoteHey - thanks for the advice however I have made contact with the person who looks after the servers and they seem willing to turn mod_security off for that domain
Thats cool ... if its mod security V1 they will likely just add those lines for you, if its the more evil mod_security V2 they will have to do something to their server config. Either way its best to have that off :)
Hi everyone:
I have a slight issue with my forums after installing member awards on 2.0.1:
Unknown column 'aw.award_name' in 'field list'
File: /var/www/vhosts/forums.adastrafanfic.com/Sources/Load.php
Line: 1031
It looks like the DB portion didn't install? But I can't uninstall it because it claims there is no uninstaller. Can I comment out the code added to Load.php for this?
Thanks,
MDg
I think I found it. I backed out the changes manually and restored from a previous version of Load.php. Should be all good, now :)
Thanks, anyway,
MDg
i solved now my problem in the award list page. i just change the paragraph tag of the function template_awards_list to div tag. now it works in the way i want. :)
Spuds [?] (http://www.simplemachines.org/community/index.php?topic=114701.msg3268678#msg3268678)
QuoteThat looks more like you did not save the translation file as UTF8 or the forum is not in UTF8 mode
I did, otherwise the strings like award title/name was displayed incorrectly.
I think the problem is in the database, because this data filled later, after the mod was installed.
There is an error in the install.. Here's the original code:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
This causes the rest of the page to be broken due to the description class not endquoted.. Here's the fix:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
does the not english members problem solved on new version?
Quote from: Hoodie on February 09, 2012, 01:19:13 AM
There is an error in the install.. Here's the original code:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
This causes the rest of the page to be broken due to the description class not endquoted.. Here's the fix:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
Thanks!
Quote from: Spuds on February 09, 2012, 10:32:34 AM
Quote from: Hoodie on February 09, 2012, 01:19:13 AM
There is an error in the install.. Here's the original code:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
This causes the rest of the page to be broken due to the description class not endquoted.. Here's the fix:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
Thanks!
Added info for others:
The above change is in the Profile.template.php file.
Quote from: Hoodie on February 09, 2012, 01:19:13 AM
There is an error in the install.. Here's the original code:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
This causes the rest of the page to be broken due to the description class not endquoted.. Here's the fix:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
it doesnt look to have changes in the code.
Quote from: fullmoonya on February 12, 2012, 11:54:04 PM
Quote from: Hoodie on February 09, 2012, 01:19:13 AM
There is an error in the install.. Here's the original code:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
This causes the rest of the page to be broken due to the description class not endquoted.. Here's the fix:
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description">
', $txt['awards_error_no_badges'], '
</p>';
it doesnt look to have changes in the code.
I thought so at first too. Look carefully at the "<p class="description>" section in both code quotes. One has an additional quotation mark after the word "description".
Quote from: SugarD-x on February 13, 2012, 12:00:18 AM
I thought so at first too. Look carefully at the "<p class="description>" section in both code quotes. One has an additional quotation mark after the word "description".
now i see it. thanks for the support sir.
Quote from: fullmoonya on February 13, 2012, 03:03:37 AM
Quote from: SugarD-x on February 13, 2012, 12:00:18 AM
I thought so at first too. Look carefully at the "<p class="description>" section in both code quotes. One has an additional quotation mark after the word "description".
now i see it. thanks for the support sir.
No problem! :)
When I try to edit or delete an Award, I get this;
Quote501 Not Implemented
The requested method is not implemented by the server.
I'm unsure where to even start looking for errors, and I installed
ages ago. I assume it was clean, but can't be positive.
EDIT: Asking to run an uninstall crops up no errors at all.
Quote from: FireDitto on February 13, 2012, 05:26:20 PM
When I try to edit or delete an Award, I get this;
Quote501 Not Implemented
The requested method is not implemented by the server.
I'm unsure where to even start looking for errors, and I installed ages ago. I assume it was clean, but can't be positive.
EDIT: Asking to run an uninstall crops up no errors at all.
try to parse the mod and trace every part where the code was putted.
Quote from: FireDitto on February 13, 2012, 05:26:20 PM
When I try to edit or delete an Award, I get this;
Quote501 Not Implemented
The requested method is not implemented by the server.
I'm unsure where to even start looking for errors, and I installed ages ago. I assume it was clean, but can't be positive.
EDIT: Asking to run an uninstall crops up no errors at all.
Thats most likely a mod_security error ... it creates a 501 error when it does not like "something". There are known issues with this mod and having mod_security enabled on your server, they just don't play well together.
You can try adding the following to the top of your .htaccess file
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
or contact your host to see if they have it installed and how you can disable it on your site.
is there a way to insert a user's favorite award pic below his avatar/signature? this is the current (standard) code:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
Quote from: atoast on February 21, 2012, 11:07:17 AM
is there a way to insert a user's favorite award pic below his avatar/signature? this is the current (standard) code:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
find the comment line: avatar, images, etc.? on display.template.php
and add the award code under the code under this commentline.
Quote from: fullmoonya on February 21, 2012, 09:21:31 PM
Quote from: atoast on February 21, 2012, 11:07:17 AM
is there a way to insert a user's favorite award pic below his avatar/signature? this is the current (standard) code:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
find the comment line: avatar, images, etc.? on display.template.php
and add the award code under the code under this commentline.
Thanks for your reply, but I think I my question wasn't clear enough: My problem isnt related to the award's position.
What I want is to display the
large award-image of the
member's favorite award.
Quote from: atoast on February 22, 2012, 10:27:07 AM
Quote from: fullmoonya on February 21, 2012, 09:21:31 PM
Quote from: atoast on February 21, 2012, 11:07:17 AM
is there a way to insert a user's favorite award pic below his avatar/signature? this is the current (standard) code:
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div id="description-wrap" style="margin: 20px auto; width: 700px;">
<div class="description">
<div class="description-text">
<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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
find the comment line: avatar, images, etc.? on display.template.php
and add the award code under the code under this commentline.
Thanks for your reply, but I think I my question wasn't clear enough: My problem isnt related to the award's position.
What I want is to display the large award-image of the member's favorite award.
sorry for that. i dont know it either. but i think you should look up for the award variable that holds the large images then put it in the display.template.php
this is one of the must have mods I think. thanks for the author and all members helped to make it up to date.
I am using it with Ricky's wrap text around profile mod. It works great. I just need one thing.
I have chosen to use the display awards under the signature. but when a member does not have a signature the awards section jump next to the profile field which makes it unorganized, unlike when members have signature on (please see two attachments for more clarification). is it possible to make it always under the text area and always under the profile field?
when there is signature I like how it is separated with that thin line which I highlighted in yellow. can we make the line permanent and then the awards section even when there is no signature?
Useful, another woją very good modification. Thank you
having a problem with the icons on the award system it just shows a broken image instead of the incon where you click
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FN4ZM8.png&hash=799f4ecec3806befb7d1b0e6aada4419126e987b)
Was the images added to your custom theme? check the SMF Default theme to see if the image appears there.
that image needs the award.gif image , added to Themes/(ThemeName)/images/admin/ folder
Hi hcfwesker,
can you help me with me issue please. its explained in my previous reply.
thanks
Quote from: hcfwesker on February 28, 2012, 07:56:08 PM
Was the images added to your custom theme? check the SMF Default theme to see if the image appears there.
that image needs the award.gif image , added to Themes/(ThemeName)/images/admin/ folder
thanks just had to copy the file over only icon not showing is in the drop down menu
Quote from: BaghdadGhost on February 28, 2012, 08:16:21 PM
Hi hcfwesker, can you help me with me issue please. its explained in my previous reply.
I'll try, upload your Display.template.php file.
you are the man. thanks a lot even if you wont be able.
attached. and could you please also narrate the changes here for the record and other members too.
thanks
Can't test it myself, but try these edits. If they dont work just revert it back and I'll take another stab at it
in that file
Find
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">جوائز المغترب</a></legend>';
Replace with
echo '<div class="signature" id="msg_', $message['id'], '_signature"><fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">جوائز المغترب</a></legend></div>';
ok this change made the line I was looking for, but it took the awards images out of their frame ( see attachment)
With everything back to original try this.
in that file
Find
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">جوائز المغترب</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
Replace with
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<div class="signature" id="msg_', $message['id'], '_signature"><fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">جوائز المغترب</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset></div>';
:D that did it man thank you very much.
for those interested the final results are as shown in the attachment
btw, your avatar reminds me of MW3 lol
'ello...I'm trying to assign a new award and I got a 501 Not Implemented The requested method is not implemented by the server error
The host site's response is:
mod_security rule triggered!
[Thu Mar 8 14:57:13 2012] [error] [client 72.187.119.21] ModSecurity: Access denied with code 501, [Rule: 'ARGS' '(?:\b(?:(?:n(?:et(?:\b\W+?\blocalgroup|\.exe)|(?:map|c)\.exe)|t(?:racer(?:oute|t)|elnet\.exe|clsh8?|ftp)|(?:w(?:guest|sh)|rcmd|ftp)\.exe|echo\b\W*?\by+)\b|c(?:md(?:(?:32)?\.exe\b|\b\W*?\/c)|d(?:\b\W*?[\\\/]|\W*?\.\.)|hmod.{0,40}?\+.{0,3}x))|[\;\|\`]\W*?\b(?:(?:c(?:h(?:grp|mod|own|sh)|md|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)\b|g(?:\+\+|cc\b))|\/(?:c(?:h(?:grp|mod|own|sh)|pp)|p(?:asswd|ython|erl|ing|s)|n(?:asm|map|c)|f(?:inger|tp)|(?:kil|mai)l|g(?:\+\+|cc)|(?:xte)?rm|ls(?:of)?|telnet|uname|echo|id)(?:[\'\"\|\;\`\-\s]|$))']
2012-03-08 14:57:13.864 [NOTICE] [72.187.119.21:58958-0#APVH_simscrossing.net] Content len: 0, Request line: 'GET /smf/index.php?action=admin;area=awards;sa=viewassigned;id=5 HTTP/1.1'
My IP got blocked and they unblocked it but still have the error. Any idea what would still trigger this?
smf 2.02
Any help with this mod.
I am very new to modifying sites and don't know too much about code. I am hoping to learn.
I still have my forums set to a temporary URL while I am building my pages before setting my site live and transferring our current site to it.
All the tests are successful, but this one below.
Here is the error I am getting:
Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
I am using SMF 2.02
An Error Has Occurred!
Unable to load the 'main' template.
Quote from: FatLightng on March 10, 2012, 01:30:57 PM
Any help with this mod.
I am very new to modifying sites and don't know too much about code. I am hoping to learn.
I still have my forums set to a temporary URL while I am building my pages before setting my site live and transferring our current site to it.
All the tests are successful, but this one below.
Here is the error I am getting:
Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
I am using SMF 2.02
upload your subs.php and I will try to edit it manually
Same issue as FatLightng, Subs.php attached.
Quote from: Jaymjaym on March 11, 2012, 08:39:38 PM
Same issue as FatLightng, Subs.php attached.
I made the changes for you.
Great, thanks!
Hi, I have a problem. although i see the awards in the admin cpanel and create an award, upload images/badges, i cant see the awards if i look at a members profile and choose awards in the profile info. it shows:
An Error Has Occurred!
Unable to load the 'awards' template.
Hi.
I have such question/request:
in the previous version of my forum, in a memeber awards mod were made some modification, which display the awards (under avatar block) only after clicking on the word "Awards" - that was some kind of spoiler for the awards. Unfortunately the code has been lost with the old version of the forum and there is no way to contact the person who made this edits. I am writing to you in hopes that someone will be able to tell how to do this.
Thanks in advance.
PS: SMF 2.0.2
Quote from: sildenafil on March 12, 2012, 05:53:56 AM
Hi, I have a problem. although i see the awards in the admin cpanel and create an award, upload images/badges, i cant see the awards if i look at a members profile and choose awards in the profile info. it shows:
An Error Has Occurred!
Unable to load the 'awards' template.
Best guess I can make, is that you may be on a custom theme and that theme has it's own
Profile.template.php ; which will require you to add the code to that theme's Profile.template.php
check on the SMF Default theme and see if the error happens, if not, then thats gonna be the issue. If it does happen on the SMF default theme, then perhaps the edit is missing from
default/Profile.template.phpFind ( at the very bottom of the file )
?>
Add Before
// This is the template for the awards
function template_awards(){
global $context, $modSettings, $txt, $settings;
echo '
<div class="cat_bar">
<h3 class="catbg">
' ,$txt['awards'], '
</h3>
</div>';
// Show the amount of awards that a member has
if (!empty($context['count_awards']))
echo '
<p class="description">
', sprintf($txt['awards_count_badges'], $context['count_awards']), '
</p>';
// Check if this member has any awards
if (empty($context['categories']))
echo '
<div class="error">
', $txt['awards_no_badges_member'], '
</div>';
else
{
foreach($context['categories'] as $category){
echo '
<div class="cat_bar">
<h3 class="catbg">
', $category['name'], '
</h3>
</div>
<table class="table_grid" width="100%">
<thead>
<tr class="catbg">
<th scope="col" class="first_th smalltext" width="15%">', $txt['awards_image'], '</th>
<th scope="col" class="smalltext" width="15%">', $txt['awards_mini'], '</th>
<th scope="col" class="smalltext" width="20%">', $txt['awards_name'], '</th>
<th scope="col" class="smalltext" width="45%">', $txt['awards_description'], '</th>
<th scope="col" class="last_th smalltext" align="center" width="5%">', $txt['awards_favorite2'], '</th>
</tr>
</thead>
<tbody>';
$which = true;
foreach ($category['awards'] as $award)
{
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><a href="', $award['more'], '"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></a></td>
<td align="center"><a href="', $award['more'], '"><img src="', $award['mini'], '" alt="', $award['award_name'], '" /></a></td>
<td><strong>', $award['award_name'], '</strong></td>
<td><em>', $txt['months'][$award['time'][1]], ' ', $award['time'][2], ', ', $award['time'][0], '</em>: ', $award['description'], '</td>
<td align="center">', $context['allowed_fav'] ? '<a href="' . $award['favorite']['href'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '">' . $award['favorite']['img'] . '</a>' : '', '', ($award['favorite']['fav'] == 1 ? ' <img src="' . $settings['images_url'] . '/star.gif" alt="' . $txt['awards_favorite']. '" />' : ''), '</td>
</tr>';
}
echo '
</tbody>
</table>';
}
// Show the pages
echo '
<span class="smalltext">', $txt['pages'], ': ', $context['page_index'], '</span>';
}
}
function template_awards_members()
{
global $context, $scripturl, $txt;
// Open the form
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['awards_members_with'], ': ', $context['award']['name'], '
</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content" align="center">
<img src="', $context['award']['img'], '" alt="', $context['award']['name'], '" /><br />
<strong>', $context['award']['name'], '</strong><br />
', $context['award']['description'], '
</div>
<span class="botslice"><span></span></span>
</div>
<div class="cat_bar">
<h3 class="catbg">
', $txt['members'], '
</h3>
</div>';
// Check if there are assigned members
if (empty($context['award']['members']))
echo '
<p class="description">
', $txt['awards_no_assigned_members2'], '
</p>';
else {
$which = true;
$counter = 0;
echo '
<table class="table_grid" width="100%">
<tbody>';
// Loop through the members
foreach($context['award']['members'] as $member){
if ($counter < 1)
echo '
<tr class="windowbg', $which ? '2' : '', '">';
echo '
<td width="*">', $member, '</td>';
$counter++;
if ($counter == $context['columns']){
echo '
</tr>';
$counter = 0;
$which = !$which;
}
}
// If $counter is not = 0 then we must close the last tr
if ($counter != 0)
echo '
<td colspan="', ($context['columns'] - $counter), '"> </td>
</tr>';
}
echo '
</tbody>
</table>';
}
function template_awards_list(){
global $context, $modSettings, $txt, $settings;
echo '
<div class="cat_bar">
<h3 class="catbg">
', $txt['awards_title'], '
</h3>
</div>';
// Check if there are any awards
if (empty($context['categories']))
echo '
<p class="description>
', $txt['awards_error_no_badges'], '
</p>';
else
{
foreach($context['categories'] as $key => $category)
{
echo '
<div class="title_bar">
<h3 class="titlebg">
<a href="', $category['view'], '">', $category['name'], '</a>
</h3>
</div>
<table class="table_grid" width="100%">
<thead>
<tr class="catbg">
<th scope="col" class="first_th smalltext" width="15%">', $txt['awards_image'], '</th>
<th scope="col" class="smalltext" width="15%">', $txt['awards_mini'], '</th>
<th scope="col" class="smalltext" width="25%">', $txt['awards_name'], '</th>
<th scope="col" class="smalltext" width="40%">', $txt['awards_description'], '</th>
<th scope="col" class="last_th smalltext" width="5%"> </th>
</tr>
</thead>
<tbody>';
$which = false;
foreach ($category['awards'] as $award)
{
$which = !$which;
echo '
<tr class="windowbg', $which ? '2' : '', '">
<td align="center"><img src="', $award['img'], '" alt="', $award['award_name'], '" /></td>
<td align="center"><img src="', $award['small'], '" alt="', $award['award_name'], '" /></td>
<td>', $award['award_name'], '</td>
<td>', $award['description'], '</td>
<td class="smalltext">
<a href="', $award['view_assigned'], '"><img src="', $settings['images_url'], '/awards/user.png" title="', $txt['awards_button_members'], '" alt="" /></a>
</td>
</tr>';
}
echo '
</tbody>
</table>';
}
// Show the pages
echo '
<span class="smalltext">', $txt['pages'], ': ', $context['page_index'], '</span>';
}
}
Hi, I was wondering if someone could help me. I am hoping to take out the two different images for the Member Awards so I can just go with the Mini-Award picture.
Anyone know how to do that?
Quote from: Xarwin on September 18, 2011, 10:45:10 AM
It bugs when I want to change an icon its image:
An Error Has Occurred!
"You must select a file to upload!"
This was bugging me too, you need to edit ManageAwards.php to fix it. Find this around line 214:
// Now add the new one.
AwardsUpload($id_award);
Replace with:
// Now add the new one.
AwardsUpload($id);
Hi
I am constantly encountering problem with trying to install this mod.
I am using SMF 2.0.2, I didn't upgrade, it was my first installed version. Whenever I try to install mod, it tells me that it failed to update admin.php file.
Once it's installed, it exists on the forum but is unavailable. I installed 2.0.0 version on other webhost and it worked fine, so I copy-pasted links to award system from its admin control panel and I got into it on my own, but that's it. I can't do anything with it, when I manage to add an award it duplicates in postbit.
Are there any plans of making this compatible with 2.0.2 or is there a way to bypass this and solve the issue?
it installed just fine on 2.0.2
If you got an error on install, then you will have to manually apply the changes to that file. Without the manual changes, the mod won't be fully installed and may not work
There appears to be allot of tweaking being done for this mod. The question remains unanswered weather or not the code writers of this Mod will consider doing a upgrade and updated version. This is a great Mod and there is a need for it but it is a shame that it has a fair amount of manual code writing that has to come along with the success of using it.
Cheers
Quote from: Kindred on April 14, 2012, 06:09:37 PM
it installed just fine on 2.0.2
not sure what you mean by a lot of tweaking... some people have tweaked it to do things other than originally intended, but - as written, it works just fine.
I will try to install this Mod again, as it is NOT installing just fine for me. I am using 2.0.2 with only a handful of other Mods. Quick question I am also using simple Easy portal (Latest version) I wonder if Simple portals is the issue?
are you using SimplePortal or EZPortal? I have it installed in EZPortal.
Please fix a bug in the SMF 1.1.x version... Whenever members who have been assigned awards are deleted (for whatever reason), when visiting the awards list in the admin panel, there are blanks where these deleted members' usernames should be. I think there should be a maintenance option in the "Settings" tab so that any awards assigned to a non-existing member can be cleaned.
Hi there! Awesome mod.
I'm having just a little issue. I want it to show under user avatar. So i cut the code
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid #181618; padding: 2px>';
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
And move it up to // Show how many posts they have made.
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
and what happen?, when user is awared i can see all his data below awards, but when he's not it doesn't show.
I mean, there's a function on prevent loading if they haven't awards.
How can i fix this?
I have no problems at all with the mod; However, what I would like to do is reset the award IDs to start at 1 again.
Is it possible to do this?
only if you truncate the awards table...
Quote from: Kindred on April 18, 2012, 01:55:00 PM
are you using SimplePortal or EZPortal? I have it installed in EZPortal.
Simple Portal
well, then you may have to manually install the failed parts
Quote from: Ascot on April 20, 2012, 01:30:57 PM
Hi there! Awesome mod.
I'm having just a little issue. I want it to show under user avatar. So i cut the code
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid #181618; padding: 2px>';
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
And move it up to // Show how many posts they have made.
<li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
and what happen?, when user is awared i can see all his data below awards, but when he's not it doesn't show.
I mean, there's a function on prevent loading if they haven't awards.
How can i fix this?
Please help. :'(
you need to provide more code.
Please include the 5 lines of code before, the code you inserted and 5 lines of code after.
Hi guys, i need help with some SQL query code for this award on SMF 1.1.16: I want to search for all members who have between 200 and 299 posts (inclusive) and then assign them to the awards id 5. It's a bit of an auto-award manual manipulation, as i need an easy way to assign awards to my thousands of members without having to edit each of their profiles one by one, which can be very painful work! I also want to do the same for other ranges, for example, members from 300 posts to 399 posts should be assigned the award id 6, etc.
Member Awards em Português - PT-PT ou PT-BR UTF-8
Member Awards in Portuguese - PT-PT or PT-BR UTF-8
Anexo.
Adicionado o pacote completo com o MOD em PT-BR UTF-8.
Add original pack with complete MOD in PT-BR UTF-8.
Are there any good tutorials on making awards like the ones in the example?
Anytime i try to assign a award to a member i get this error...You must select a member and/or award in order to continue!......when i type a username in the box i don't a dropdown box allowing me to select the name. I ve tried just typing half the name and waiting a bit and no box ever appears for me to select the name. When i type the whole username in myself i still get the error....any idea?
NVM...i tried with firefox and got the box....was useing ie.....my stupidity sry guys.
Is it possible to show each award category separately in post message ?
Please help me.
Sorry but what was the page where members could request awards?
I forgot it and I can't find it anymore >.<.
Hi guys,
my problem is, that I run my forum in 2 versions (English and German). I'd love to use this mod, but as of now, the only change I see, is to substitute the English version with a German one. But what I need is to be able to switch between those versions, according to the language version the user is using.
Any ideas?
Hey guys, the awards do not show on the posts .. any idea?
I am getting the following error using 2.0.2. The mod worked before but doesn't anymore. It does work on my dev forum though. If it was a setting on the server or a rule, it shouldn't work on either forum, I would think.
Method Not Implemented
GET to /Forums/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I
Quote from: shyrax on July 07, 2012, 08:43:04 PM
I am getting the following error using 2.0.2. The mod worked before but doesn't anymore. It does work on my dev forum though. If it was a setting on the server or a rule, it shouldn't work on either forum, I would think.
Method Not Implemented
GET to /Forums/index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I
So far I have most of it fixed. The problem was that all the links were using a ";" instead of a "&" in between the step and id like below.
NOT WORKING IN PROD FORUM: http://..../forums/index.php?action=admin;area=awards;sa=assign;step=1;id=9
WORKING IN DEV FORUM: http://..../forumdev/index.php?action=admin;area=awards;sa=assign;step=1&id=9
To fix the problem, I made the following changes:
Edited lines 124-127 of Sources/ManageAwards.php to change ";id=" to "&id="
Edited lines 2053 and 2193 of Sources/Profile-View.php to change ";id=" to "&id="
Everything seems to be working except for the Save button when assigning new users to an award. I list the user and click Save. I get the same error from before. If I go look at the user, the award has been added though. So it is actually doing the save but still giving an error.
Any ideas on how to fix the save button?
This is a long standing bug where your production server has mod_security installed which gets upset with the ;id= and sometimes with &id= and ideally it should be rewritten to not use id at all in the URL...
I get the
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
When I enter a username into the box. It doesn't show a drop down or anything kind of like what the guy above said BUT, I'm using firefox. So I don't understand.
Tried with Chrome. Didn't work on that either. So this is a issue with the mod not the browser. What should I do?
Good day Sir,
I have successfully installed the mod into my SMF 2.0.2.
However when I go to the Profile Info and under then Awards, I see the following error message:
jQuery(document).ready(function() { jQuery(".btntslidebox").hover(function() {jQuery(this).stop().animate({left: "0"}, "medium");}, function() {jQuery(this).stop().animate({left: "-70"}, "medium");}, 500);});
Can you please advise me how to correct the above so that the member award mod will function properly?
That isn't an error. Where does it appear? May I see a screenshot?
Good day.
I am unable to upload a screenshot from my workplace.
My website address: amuletsgallery.com
Temporary user ID: user123
Password: user123
When going to the Profile Info and under then Awards, I see the following error message:
jQuery(document).ready(function() { jQuery(".btntslidebox").hover(function() {jQuery(this).stop().animate({left: "0"}, "medium");}, function() {jQuery(this).stop().animate({left: "-70"}, "medium");}, 500);});
User is non-existent.
That doesn't look like it's from member awards, though. Might be a sliding box mod. Can you list you installed mods?
Good day.
The following are the list of mods I have:
1. Ban List 2.0
2. BK-SMF Favicon and Custom Global HTML 1.0
3. Board Viewers Mod 1.2.1.1b
4. Country Flags 2.1
5. Dizzy Smileys 0.5.0.1
6. Add Facebook Like to Posts 1.1
8. Member Awards 2.2.3
10. NiceTooltips 1.8
11. Page_Reload_Mod 2.0
12. 'Read the Rules' Link Above Post Button 2.0
13. Recent Topics On "Recent Posts" Page 1.2
14. Redirect Banned Users 2.0
15. Remove images from quotes 1.6
16. Advanced Reputation System 1.8.3
17. Separate the sticky topics 1.0.0
18. Slashout Banned Members 1.2
19. SMF Trader System 1.6
20. Social Buttons 2.0
21. Split and Move 0.1.2
22. Topic View Log 1.2
23. Voter Visibility 1.01
24. YouTube BBCode
Will this be updated for 2.0.2?
it works just fine on 2.0.2
I still need help with my error please.
Theirs an image of the issue I'm getting: (click the image to make it go full size)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fg3h1A.png&hash=bfae94c94c5faf72fff13c5e87c6881a5b294d69)
Quote from: Tiensg on July 26, 2012, 12:32:30 AM
Good day.
I am unable to upload a screenshot from my workplace.
My website address: amuletsgallery.com
Temporary user ID: user123
Password: user123
When going to the Profile Info and under then Awards, I see the following error message:
jQuery(document).ready(function() { jQuery(".btntslidebox").hover(function() {jQuery(this).stop().animate({left: "0"}, "medium");}, function() {jQuery(this).stop().animate({left: "-70"}, "medium");}, 500);});
Anyone can help me with the above please?
Goodman, your problem is related to either a missing, corrupted or conflicting javascript...
When you attempt to send a PM to one of your users, does the system give you a selection of users, as you type the username?
Tiensg,
What you list is NOT an error... it's a piece of code.
That code is not part of this mod... so, it would seem that - when you installed this mod, you installed it overlapping another mod and installed it improperly.
Hey guys I was wondering if it is possible to get those award images which are in the screen shots on the download page? Thanks.
Quote from: Kindred on July 26, 2012, 12:09:36 PM
Goodman, your problem is related to either a missing, corrupted or conflicting javascript...
When you attempt to send a PM to one of your users, does the system give you a selection of users, as you type the username?
Tiensg,
What you list is NOT an error... it's a piece of code.
That code is not part of this mod... so, it would seem that - when you installed this mod, you installed it overlapping another mod and installed it improperly.
Yes when I PM someone I get a selection of users.
Quote from: goodman854 on July 26, 2012, 11:27:47 AM
I still need help with my error please.
Theirs an image of the issue I'm getting
Any Javascript errors in the console?
Hey guys, I tried to instal this on with my theme Blue Colour and it doesn't show up on the left hand side of posts where your username is. Help please?
Website is: mmobullet.net/forums
Thank you.
Sounds too me like it did not edit the theme. Does it show up in the default Curve theme?
umm,i cant edit the awards at all.i cant find where i go on the website i go to
"Admin > ? ? ? ? ? ?" any ideas? or does editing it involve going into the FTP client?
ALSO
when i was installing it i came across a few errors
...
Action: ./Sources/Admin.php
Code: (Find) ),
),
'layout' => array(
Code: (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']),
),
),
only problem for me is,i have no idea where to go to change the first code to the second one :l
Same problem with these
Action: ./Sources/Admin.php
Code: (Find) // You have to be able to do at least one of the below to see this page.
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum',
Code: (Add After) 'manage_awards',
Quote from: live627 on July 26, 2012, 11:48:10 PM
Sounds too me like it did not edit the theme. Does it show up in the default Curve theme?
Yes it does. But I am sure that I checked the box to install on my theme as well. In fact I reinstalled it to make sure. Thanks.
any ideas on where to go to add badges then assign them to users? i cant find the menu to do it anywhere :l
I think it's messed up and you have to add it yourself into the code. I just tried reinstalling it and I got a fail installation message but I am using the latest version. But then again it might have got mixed up with my referral mod.
TheNextProdigy,
well, yes... the installation failed to add the admin menu item for this mod... (that was the failure that you listed). Whenever you get a failure, you have to *MANUALLY* apply that change to your code/files.
MrFarbodD,
installing and reinstalling is not the way to solve issues. Actually, it leads to other issues, like double installations.
If one of the files failed, ten, as I said above, you have to MANUALLY apply the changes.
If it's not working the way you say it is not working, then the changes did not get made to your theme, regardless of what the system SAID during installation. You should MANUALLY check the theme template files for your cusotm theme and apply the changes to them is, as we suspect, the updates were never made there.
Okay thanks. I will try to add it myself.
Quote from: Kindred on July 27, 2012, 09:10:03 AM
TheNextProdigy,
well, yes... the installation failed to add the admin menu item for this mod... (that was the failure that you listed). Whenever you get a failure, you have to *MANUALLY* apply that change to your code/files.
MrFarbodD,
installing and reinstalling is not the way to solve issues. Actually, it leads to other issues, like double installations.
If one of the files failed, ten, as I said above, you have to MANUALLY apply the changes.
If it's not working the way you say it is not working, then the changes did not get made to your theme, regardless of what the system SAID during installation. You should MANUALLY check the theme template files for your custom theme and apply the changes to them is, as we suspect, the updates were never made there.
Ive been up all night adding custom commands to my shoutbox and fixing errors that came with the SMF Shop i tried fixing that error but it didn't work,here's my admin.php file think ya can help?
looks like your gallery mod has screwed things up...
for the first bit... add it just AFTER
'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'song' => array($txt['profile_song']),
'general' => array($txt['mods_cat_modifications_misc']),
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
),
),
for the second bit, it looks like it was alreayd done...:
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_awards', 'manage_membergroups','manage_awards', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'));
Quote from: Kindred on July 27, 2012, 03:34:19 PM
looks like your gallery mod has screwed things up...
for the first bit... add it just AFTER
'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'song' => array($txt['profile_song']),
'general' => array($txt['mods_cat_modifications_misc']),
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
),
),
for the second bit, it looks like it was alreayd done...:
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_awards', 'manage_membergroups','manage_awards', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'));
where exacly do i put 'modsettings' => array(
'label' => $txt['admin_modifications'],
'file' => 'ManageSettings.php',
'function' => 'ModifyModSettings',
'icon' => 'modifications.gif',
'subsections' => array(
'song' => array($txt['profile_song']),
'general' => array($txt['mods_cat_modifications_misc']),
// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
// 'shout' => array($txt['shout']),
// Note the comma!! The setting with automatically appear with the first mod to be added.
),
),
i figured it out but,i still dont have the option to edit awards and assign them :l
add it just AFTER the exact section that I quoted. :)
there should be two additional close parens that follow before the gallery item starts...
well,i copied what that code then deleted the default one and added that one,is that what i was suppost to do? or have that one and the default code
you should not have had to delete anything....
Quote from: live627 on July 26, 2012, 08:20:39 PM
Quote from: goodman854 on July 26, 2012, 11:27:47 AM
I still need help with my error please.
Theirs an image of the issue I'm getting
Any Javascript errors in the console?
Where?
Quote from: Kindred on July 27, 2012, 04:16:39 PM
you should not have had to delete anything....
since im obviously not gonna figure this out..think you can take a minute to do it for me?
sorry... I don't have the time (or access to a real computer) right now....
Quote from: live627 on July 26, 2012, 08:20:39 PM
Quote from: goodman854 on July 26, 2012, 11:27:47 AM
I still need help with my error please.
Theirs an image of the issue I'm getting
Any Javascript errors in the console?
no
anyone would like to help me sorting out this mod :( it will give me a double awards..
please visit this forum --> http://diribai.com/forums/general-discussion/test-topic/new/#new
if it is displaying double awards then that means you have probably done a double-install. You will have to manually go in and remove the duplicated code.
Quote from: Kindred on August 02, 2012, 03:22:12 PM
if it is displaying double awards then that means you have probably done a double-install. You will have to manually go in and remove the duplicated code.
i try to delete the mod and when i try to install it again still it show up again..
Quote from: Kindred on August 02, 2012, 03:22:12 PM
if it is displaying double awards then that means you have probably done a double-install. You will have to manually go in and remove the duplicated code.
i just set up another forum thats doing quite well,id love the ability to give them awards
All my files are now fresh!
Any ideas on what to do?
@http://essencegamer.hostzi.com
So i guess the big update will never come?
Quote from: Spuds on May 07, 2011, 09:42:12 PM
Yeah I don't think thats available, I'll see if I can add that in the next release, whenever that is (but it will happend :) )
:(
Good day!
You can make a Member Awards mod under the SMF version 2.0.2?
I am willing to send you a donation.
Thank you!
member awards works fine for 2.0.2
I can confirm this as working with SMF 2.0.2 too. There are 2 bugs, one notably relating to the eval template thing in the error log, and one section of code where this:
"description
Should be this:
"description"
But both are covered in this topic and can be easily fixed through very minor code edits after installing. :)
So i just recently installed this mod. And im getting a error im using the latest smf - 2.0.2 and this is the error im getting.
### 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 Awards.'; // Used by: Profile $txt['showAwards'] = 'Show Awards'; $txt['listAwards'] = 'Awards List'; ### End Awards
Mind you this appears above my template in the header area. Any be able to help me with this?? Thanks!
Quote from: Wayne2224 on August 22, 2012, 02:30:01 PMMind you this appears above my template in the header area. Any be able to help me with this?? Thanks!
Check this file :
Themes/default/languages/Modifications.english.phpSeems like the languages for Awards got added at the top of bottom of the file, need to make sure it comes BEFORe the closing "?>" at the bottom of the file
I was able to fix the above problem. Now im getting these errors in these fields listed below.
Main
Unknown column 'a.id_category' in 'on clause'
File: ~/forums/Sources/ManageAwards.php
Line: 100
Add/Modify
This looks okay no problems here?
Assign
Unknown column 'award_name' in 'field list'
File: ~/forums/Sources/ManageAwards.php
Line: 430
Categories
Unknown column 'id_category' in 'field list'
File: ~/forums/Sources/ManageAwards.php
Line: 711
Settings
It looks fine no errors here?
Also why trying to view my own profile im seeing this error?
Unknown column 'aw.award_name' in 'field list'
File: ~/forums/Sources/Load.php
Line: 1031
I don't know much about the databases but anyone willing to help with this issue as well?? Thanks
looks like your database did not get updated when you installed the mod.
Are you manually installing it, or using the package manager?
Quote from: Kindred on August 22, 2012, 06:31:57 AM
member awards works fine for 2.0.2
Installation I see an error message.
This can be bad for my forum?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs2.ipicture.ru%2Fuploads%2F20120823%2FmoWWF20h.png&hash=20fa1786e1e02bb9552ec8b7b5610bbbbfefd94d)
Quote from: cep on August 22, 2012, 06:08:05 PM
Quote from: Kindred on August 22, 2012, 06:31:57 AM
member awards works fine for 2.0.2
Installation I see an error message.
This can be bad for my forum?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs2.ipicture.ru%2Fuploads%2F20120823%2FmoWWF20h.png&hash=20fa1786e1e02bb9552ec8b7b5610bbbbfefd94d)
Yes. That will cause errors. The code your forum is looking for is missing. If you can manually adapt the code the mod modifies and THEN install the mod despite the warning, then it should work fine, if done correctly.
doesn't anyone ever bother to read or use search any more?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
this is also explained at least 3 times in nearly EVERY mod thread...
Quote from: Kindred on August 22, 2012, 06:21:47 PMthis is also explained at least 3 times in nearly EVERY mod thread...
More like 3 times per page in nearly EVERY mod thread :D
Quote from: SugarD-x on August 22, 2012, 06:16:30 PM
Yes. That will cause errors. The code your forum is looking for is missing. If you can manually adapt the code the mod modifies and THEN install the mod despite the warning, then it should work fine, if done correctly.
I do not want to take risks, as well as many others. Why not remake the modification, if it is so easy?
because it is not a problem with the modification... it is a problem with your site.
Quote from: Kindred on August 22, 2012, 06:21:47 PM
doesn't anyone ever bother to read or use search any more?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
this is also explained at least 3 times in nearly EVERY mod thread...
Quote from: Kindred on August 22, 2012, 05:35:04 PM
looks like your database did not get updated when you installed the mod.
Thats what i was kinda getting from it but i was not sure if it was because the one thing was out of place while installing or what, i will have to try to fix it before installing it and see where i can go from there.
Quote from: SugarD-x on August 22, 2012, 05:55:11 PM
Are you manually installing it, or using the package manager?
I was using the package manager, i dont like to install things manually since i tend to screw things up so much, but when it comes down to adding a little code here or a little code there i can do that, so i may have to try that i guess. Not sure what else i can do.
extract and run the database file manually from the mod package
Ok i'm brand new to all this and I'm sure it's a simple fix but I can't figure it out and there's a lot of post to go through regarding this mod.
The forum i'm helping to create is a custom template - mobile_1 smf version 1.1.15
Now the MOD allows me to assign medals to users, BUT only a link appears in the members profile that when you click on displays all their medals, all I want is for one medal to appear under the avatar.
the template does not have a display.template I can only access the index.template and css theme
any help would be great and i'm happy to post up my theme
and here's a link to the forum only one test post is in Ghostbusters http://jooblo.com/forum1/index.php (http://jooblo.com/forum1/index.php)
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.
I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.
Will pay through Paypal. Please advise.
-Isa
Quote from: SugarD-x on August 22, 2012, 06:16:30 PM
Quote from: cep on August 22, 2012, 06:08:05 PM
Quote from: Kindred on August 22, 2012, 06:31:57 AM
member awards works fine for 2.0.2
Installation I see an error message.
This can be bad for my forum?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs2.ipicture.ru%2Fuploads%2F20120823%2FmoWWF20h.png&hash=20fa1786e1e02bb9552ec8b7b5610bbbbfefd94d)
Yes. That will cause errors. The code your forum is looking for is missing. If you can manually adapt the code the mod modifies and THEN install the mod despite the warning, then it should work fine, if done correctly.
I found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.
Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.
I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.
Will pay through Paypal. Please advise.
-Isa
attach your theme's Display.template.php file. I'll take a look. what was the other MOd you installed you say conflicted with this?
Quote from: cep on August 23, 2012, 04:17:49 PMI found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.
If that makes it easier, then go for it. But SimplePortal may conflict again in Sub.php after Awarda is installed ;)
Just look at the parse page for both MODs on here, and compare what both edits are doing in that edit for Sub.php, and just combine them. It could be as easy as adding one word like ", awards, " to one line that SimplePortal affected.
Quote from: hcfwesker on August 23, 2012, 05:13:38 PM
Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.
I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.
Will pay through Paypal. Please advise.
-Isa
attach your theme's Display.template.php file. I'll take a look. what was the other MOd you installed you say conflicted with this?
Quote from: cep on August 23, 2012, 04:17:49 PMI found the problem. A conflict with another mod - SimplePortal. First need to install the Member Avards, SimplePortal - next.
If that makes it easier, then go for it. But SimplePortal may conflict again in Sub.php after Awarda is installed ;)
Just look at the parse page for both MODs on here, and compare what both edits are doing in that edit for Sub.php, and just combine them. It could be as easy as adding one word like ", awards, " to one line that SimplePortal affected.
Yeah, it's just the one line that needed to be added, but for some reason when I tried doing it this way, my entire forum crashed after uploading it via FTP. I'm at home now, and managed to repair the damage by removing the offending php script and replacing it with a backup copy. I'll look into this again, and if I still get the same error I'll be sure to let you know.
Quote from: hcfwesker on August 23, 2012, 05:13:38 PM
Quote from: xIsabel38 on August 23, 2012, 11:43:39 AM
Hello, is there any support still available for this mod. I would like to pay the developer or a designer to go into my display.template.php and fix whatever it is I broke with this mod.
I installed another mod that seemed to interfere with this one and now this one only shows 1 award under the users post and it shows none in their profile. I would like it to show 5 awards side by side in the profile and posts.
Will pay through Paypal. Please advise.
-Isa
attach your theme's Display.template.php file. I'll take a look. what was the other MOd you installed you say conflicted with this?
I paid a designer to create a custom posting template in my forum. That is the mod that has messed with the posting display of this one. The awards now only show one award. I am using smaller 32x32 icons instead of banners as the awards and would simply prefer it to show in a side by side format instead of the original top and bottom format. I have attached my Display.Template.php.
As for the profile not showing the awards, I strongly believe it is due to the Ultimate Profile mod I installed. Showing the awards here in the same format as stated above would be nice to have but I can live without it, it's much more important to me to show them in the posts. I have attached my Profile.Template.php.
Please advise if there is anything you can do and if so, how much it will cost. Again, I can pay through Paypal and I'm on AIM under the name, xIsa38 if you'd like to use instant chat.
Quote from: xIsabel38 on August 24, 2012, 10:26:00 AMI paid a designer to create a custom posting template in my forum. That is the mod that has messed with the posting display of this one. The awards now only show one award. I am using smaller 32x32 icons instead of banners as the awards and would simply prefer it to show in a side by side format instead of the original top and bottom format. I have attached my Display.Template.php.
As for the profile not showing the awards, I strongly believe it is due to the Ultimate Profile mod I installed. Showing the awards here in the same format as stated above would be nice to have but I can live without it, it's much more important to me to show them in the posts. I have attached my Profile.Template.php.
Please advise if there is anything you can do and if so, how much it will cost. Again, I can pay through Paypal and I'm on AIM under the name, xIsa38 if you'd like to use instant chat.
First thing I just have to ask, have you changed the Awards option in settings to show more than 1 awards? I visited your site to see how Awards were being displayed and only saw 1 awarded to you, so i couldn't see them being aligned vertically. This is a code I custom did before the awards were added to signatures as an option, and each MOd update I always revert back to mine cause it's never messed up on mu site and has an extra feature most members appreciate.
The "Awards/Achievements" title of the awards box, can be clicked to view all of that members awards and their descriptions. And you can change the title header to whatever you want by just editing that phrase in the edit below.
Display.template.phpThis is the
ORIGINAL code
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
This is MY CODE I use ...
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}
See if that works for you, and dont forget to double check the Awards settings for how many awards can be displayed.
As far as displaying on the profile goes, I've tried myself on regular profiles and ultimate profiles in the past, several times ... and just couldn't get them to display ....
UNTIL NOW lol ( seriously, while I was typing the above sentence I figured it out)
same code, just had to change both parts that has $message, to $context , so just add this where you want Awards to display on Profile or Ultimate Profile ;)
// Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $context['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></legend>';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($context['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}
The Awards in posts and profiles can also be spiced up a bit to match your theme, like your post and profile box color, so it's not just a squared bar around your awards. You can preview my awards box in my Sig on this page. http://www.smashdomain.net/index.php?topic=5811.msg115168#msg115168
Quote from: hcfwesker on August 24, 2012, 03:15:59 PM
First thing I just have to ask, have you changed the Awards option in settings to show more than 1 awards?
Oh crap, you just solved my problem lol. I feel so embarassed now.
Ok so now I'm showing more than 1. This works perfectly, however after looking at your site, I'm quite jealous. You have them laid out quite beautifully.
I don't feel comfortable enough going into the coding and doing this stuff, do you think I could possibly hire you to do it for me? My theme is not yet done, my designer is currently working an issue between Joomla!, SMF, and MediaWiki but I would like to hire you when it's all done so you can spice it up for me as well, if you're willing, able, interested of course.
here are some screenshots of what happens of when i try and install,can someone please help? every one else seeims to be getting it accept me :x
Theme In Use: Zone99 By Dzinerstudio
Essencegamer.... And your point or problem is what? ???
From those screen shots, it would seem that the mod installed... And you do no state any problem in your post
haha,sorry i was tired last month and was a bit lost..yeah turns out its installed this time (thank jesus) but i must of deleted all the badges i downloaded to put in there :x
is there anyway i can change where the awards show?
like in the picture..i wanna have some type of bar like i made in the image
and show the awards where the "H" is
im willing to try and code it if its necessary
EDIT:
Added image since for some reason it wasn't added before :s
what?
sorry,it didn't add the image that i thought it did,i fixed it
I think someone posted instructions on how to move the awards into the signature area rather than the profile area - do a search....
Can someone please fix this for me,i messed something up and its telling me i should use my default theme when i try to go to a topic,i dont want to because i did it before and it wouldnt let me change the theme :s
INSTRUCTIONS:
Step 1
Find & REMOVE
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Step 2
Find & REMOVE
// 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>';
Step 3
Find
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';
Add AFTER
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '<fieldset><legend><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">View Awards/Achievements</a></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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>';
}
well, the file should be display.template.php, not index.php....
when i click diplay template to download,it shows up as "index.php"
Then "save as" or rename it to Display.template.php
Here it is,if anyone can fix it for me that'd be great :)
NVM I figured it out.
As long as you follow those edits exactly, they should show for members allowed to Manage Awards under the Moderate tab in the main menu, but i think they also have to have permissions to access the Moderation Center (tab), if i remember correctly.
Hi,
I've had some issues with the whole ;id= thing producing a "GET to /forum/index.php not supported" 501 error.
Now, I know it's because of mod_security but I can't disable that and I've changed the ;id to &id, which has fixed *most* of the mod. Only problem is, on the Awards - Main screen in the admin panel, the links to assign, edit, etc still produce things with ;id in them:
http://site.com/forum/index.php?action=admin;area=awards;sa=viewassigned;id=52
Is there a way I can change this so it is an & instead of ;? or do i have to argue with my crappy host some more (can't change hosts for a while) to get them to let me disable it?
Thanks.
Edit: I found a post that listed the files which included the ;id call:
Sources\Load.php
Sources\Profile-View.php
Sources\Profile.php
Sources\ManageAwards.php
Themes\default\ManageAwards.template.php
http://www.simplemachines.org/community/index.php?topic=414388.msg2891011#msg2891011
Thanks anyway ^.^
Can someone help me with this.
How do I get the awards to stack, 2 on top, 2 on the bottom.
How do I give a non admin, permission to only assign awards.
thank you.
hello everyone ..i had installed member awards now i have uninstalled it but but in configurations it shows broken urls .how can i remove them .
I am getting thousands of undefined errors from this mod :(
example:
8: Undefined index: awards_settings
File: ./public_html/Sources/Admin.php
Line: 225
8: Undefined index: awards_main
./public_html/Sources/Admin.php
Line: 221
8: Undefined index: awards
./public_html/Sources/Admin.php
Line: 215
8: Undefined index: sba_link
./public_html/Sources/Admin.php
Line: 125
Hello.
I installed this mod on my SMF 2.0.2 but it doesnt work.
Installation didnt show any errors, but there are no "Awards" in Configuartion menu.
Anyone knto how to solve this?
well, more information helps.
Are you using the default theme? Are you using English (and do note that English UTF-8 is different from English)
Were there any errors during the install?
Did the files ACTUALLY get changed?
Yes I'm using default theme - Curve (2.0)
I'm using Polish, but after changing to English I still cant see Award tab.
During the install there werent any errors, just English UTF8 was "Skipped"
Style files are changed, but I also cant see any changes in user's profiles
Quote from: goodman854 on July 29, 2012, 01:31:08 AM
Quote from: live627 on July 26, 2012, 08:20:39 PM
Quote from: goodman854 on July 26, 2012, 11:27:47 AM
I still need help with my error please.
Theirs an image of the issue I'm getting
Any Javascript errors in the console?
no
If I could have some help with my issue, being that when I assign an award and type names nothing drops down and if I just type a full user name and hit submit i get:
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I discovered a severe bug in the 1.1.2 version for SMF 1.1.16. If the member's username is not identical to the displayed username, the assign award doesn't work!! OR it could be that if the member has an apostrophe in his username, the assign award feature doesn't work! Either way, i fixed it simply by removing the apostrophe from the displayed username such that it was identical to the login username. Someone should definitely fix this!!
Can someone please tell me how to show the Award under the profile?
I'm not using a default theme...
you will probably have to manually modify the appropriate template files in your custom theme
EDIT.
I put it in text file for now.
As you can see I already added
QuoteShow number of awards
echo '
', $txt['awards'], ': ', !empty($message['member']['awards']) ? $message['member']['awards'] : 0, '<br />
<br />';
I do not think that is the only modification needed for that file
Quote from: Kuro vi Lolitannia on October 09, 2012, 11:56:55 AM
Can someone please tell me how to show the Award under the profile?
I'm not using a default theme...
Have you changed the Awards option in the Awards Admin settings to show more than 1 awards?
that theme's
Display.template.phpFind
// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';
Add AFTER
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
If you want Awards under their signature. http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589
Thanks guys, it works. Do you know how can I change the text 'Awards' into 'Medals'?
modifications.english.php
And, how to choose which award to see? Thanks :)
EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.
languages/Modifications.english.phpFind
$txt['awards'] = 'Awards';
Change to
$txt['awards'] = 'Medals';
Quote from: Kuro vi Lolitannia on October 10, 2012, 11:30:05 AM
And, how to choose which award to see? Thanks :)
EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.
Members cant chose which awards show. On their profile page, when viewing their awards, their Favorites will show with this image (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.brawldomain.com%2FThemes%2FDark_Domain%2Fimages%2Fstar.gif&hash=070083c8eb8999c3a0e2774a6285c081426aa1fc)
Awards are shown from the date they were received, but favorites will show first on their award images in post profile.
Quote from: hcfwesker on October 10, 2012, 06:45:01 PM
languages/Modifications.english.php
Find
$txt['awards'] = 'Awards';
Change to
$txt['awards'] = 'Medals';
Quote from: Kuro vi Lolitannia on October 10, 2012, 11:30:05 AM
And, how to choose which award to see? Thanks :)
EDIT :
I already check the "Check this if you want to allow users to have more than one favorite award." checkbox. But I still can only choose 1 favorite too.
Members cant chose which awards show. On their profile page, when viewing their awards, their Favorites will show with this image (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.brawldomain.com%2FThemes%2FDark_Domain%2Fimages%2Fstar.gif&hash=070083c8eb8999c3a0e2774a6285c081426aa1fc)
Awards are shown from the date they were received, but favorites will show first on their award images in post profile.
Can't member choose more than 1 favorite then?
And I also can't find Modifications.English.Php
There's Settings.english.php though and I can't find the code you put.
EDIT: Also, can't I get take the awards off from a member? Example : I want it to be just a temporary award that someone can use for only a month or something.
Help guys? :)
Modifications.english.php is in the language directory of the Default theme
Quote from: Kuro vi Lolitannia on October 10, 2012, 08:10:39 PM
1. Can't member choose more than 1 favorite then?
2. And I also can't find Modifications.English.Php
3. Also, can't I get take the awards off from a member? Example : I want it to be just a temporary award that someone can use for only a month or something.
1. Yes
2. Kindred answered
3. You can't set awards for a certain time. you can manually remove them from members.
Admin > Awards > Main > Find the Award > click (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.brawldomain.com%2FThemes%2FDark_Domain%2Fimages%2Fawards%2Fuser.png&hash=e147c9045a6656b866bad5a40274e310943dd01f) to view members who have it > Check the box by the member's name > click [Unassign Award]
Thanks for the help guys, but it seems like I can't choose more than 1 favorite.
I already checked the "Check this if you want to allow users to have more than one favorite award." too.
Once I choose an award as my favorite, it take the favorite from the previous one.
8: Undefined index: view
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/website../httpdocs/forum/Themes/default/Profile.template.php
Line: 3321
2.0.2
Searching the error in this topic's "Search Bar" - 8: Undefined index: view
Brings up one of these posts ;) http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
yup.
I already have changed this on Profile-View.php but still the same error..
It is now..
$context['categories'][$row['id_category']] = array(
'name' => $row['category_name'],
'view' => $scripturl . '?action=admin;area=awards;sa=viewcategory;id=' . $row['id_category'],
'awards' => array(),
);
Did you find both listed in that file?
I still cant choose more than 1 favorite... Anyone know why? :'(
No. Works fine for me. But i havent updated my mod version for the past year or so, so i dont know your problem.
how can i get my awards to show like this:
This Memember Has {number of members awards}
___________________________________________________________________
{AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD}
___________________________________________________________________
in the signature box EXACTLY, like the example above
but only show 4-7 of there awards
Quote from: goodman854 on September 24, 2012, 08:42:36 AM
If I could have some help with my issue, being that when I assign an award and type names nothing drops down and if I just type a full user name and hit submit i get:
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I am having this same issue. When I try to assign an award it gives me the exact same error message.
An Error Has Occurred!
You must select a member and/or award in order to continue!I had previously used this mod on my forum when it was 1.1.16 but after upgrading it to 2.0.2, I can't give out any additional awards. I am currently using the "blu" theme but even when using the default theme it gives me the same error message. I have looked through the code and its all there but I'm thinking there must be something else I'm not seeing or dont know about.
Anyone got any ideas with about this prob.
Thanks in advance :D
Use search. This has been answered dozens of time
how can i get my awards to show like this:
This Memember Has {number of members awards}
___________________________________________________________________
{AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD} {AWARD}
___________________________________________________________________
in the signature box EXACTLY, like the example above
but only show 4-7 of there awards
Quote from: -♦-Zeum-♦- on October 13, 2012, 07:33:19 PMbut only show 4-7 of there awards
It couldn't be any more clearly laid out
Awards > Settings.
Awards in Post:How many awards should be shown under a user's avatar? Set to 0 to show none.
Awards in signatures, previous page, bottom link in this post. http://www.simplemachines.org/community/index.php?topic=114701.msg3418286#msg3418286
Quote from: hcfwesker on October 09, 2012, 04:35:54 PM
Quote from: Kuro vi Lolitannia on October 09, 2012, 11:56:55 AM
Can someone please tell me how to show the Award under the profile?
I'm not using a default theme...
Have you changed the Awards option in the Awards Admin settings to show more than 1 awards?
that theme's Display.template.php
Find
// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';
Add AFTER
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
If you want Awards under their signature. http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589
i tried before and it screwed up my test site so i didn't wanna use it on the real website...
think you can fix up my file for me so i know its correct? haha
How about installing the Awards mod first. Then attaching the file ;) It makes it pointless if i edit files for a MOD, then you install it afterwards and just puts the edits right back in there.
Here it goes :)
Quote from: hcfwesker on October 13, 2012, 11:14:25 PM
How about installing the Awards mod first. Then attaching the file ;) It makes it pointless if i edit files for a MOD, then you install it afterwards and just puts the edits right back in there.
it would help if you actually did it for me.
Quote from: Nuttcaze on October 13, 2012, 02:25:17 PM
Quote from: goodman854 on September 24, 2012, 08:42:36 AM
If I could have some help with my issue, being that when I assign an award and type names nothing drops down and if I just type a full user name and hit submit i get:
"An Error Has Occurred!
You must select a member and/or award in order to continue!"
I am having this same issue. When I try to assign an award it gives me the exact same error message.
An Error Has Occurred!
You must select a member and/or award in order to continue!
I had previously used this mod on my forum when it was 1.1.16 but after upgrading it to 2.0.2, I can't give out any additional awards. I am currently using the "blu" theme but even when using the default theme it gives me the same error message. I have looked through the code and its all there but I'm thinking there must be something else I'm not seeing or dont know about.
Anyone got any ideas with about this prob.
Thanks in advance :D
Don't worry Our issue will go ignored and never be fixed :D
-_-
yeah posted about this a long time ago, and someone could at least say something like "I Don't know how to fix it" So I know at least I'm not a ghost.
But yeah if this could be fixed that would be really great.
Have any of you having this issue, tried a different browser. It's impossible for some of us to give support when we can't duplicate the problem.
your issue IS "solved". 99% of the time, that error is due to either a missing javascript file or some other mod using conflicting javascript.
Check this post as well, and the many that follow it continuing it's dicussion. http://www.simplemachines.org/community/index.php?topic=114701.msg3208645#msg3208645
Don't type the full members name. Just maybe 3-4 letters of the members name and wait for it to appear in the drop down list
Quote from: hcfwesker on October 22, 2012, 10:01:55 AM
Have any of you having this issue, tried a different browser. It's impossible for some of us to give support when we can't duplicate the problem.
Tried all major browsers. Browser isn't the issue.
Chorme, IE (oh god....awhhhdhgrahh), Firefox.
Quote from: hcfwesker on October 22, 2012, 10:08:05 AM
Don't type the full members name. Just maybe 3-4 letters of the members name and wait for it to appear in the drop down list
Doesn't matter nothing ever shows up. Have already done all that.
You all talk about saying it's impossible to give support when you can't duplicate the problem.
But if you could duplicate it it probably wouldn't be a problem so thats sort of a silly statement either way I'm sure the problem doesn't occur for everyone I dunno if it's a mod conflicting or whats going on. Does this mod use JQuery?
Quoteyour issue IS "solved". 99% of the time, that error is due to either a missing javascript file or some other mod using conflicting javascript.
Ok? Then how could I find out whats missing or conflicting.
Telling me I have a problem doesn't help I'm already well aware of that.
I know your just trying to help but :/
I'm not stupid.
You're frustrated , and it shows. Here's the thing. I can't magically go through your files and whatnot to see what is going on. So I HAVE to ask these questions before I can even begin to think about what the problem is. But if I'm just giving silly and useless suggestions then I'm just wasting both of our times.
Last advice I'll give is uninstall and reinstall the MOD, even if you have to 1000 times and see if by some sudden miracle it works.
Even try an older version, I still use one from SMF 2 RC4. I've updated the package-info so it installs for 2.0.2
Worth a shot. Manually edit any install errors, most likely with Sources/Subs.php
well, the other question is: Does the autofill work for sending PMs?
Quote from: Kindred on October 22, 2012, 12:56:35 PM
well, the other question is: Does the autofill work for sending PMs?
Gooooood question, actually. Or even adding member names as board moderators under Board Modify page?
Quote from: hcfwesker on October 22, 2012, 12:34:57 PM
You're frustrated , and it shows. Here's the thing. I can't magically go through your files and whatnot to see what is going on. So I HAVE to ask these questions before I can even begin to think about what the problem is. But if I'm just giving silly and useless suggestions then I'm just wasting both of our times.
Last advice I'll give is uninstall and reinstall the MOD, even if you have to 1000 times and see if by some sudden miracle it works.
Even try an older version, I still use one from SMF 2 RC4. I've updated the package-info so it installs for 2.0.2
Worth a shot. Manually edit any install errors, most likely with Sources/Subs.php
I know I'm just mainly frustrated because I had posted about this issue a long time ago and no one even acknowledged it (In that this is a long time running issue).
I did what you said re installed from the modified (?) attached file on your post. Still getting the same issue.
If worst comes to worst I'd at least like to know how to manually add users / awards via PHPMyAdmin.
So how can I help you with my issue better? :/
Yeah PM's work fine and the name shows up as you type it.
Goto default/scripts/suggest.js Download and save it as a backup. And upload the attached one to overwrite. I'm just doing what i can since I'm blind not being able to poke through files myself.
If you're gonna go the manually add awards. The directory is {database_prefix}_awards_members
Quote from: hcfwesker on October 22, 2012, 01:36:52 PM
Goto default/scripts/suggest.js Download and save it as a backup. And upload the attached one to overwrite. I'm just doing what i can since I'm blind not being able to poke through files myself.
If you're gonna go the manually add awards. The directory is {database_prefix}_awards_members
nope still got the same issue. If you need to see any files or what not you can. I just want it to work, and I have no idea what's causing this.
Where's the tab located to edit this mods settings?
Also, I receive this when I go to view "Award List" in profiles.
var sc_project=8392876; var sc_invisible=1; var sc_security="4eb481cd"; Code corrupted. Insert fresh copy.
Using version 2.0.2
Quote from: Rowe on October 25, 2012, 04:22:56 PM
Where's the tab located to edit this mods settings?
Admin > Awards
Quote from: Rowe on October 25, 2012, 04:29:20 PM
Also, I receive this when I go to view "Award List" in profiles.
var sc_project=8392876; var sc_invisible=1; var sc_security="4eb481cd"; Code corrupted. Insert fresh copy.
Using version 2.0.2
Try this. http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
Quote from: hcfwesker on October 25, 2012, 04:44:39 PM
Quote from: Rowe on October 25, 2012, 04:22:56 PM
Where's the tab located to edit this mods settings?
Admin > Awards
Quote from: Rowe on October 25, 2012, 04:29:20 PM
Also, I receive this when I go to view "Award List" in profiles.
var sc_project=8392876; var sc_invisible=1; var sc_security="4eb481cd"; Code corrupted. Insert fresh copy.
Using version 2.0.2
Try this. http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
I looked for admin > awards.
Then try Admin > Forum or Admin > Members or any tab under Admin. It's there someone, as long as the mod installed correctly.
Possibly due to..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F2nbeh6v.jpg&hash=134b5ae3120ba8fe8719916798ce6019f4602a28)
Yeah, mod wont work without those 2 files. Goto the MOd download page, and parse it for 2.0.2. Or on that same screen you got the errors, click the image button to the right of the 2 files, and it'll show what manual edits are required.
Make backups of both files before editing in case you make a mistake.
Oh wait. That's uninstalling. Did you install with those errors showing.
BEFORE uninstalling, just click those icons, and check the files to see if those edits are in those 2 files. If not, thats your profblem, and just manually make the edits. If successful, the issue should be fixed.
No luck.
The more info on what you provide will get a more detailed response. I don't know what you've tried, what's going on, whats showing, etc.
can you access the awards by putting this in your url. ?action=admin;area=awards
Ex. http://FORUMLINK/index.php?action=admin;area=awards
Goes directly to my admin center.
/Also, sorry. I manually edited the files after installing the package. It still does not show up.
if that link does not take you to the awards admin, then it is pretty clear that the mod was not fully installed.
Quote from: goodman854 on October 22, 2012, 01:49:35 PM
Quote from: hcfwesker on October 22, 2012, 01:36:52 PM
Goto default/scripts/suggest.js Download and save it as a backup. And upload the attached one to overwrite. I'm just doing what i can since I'm blind not being able to poke through files myself.
If you're gonna go the manually add awards. The directory is {database_prefix}_awards_members
nope still got the same issue. If you need to see any files or what not you can. I just want it to work, and I have no idea what's causing this.
Since this is apparently an unsolvable issue.
Quick question...
When adding MANUALLY (via PHPMyAdmin into SQL)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FI71Si.png&hash=142e93ca1345df822a35362967ec775df99edb30)
uniq ID: Assumeing any number I want as a unique id.
idAward: the number relating to the award hes giving I'd assume
idMember: Members ID, pretty sensible. profile;u=49 so id= 49
daterecieved: well dah that's pretty easy
Now here is what I'm unsure able and Don't know what it's for.
favourite: 1 for yes 0 for no? Whats favourite? Favourite what?
Anyways that's all I have for questions now :/
Quote from: goodman854 on October 26, 2012, 01:08:27 PM
favourite: 1 for yes 0 for no? Whats favourite? Favourite what?
Anyways that's all I have for questions now :/
Leave favorite as default "0". Members can click an award they have as a favorite (which will have it display at the front of all their awards in their list), thats what the field is for.
Sorry this issue couldn't be fixed.
Installed awards through PHPmyAdmin, the images are broken.
Which file do I add them to and as a .gif or .png?
Quote from: Rowe on October 26, 2012, 09:10:05 PM
Installed awards through PHPmyAdmin, the images are broken.
Which file do I add them to and as a .gif or .png?
should have a file labeled "awards" in the root folder, public_html
awards need to be uploaded as the award_id.png
Ex, the image for award 1 , needs to be uploaded as 1.png in the awards folder.
For the mini image, upload a smaller image of the same award as 1-mini.png , and so on.
----------------------------------
Let's backup a minute. Can you attach your Sources/Admin.php file?
Quote from: hcfwesker on October 27, 2012, 01:54:24 AM
Quote from: Rowe on October 26, 2012, 09:10:05 PM
Installed awards through PHPmyAdmin, the images are broken.
Which file do I add them to and as a .gif or .png?
should have a file labeled "awards" in the root folder, public_html
awards need to be uploaded as the award_id.png
Ex, the image for award 1 , needs to be uploaded as 1.png in the awards folder.
For the mini image, upload a smaller image of the same award as 1-mini.png , and so on.
----------------------------------
Let's backup a minute. Can you attach your Sources/Admin.php file?
can i get my request done please? its not that hard to read this.
Hello,
I have 2 forums. Successfully loaded and tested this mod on this one:
SMF 2.0.2 | SMF © 2011, Simple Machines
TinyPortal © 2005-2012
Total Blue by, Skin-Box | LinkDen
But had an error before installing on this one:
SMF 2.0.2 | SMF © 2011, Simple Machines
SimplePortal 2.3.5 © 2008-2012, SimplePortal
BR Finale 2011 by, Crip
Error:
Quote* 7. Execute Modification ./Sources/Subs.php Test failed
1. Replace ./Sources/Subs.php Test failed
Quote
Code: (Find) [Select]
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
Code: (Replace) [Select]
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments'
Greatly appreciate any help or advice before continuing. cheers!
Doesn't anyone bother to search? This is answered MULTIPLE times in nearly EVERY mod thread... AND in the wiki.
What it means is that some other mod has already modified the target code, and you will have to manually add that code.
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Sorry, I hate people like me!
Now, I know I'm going to get lashed for this, but...
Is there a way I could change the "Award" title box to another word? (Memberships)
Themes/default/languages/Modifications.english-utf8.phpFind
$txt['awards'] = 'Awards';
change Awards to the word you want.
QuoteIs there a way I could change the "Award" title box to another word?
Not sure which box you mean. The box in mini-profiles next to posted messages or member full profile pages.
GOTO YOUR FOLDER. DOWNLOAD AND ATTACH ...
Display.template.php
The attached file you have is NOT Display.template.php. It may have been renamed to it, but it's not the file. Do something I ask for, correctly, and I will help. Every time I try to help you with the next step its like i get taken back 3 steps.
This is why I chose to ignore your requests for several posts in here. Begging me and calling me out repeatedly will not speed up the process.
This time get it right. Display.template.php from your THEMES folder.
from the default theme folder? its not anywhere else as far as i see.
but this is the file from the default theme folder
Quote from: -♦-Zeum-♦- on November 04, 2012, 02:13:01 AM
from the default theme folder? its not anywhere else as far as i see.
but this is the file from the default theme folder
Yayyyyy. finally the right file.
lol
Yes it works,although is there anyway to make No awards show under your profile picture and all that stuff? i wan't it only under the signature area
use this file.
Just that one:
Quote from: hcfwesker on November 04, 2012, 01:05:25 AM
The box in mini-profiles next to posted messages
Thanx for all your work!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1146.photobucket.com%2Falbums%2Fo528%2FJocla2%2FCapturadepantalla2012-11-04alas163230.png&hash=225ce6ffbc53442cd1faeb2f2692329d00be9f70)
¿how move the icon?
(sorry, i don't speak well english =/ )
modify display.template.php
Did the trick! Man, you guys really know this software!
Quote from: hcfwesker on November 04, 2012, 01:05:25 AM
Themes/default/languages/Modifications.english-utf8.php
Find
$txt['awards'] = 'Awards';
change Awards to the word you want.
QuoteIs there a way I could change the "Award" title box to another word?
Not sure which box you mean. The box in mini-profiles next to posted messages or member full profile pages.
could someone help I am trying to change the color of the word awards in post profiles. i cant figure out how
Hello
Im use SMF 2.0.2
Installation goes almost well ( see att.)
just after installation I have this message in header:
### 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 Awards.'; // Used by: Profile $txt['showAwards'] = 'Show Awards'; $txt['listAwards'] = 'Awards List'; ### End Awards
Also i have this in logs
awards_settings
file: /home/vaultodu/public_html/forum/Sources/Admin.php
actual_theme_dir
line: 215
file: /home/vaultodu/public_html/forum/Sources/Load.php
line: 2060
Also mod, some how changinh CSS style of my forum (text size of all forum)
can you help me?
thank you
Quote from: Constantin Os on November 15, 2012, 08:14:10 PM
Hello
Im use SMF 2.0.2
Installation goes almost well ( see att.)
Those edits aren't crucial to the MOD working. It's ok to install with them
Quotejust after installation I have this message in header:
### 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 Awards.'; // Used by: Profile $txt['showAwards'] = 'Show Awards'; $txt['listAwards'] = 'Awards List'; ### End Awards
Check
default/languages/Modifications.english.phpQuoteAlso mod, some how changinh CSS style of my forum (text size of all forum)
This will be fixed once you make the correction in the language file i pointed out above.
Quote from: hcfwesker on November 15, 2012, 09:46:34 PM
Check default/languages/Modifications.english.php
thank you, now works well
Hi all,
I'm running 2.0.2, and I can't assign awards to anyone. When I do so, it just says "You must select a member and/or award in order to continue!" and does nothing.
Any advice?
Thanks.
Quote from: TLOVeritas on November 18, 2012, 03:50:36 PMAny advice?
Search helps. http://www.simplemachines.org/community/index.php?action=search2;search=You+must+select+member;topic=114701
read through some of those responses and see if it helps. Try a different browser as well
Quote from: TLOVeritas on November 18, 2012, 03:50:36 PM
Hi all,
I'm running 2.0.2, and I can't assign awards to anyone. When I do so, it just says "You must select a member and/or award in order to continue!" and does nothing.
Any advice?
Thanks.
I had the same issue and turns out its pretty simple, when you are on the screen that allows you to select an award and has the box to enter a forum members name,
enter the name into the box and wait, in a min or so a drop down box will appear under where you wrote the forum members name, select the name in the drop down box. For some reason the drop down box doesn't appear instantly like it did with 1.1.16, sometimes it takes up to a full min on my forum for the drop down box to appear. Not sure why (and really annoying) but it does work so. ;)
Hi - thanks for the help. I've tried waiting for the dropbox to appear, but it never does. I never get anything other than the simple text box.
Edit: To clarify, I've tried this in both Firefox and Chrome to no avail.
Hi,
Has anyone got any awards, they can share with me.
I have looked in the post and found links, but they don't work.
Thanks
Hello,
Is there a way to show the categories separately? Like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F87SpS.png&hash=4f6973a1cf7b4c93d8f7f870a076d1b7fc094419)
Thanks!!
not without recoding
I'm sorry to bump, but I'd really appreciate a look into my issue above. Is there at least a way to disable the searching for members and just let them be typed in?
Thanks.
not off the top of my head... you'd have to get someone who really knows this mod and can recode the display and database pull
I clicked 'Manage Awards' on the permissions for a certain member group but when I tested it, the user did not have the ability to manage awards. Help? :'(
Quote from: Jmc10 on December 10, 2012, 05:28:06 PM
I clicked 'Manage Awards' on the permissions for a certain member group but when I tested it, the user did not have the ability to manage awards. Help? :'(
can you download and attach your Sources/
Admin.php file in your next reply
I know this works fine with SMF 2.0.2 after the bug fix mentioned previously, but does anyone know if it's working correctly in SMF 2.0.3?
2.0.3 was a simple security fix; none of the files this touches should have been altered. It should work just fine. Mine does.
Quote from: FireDitto on December 19, 2012, 09:26:06 AM
2.0.3 was a simple security fix; none of the files this touches should have been altered. It should work just fine. Mine does.
Awesome, thank you. :)
i'm using the latest fix and got this:
2. Execute Modification ./Sources/Admin.php Test failed
1. Add Before ./Sources/Admin.php Test failed
Quote from: rodelio.lagahit on December 23, 2012, 09:07:59 AM
i'm using the latest fix and got this:
2. Execute Modification ./Sources/Admin.php Test failed
1. Add Before ./Sources/Admin.php Test failed
i can't see the settings for this or is it because i got those errors?
for the love of gods, doesn't anyone bother to read the thread, use search or try to use the documentation?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
and yes, if you got errors, but still installed anyway, without making manual edits, the mod did not completely install
sorry demi-god, i thought the error was due to the patches and security fixes :D
i've seen this work and but lost track how it worked. im guessing that this won't work along with other (certain) plugins. can someone list below the plugins that can be responsible for this cool mods to work?
thanks in advance and merry christmas everyone!
Quote from: Kindred on December 23, 2012, 11:56:46 AM
for the love of gods, doesn't anyone bother to read the thread, use search or try to use the documentation?
http://wiki.simplemachines.org/smf/Error_in_mod_installation
This should be like an auto pop up anytime someone posts in any of the support boards here. It's too good.
any ideas if those badges included in the download? or would anyone share their badges . i hope this is not too much to ask.
aqui ta com problemas.
na hora de fazer upload das imagems ele fica carregando e não sai disso.
Been waiting more than a year for a big update :(...
I guess it will never come :(!!!
i install it with no error but i have this error in my profile ''award list''
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
Quote from: Skaty on January 13, 2013, 02:39:45 PM
i install it with no error but i have this error in my profile ''award list''
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
Check the file that corresponds with the page you're viewing, maybe
Sources/Profile-View.php , and see if that line got accidentally added at the top or bottom of the file. That line should only be added to Admin.php
Quote from: hcfwesker on January 13, 2013, 02:42:51 PM
Quote from: Skaty on January 13, 2013, 02:39:45 PM
i install it with no error but i have this error in my profile ''award list''
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys', 'manage_awards'));
You mean while in the Admin Awards page. If so, check Sources/Admin.php , and see if that line got accidentally added at the top or bottom of the file.
i create some award then no problem :) this error is show up when list is empty i think.
now can't show them in users profile display.
can you post a screen cap of the original error, was it in the error log, or text appearing on the page? the more details provided the quicker we can get to finding out the problem, then come up with a solution
i checked the files manually while installing it, and i saw there is missing something. the interesting part is system didn't gave me a error, i installed it with no errors but it seems missing some parts. i add them and now there is no problem.
it would be great if we can do some of award to post count or likes etc...
You can make those on your own, but they won't be auto received. Remedy to this is have a topic somewhere that members can post in to alert award staff when they have earned an award. Example of ours .. http://www.smashdomain.net/index.php?topic=5811.msg115168#msg115168
So if, say like, a member reaches 1000 posts, they'll ask for their 1000 post award in that topic
This could work, thank you.
Hi, I just re-installed this mod, and now it will only display one award, even if that user has multiple assigned. Anyone know how to fix this?
Hi, is it possible to do something like this and how ?
Some topic is gonna shown just for members who receive award i determine. when regular member try to enter this post there should have warning like ''to enter this topic (or board) you have to receive blabla award.
Quote from: m0ss on January 15, 2013, 09:53:33 PM
Hi, I just re-installed this mod, and now it will only display one award, even if that user has multiple assigned. Anyone know how to fix this?
goto awards settings in admin panel, should be a new option to display more than 1 award.
Quote from: Skaty on January 16, 2013, 10:38:44 AM
Hi, is it possible to do something like this and how ?
Some topic is gonna shown just for members who receive award i determine. when regular member try to enter this post there should have warning like ''to enter this topic (or board) you have to receive blabla award.
a board/sub-board would be ideal for this. create a membergroup like 'awarded members'. Modify/create the board you wanna use, then in board settings only give access to that new group. as a member gets an award, add the membergroup to their Seconadry Membergroup on their account settings. which will then give them access.
the topic thing would require extensive code and even im not sure if its possible. go the board/sub-board route.
i'm not expert but just an idea. is it too hard to entegrate this feature to this (http://www.simplemachines.org/community/index.php?topic=442886.0) mod ? is this mod can check ''permission to enter'' and ''the spesific award''.
board/subboard is okay but i want the regular member can see the topic title etc. and don't wanna limit these kind topics just in one board.
0/
I am having an issue with the award that I assigned showing up underneath the profile avatar.
http://i.imgur.com/ZmyfcGU.png
There is a screen shot of the avatar in a thread...
and the award is assigned to that profile
http://i.imgur.com/FwEOSR8.png
shouldnt it load underneath the avatar??
Quote from: shadowandlight on January 28, 2013, 12:27:01 PMshouldnt it load underneath the avatar??
Everyone always misses this step ...
Admin > Awards > Settings
Awards in Post:
How many awards should be shown under a user's avatar? Set to 0 to show none.might be 0 by default.
Though, more awards in that section will make it look clutered, you can try this custom code so they appear in member's signatures http://www.simplemachines.org/community/index.php?topic=114701.msg2934038;topicseen#msg2934038 Preview in my sig in this link http://www.smashdomain.net/index.php?topic=5811.msg115168#msg115168
I have tried changing that setting a few times..
http://i.imgur.com/rJ0iv4A.png
i cant get it to work
Check Display.template.php amd see if this edit got added. sometimes it doesn't cause it's not set to install if it gives errors. On the parse page that edit has this This operation isn't vital to the installation of this mod. meaning if there is an error with that addition it won't force an install error, but instead it'll just skip that edit. so any changes to something like IM messengers you've made may have thrown off that edit.
Themes/default/Display.template.php
Find
// This shows the popular messaging icons.
if ($message['member']['has_messenger'] && $message['member']['can_view_profile'])
echo '
<li class="im_icons">
<ul>
', !empty($message['member']['icq']['link']) ? '<li>' . $message['member']['icq']['link'] . '</li>' : '', '
', !empty($message['member']['msn']['link']) ? '<li>' . $message['member']['msn']['link'] . '</li>' : '', '
', !empty($message['member']['aim']['link']) ? '<li>' . $message['member']['aim']['link'] . '</li>' : '', '
', !empty($message['member']['yim']['link']) ? '<li>' . $message['member']['yim']['link'] . '</li>' : '', '
</ul>
</li>';
Add BEFORE
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
If you're not comfortable with doing it yourself, then attach your Display.template.php file in the post attachment option here and I'll help ya put.
your a genius!
thank you!
Nahh, I'm nothing lol. But I appreciate it, and glad you got it to working :)
Howdy!
I did some scouring to see if this had been answered yet but didn't see that it had.
I know the mod doesn't have a setting to automatically send the recipient a PM when an award is received, but is there a way to mod the process? I'm not too familiar with coding new PHP, only editing it, so I would have no clue where to begin.
Any help is appreciated!
Josh
**
Auto PM Members their assigned Awards
I took a shot at this, and seems to work perfectly. I'm not gonna go all out with personlizing it lol. But this is the result I got. Once the award is assigned, the PM is automatically sent to that member, the sender is the member that assigned the award.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F2mr8jdy.jpg&hash=ccbeac0bddf57526cc52a89747463dd97791596f)
It'll have a message ( which title and message can be edited. With the Award image, title, and description
Sources/ManageAwards.php
Find
// Insert the data
$smcFunc['db_insert']('ignore',
'{db_prefix}awards_members',
array('id_award' => 'int', 'id_member' => 'int', 'date_received' => 'string'),
$values,
array('id_member', 'id_award')
);
Add AFTER
SendAwardPMByID();
Find
function AwardsViewAssigned()
Add BEFORE
function SendAwardPMByID()
{
global $smcFunc, $sourcedir, $txt;
$request = $smcFunc['db_query']('', "
SELECT
a.id_award, a.award_name, a.description, a.filename, m.uniq_id, m.id_award, m.id_member, m.date_received
FROM
({db_prefix}awards AS a)
LEFT JOIN {db_prefix}awards_members as m ON (a.id_award = m.id_award)
ORDER BY m.uniq_id DESC LIMIT 1");
$row = $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);
$image = $row['filename'];
$awardname = $row['award_name'];
$description = $row['description'];
$pm_register_recipients = array(
'to' => array($row['id_member']),
'bcc' => array(),
);
require_once($sourcedir . '/Subs-Post.php');
sendpm($pm_register_recipients, sprintf($txt['award_pm_subject'],$row['id_member']),
sprintf($txt['award_pm_body'],$image,$awardname,$description));
}
languages/Modifications.english.php
Add
$txt['award_pm_subject'] ='You Have Received an Award';
$txt['award_pm_body'] ='Congratulations! You have received the following award:
[img]FORUM ROOT PATH/awards/%s[/img]
[b]Award Title: [/b]%s
[b]Award Description: [/b]%s';
^^ where you see FORUM ROOT PATH replace with your own forum root URL. Not index URL, but root to your files
Ex. SMF's is http://www.simplemachines.org/community just remove the /index.php on the end of your forum home page link, basically
Dear all,
Thanks for your good work with this mod. I've however a simple question or a request.
Is it possible to modify the box that appears in the user profile? Instead of having it with a black border, is it possible to have it without any border at all (just Awards and the images)?
Thanks in advance
enen92
modify the css.....
Quote from: enen92 on February 07, 2013, 05:35:18 PMInstead of having it with a black border, is it possible to have it without any border at all (just Awards and the images)?
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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
<fieldset style="border: 1px solid black; padding: 5px;">
^^ That line controls the border, so you change the 1px to 0px for no border, or change the color.
Is this mod compatible with 2.0.4? Will I have to manually install it?
Quote from: shadowedfoe on February 08, 2013, 03:04:10 PM
Is this mod compatible with 2.0.4? Will I have to manually install it?
It's completely compatible with the Package Manager.
Quote from: SugarD-x on February 08, 2013, 06:59:19 PM
Quote from: shadowedfoe on February 08, 2013, 03:04:10 PM
Is this mod compatible with 2.0.4? Will I have to manually install it?
It's completely compatible with the Package Manager.
Is it? I get a warning prior to installing onto my forum, so I am wary of doing it.
what warning do you get?
Probably a failed file install. Most cases when new smf users post in this MOD topic it has to do with the edits in Admin.php, which always conflicts with a previously installed MOD
I noticed a bug in this mod yesterday and don't know where to report.
If i edit an award to change the icon i always got a 'awards_error_no_file' error from ManageAwards.php line 301
function AwardsUpload($id_award)
{
global $smcFunc, $context, $modSettings, $boarddir, $txt;
// Check if $_FILE was set.
if (empty($_FILES['awardFile']) || !isset($id_award))
fatal_lang_error('awards_error_no_file');
because $id_award isn't set.
So you have to change in line 214
// Now add the new one.
AwardsUpload($id_award);
to
// Now add the new one.
AwardsUpload($id);
(look at line 153 where $id is set)
Quote from: Elandion on February 13, 2013, 06:06:11 PMIf i edit an award to change the icon i always got a 'awards_error_no_file' error from ManageAwards.php line 301
Hmm, never noticed this. Usually when I change an icon I just upload and overwrite the image file in the awards folder.
hey there.
i love this mod but i cant find some images for this and i want some cool images for my forum so if anyone can share anything with me i would appreciate it.
thanks in advance
I'd love to see this mod updated for 2.0.4. I am planning a site that will take advantage of this mod!
it works fine on 2.0.4
Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).
Quote from: SugarD-x on February 24, 2013, 07:33:04 PM
Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).
Is there a post detailing all of the bug fixes to this mod, or do I need to search 150 pages to find all of them?.
Quote from: Deadfire on March 03, 2013, 03:47:42 PM
Quote from: SugarD-x on February 24, 2013, 07:33:04 PM
Quote from: Kindred on February 24, 2013, 09:02:54 AM
it works fine on 2.0.4
I can confirm this too. As long as you apply the previous bug fixes which are not version-specific, it will work fine in every version of SMF 2 up to 2.0.4, (so far).
Is there a post detailing all of the bug fixes to this mod, or do I need to search 150 pages to find all of them?.
http://www.simplemachines.org/community/index.php?topic=114701.msg3394612#msg3394612
I can't remember if my fix solved the eval one, or another one did, but I'm not finding any posts in a quick search afterwards that is related to it. I know I have since gotten the mod working without errors, so that fix could be the one that solves both problems...I can't remember for sure.
There are also these miscellaneous fixes, the first one being for an older version, but I don't think it applies any longer:
http://www.simplemachines.org/community/index.php?topic=114701.msg3116828#msg3116828
http://www.simplemachines.org/community/index.php?topic=114701.msg3310269#msg3310269
As far as I can tell, though...neither present issues with installation.
Hi,
Is it possible for the award to display at the profile homepage?
So when you click on someones profile the modifications show on the starting screen.
Greets,
Mark
Quote from: mdebruijne on March 06, 2013, 04:42:40 PM
Hi,
Is it possible for the award to display at the profile homepage?
So when you click on someones profile the modifications show on the starting screen.
Yes, just find the place in the following file you want to add them. ( edits below will place them above the member's signature on Profile page )
Profile.template.php OR if you use Ultimate Profiles, make the same edit in
UltimateProfile.template.phpFind
// Show the users signature.
Add BEFORE
// Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<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 ($context['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
<br />';
}
Example on ultimate profile ( though, my Awards box is edited to look a little nicer lol )
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2F2u7os2u.jpg&hash=6adebcc55f0018f3a2ec6d7196fe5ec7d5b2d550)
Thanks!
I only use 1 award per member and i'm using it to display ranks.
Is it also possible to show the title of the award above the image? On the profile and on posts.
Greets,
Mark
Quote from: mdebruijne on March 07, 2013, 10:03:48 AM
Thanks!
I only use 1 award per member and i'm using it to display ranks.
Is it also possible to show the title of the award above the image? On the profile and on posts.
Greets,
Mark
Just a guess but you can try this
change
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
to
', $award['award_name'], '<br><a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
or try
', $award['description'], '<br><a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';[/code
Hello,
I've used this modification, everything is great during the install without errors but when I'm trying to access any topic I get this error message:
Unknown column 'aw.award_name' in 'field list'
File: /home/myhostname/public_html/mysite/forum/Sources/Load.php
Line: 1106
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.
I've repaired my db from mysql, was the only solution that came up with searches but still nothing.
Any info how to fix it?
Hey :)
Is there any information if this mod will still be compatible with newer versions of SMF via updates, official 2.0.4 support, e.g.? It'd be really essential for me to know this, if it was useful to write a German translation.
Thanks a lot
Booda
It works fine on 2.0.4
Quote from: Kindred on March 29, 2013, 08:44:12 PM
It works fine on 2.0.4
It still requires the previous bugfixes to be applied, though. I think he means a version that includes those, and states 2.0.4 support on the mod page.
Exactly, thank you. :)
Probably not then. Spuds has not been active on this site in a while and the mod has not been touched in 2 years...
So, yes, it works just fine on 2.0.4 but ere will likely be no additional "official" updates.
Which does not make translating it a bad idea, since, as with the bug fixes, the community support for this mod exists.
QuoteSpuds has not been active on this site in a while
Not according to his profile.
He has been around, but not very active, afaik...
I am using SMF 2.0.4 with the Theme Black Rain i install this mod and it dose not display the awards nor can i find any of the mods edits in the Display.template.php in the black rain folder i am attaching the Display.template.php file for you to look at while you have it if you can set it to display 2 awards automatically (my members will only ever have 2 or less awards) so they don't have to fav them and also remove the "awards" surround so it just shows the actual images
thanks in advance
Did you have black rain installed when you installed this mod? If not, did you manually apply the display.template.php (and other files) changes to your custom theme? If so, did you check the boaes at the bottom of the install review to make it try to install into the custom theme?
And as for customizing the display even further... that would involve more than just the display.template file
Quote from: Kindred on April 01, 2013, 09:04:37 AM
Did you have black rain installed when you installed this mod? If not, did you manually apply the display.template.php (and other files) changes to your custom theme? If so, did you check the boaes at the bottom of the install review to make it try to install into the custom theme?
I've noticed a lot of members having issue with the install on that file, reason being is ....
This operation isn't vital to the installation of this mod. ... so if there is an error, the file won't actually show it on the Install page unless the file is manually clicked open to check for successes or errors in install.
Quote from: ATLANTIS29 on April 01, 2013, 08:16:30 AM
I am using SMF 2.0.4 with the Theme Black Rain i install this mod and it dose not display the awards nor can i find any of the mods edits in the Display.template.php
Display.template.php// This shows the popular messaging icons.
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 0px solid black; padding: 5px;">';
// 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'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
</li>';
}
Quote from: ATLANTIS29 on April 01, 2013, 08:16:30 AMset it to display 2 awards automatically (my members will only ever have 2 or less awards) so they don't have to fav them and also remove the "awards" surround so it just shows the actual images
You can set this number under the Awards Settings in the AdminCP awards section. I removed the text "Awards" and the border around them
A few pages back also has some bug fixes, which are probably linked to the installation errors too. I know at least one of them fixes messages coming up in the error log.
I finally decided to install this mod but can't find the entry
'permissions' => array(),
to paste 'awards' => isset($user_settings['awards']) ? $user_settings['awards'] : array(),
so I'm a little confused.
Any idea in what section of the file this has to be put in to work?
Thank you.
How can i change this info from award's description to "award's name" ?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FfNvdQll.png&hash=48c61f6816f07e19402fa4b992270a408d91f624)
change the text in modifications.YOURLANGUAGE.php
Quote from: Kindred on April 03, 2013, 07:26:12 AM
change the text in modifications.YOURLANGUAGE.php
When i hold the cursor on award, it shows description of award, i want to show award's name.
ah... that is not how your question was phrased. :)
change the code in display.template.php
Quote from: Kindred on April 03, 2013, 09:11:27 AM
ah... that is not how your question was phrased. :)
change the code in display.template.php
English is not that good :)
Wich code is this exactly ?
$award['description'], '" title="', $award['description'],
i try it with
$award['name'], '" title="', $award['name'],
Try this instead
$award['award_name'], '" title="', $award['award_name'],
Quote from: hcfwesker on April 03, 2013, 11:28:16 AM
Try this instead
$award['award_name'], '" title="', $award['award_name'],
Thank you, it worked.
Quote from: realJedi on April 02, 2013, 02:26:09 PM
I finally decided to install this mod but can't find the entry
'permissions' => array(),
to paste 'awards' => isset($user_settings['awards']) ? $user_settings['awards'] : array(),
so I'm a little confused.
Any idea in what section of the file this has to be put in to work?
Thank you.
Help please ???
Quote from: realJedi on April 05, 2013, 10:35:47 AM
Quote from: realJedi on April 02, 2013, 02:26:09 PM
I finally decided to install this mod but can't find the entry
'permissions' => array(),
to paste 'awards' => isset($user_settings['awards']) ? $user_settings['awards'] : array(),
so I'm a little confused.
Any idea in what section of the file this has to be put in to work?
Thank you.
Help please ???
Whick file was that ? Give all codes and your file.
Quote from: realJedi on April 05, 2013, 10:35:47 AM
Help please ???
are you installing this manually. it'll install fine through the package manager
how can i increase awards description character limit, it is not showing all of them.
i tried with these but didn't work.
type="text" name="description" id="description" value="', $context['award']['description'], '" size="30" />
Any idea ? How can i increase award descriptions, character limit is to low.
according to the install.php file, the limit is 80 characters. Go adjust that number in the database to how high you want it. that'd be my guess.
phpMyAdmin > awards database > structure > edit the value for description's length
Thank you again @hcfwesker :)
Quote from: TiPsY on March 17, 2013, 05:50:57 PM
Hello,
I've used this modification, everything is great during the install without errors but when I'm trying to access any topic I get this error message:
Unknown column 'aw.award_name' in 'field list'
File: /home/myhostname/public_html/mysite/forum/Sources/Load.php
Line: 1106
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php.
I've repaired my db from mysql, was the only solution that came up with searches but still nothing.
Any info how to fix it?
bump on this, it was ignored
did you have another award mod before this one? Does that table/column actually exist?
if not, you will have to remove the incorrect database tables and re-run the database install portion of the mod
Quick question, I installed the mod a while ago, works fine except for the fact that only I (administrator) can give awards to people. I used to have one of my forum moderators do it but when I updated from the old style of SMF, my moderators where no longer able to give out awards. It wont even show up for them. I have a video embed mod installed and the options for the Member Awards only shows up in the drop down menu for the video mod. Any ideas? Thanks in advance :D
sounds like mods with conflicting or duplicate javascripts....
I'm having the same problem as Nuttcaze. Only Admins are allowed to even view the assignment area. I've checked the file/database, and the file only seems to check "isAllowedTo('manage_awards')" which is set to 1 in the permissions table in the database correctly. It seems to hinge on the user having the ability to view the 'admin' area or something similar. We do have a lot of mods installed, but I wouldn't even begin to know where to look for a conflict. Any help would be greatly appreciated. I'm on the latest 2.0.4 version.
Try this, which will put the Awards admin menu all by itself. ( think I had to do something similar to get award permissions for non-admins to work)
Admin.php
Find
'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']),
),
),
),
),
'layout' => array(
Replace with
),
),
'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']),
),
),
),
),
'layout' => array(
Quote from: hcfwesker on April 22, 2013, 11:53:20 PM
Try this, which will put the Awards admin menu all by itself. ( think I had to do something similar to get award permissions for non-admins to work)
Admin.php
Find
'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']),
),
),
),
),
'layout' => array(
Replace with
),
),
'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']),
),
),
),
),
'layout' => array(
Hmm, no dice. At first I got an error that there were too many " ), " at the end of that section. Removed those two and it didn't break, but I still couldn't access that area as a non-admin with permissions. At least, I couldn't access it through "?action=admin;area=awards;" I realize this may change after we change the code like you suggested. If that's the case, what would the new 'action' be to access that area?
What's the most perplexing about this (to me at least) is how non-admins with permissions can work with our EZportal system without problem by going through the admin area, but this mod somehow requires you to be an admin? Our EZpages are listed in the admin area, and when I give permission to edit EZpages, they have no problem getting in there (but can only see that one option). I think your suggested edit is definitely in the right direction - but I wonder if I have to do something else, like edit the action= sections of the awards template files so that it isn't leading to the admin area anymore?
Unlike our EZportal and EZ Store sections, the Awards doesn't have a custom URL defined in this array structure. Could that be part of the problem?
I really appreciate the help. I'm a programming student myself, so I understand a lot of what is going on here, it's just I haven't gotten used to the SMF system just yet. lol
Fixed it for our forum, at least. For those who may have a similar problem of not being able to edit/assign awards even when the permission is checked, do this:
admin.php
Find
'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']),
),
),
),
),
Replace with:
),
),
'awards' => array(
'title' => "Awards",
'permission' => array('manage_awards'),
'areas' => array(
'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']),
),
),
),
),
What does is, as 'hcfwesker' suggested, creates a new 'area' in the admin menu for these functions to exist. This is essentially creating a new section / drop menu for the Awards menu to live in.
Thanks so much for the help! It led me in the right direction to mess around and learn a bit more about SMF. :D
That's exactly what my edit was meant to do, but I was going by the parser install page, so you may of have another admin menu added in that position which wouldn't have made the edit i supplied work. Thats how we got passed the glitch so good deal you got it figured out as well.
Also, if you're interested, I made this custom edit, which puts "Manage Awards" under the 'Moderate' tab on every page, so "awards moderators" can get there without having to goto the Admin menu then select awards. (preview in attachment below)
http://www.simplemachines.org/community/index.php?topic=114701.msg3107712;topicseen#msg3107712
Quote from: biohazard388 on April 23, 2013, 04:35:23 PM
Fixed it for our forum, at least. ..snip...
Thanks, this helped me aswell.
Hi,
Has anyone moved the awards and put them below the signature area?
If so what did you do, to do it?
Quote from: CBG on May 04, 2013, 10:00:40 AMHas anyone moved the awards and put them below the signature area?
If so what did you do, to do it?
typing in 'signature' up in the search box would have done what you asked ;)
http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589 <-- move to signatures
http://www.simplemachines.org/community/index.php?topic=114701.msg3503463#msg3503463 <-- add to Profile
help please ::) ::) :o :o
window.jQuery || document.write(unescape('%3Cscript src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"%3E%3C/script%3E'))
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FrxaS6pP.png&hash=88dbb04e1efced0479475ebd2ba4c8aaaf0c554c)
Quote from: hcfwesker on May 04, 2013, 07:16:29 PM
Quote from: CBG on May 04, 2013, 10:00:40 AMHas anyone moved the awards and put them below the signature area?
If so what did you do, to do it?
typing in 'signature' up in the search box would have done what you asked ;)
http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589 <-- move to signatures
http://www.simplemachines.org/community/index.php?topic=114701.msg3503463#msg3503463 <-- add to Profile
Or, alternatively! (SMF 2.0.4)
Preview Image (http://i1285.photobucket.com/albums/a598/SPWeyr/Screenshots/Awards_zps660b405d.png)
-> ../Themes/default/Profile.template.php make sure you do backups!
<dd>', $context['member']['last_login'], '</dd>
</dl>';
// Are there any custom profile fields for the summary?
<dd>', $context['member']['last_login'], '</dd>';
echo '
</dl>';
echo '
<dl class="noborder">';
// Show their awards?
if (!empty($context['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<hr></ br></ br><dt>', $txt['awards'], ': </dt>
<dd>', $contxt['member']['awards'], '</dd>';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($context['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</fieldset>
<br /><br />';
'</dl>';
}
echo '
<dl class="noborder">';
// Are there any custom profile fields for the summary?
Can't find where was the codes for pm send when assign a award.
How can i change the pm sender and how can i delete award's description for my content.
Heya guys ;)
Great mod but i'm having a small problem few weeks after i installed it.
Apperently whenever i try to assign some award to member there's no drop-down box with suggested members, so whatever i type there i just got "You must select a member and/or award in order to continue!".
Error log:
Invalid argument supplied for foreach()
File: /homepages/26/d465986696/htdocs/Sources/ManageAwards.php
Line: 451
Lines from 450 - 453:
// Make sure that they picked an award and members to assign it to...
foreach($_POST['recipient_to'] as $recipient)
if($recipient != '{MEMBER_ID}')
$members[] = (int) $recipient;
Any suggestions please? :)
Thanks! :)
Quote from: Dzonny on May 26, 2013, 10:04:43 AMApperently whenever i try to assign some award to member there's no drop-down box with suggested members, so whatever i type there i just got "You must select a member and/or award in order to continue!".
see if this post helps at all. http://www.simplemachines.org/community/index.php?topic=114701.msg3208645#msg3208645
Quote from: Skaty on May 24, 2013, 07:35:54 AM
Can't find where was the codes for pm send when assign a award.
http://www.simplemachines.org/community/index.php?topic=114701.msg3482704#msg3482704
Thanks for trying to help hcfwesker.
It wont work at all sadly, no matter if i wrote half of a members name or the whole, nothing seems to activate that drop-down list.
As i have highly customized theme and few mods on my forum, including some jquery/java scripts it may be possible that some of those scripts caused such problems? If so any idea where can i search for a solution, as everything besides this seems to be working great. Also if there's a change to turn off this drop-down box and accept just written username while assigning an award would be great, but so far i didn't managed to do that. :(
Someone have problem with this mod, he created topic here (http://www.simplemachines.org/community/index.php?topic=504202.0;topicseen) but can't speak English for post this prob here, so i did this instead him. the issue is when he want to upload an image for award, will get this error:
Quotefile: /home/user/public_html/Sources/ManageAwards.php
line: 168
On SMF 2.0.rc4
what is the ACTUAL error... not just the line number
Quote from: hcfwesker on May 26, 2013, 02:43:52 PM
Quote from: Skaty on May 24, 2013, 07:35:54 AM
Can't find where was the codes for pm send when assign a award.
http://www.simplemachines.org/community/index.php?topic=114701.msg3482704#msg3482704
Thank you. i tried to delete description from pm body but when a delete it pm is sending empty. how can i delete award's desctiption from pm and gave a award's link to image or the award's title ?
function SendAwardPMByID()
{
global $smcFunc, $sourcedir, $txt;
$request = $smcFunc['db_query']('', "
SELECT
a.id_award, a.award_name, a.description, a.filename, m.uniq_id, m.id_award, m.id_member, m.date_received
FROM
({db_prefix}awards AS a)
LEFT JOIN {db_prefix}awards_members as m ON (a.id_award = m.id_award)
ORDER BY m.uniq_id DESC LIMIT 1");
$row = $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);
$image = $row['filename'];
$awardname = $row['award_name'];
$description = $row['description'];
$pm_register_recipients = array(
'to' => array($row['id_member']),
'bcc' => array(),
);
require_once($sourcedir . '/Subs-Post.php');
sendpm($pm_register_recipients, sprintf($txt['award_pm_subject'],$row['id_member']),
sprintf($txt['award_pm_body'],$image,$awardname,$description));
}
Quote from: Kindred on May 27, 2013, 03:08:27 PM
what is the ACTUAL error... not just the line number
He said:
Quoteconstraint failed
constraint failed?
I don't know that error.
what is the full error message?
Quote
...WHAT IS HERE?...
file: /home/user/public_html/Sources/ManageAwards.php
line: 168
Quote from: Kindred on May 28, 2013, 07:37:53 AM
constraint failed?
I don't know that error.
what is the full error message?
Quote
...WHAT IS HERE?...
file: /home/user/public_html/Sources/ManageAwards.php
line: 168
I asked him a screenshot:
http://simplemachines.org/community/index.php?action=dlattach;topic=504202.0;attach=220545;image
I have never seen that error before -- which leads me to think it might be a bad translation (??)
Hello everyone, I am having a problem with this mod...
I installed it with a few errors, thought nothing of it. I made sure it was installed with the theme I am using too. So when I go to set a member with an award it works, but doesn't show up under their name... this is the whole reason I wanted this mod. So if anyone could help, it would be greatly appreciated. I will be happy to answer any questions you have for me.
Quote from: Kindred on May 28, 2013, 08:32:45 PM
I have never seen that error before -- which leads me to think it might be a bad translation (??)
I think that error is so weird!
bad translation of mod or SMF or.. what
and one thing Kindred, on the title in screenshot wrote in farsi, that means:
Error in databasemaybe it help to solve this prob.
Ian1045,
if the mod had errors during the install, then it did not successfully install.
What is it with people ignoring errors and assuming that everything will just work, despite the errors?
At this point, you are going to have to manually go through all the files which were supposed to be edited by the mod and confirm that the changes have been made, correctly
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Mr. Pedram,
At this point, I am at a loss... did he confirm if the database table was correctly created?
Quote from: Ian1045 on May 29, 2013, 04:40:54 AMI installed it with a few errors, thought nothing of it.
There's your mod installing mistake.
Quote from: Ian1045 on May 29, 2013, 04:40:54 AMbut doesn't show up under their name... this is the whole reason I wanted this mod. So if anyone could help, it would be greatly appreciated. I will be happy to answer any questions you have for me.
Add the manual edits to
Display.template.php from the MOD's parse page instructions, OR ....
Though, if you're interested, I've changed where awards display to be put with Member's signatures. (When many Awards are displayed in the mini-profile in posts will get cluttered, in the signature they're laid out much cleaner)
http://www.simplemachines.org/community/index.php?topic=114701.msg3122589#msg3122589 Just skip to Step 3
hcfwesker,
just as a note - if he had more than one error, he will have to fix them all... not just display.template.php
He says everything else works, just not member's awards showing in their post-profile. And, those edits get skipped without showing errors, as shown on the mod parse page. This is a common problem with the MOD, because for some reason the installer is coded to "skip" the errors for Display.template.phph if there's an error.
hmmm... odd choice, that.
Thanks for the help so far guys, but I went and checked back to see where the install errors were, and it turns out they were in 'Load.php', I clicked on the little modify icon or w/e and it told me this:
Code: (Find)
// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.id_member IN({array_int:members})
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);
// Fetch the award info just once
while ($row = $smcFunc['db_fetch_assoc']($awardsRequest)){
$user_profile[$row['id_member']]['awards'][] = array(
'id' => $row['id_award'],
'award_name' => $row['award_name'],
'description' => $row['description'],
'more' => '?action=profile;area=awardsMembers;id=' . $row['id_award'],
'href' => '?action=profile;area=showAwards;u=' . $row['id_member'],
'minifile' => $row['minifile'],
'img' => '/' . (empty($modSettings['awards_dir']) ? '' : $modSettings['awards_dir'] . '/') . $row['minifile'],
);
}
$smcFunc['db_free_result']($awardsRequest);
}
}
if (!empty($new_loaded_ids) && $set !== 'minimal')
Code: (Replace)
}
if (!empty($new_loaded_ids) && $set !== 'minimal')
I have searched all through 'Load.php' for the Code: (Find) bit.. but nothing, I can't seem to find it.
Also, hcfwesker... the signature thing didn't work sadly :/ But, I think it might be because I am using a custom theme... I don't know though because I put the default theme on just to see if the awards would show up, but they don't. However, some of these appear: '*****' under the users name. If anyone knows how I can just get this awards showing up in posts, that would be great. Thanks :D
Dude. you're doing the complete opposite. What you're "trying" to find is actually what you have to replace with, and vice verse. That's the uninstall instructions you're looking at. so do the opposite of Find & Replace, that you have labeled in your post above.
Hi,
I try to install this mod but it doesnt work in my forum.
My smf is 2.0.4 with ADK portal 2.1.1
So, i did installation, the only problem came from the subs, so i add the code myself. The rest is ok without problem.
I am able to creat award (with logo) but the problem come after.
I can't assign, modify, delete, etc. an award, i can't édit a category. It links to a 404 page.
So basicaly, i can't do nothing except created award but of link problem.
Exemple of link problem : http://e-lire.fr/forum/admin/?area=awards;sa=viewcategory;id=1 --> 404 error and same for all links.
What is wrong ?
Quote from: Mortuum on June 01, 2013, 08:23:56 PM
Hi,
I try to install this mod but it doesnt work in my forum.
My smf is 2.0.4 with ADK portal 2.1.1
So, i did installation, the only problem came from the subs, so i add the code myself. The rest is ok without problem.
I am able to creat award (with logo) but the problem come after.
I can't assign, modify, delete, etc. an award, i can't édit a category. It links to a 404 page.
So basicaly, i can't do nothing except created award but of link problem.
Exemple of link problem : http://e-lire.fr/forum/admin/?area=awards;sa=viewcategory;id=1 --> 404 error and same for all links.
What is wrong ?
Make sure you apply the necessary fixes mentioned in previous pages. There are some bugs in the code that require being repaired.
yeah i did from las previous page. Get worse.
Anyway way. I try on an other forum in other name domain. I work fine.
So i reinstall a clean version on the current forum, so no other mods, nothing. And it still do the same problem!
Quote from: Mortuum on June 03, 2013, 07:30:46 AM
yeah i did from las previous page. Get worse.
Anyway way. I try on an other forum in other name domain. I work fine.
So i reinstall a clean version on the current forum, so no other mods, nothing. And it still do the same problem!
The fixes exist on multiple pages back. Some people were posting edits to just change the mod, so be careful which ones you try. Make sure they specifically say they are bug fixes.
Quote from: SugarD-x on June 03, 2013, 12:44:40 PM
Quote from: Mortuum on June 03, 2013, 07:30:46 AM
yeah i did from las previous page. Get worse.
Anyway way. I try on an other forum in other name domain. I work fine.
So i reinstall a clean version on the current forum, so no other mods, nothing. And it still do the same problem!
The fixes exist on multiple pages back. Some people were posting edits to just change the mod, so be careful which ones you try. Make sure they specifically say they are bug fixes.
Having a final release without changes to add could be cool.
But what i don't get is that it is totally work fine on 1 naked forum (same hosting) but not on an other naked forum (,aked, i mean without other mod/theme). Oo
And honestly 150 pages to check ?! I used the recherche fonction before to post here and didnt find (maybe wrong keywords).
hi,
how can display a specific category in profile-post (below icons)?
Quote from: Snoopix on June 04, 2013, 09:01:24 PMhow can display a specific category in profile-post (below icons)?
Random guess, haven't tested this so just reverse these edits if it doesn't work or an error happens.
sources/Load.phpFind
// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE am.id_member IN({array_int:members})
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);
Replace with
// I'm sorry, but I've got to stick it somewhere...
if($modSettings['awards_in_post'] > 0 && !empty($new_loaded_ids)){
$awardsRequest = $smcFunc['db_query']('', '
SELECT
aw.id_award, aw.award_name, aw.description, aw.minifile, aw.id_category,
am.id_member, am.date_received, am.favorite
FROM {db_prefix}awards_members AS am
INNER JOIN {db_prefix}awards AS aw ON (aw.id_award = am.id_award)
WHERE aw.id_category = 777
ORDER BY am.favorite DESC, am.date_received DESC',
array(
'members' => $new_loaded_ids,
)
);
Where the new edit has "WHERE aw.id_category = 777" ... replace 777 with the category id you want displayed.
Quote from: Mortuum on June 03, 2013, 05:24:12 PM
But what i don't get is that it is totally work fine on 1 naked forum (same hosting) but not on an other naked forum (,aked, i mean without other mod/theme). Oo
And honestly 150 pages to check ?! I used the recherche fonction before to post here and didnt find (maybe wrong keywords).
I finally found the solution in this thread, searching "404". It was in the post made by shyrax (http://www.simplemachines.org/community/index.php?topic=114701.msg3369152;topicseen#msg3369152).
I've replaced all the ";id" with "&id" in the mod files, then upload and deploy. Works !
Can someone please post the fixed full version (in the zip) and all? Im having huge trouble with this :( Pleeeeease!!!
Yeah cause the parsing method just wasted 3 hours of my time and almost broke my forums. Is this abandoned or what ?
Quote from: Kindred on March 29, 2013, 09:47:12 PM
Probably not then. Spuds has not been active on this site in a while and the mod has not been touched in 2 years...
So, yes, it works just fine on 2.0.4 but ere will likely be no additional "official" updates.
Which does not make translating it a bad idea, since, as with the bug fixes, the community support for this mod exists.
Its NOT working just fine on 2.0.4, Ive installed and uninstalled this on multiple naked 2.0.4 forums. If this mod isnt being supported and is obviously outdated and abandoned why even continue listing it ?
it works fine for me on my 2.0.4 forums...
and my forums are already heavily modded with other mods
For it to work "just fine" this sure is a heavily trafficked thread full of people having similar issues, goin back past 2.0.0
I've gotten the same error messages upon install as a large number of people here have also reported.
I've deleted the auto mod from my database completely, and did all the parse edits as instructed.
I've read 67 pages of this thread, I've uninstalled and reinstalled so many times that I cant even remember at this point. And its still not working .
If I uninstall and completely delete it I no longer can even access my profiles now.
So obviously this mod isn't working just fine, otherwise so many people wouldnt had posted for help.
well, the auto-install failures are due to other mods... and you would have to manually apply this mod's changes to that file.
However, since the failures are due to other mods you can hardly blame it on this mod.
install uninstall and install again?
Really?
Do you think the computer is a dog which will learn the trick if you repeat?
Computers do not learn through repetition. You get the same result each and every time - so if you have problems, uninstalling and reinstalling is not going to do anything...
(although if there are failed bits of the uninstall along with the install, you will cause progressively worse errors.)
Could someone tell me if it's possible to maybe edit one of the files to make it so you can also set auto-assigning badges
(E.G Assigned on Registering,Reaching Post Criteria,After being registered for X Time,etc)
how can i delete award's description from PM ??
Quote from: Skaty on May 28, 2013, 05:47:12 AM
Quote from: hcfwesker on May 26, 2013, 02:43:52 PM
Quote from: Skaty on May 24, 2013, 07:35:54 AM
Can't find where was the codes for pm send when assign a award.
http://www.simplemachines.org/community/index.php?topic=114701.msg3482704#msg3482704
Thank you. i tried to delete description from pm body but when a delete it pm is sending empty. how can i delete award's desctiption from pm and gave a award's link to image or the award's title ?
function SendAwardPMByID()
{
global $smcFunc, $sourcedir, $txt;
$request = $smcFunc['db_query']('', "
SELECT
a.id_award, a.award_name, a.description, a.filename, m.uniq_id, m.id_award, m.id_member, m.date_received
FROM
({db_prefix}awards AS a)
LEFT JOIN {db_prefix}awards_members as m ON (a.id_award = m.id_award)
ORDER BY m.uniq_id DESC LIMIT 1");
$row = $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);
$image = $row['filename'];
$awardname = $row['award_name'];
$description = $row['description'];
$pm_register_recipients = array(
'to' => array($row['id_member']),
'bcc' => array(),
);
require_once($sourcedir . '/Subs-Post.php');
sendpm($pm_register_recipients, sprintf($txt['award_pm_subject'],$row['id_member']),
sprintf($txt['award_pm_body'],$image,$awardname,$description));
}
change
$awardname = $row['award_name'];
$description = $row['description'];
to
$awardname = $row['award_name'];
$description = 'You have received the award: ' . $row['award_name'];
or add that text as a text string in modifications.english.php and call the text string instead (thus allowing for translation)
Thank you Kindred.