vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=187600)

Mecho 02-05-2009 08:56 AM

Thanks alot for this update . i have missed it .

no more template edit in this version which is GREAT :)

74corvette 02-11-2009 04:43 PM

First of all thanks to the coder for this mod, my members dig it. I do have a question, I'm using the 4.0 version and I noticed that when I go a member profile and look on the awards tab I have 3 columns. Icon, Image and Description but they are not spaced the way I would like or its not displaying correctly. It appears that the description is in the image column somehow. You can see it here http://www.buellforums.com/forum/member.php?u=1938

Really, I would like to just have the Icon and the description with why the member received the award.

Any suggestions ?

74corvette 02-11-2009 10:09 PM

I think I got it. I just removed :

<td class="thead" width="100%">$vbphrase[award_description]</td>

form the memberinfo_block_myawards template. It looks 100% better.

almqdad 02-15-2009 04:23 PM

hello

I am using Yet Another Award System 3.6 2.1.4 I want to upgrade to this version please tell me what to do

thanks in advance

Gamelobby 02-16-2009 06:25 PM

Why does my board say i am using version 4.0.1
Yet the zip here is - YaAS 3.7.4.zip

almqdad 02-19-2009 04:44 PM

This hack is very nice

is there away to restrict awarding awards by admin 7 supermoderator

may be group based or id based

thanks

Gandalf-LoJ 02-20-2009 06:06 AM

Quote:

Originally Posted by almqdad (Post 1749174)
This hack is very nice

is there away to restrict awarding awards by admin 7 supermoderator

may be group based or id based

thanks

I wanted to do something similar so came up with this method that works great. Allow access to moderators in the options (Turn on YAAS in ModCP)

Now create a new User Profile Field as follows;

Type: Single-Selection Radio Buttons
Name: Award System Manager
Options:
No
Yes

Set Default: Yes
Field Editable by User: No
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No

Now go into the Plugin Manager and Edit Plugin YAAS - Give Award to User Nav
Find
PHP Code:

if ($vbulletin->options['aw_modcp']) 

replace with (or comment out and add below)
PHP Code:

if ($vbulletin->userinfo['fieldXX'] == 'Yes'

Where fieldXX is the User Profile Field ID of the field you've just created.

My entire block for that now looks like (note I commented out the first line)
PHP Code:

// *************************************************
    
$cangiveaward false;

//    if ($vbulletin->options['aw_modcp'])
    
if ($vbulletin->userinfo['field12'] == 'Yes')
    {
        
$cangiveaward true;
        
construct_nav_option($vbphrase['give_user_award'], 'award.php?do=manage');
    }
    if (
$cangiveaward)
    {
        
construct_nav_group($vbphrase['award_system']);
        
construct_nav_spacer();
    } 

Finally, pick the users that you want to give access to and go into their profile in the AdminCP and select Yes in the Award System Manager profile field.

The user WILL need to already have access to the ModCP for this to work but as you're looking at Super Mods then I assume this is already the case.

I've done this on our forum as we did not want all moderators to be able to give awards, just our 'section heads'

On another note, I've also got the award system plugged into the permissions now and when an award is given to a user a scheduled task runs and checks for new awards and assigns them to a usergroup based on the award. There is also a script that checks for removed awards and will remove the relevant usergroup too.

JohnChapman 02-22-2009 12:21 PM

Nice Mod!

I made a couple extra medals using PowerPoint shapes...not very sophisticated, but then neither are my graphics abilities. Attached is the 2 medals I made along with the power point file that has the shape templates in it.

https://vborg.vbsupport.ru/external/2009/02/6.gif
https://vborg.vbsupport.ru/external/2009/02/7.gif

https://vborg.vbsupport.ru/external/2009/02/8.gif
https://vborg.vbsupport.ru/external/2009/02/9.gif

almqdad 02-22-2009 12:35 PM

Quote:

Originally Posted by Gandalf-LoJ (Post 1749688)
I wanted to do something similar so came up with this method that works great. Allow access to moderators in the options (Turn on YAAS in ModCP)

Now create a new User Profile Field as follows;

Type: Single-Selection Radio Buttons
Name: Award System Manager
Options:
No
Yes

Set Default: Yes
Field Editable by User: No
Private Field: Yes
Field Searchable on Members List: No
Show on Members List: No

Now go into the Plugin Manager and Edit Plugin YAAS - Give Award to User Nav
Find
PHP Code:

if ($vbulletin->options['aw_modcp']) 

replace with (or comment out and add below)
PHP Code:

if ($vbulletin->userinfo['fieldXX'] == 'Yes'

Where fieldXX is the User Profile Field ID of the field you've just created.

My entire block for that now looks like (note I commented out the first line)
PHP Code:

// *************************************************
    
$cangiveaward false;

//    if ($vbulletin->options['aw_modcp'])
    
if ($vbulletin->userinfo['field12'] == 'Yes')
    {
        
$cangiveaward true;
        
construct_nav_option($vbphrase['give_user_award'], 'award.php?do=manage');
    }
    if (
$cangiveaward)
    {
        
construct_nav_group($vbphrase['award_system']);
        
construct_nav_spacer();
    } 

Finally, pick the users that you want to give access to and go into their profile in the AdminCP and select Yes in the Award System Manager profile field.

The user WILL need to already have access to the ModCP for this to work but as you're looking at Super Mods then I assume this is already the case.

I've done this on our forum as we did not want all moderators to be able to give awards, just our 'section heads'

On another note, I've also got the award system plugged into the permissions now and when an award is given to a user a scheduled task runs and checks for new awards and assigns them to a usergroup based on the award. There is also a script that checks for removed awards and will remove the relevant usergroup too.


Thank you Gandalf-LoJ

but I will not be able to do this

I wish the author comeup with some thing easier

Charles_1 02-22-2009 02:20 PM

I am using this mod (right now in actual version 3.7.4) since version for vBulletin 3.5.x, but becouse of recently server load problems I noticed, that when I enable showing of awards for postbit_legacy it adds 12 queries when generating showthread (vB 3.8.1). Is it normal? Becouse I am using this mod since older version for vBulletin 3.5.x, I tried uninstall it on separate copy of forum for testing purposes (vB 3.8.0) and when I install this mod again (version 3.7.4) as fresh install, it adds 15 queries to showthread - that is too many from my point of view.

How many queries it should add to showthread with enabled viewing of awards in postbit? What are your observations?


All times are GMT. The time now is 08: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.01947 seconds
  • Memory Usage 1,773KB
  • 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
  • (6)bbcode_php_printable
  • (2)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
  • (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