Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Yet Another Awards System Details »»
Yet Another Awards System
Version: 4.0.9, by squidsk squidsk is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.2 Rating:
Released: 01-09-2010 Last Update: 12-15-2014 Installs: 982
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

*** CREATE A BACKUP OF YOUR FORUM AND DATABASE BEFORE INSTALLING ***


DESCRIPTION:
This is a Medals/Awards system. Admin can give members awards, and award icons will be displayed in member's profile, posts, as well as in a award list.

FEATURES:
In AdminCP
- Can Create/Edit/Delete/Reorder categories/sub-categories in ACP (with category name and description)
- Can Create/Edit/Delete awards in ACP (with Award Name, Description, Icon URL, Image URL)
- Can Move one (or all) award(s) from one category to another
- Can set some awards un-classified (not displayed for public)
- Can re-order awards in awards showcase
- Issue awards to members, based on username or userid, with Issue Reason
- Remove awards from members
+ Writes granting/removing awards to the log

In ModCP
- Issue awards to members, based on username or userid, with Issue Reason
- Remove awards from members
+ Writes granting/removing award to the log

Front page
- Display awards list in with: Award Name, Description, Icon, Image, and Members who get each award.
- Display awards showcase in profile, with Award information, Issue time and reason
- Display award icons in postbit (showthread, showpost, announcement, private)

New Features/Additions since 3.8
- Points System
- Separate Award Request/Recommendation Forms
- CSS Customizable

Current Release Version 4.0.9
  • Added - Handling of user merges
  • Added - Handling of user deletes
  • Added - Manage awards on per user basis
  • Added - Extra info to the logs for mass removal and editing of issued awards
  • Added - Ability to collapse categories on awards.php
  • Added - Checksum file for checking for suspect file versions
  • Added - Various missing phrases
  • Fixed - Memberlist not showing awards when option is active
  • Fixed - Navtab not being selected (vb version < 4.2)
  • Fixed - Category title not being displayed on awards.php
  • Fixed - Logging not working in modcp
  • Fixed - A few other minor bugs

Download Now

File Type: zip YaAS-Automation-R4.zip (6.1 KB, 735 views)
File Type: zip YaAS-4.0.9.zip (1.34 MB, 984 views)

Screenshots

