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)

Monstercat 01-09-2013 02:51 PM

Hey Squidsk,

How does the automation work? I have some setup but it seems like there is a delay?

Regards

squidsk 01-09-2013 03:16 PM

Quote:

Originally Posted by Monstercat (Post 2395768)
Hey Squidsk,

How does the automation work? I have some setup but it seems like there is a delay?

Regards

Its a cron job which is set to run once every hour, so after a user meets the requirement it might take up to an hour for the award to be granted.

squidsk 01-09-2013 03:23 PM

Quote:

Originally Posted by Amaury25 (Post 2395203)
When I went to give an award to someone a while ago, it said no matches were found for that query. I went with their user ID instead, and nothing related to the medals was showing except for the Admin CP stuff, but it worked.

However, now the listing is out of order. Cloud should be below TK:

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/Medals_zps3504da00-1_zpsff05c758.jpg[/IMG]

EDIT: Actually, looking at the screenshot, I am now just noticing that Gottlichkeit is out of order as well.

EDIT II: I'm noticing it elsewhere as well.

[IMG]http://i101.photobucket.com/albums/m62/AmauryGarcia/Medals2_zps89621236-1_zps1f3de794.jpg[/IMG]

Its how it was coded since the query to get the users who currently have the award is not ordered, any perceived ordering of results from a query without an ORDER BY is purely arbitrary.

Amaury 01-09-2013 03:56 PM

Quote:

Originally Posted by squidsk (Post 2395774)
Its how it was coded since the query to get the users who currently have the award is not ordered, any perceived ordering of results from a query without an ORDER BY is purely arbitrary.

By arbitrary, do you mean that most of them being in date and time order is a coincidence? How about the no matches error, though, and the partially blank page when using the ID?

Anyway, is it possible to make this go by date and time order?

squidsk 01-09-2013 04:13 PM

Quote:

Originally Posted by Amaury25 (Post 2395780)
By arbitrary, do you mean that most of them being in date and time order is a coincidence? How about the no matches error, though, and the partially blank page when using the ID?

Anyway, is it possible to make this go by date and time order?

Yes. As for the no matches its likely the user just has some characters that aren't being displayed on screen in their username.

If you wanted it by date order you'd need to add ORDER BY <datefield> to the query.

Monstercat 01-09-2013 04:56 PM

Quote:

Originally Posted by squidsk (Post 2395771)
Its a cron job which is set to run once every hour, so after a user meets the requirement it might take up to an hour for the award to be granted.

Mhrm not seeing our current being sent out to the usergroups. Is there any way I can make this instant? It's very important to the launch of the project.

Thanks!

squidsk 01-09-2013 05:30 PM

Quote:

Originally Posted by Monstercat (Post 2395792)
Mhrm not seeing our current being sent out to the usergroups. Is there any way I can make this instant? It's very important to the launch of the project.

Thanks!

In your scheduled tasks change the details of the awards task as needed. The more often you run a cron job the greater the resources used by the forum.

Gamelobby 01-10-2013 04:16 AM

So why is it handing out awards every hour for post count.?
Isn't it going to check if they have the award.?

People will have hundreds of the same award by the end of the week. lol

Amaury 01-10-2013 04:24 AM

Quote:

Originally Posted by squidsk (Post 2395784)
Yes. As for the no matches its likely the user just has some characters that aren't being displayed on screen in their username.

If you wanted it by date order you'd need to add ORDER BY <datefield> to the query.

Is that something simple or does it require server work?

Our owner is the server expert, so that's why I'm asking. I just know how to take backups, LOL!

squidsk 01-10-2013 04:41 AM

Quote:

Originally Posted by Gamelobby (Post 2395911)
So why is it handing out awards every hour for post count.?
Isn't it going to check if they have the award.?

People will have hundreds of the same award by the end of the week. lol

It shouldn't be, it checks every hour for those who meet the criteria (i.e. have the requisite number of posts) but do not have the award and then grants it.

Quote:

Originally Posted by Amaury25 (Post 2395912)
Is that something simple or does it require server work?

Our owner is the server expert, so that's why I'm asking. I just know how to take backups, LOL!

It requires changing one of the file uploaded to the server, it shouldn't actually be too complicated if someone knows what they're doing.


All times are GMT. The time now is 01:53 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.02226 seconds
  • Memory Usage 1,746KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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