vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=232684)

Crotan 12-15-2014 11:52 PM

Quote:

Originally Posted by squidsk (Post 2527331)
A bit of an early Christmas gift for everyone.

Released YaAS 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 - mysql error/warning when issuing awards
  • Fixed - A few other minor bugs
  • Updated - Verion in version phrase

And here I thought this was forgotten. You sir are a gentleman and a scholar. :up:

CAG CheechDogg 12-16-2014 03:26 AM

I get the following error when searching for a member to manage their awards:

I x'd out some of the information ....

Code:

Database error in vBulletin x.x.xx:

Invalid SQL:

                        SELECT award.award_id, award.award_name, award.award_desc, award.award_icon_url, award.award_img_url, award_user.*
                        FROM cagisf_award_user as award_user
                        LEFT JOIN cagisf_ award as award USING (award_id)
                        WHERE award_user.userid = 3837;

MySQL 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 'as award USING (award_id)
                        WHERE award_user.userid = 3837' at line 3
Error Number  : 1064
Request Date  : Monday, December 15th 2014 @ 09:21:41 PM
Error Date    : Monday, December 15th 2014 @ 09:21:42 PM
Script        : http://www.mysite.com/community/myadmincp/award_user.php?do=edit&u=3837
Referrer      : https://www.mysite.com/community/myadmincp/award_user.php?do=search
IP Address    : xxx.xxx.xxx.xxx
Username      : CAG CheechDogg
Classname    : vB_Database
MySQL Version : 5.5.40-36.1


CAG CheechDogg 12-16-2014 03:53 AM

Let me be a bit more clear on how I get this error:

I click on the menu link "Award User Manager"

Then I search for a player to manage their awards and BAM! I get that error every time ...

Everything else seems to work fine Squidsk ...THANK YOU !!!

CAG CheechDogg 12-16-2014 05:53 AM

WOAH! lol ...

After a little searching I figured out the problem to fix the error above:

In your "award_user.php" file inside upload/admincp find the following:


Code:

$awards = $db->query("
                        SELECT award.award_id, award.award_name, award.award_desc, award.award_icon_url, award.award_img_url, award_user.*
                        FROM " . TABLE_PREFIX . " award_user as award_user
                        LEFT JOIN " . TABLE_PREFIX . " award as award USING (award_id)
                        WHERE award_user.userid = " . $vbulletin->GPC['userid']
                );

Replace it with :

Code:

$awards = $db->query("
                        SELECT award.award_id, award.award_name, award.award_desc, award.award_icon_url, award.award_img_url, award_user.*
                        FROM " . TABLE_PREFIX . "award_user as award_user
                        LEFT JOIN " . TABLE_PREFIX . "award as award USING (award_id)
                        WHERE award_user.userid = " . $vbulletin->GPC['userid']
                );

The thing causing this error was the extra space between the (") and award as award USING (award_id) in the 3rd line (LEFT JOIN) which I highlighted in red above ....

maupassant 12-16-2014 06:13 AM

Thanks for the update. I'd like to know if the problems I mentionned a while back have been "fixed" in this version before I install it. Thank you.
https://vborg.vbsupport.ru/showpost....postcount=1650

CAG CheechDogg 12-16-2014 07:01 AM

Quote:

Originally Posted by maupassant (Post 2527387)
Thanks for the update. I'd like to know if the problems I mentionned a while back have been "fixed" in this version before I install it. Thank you.
https://vborg.vbsupport.ru/showpost....postcount=1650

From my forums yes those issues have been fixed ... You can take a look on my forums how it looks: https://www.cagclan.com/community/th...l=1#post215478

You can also choose how many medals per row show up on the postbit

alcazarx 12-16-2014 08:50 AM

@CAG CheechDogg: The same error in green is in the "award_user.php" file in the ModCP (extra space in query).

CAG CheechDogg 12-16-2014 08:57 AM

Quote:

Originally Posted by alcazarx (Post 2527395)
@CAG CheechDogg: The same error in green is in the "award_user.php" file in the ModCP (extra space in query).

Thanks for the heads up alcazarx!!!! I didn't even think about looking in ModCP...GOOD EYE !!!

Kesha 12-16-2014 03:50 PM

I can't download 4.0.9. This site keeps saying "Invalid attachment specified". Was this file uploaded and linked correctly?

squidsk 12-16-2014 03:52 PM

Try again, I was just re-uploading the new version with the above bug in award_users.php (both admincp and modcp) fixed and the md5 sums updated accordingly.


All times are GMT. The time now is 03:26 AM.

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.03546 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete