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 10-21-2013 09:51 PM

Quote:

Originally Posted by FF|Skyrider (Post 2454809)
Thanks for the reply, I shall refrain from using apostrophe. Though I do wish to report another bug / issue or miscalculation.

I've set a new automation on usergroup 6 (administrators). In total, 14 users are gaining the rewards, while there are only 6 people in the administration group. Te other 8 are moderators, super moderators and other custom groups members.

So why have they been given the award while they are not within Usergroup ID 6? They are not even in GroupID 6 as Additional users.

Looking at the code it appears that it will give the award to, in your case, anyone who's a member of a group with a 6 in its id (i.e. 6, 16, 26, etc).

The solution is to change line 62 of includes/cron/award_automation.php as follows:

From:
Code:

                OR membergroupids LIKE '%".$usergroupAwardsArray[auto_criteria]."%'
To:
Code:

                OR " . $usergroupAwardsArray[auto_criteria] . " IN (membergroupids)
Note: I haven't tried this out but it should work.

Skyrider 10-22-2013 01:42 AM

Quote:

Originally Posted by squidsk (Post 2455173)
Looking at the code it appears that it will give the award to, in your case, anyone who's a member of a group with a 6 in its id (i.e. 6, 16, 26, etc).

The solution is to change line 62 of includes/cron/award_automation.php as follows:

From:
Code:

                OR membergroupids LIKE '%".$usergroupAwardsArray[auto_criteria]."%'
To:
Code:

                OR " . $usergroupAwardsArray[auto_criteria] . " IN (membergroupids)
Note: I haven't tried this out but it should work.

Lovely, that did the trick.. Thanks! I'd assume you would alter the code in the main file(s) in your first post as well? So other users won't be having the same issue.

migratoria 10-22-2013 07:38 AM

It's possible to convert data of "Yet Another Ranks System" with this mod?

squidsk 10-22-2013 03:24 PM

Quote:

Originally Posted by FF|Skyrider (Post 2455210)
Lovely, that did the trick.. Thanks! I'd assume you would alter the code in the main file(s) in your first post as well? So other users won't be having the same issue.

Eventually, I will release an update I have for that mod in due course, but it will require some changes to YaAS that I haven't yet managed to do.

Quote:

Originally Posted by migratoria (Post 2455271)
It's possible to convert data of "Yet Another Ranks System" with this mod?

I'm not sure what you're asking? Are you asking can convert from YaRS to YaAS or something else?

Dogma21cw 10-22-2013 05:53 PM

Quote:

Originally Posted by squidsk (Post 2454787)
As per above I'm looking into dealing with deleted/merged user accounts, the template name is a vbulletin setting I just can't remember which one, turn it off and the template name will stop being displayed for all templates.

Understood, but any reason why it would start happening out of the blue? Seriously confusing that one day no issue. The next, bam! I doubt it is the plugin, because it worked fine & wasn't touched between problems.

Just a general question.

-D

squidsk 10-23-2013 06:07 PM

Quote:

Originally Posted by Dogma21cw (Post 2455375)
Understood, but any reason why it would start happening out of the blue? Seriously confusing that one day no issue. The next, bam! I doubt it is the plugin, because it worked fine & wasn't touched between problems.

Just a general question.

-D

No idea, it isn't something YaAS would have caused since it doesn't touch the settings table at all.

migratoria 10-28-2013 05:08 PM

Quote:

Originally Posted by squidsk (Post 2455337)
Eventually, I will release an update I have for that mod in due course, but it will require some changes to YaAS that I haven't yet managed to do.



I'm not sure what you're asking? Are you asking can convert from YaRS to YaAS or something else?

Yes. I am currently in my forum 'using the mod "Yet Another Ranks System" and I would like to convert it with this. It's possible?

squidsk 10-28-2013 05:29 PM

Quote:

Originally Posted by migratoria (Post 2456854)
Yes. I am currently in my forum 'using the mod "Yet Another Ranks System" and I would like to convert it with this. It's possible?

Anything is possible. Easy not really, you'd need to transfer the data from the YaRS tables to the YaAS tables or drop the YaAS tables and rename the YaRS ones.

As the mods are essentially the same why are you interested in changing between them.

Mikhael_ 11-06-2013 05:45 AM

Hi to all
I just install this mod on a forum test so that i can see all the potentiality :)

My dubs is regarding the automations because i see that the criteria are only 3. I tried even another plug-in that permit a series of criterias (es. post >= 1000 post <= 5000 day since last post <= 60) or other criteria as thread, reclutament ecc.

Can i do the same things with this plug-in? I prefer your plug-in because is very light.
Thanks in advance! ;)

squidsk 11-07-2013 06:05 PM

Quote:

Originally Posted by Mikhael_ (Post 2458614)
Hi to all
I just install this mod on a forum test so that i can see all the potentiality :)

My dubs is regarding the automations because i see that the criteria are only 3. I tried even another plug-in that permit a series of criterias (es. post >= 1000 post <= 5000 day since last post <= 60) or other criteria as thread, reclutament ecc.

Can i do the same things with this plug-in? I prefer your plug-in because is very light.
Thanks in advance! ;)

Yes, by creating multiple award automations for the same criteria. For example if you create two number of post automated awards with criteria of 1000 and 5000 then when a users hits 1000 posts they will get the first one and when they hit 5000 posts they will have the first one removed and the second one granted.

As for the extra criteria, currently there are only the three (posts, usergroup membership, membership time) but I have plans to add more criteria.


All times are GMT. The time now is 09:16 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.02948 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_code_printable
  • (9)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