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)

Bouncer222 05-21-2010 04:36 PM

CypherSTL or Xanlamin could you guys please answer this question I have....

This site is running 4.0.3 and I don't know if they are using YOUR awards system or some other one. http://www.feverclan.com/forums/awards.php

My question is, how did they get that type of layout on their awards page?
It got a REALLY NICE layout of names of who got which award and etc...

If it's not yours... could you make it possible to make yours look like that?
I would love it then!

Thanks.

Edit:

Can you also add the option to give awards based on how many people a user has referred to the site AND they signed up?

Xanlamin 05-21-2010 06:40 PM

If it is ours it is highly modified. And no we will not make ours look that way, personally I do not like it. You can get a hold of them and ask them if they would help you get the layout or do it yourself, but once you do your stuck with that version unless you keep doing it to each new one.

Bouncer222 05-21-2010 07:24 PM

alright,

btw what is
Quote:

Criteria
Only use numbers.
Use ID for Usergroups
?

Xanlamin 05-22-2010 02:07 AM

Don't use the names, use the ID numbers instead. Pretty self explanatory.

Bouncer222 05-22-2010 02:31 AM

I'm still confused, if I am doing it for post count... what do I enter for

Criteria
Only use numbers.
Use ID for Usergroups

Is this field used for EVERYTHING or only on specific automations?

I'm guessing it's used only when giving award for usergroup change? So should I only use that field for putting in the usergroup id of the usergroup that the member gets promoted to, so when he gets promoted to that usergroup he gets the medal? Is it only on that occasion?

Sorry but its confusing.

P.S. I have an inactivity mod on my forums , if people don't check site for 7 days, they get moved to "inactive" usergroup and once they load the site, they get moved back to their original one, so does that mean the award system will give it to them again? Because that wouldn't be good....

Xanlamin 05-22-2010 02:53 AM

Enter in the number of post for postcount that you want the person to reach in order to get the award.

Thats all that needs to be entered into that field.

No the automation will not give it to someone twice, it first checks to see if they have it, if they dont then they get it, if they do then nothing.

Bouncer222 05-22-2010 04:41 AM

And if you give out medals manually it will also check if they already have it?

Thanks.

EDIT: The automation is working and I appear under the user list for each medal after promoting myself, but the PMS aren't being sent to the user.

Xanlamin 05-22-2010 06:57 AM

There are no PM's sent to the users from the automation system, only if you do the awards manually and select send pm to user.

Bouncer222 05-22-2010 12:03 PM

Could you possibly add the feature to send pm with automation please?
Otherwise users don't know they got an award.

Sarteck 05-22-2010 04:47 PM

Hey bouncer, if you wanna try your hand at adding it yourself, I often put that into my own mods (unreleased in their entirety since I'm too lazy to make it portable with other vB forums, kekeke).

Here's the code I use:
PHP Code:

    require_once(DIR '/includes/class_dm.php');
    
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
    
$pmdm->set_info('savecopy'false);
    
$pmdm->set_info('receipt'false);
    
$pmdm->set_info('cantrackpm'false);
    
$pmdm->set_info('parentpmid'false);
    
$pmdm->set_info('forward'false);
    
$pmdm->set_info('bccrecipients'0);
    
$pmdm->overridequota true;
    
$pmdm->set('fromuserid'$someuserid);
    
$pmdm->set('fromusername'$someusername);
    
$pmdm->set('title'$title);
    
$pmdm->set_recipients($recipients$permissions'cc');
    
$pmdm->setr('message'$message);
    
$pmdm->setr('iconid'$icon);
    
$pmdm->set('dateline'TIMENOW);
    
$pmdm->set('showsignature'false);
    
$pmdm->set('allowsmilie'0);
    
$pmid $pmdm->save(); 

The "savecopy" and "receipt" and all that, of course, you can modify to "true" if you need to.
The "overridequota" is great because even if they have a full inbox, they'll still get the PM. :3
Setting stuff like fromuserid should be a no-brainer.
$recipients is... hrm, I think it was a semi-colon-separated list of usernames. But if you're only PMing one person, of course there would be only one name. X3

In Xan and Cyph have included a nearby hook in their script, you can just use that info in a plugin somewhere. If not, I guess you could manually edit your awards.php file. Either way, just change stuff to your liking and make sure you goot values for every variable mentioned there except for $vbulletin, $permissions, $pmdm, and $pmid. Also, if you use this inside of a function, be sure to put a global declaration for $vbulletin and $permissions. :3


All times are GMT. The time now is 02:29 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.02280 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
  • (1)bbcode_php_printable
  • (1)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