File Type: png YaAS4-AwardListings.png (164.2 KB, 0 views)
File Type: png YaAS4-ProfileTab.png (162.9 KB, 0 views)
File Type: png YaAS4-Post.png (176.0 KB, 0 views)
File Type: png YAAS4-AdminCP.png (381.0 KB, 0 views)
File Type: png YaAS4-AdminCP-EditAward.png (255.4 KB, 0 views)
File Type: jpg YaAS4-AdminCP-EditCSS.jpg (126.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #1472  
Old 03-22-2013, 11:14 PM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New post in an existing thread for award issue doesn't seem to be working.

Is it something on my end or is it YaAS?

Edit: It's not letting me change the PM userid either. I changed from user 10 to user 1, but it's still sending from user 10.
Reply With Quote
  #1473  
Old 03-25-2013, 05:59 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Capt C Ray View Post
I am just about finished adding all our medals into our test site. Is there an easy way to transfer all the medals I have entered to our live site? Such as copying the table in the data base?
Export from the test site and import to the live site, you'll probably want to make sure you only export the table data, and only data that isn't present on the live site.

Quote:
Originally Posted by zeroality View Post
New post in an existing thread for award issue doesn't seem to be working.

Is it something on my end or is it YaAS?
See my last post as I mention this, posting a new post to a thread works just fine with an unaltered YaAS on a vanilla vb, so the problem is almost certainly on your end. You most likely have an anti-spam measure in place that's screwing things up.

Quote:
Edit: It's not letting me change the PM userid either. I changed from user 10 to user 1, but it's still sending from user 10.
A bug in the code, I've added to my list of things to fix.
Reply With Quote
  #1474  
Old 03-27-2013, 02:31 AM
Capt C Ray Capt C Ray is offline
 
Join Date: Sep 2011
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
Export from the test site and import to the live site, you'll probably want to make sure you only export the table data, and only data that isn't present on the live site.
Thanks. Makes my life a whole lot easier. :up:
Reply With Quote
  #1475  
Old 04-03-2013, 07:22 AM
MaxLiao MaxLiao is offline
 
Join Date: Dec 2010
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following error when recommending an award.

Quote:
Fatal error: Existing data passed is not an array
Called set_existing in [path]/recommend_award.php on line 188
in [path]/includes/class_dm.php on line 265
#0 vb_error_handler(256, Existing data passed is not an array
Called set_existing in /*****/*****/*****/*****/*****/*****/recommend_award.php on line 188
, //*****/*****/*****/*****/*****/*****/includes/class_dm.php, 265, Array ([existing] => 0,[line] =>
Called set_existing in /*****/*****/*****/*****/*****/*****/recommend_award.php on line 188
,[trace] => Array ([0] => Array ([file] => /*****/*****/*****/*****/*****/*****/recommend_award.php,[line] => 188,[function] =>
Oh, and it just goes on and on and on from there ...

Using 4.0.6 on vB 4.2 PL3.

I tried researching this error, but even Google only came up with one hit, and it was on the 3.8 version.

As a side note, when recommending a rank (Yet Another Ranks System), it works just fine. It's only in the Awards mod that I get this error.
Reply With Quote
  #1476  
Old 04-03-2013, 11:41 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaxLiao View Post
I get the following error when recommending an award.

Oh, and it just goes on and on and on from there ...

Using 4.0.6 on vB 4.2 PL3.

I tried researching this error, but even Google only came up with one hit, and it was on the 3.8 version.

As a side note, when recommending a rank (Yet Another Ranks System), it works just fine. It's only in the Awards mod that I get this error.
There are a couple things to check, first that the forumid you're using to create the new threads actually exists and second that the user making the request actually has permission to post in that forum. The error is being caused because the threadid is not able to be verified and does not return the thread object (which should be an array).
Reply With Quote
  #1477  
Old 04-04-2013, 05:47 AM
MaxLiao MaxLiao is offline
 
Join Date: Dec 2010
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the response.

Strangely enough, it's working now. I made no changes - seriously - other than to verify the forumid, my Admin user permissions, and the mod settings, all of which were good and none of which were changed.

I don't know what to say ... /shrug

Thanks.

[Edit / Update]: Okay, so I don't know if I accidentally used the Ranks mod instead of the Awards mod earlier, or if there's something else going on. However, the Ranks mod works fine but the Awards mod is not working ... still/again(?). Both mods have the exact same configs, including forum and usergroup posting permissions. I have uninstalled and re-installed the Awards mod.

From the AdminCP, it's all good. In fact, while it fails to post in the forums I see the request in the AdminCP.
Fatal error: Existing data passed is not an array
Called set_existing in [path]/recommend_award.php on line 188
in [path]/includes/class_dm.php on line 265
Reply With Quote
  #1478  
Old 04-04-2013, 11:36 AM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaxLiao View Post
Thanks for the response.

Strangely enough, it's working now. I made no changes - seriously - other than to verify the forumid, my Admin user permissions, and the mod settings, all of which were good and none of which were changed.

I don't know what to say ... /shrug

Thanks.

[Edit / Update]: Okay, so I don't know if I accidentally used the Ranks mod instead of the Awards mod earlier, or if there's something else going on. However, the Ranks mod works fine but the Awards mod is not working ... still/again(?). Both mods have the exact same configs, including forum and usergroup posting permissions. I have uninstalled and re-installed the Awards mod.

From the AdminCP, it's all good. In fact, while it fails to post in the forums I see the request in the AdminCP.
If ranks and awards have the same config then there's something else going on, since the relevant code is identical between them except for variable names.
Reply With Quote
  #1479  
Old 04-04-2013, 04:25 PM
MaxLiao MaxLiao is offline
 
Join Date: Dec 2010
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Again, thank you for the response ...

Further testing reveals the following:
  • If I use "Submission: Award Submissions Forum ID," but I turn off "Submission: Create a poll in the new created thread" I do not get an error. On the other hand, I don't get a post either.
  • If I use "Submission: Award Submissions Forum ID," and I turn on "Submission: Create a poll in the new created thread" This is when I get the Fatal Error.

I know HTML and CSS, but I don't know PHP, so when I look at the variations between the Rank and the Awards code and I see the following:

Awards code ... not working ... (partial) ...
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>

<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase awards}</title>
{vb:raw headinclude}

{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}
{vb:raw navbar}


Ranks code ... works fine ... (partial) ...
Code:
$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[rank_recommendformtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
Should I be concerned?

Mostly I'm noting the {vb:xxxxxxx} versus $xxxxxx differences.

Switching my language to UTF-8 wouldn't cause any problems, would it?

Lastly, I have no problems agreeing with you that there is most likely something else going on, but if you can tell me what to look for - since it is your mod that is having trouble sending the information - I research this further.

The people for whom I'm building this site are very adamant that this mod works, so I really appreciate your time in answering my posts and helping me resolve this issue.

[Edit / Update]: I just checked, and the PM function works perfectly, so it seems the only issue is posting on the forums.
Reply With Quote
  #1480  
Old 04-06-2013, 05:18 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaxLiao View Post
Again, thank you for the response ...

Further testing reveals the following:
  • If I use "Submission: Award Submissions Forum ID," but I turn off "Submission: Create a poll in the new created thread" I do not get an error. On the other hand, I don't get a post either.
  • If I use "Submission: Award Submissions Forum ID," and I turn on "Submission: Create a poll in the new created thread" This is when I get the Fatal Error.
This is telling, if when you aren't trying to create the poll you still aren't getting a new thread then there's a problem with the forum id. Either the forum id bad, or the user creating the new thread does not have permissions to do so or who knows perhaps something else entirely, otherwise you should get a new thread in the specified forum.

You can try to make the following changes to see if it helps track down the problem:

Change line 122 as follows:
Code:
$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 0, 1);
to

Code:
$foruminfo = verify_id('forum', $vbulletin->options[award_request_formforumid], 1, 1);
and add the following between lines 138 and 139 (the red is the new code)
Code:
build_new_post('thread', $foruminfo, array(), array(), $newpost, $errors);
if (!empty($errors))
{
	$error = construct_errors($errors); // this will take the preview's place
	eval(standard_error($error));
}
$award_send += 1;
Quote:
I know HTML and CSS, but I don't know PHP, so when I look at the variations between the Rank and the Awards code and I see the following:

Awards code ... not working ... (partial) ...
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>

<title>{vb:raw vboptions.bbtitle} - {vb:rawphrase awards}</title>
{vb:raw headinclude}

{vb:raw headinclude_bottom}
</head>
<body>

{vb:raw header}
{vb:raw navbar}


Ranks code ... works fine ... (partial) ...
Code:
$stylevar[htmldoctype]
<html id="form" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[rank_recommendformtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
Should I be concerned?

Mostly I'm noting the {vb:xxxxxxx} versus $xxxxxx differences.
No concern necessary, the changes are a result of my updating the templates to use the vb4 style for templates as opposed to the old vb3 style.


Quote:
Switching my language to UTF-8 wouldn't cause any problems, would it?
Are you talking about the encoding of the file or something else?

Quote:
Lastly, I have no problems agreeing with you that there is most likely something else going on, but if you can tell me what to look for - since it is your mod that is having trouble sending the information - I research this further.
I'm not able to reproduce it, so its hard for me to determine the root cause.

Quote:
The people for whom I'm building this site are very adamant that this mod works, so I really appreciate your time in answering my posts and helping me resolve this issue.
I try to help where I can.
Reply With Quote
  #1481  
Old 04-08-2013, 04:39 PM
MaxLiao MaxLiao is offline
 
Join Date: Dec 2010
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just as a follow up, I have not applied your fix yet; however, I also have not had a single error (and no one has reported any errors to me). I'm going to keep things as-is, for now and I'll apply your fix when/if the issue arises again.

[Edit] Removed misinformation.

Thanks a ton!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.21542 seconds
  • Memory Usage 2,394KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (12)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (19)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (8)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete