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)

wrestlingv123 03-05-2011 10:17 AM

I've uploaded all the files to my public_html and also the xml file to my ACP however, I cannot get the plugin to work and the awards.php page on my forum shows a broken link message. Its probably something my end but help would be great!

Mobo 03-08-2011 09:13 AM

I have a suggestion for an improvement to this mod. I think it would be very helpful if you could sort the list of members with an award by username or date on the "Give award to user" pages.

squidsk 03-08-2011 04:26 PM

1 Attachment(s)
I've found two minor display bugs in the most recent version of YAAS. I'm running YAAS 4.0.2.1 and VB 4.1.2. I also noticed this on the boards of another member who posted a problem here so I know it isn't just me (in fact the screenshots are from the other members boards).

If you look at the two screens I've labeled the problems 1 & 2. Problem 1 only appears when a members profile page first displays or if you refresh the page, as soon as you select any tab on the member page problem 1 disappears (due to the call to tabViewPicker(this)). Problem 2 is always there.

The fix for problem 1 a small change to the YAAS - Profile Tab plugin that runs on the member_complete hook as follows::
Code:

if ($selected_tab == 'myawards')
{
$template_hook['profile_tabs_last'] .= '<dd class="[S]selected[/S]userprof_module"><a id="myawards-tab" href="'.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">'.$vbphrase[awards].'</a></dd>';
}
else
{
$template_hook['profile_tabs_last'] .= '<dd class="userprof_moduleinactive"><a id="
myawards-tab" href="'.$vbulletin->input->fetch_relpath().'#myawards" onclick="return tabViewPicker(this);">'.$vbphrase[awards].'</a></dd>';
}

I have not yet been able to determine where the code that generates problem 2 comes from.

Both bugs are on the default skin with no alterations on my boards.

websimplicity 03-09-2011 01:59 AM

This is awesome! the only request I would have is whether it would be possible to manipulate a users user group based on awards received?

for example if member has achieved certain awards, and has x number of posts then their usergroup is automatically updated?

RobbieZ 03-09-2011 06:09 AM

Quote:

Originally Posted by squidsk (Post 2170986)
I've found two minor display bugs in the most recent version of YAAS. I'm running YAAS 4.0.2.1 and VB 4.1.2. I also noticed this on the boards of another member who posted a problem here so I know it isn't just me (in fact the screenshots are from the other members boards).


I have not yet been able to determine where the code that generates problem 2 comes from.

Both bugs are on the default skin with no alterations on my boards.

This is because the mod was written for a 4.0.2 board and barely anything above, vb changed the way the tabs are displayed and called and this is why the mod breaks as the original php was using 4.0.2 syntax.

Your 2nd problem will only be solved when the coder updates the mod for the latest version of vb.

squidsk 03-09-2011 04:31 PM

Quote:

Originally Posted by RobbieZ (Post 2171263)
This is because the mod was written for a 4.0.2 board and barely anything above, vb changed the way the tabs are displayed and called and this is why the mod breaks as the original php was using 4.0.2 syntax.

Your 2nd problem will only be solved when the coder updates the mod for the latest version of vb.

Here's a fix that fixes both issues:

1) Disable/delete the YAAS - Profile Tab Plugin that is attached to the member_complete hook (in other words my previous fix for problem 1 is not required anymore). If this isn't done you will get two Awards tabs on profile pages.

2) Make the following edits (all text in blue needs to be added) to the YAAS in Member Profile - Profile plugin that is attached to the member_build_blocks_start hook:

Code:

$blocklist['myawards'] = array(
    'class' => 'MyAwards',
    'title' => $vbphrase['awards'],
    'options' => array(
            'pagenumber' => $vbulletin->GPC['pagenumber']
    ),

    'hook_location' => 'profile_tabs_last',
    'wrap' => false
);


The_Rascal 03-09-2011 06:41 PM

I may have missed it, but is there a way to retrospectrively add awards to users?
e.g. post count awards, I have users that have posted 5000 times, but they haven't got the awards for the lower post counts...

Other than manually adding them to all the users, is there an automated way to add them?

