Member Awards (2.0 Compatible!)

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

Previous topic - Next topic

Fustrate

Kimmie - it's a 2.0-only feature that I'm finishing up on... you don't have it in 1.1.x
Steven Hoffman
Former Team Member, 2009-2012

Kimmie

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

tk2012

#722
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.


Ozman69

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

Fustrate

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.
Steven Hoffman
Former Team Member, 2009-2012

Ozman69

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

Fustrate

You'll have to ask the creator of TinyPortal how to add permissions to TP_addPerms().
Steven Hoffman
Former Team Member, 2009-2012

callteg4

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

ccbtimewiz

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.

Kimmie

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

tk2012

@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

Fustrate

You can do whatever you'd like with it on your own forum ;)
Steven Hoffman
Former Team Member, 2009-2012

callteg4

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

Fustrate

Not at this moment, no.
Steven Hoffman
Former Team Member, 2009-2012

Kimmie

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? 


Fustrate

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 :(
Steven Hoffman
Former Team Member, 2009-2012

Kimmie

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

Fustrate

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.
Steven Hoffman
Former Team Member, 2009-2012

callteg4

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

ljprevo

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.

Advertisement: