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)

squidsk 02-13-2014 04:19 PM

Quote:

Originally Posted by Square Nexus (Post 2480741)
I keep getting this error when i did everything exactly like it said in the installation guide, which causes all the admin cp stuff for the mod to get 404 errors. Is there any kind of fix for this?

Re-download with the new version and try again. That error should be fixed in 4.0.7.

squidsk 02-13-2014 04:45 PM

Released YaAS Version 4.0.7 - Bug Fix Update
  • Fixed - specifying PM userid not working
  • Fixed - relative URL of award images not being changed to absolute URL in PM/email body text
  • Fixed - awards tab not showing user css customization
  • Fixed - templates not being cached for usernote.php
  • Fixed - template html comment being displayed on awards.php when template comments are turned on
  • Added - logging to log for awarding/removing awards (admincp & modcp)
  • Updated - Version in version phrase

[hr]5[/hr]

Released (Optional Addon) YaAS Automation R4 - Bug Fix Update
  • Fixed - Deleted all instance of the award being automated instead of the selected one
  • Fixed - Deprecation warning in admincp/award_automation.php
  • Updated - Version in version phrase

Square Nexus 02-13-2014 05:39 PM

the error didnt show up when i installed the xml this time, but now the only thing that i can go into is award system settings, if i go into any other setting for the mod it comes up with this:

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.

squidsk 02-13-2014 05:53 PM

Quote:

Originally Posted by Square Nexus (Post 2480907)
the error didnt show up when i installed the xml this time, but now the only thing that i can go into is award system settings, if i go into any other setting for the mod it comes up with this:

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.

You likely done one of three things either didn't upload the contents of the upload folder or didn't upload the contents to the correct location (i.e. your forum root) or you've renamed your admincp/modcp and didn't put the files in the renamed folder.

Square Nexus 02-13-2014 06:11 PM

well what i did was go into the upload folder, selected everything inside and uploaded it to /public_html/forum which is my forum root. I have a admincp folder and a modcp folders in the forum root, i never renamed them either

Square Nexus 02-13-2014 06:38 PM

<a href="http://img.photobucket.com/albums/v96/Hiei2003/forumfiles2.jpg" target="_blank">this</a> is what my file setup looks like

squidsk 02-13-2014 07:08 PM

Does the page www.yoursite.com/forum/awards.php exist? Can you post or PM a link to your site so I can take a look?

Square Nexus 02-13-2014 07:16 PM

yeah sure the link to my site is here
when i went to www.gundamlegends.com/forum/awards.php it shows up but i still get the error in the admin cp

squidsk 02-13-2014 07:31 PM

Quote:

Originally Posted by Square Nexus (Post 2480939)
yeah sure the link to my site is here
when i went to www.gundamlegends.com/forum/awards.php it shows up but i still get the error in the admin cp

You, or someone else, has renamed your admincp and modcp folders. To find out what they were renamed to look at the title bar in your browser when you're in admincp or look in includes/config.php. You'll need to copy the files from forum/admincp to the actual admincp folder and the same with the files in modcp.

I know this is the problem because if I go to: www.gundamlegends.com/forum/admincp/award.php the file for the YaAS is there, but it can't find the other admincp files that it requires that would be there if you had not renamed the admincp folder.

Square Nexus 02-13-2014 07:42 PM

omg there its fixed, you were right the admincp and modcp folders were changed, so they are now in the right folders and everything works! thanks a lot for the help =)

squidsk 02-13-2014 07:52 PM

Quote:

Originally Posted by Square Nexus (Post 2480946)
omg there its fixed, you were right the admincp and modcp folders were changed, so they are now in the right folders and everything works! thanks a lot for the help =)

Don't forget to delete forum/admincp and forum/modcp, since they should only have YaAS files that were in the wrong location, as they are still there.

CAG CheechDogg 02-14-2014 08:48 AM

After the update, the "my awards" tab is no longer showing in any members profile ...any clue why squidsk?

CharlieDelta 02-14-2014 02:13 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2481054)
After the update, the "my awards" tab is no longer showing in any members profile ...any clue why squidsk?

I noticed this as well. I changed the display order and it is now showing.

squidsk 02-14-2014 05:01 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2481054)
After the update, the "my awards" tab is no longer showing in any members profile ...any clue why squidsk?

A minor bug in the upgrade code. A query is failing, but wasn't actually generating an error, which is why I didn't catch it.

Quote:

Originally Posted by CharlieDelta (Post 2481110)
I noticed this as well. I changed the display order and it is now showing.

This unfortunately is the only way to fix this in 4.0.7.

Crotan 02-14-2014 06:54 PM

Quote:

Originally Posted by squidsk (Post 2481164)
A minor bug in the upgrade code. A query is failing, but wasn't actually generating an error, which is why I didn't catch it.



This unfortunately is the only way to fix this in 4.0.7.

Will you be re-releasing it to fix this minor bug, or do we just have to remember to change the profile display order?

CoZmicShReddeR 02-14-2014 07:05 PM

Could you please add support for the colored names??

squidsk 02-14-2014 08:07 PM

Quote:

Originally Posted by Crotan (Post 2481180)
Will you be re-releasing it to fix this minor bug, or do we just have to remember to change the profile display order?

I will be releasing a new version with a fix for the bug, but once you've gone into settings and changed the tab location (or just saved the settings should work) you won't have any problems.

Quote:

Originally Posted by CoZmicShReddeR (Post 2481183)
Could you please add support for the colored names??

I'm not sure I understand what support for coloured names you're referring to.

CoZmicShReddeR 02-15-2014 10:42 AM

What I am referring to isUsername Html MarkUp it's a built in function of vbulletin.

The mod below just fixes it with other addons
https://vborg.vbsupport.ru/showthread.php?t=290368

Its like where you can add stuff to user groups names like a hex color.

Elite_360_ 02-15-2014 04:06 PM

to markup the username i can tell you what to do if you do add it to your mod i will figure out the edits for the mod too since i love this mod

Elite_360_ 02-15-2014 04:55 PM

Just wrote the code. squidsk let me know if you want to add it and i will give you the code

CAG CheechDogg 02-16-2014 01:12 AM

Quote:

Originally Posted by Elite_360_ (Post 2481376)
Just wrote the code. squidsk let me know if you want to add it and i will give you the code


Can you post the code here so people can just add it themselves?

Elite_360_ 02-16-2014 04:20 AM

Edit the awards.php file

find this

PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

replace with this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

---------------------------------------------------------

find this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

replace with this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 



find both of these


PHP Code:


$templater 
vB_Template::create('awards_awardusers_bit');

$newTemplate vB_Template::create('awards_awardusers_bit'); 


add this right above both of those

PHP Code:


                                fetch_musername
($awardusers); 



go edit the awards_awardusers_bit template and change {vb:raw awardusers.username} to this


HTML Code:


{vb:raw awardusers.musername}


Square Nexus 02-16-2014 05:51 AM

I tried searching through all the posts but i cant figure out how to do this:

An example thread is here

What i want to do is have the gray box around the awards template 1 like all the other user info like join date and such instead of the clear background that it has now, but i cant figure out how or where to go to add the grey box background.

CAG CheechDogg 02-16-2014 06:15 AM

Quote:

Originally Posted by Elite_360_ (Post 2481471)
Edit the awards.php file

Thanks a lot Elite, this actually works to help figure out and point out who is no longer a member of our clan to remove their awards, pretty awesome man thanks!

CoZmicShReddeR 02-16-2014 07:03 PM

Quote:

Originally Posted by Elite_360_ (Post 2481471)
Edit the awards.php file

Thanks Elite_360

Made the edits works wonderfully and still thanks to squidsk for continuing this modification!

CAG CheechDogg 02-16-2014 11:31 PM

Quote:

Originally Posted by CoZmicShReddeR (Post 2481577)
Thanks Elite_360

Made the edits works wonderfully and still thanks to squidsk for continuing this modification!

Yes CoZ...this really adds some flavor to this already great mod ! Thank you both Squid and Elite for everything!

squidsk 02-17-2014 05:52 AM

Quote:

Originally Posted by Elite_360_ (Post 2481471)
Edit the awards.php file

find this

PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

replace with this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

---------------------------------------------------------

find this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 

replace with this
PHP Code:


            $allawardusers 
=  $db->query_read("
            SELECT u.userid, u.username, au.award_id, IF(u.displaygroupid = 0, u.usergroupid, u.displaygroupid) AS displaygroupid
            FROM " 
TABLE_PREFIX "award_user AS au
            LEFT JOIN " 
TABLE_PREFIX "user AS u ON (u.userid = au.userid)
            WHERE au.award_id = " 
$vbulletin->GPC['award_id'] . "
            GROUP BY u.userid, u.username, au.award_id
            ORDER BY u.userid
            "
); 



find both of these


PHP Code:


$templater 
vB_Template::create('awards_awardusers_bit');

$newTemplate vB_Template::create('awards_awardusers_bit'); 


add this right above both of those

PHP Code:


                                fetch_musername
($awardusers); 



go edit the awards_awardusers_bit template and change {vb:raw awardusers.username} to this


HTML Code:


{vb:raw awardusers.musername}


Added it into the new release.

Pocket Aces 02-17-2014 06:12 AM

Quote:

Originally Posted by squidsk (Post 2461831)
Quote:

Originally Posted by Pocket Aces (Post 2461670)
Quote:

Originally Posted by squidsk (Post 2459156)
Quote:

Originally Posted by Pocket Aces (Post 2459045)
username/userid override for congratulatory pm doesn't seem to work

Its a known issue that has been been fixed for the next release.

Is yesterday's release the 'next release' mentioned here? Is this fixed already in the current version posted here?

No, there are two products listed on this page (YaAS and YaAS automation) this update is for the second, and doesn't fix any outstanding issues with the first, base, YaAS product, which is still at version 4.0.6.

I will in due course separate the two products but part of that process for me means making sure that the YaAS automation product could be properly uninstalled as the larger changes I'm working on for YaAS automation are not compatible with this version so being able to properly uninstall it will be required for the major upgrade.

There are already two major 'next release's. I assume username/userid override for congratulatory pm already fixed? :)

CAG CheechDogg 02-17-2014 07:16 AM

Quote:

Originally Posted by squidsk (Post 2481749)
Added it into the new release.


Good stuff squidsk...thanks for such a great mod my Man!

One quick question ! lol...would it be possible to add a feature, a one click feature to completely remove all the awards from a user with one click? Or list all the awards for one user and check a box for each award we want to remove in clusters?

Thanks in advance!

squidsk 02-17-2014 01:52 PM

Quote:

Originally Posted by Pocket Aces (Post 2481751)
There are already two major 'next release's. I assume username/userid override for congratulatory pm already fixed? :)

Yes, it was fixed in 4.0.7.

squidsk 02-17-2014 01:53 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2481752)
Good stuff squidsk...thanks for such a great mod my Man!

One quick question ! lol...would it be possible to add a feature, a one click feature to completely remove all the awards from a user with one click? Or list all the awards for one user and check a box for each award we want to remove in clusters?

Thanks in advance!

I'll take a look into adding it into a future release.

CAG CheechDogg 02-18-2014 05:50 AM

Quote:

Originally Posted by squidsk (Post 2481836)
I'll take a look into adding it into a future release.

Muchas Gracias squidsk!

Skyrider 02-22-2014 07:52 AM

Quote:

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT a.*, au.*
FROM award a, award_user au
WHERE (au.userid = 40476) AND (a.award_id=au.award_id) AND (a.award_active=1)
ORDER BY issue_time desc;

MySQL Error : MySQL server has gone away
Getting this often lately. Any idea what might be the cause? I know the "SQL gone away" is an obvious hint. But whenever I receive a SQL error in my e-mail, 80% of them is regarding the Yet Another Awards System.

afmarko99 02-22-2014 05:58 PM

Guys, is this mod compatible with 4.2.2?

CoZmicShReddeR 02-22-2014 07:35 PM

Quote:

Originally Posted by afmarko99 (Post 2483101)
Guys, is this mod compatible with 4.2.2?

Yes!

afmarko99 02-22-2014 08:21 PM

Thanks man

Mobo 04-06-2014 03:40 AM

1 Attachment(s)
I recently disabled and re-enabled this mod to track down some php display error messages. When I re-enabled it, the awards.php page is no longer displaying the names of the users that have each award (see attached screen shot).

Any thoughts on what might be causing that or how to fix it? From the Admin CP, each award still shows the users that have it.

squidsk 04-12-2014 06:18 PM

I'd check to make sure you have the correct version of the files installed. If you were using 4.0.7 version of awards.php you'd see that kind of behaviour.

Mobo 04-13-2014 01:23 PM

Thanks squidsk, that was it! Not sure how I only got a partial upload on that last update though.

snipes01 04-18-2014 12:45 AM

Quote:

Originally Posted by Skyrider (Post 2482985)
Getting this often lately. Any idea what might be the cause? I know the "SQL gone away" is an obvious hint. But whenever I receive a SQL error in my e-mail, 80% of them is regarding the Yet Another Awards System.

I am also getting a database error with the latest version. I have disabled the plugin for now. I am only getting this error if I click on a users name to view their profile.

Anyway to fix this?


All times are GMT. The time now is 06:06 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.03136 seconds
  • Memory Usage 1,893KB
  • 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
  • (2)bbcode_html_printable
  • (12)bbcode_php_printable
  • (26)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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