Also, as a feature request - would it be possible to add awards per usergroup?

EDIT: -

I'm trying to edit the text of the PM that is sent out by YAAS... specifically to edit the [img] links
This is the PM I recieved earlier

http://i297.photobucket.com/albums/m...l/award_pm.png

I login into my ACP>Awards System>System settings
and click on the 'here' and 'here' links in the PM section

https://vborg.vbsupport.ru/external/2011/03/31.png

The first one (body) is trying to link to

https://vborg.vbsupport.ru/external/2011/03/32.png

whilst the second (subject) is linking to

https://vborg.vbsupport.ru/external/2011/03/33.png

clicking either gives me this error

https://vborg.vbsupport.ru/external/2011/03/34.png

Any ideas please?

TIA

Gamelobby 03-10-2011 02:54 AM

Quote:

Originally Posted by squidsk (Post 2170986)
I've found two minor display bugs in the most recent version of YAAS. I'm running YAAS 4.0.2.1 and VB 4.1.2. I also noticed this on the boards of another member who posted a problem here so I know it isn't just me (in fact the screenshots are from the other members boards).

If you look at the two screens I've labeled the problems 1 & 2. Problem 1 only appears when a members profile page first displays or if you refresh the page, as soon as you select any tab on the member page problem 1 disappears (due to the call to tabViewPicker(this)). Problem 2 is always there.

Quote:

Originally Posted by RobbieZ (Post 2171263)
This is because the mod was written for a 4.0.2 board and barely anything above, vb changed the way the tabs are displayed and called and this is why the mod breaks as the original php was using 4.0.2 syntax.

Your 2nd problem will only be solved when the coder updates the mod for the latest version of vb.

Same problem..
Also its screws up my footer start google ad. Same issue, will fix that too.?



Quote:

Originally Posted by squidsk (Post 2171469)
Here's a fix that fixes both issues:

1) Disable/delete the YAAS - Profile Tab Plugin that is attached to the member_complete hook (in other words my previous fix for problem 1 is not required anymore). If this isn't done you will get two Awards tabs on profile pages.

2) Make the following edits (all text in blue needs to be added) to the YAAS in Member Profile - Profile plugin that is attached to the member_build_blocks_start hook:

Code:

$blocklist['myawards'] = array(
    'class' => 'MyAwards',
    'title' => $vbphrase['awards'],
    'options' => array(
            'pagenumber' => $vbulletin->GPC['pagenumber']
    ),

    'hook_location' => 'profile_tabs_last',
    'wrap' => false
);


When this mod is updated to 4.1.x will this need to be "undone".?
Since it only affacts the profile, & not the actual awards page itself, should i just wait.?

squidsk 03-10-2011 04:47 AM

Quote:

Originally Posted by Gamelobby (Post 2171710)
Same problem..
Also its screws up my footer start google ad. Same issue, will fix that too.?

Don't know.



Quote:

Originally Posted by Gamelobby (Post 2171710)
When this mod is updated to 4.1.x will this need to be "undone".?
Since it only affacts the profile, & not the actual awards page itself, should i just wait.?

This shouldn't need to be changed unless how tabs are created is changed.

CharlieDelta 03-10-2011 08:07 PM

Quote:

Originally Posted by squidsk (Post 2171469)
Here's a fix that fixes both issues:

1) Disable/delete the YAAS - Profile Tab Plugin that is attached to the member_complete hook (in other words my previous fix for problem 1 is not required anymore). If this isn't done you will get two Awards tabs on profile pages.

2) Make the following edits (all text in blue needs to be added) to the YAAS in Member Profile - Profile plugin that is attached to the member_build_blocks_start hook:

Code:

$blocklist['myawards'] = array(
    'class' => 'MyAwards',
    'title' => $vbphrase['awards'],
    'options' => array(
            'pagenumber' => $vbulletin->GPC['pagenumber']
    ),

    'hook_location' => 'profile_tabs_last',
    'wrap' => false
);


Worked like a charm. Thank you. :up::D


All times are GMT. The time now is 04:37 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.02003 seconds
  • Memory Usage 1,768KB
  • 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
  • (8)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