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)

bremereric 02-12-2012 03:32 AM

I had DTO install the Garage Plus software on my forum. It did wipe the Awards Menu out of the Admincp and the Awards screen that you could get to by clicking the Awards tab at the top of the Forum. I un-installed it and then went into myphpamin and dropped the tables because they remained. I would like to re-install it but I am afraid it would mess up my garage software. Any ideas.

Emeralda 02-12-2012 02:24 PM

The links here: http://prntscr.com/62pvp lead me to http://prntscr.com/62pwg

Nirjonadda 02-15-2012 04:51 PM

Thanks for the vb4 release...working with 4.1.10

Seahunter 02-22-2012 01:47 PM

Vbulletin 4.1.10 and newest version of YaaS awards and Automation.

I've seen the question asked a few times and it seems like several members have this difficulty but I couldn't find an answer to the problem yet.

No PM or Email is sent out when an award is given and if you attempt to edit the PM or Email content in the AdminCP you get the error "No Phrases Matched Your Query". If you hover over the links in the AdminCP it looks like the phrase is "award_pm" but I can't locate that phrase in the phrase manager. Am I doing something incorrectly? Fantastic MOD,Thank you for any assistance.

visageiii 03-02-2012 12:04 AM

I get this error when requesting an award...
Quote:

There's some error when sending your award request. Please contact site's administrator for assistant.
and I get this when granting the aware
Quote:

Warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in [path]/admincp/award.php on line 595

Scyther 03-02-2012 01:38 AM

installed on vb 4.1.9, but don't see the Award system on left panel in admin cp.
also there are no awards under Award tab on Navbar!!

What am i missing?

Scyther 03-03-2012 02:07 PM

is there no support for this Mod?
Coder is not replying!!
anyone else can help me?

mIQe 03-03-2012 09:56 PM

Don't hold your breath. I've have asked simple questions on how to use this mod as well as support questions. No answer and it's been many weeks now.

Scyther 03-04-2012 01:24 AM

i see. no one cares i guess

Mobo 03-04-2012 06:51 AM

This is virtually the same mod, but has a little better support. You might try running that one in stead.

If I did not already have some many awards issued under this mod, I'd make the switch to that one.

squidsk 03-06-2012 02:36 AM

Quote:

Originally Posted by Scyther (Post 2305222)
installed on vb 4.1.9, but don't see the Award system on left panel in admin cp.
also there are no awards under Award tab on Navbar!!

What am i missing?

Have you enabled it in the YAAS settings?

BWG22 03-06-2012 07:31 AM

So any reason after I upgraded to 4.1.10, I get this on the Awards.php?

Quote:

Fatal error: Cannot redeclare construct_depth_mark() in /home/orlando/public_html/forums/includes/adminfunctions.php on line 1908

Scyther 03-08-2012 04:14 AM

Quote:

Originally Posted by squidsk (Post 2306649)
Have you enabled it in the YAAS settings?


if you are talking about the Award system settings under settings>options...YES, its enabled.

Still there is no Award menu at the left!!

cen1 03-09-2012 04:36 PM

Cypher please check your bug reports mail and add all the reported bugs to redmine. We did a few tests on latest vb4 and there are just a couple of things that need to be fixed, one is the error upon installation that was already reported here and solution is already known too.
The other error is display in user profile which is a little messed up.

We have updated our forum from vb3 to vb4 5 months ago and we're still waiting for a working latest vb4 version so we can port the old database and include the system to our forum.

I hope it's done soon..if not we'll lose 1 year of awards :S

squidsk 03-09-2012 08:02 PM

Quote:

Originally Posted by cen1 (Post 2307951)
Cypher please check your bug reports mail and add all the reported bugs to redmine. We did a few tests on latest vb4 and there are just a couple of things that need to be fixed, one is the error upon installation that was already reported here and solution is already known too.
The other error is display in user profile which is a little messed up.

We have updated our forum from vb3 to vb4 5 months ago and we're still waiting for a working latest vb4 version so we can port the old database and include the system to our forum.

I hope it's done soon..if not we'll lose 1 year of awards :S

To fix the display problem on the user profiles you need to do the following:
Quote:

Originally Posted by sadiq6210 (Post 2189701)
UPDATE FOR: 4.0.8 - 4.1.3
(TAKE BACKUP BEFORE ANY REPLACE)


1- Find the template (memberinfo_block_myawards) and replace it all
PHP Code:

<div id="view-myawards" class="<vb:if condition="$selected_tab == 'myawards'">selected_view_section<vb:else />view_section</vb:if>">

<
div class="blocksubhead subsectionhead userprof_headers userprof_headers_border">
{
vb:rawphrase award_showcase} - {vb:raw $block_data[num]} {vb:rawphrase awards} <vb:if condition="$vboptions[aw_points]"> - {vb:raw $block_data[total_points]} {vb:rawphrase points}</vb:if>
</
div>

<
div class="blockbody">
<
table width="100%">
<
tr align="center">
    <
vb:if condition="$vboptions[aw_showicon]"><th class="blocksubhead" nowrap="nowrap">{vb:rawphrase award_icon}</th></vb:if>
    <
vb:if condition="$vboptions[aw_showimage]"><th class="blocksubhead" nowrap="nowrap">{vb:rawphrase award_image}</th></vb:if>
    <
th class="blocksubhead" width="100%">{vb:rawphrase award_description}</th>
</
tr>
{
vb:raw $block_data[myawards]}
</
table>
</
div>
</
div



2- From(Plugin Manager)
Find (YAAS - Profile Tab) and disactive it.


3- From (plugin manager)
Find (YAAS in Member Profile - Profile) >> EDIT >> Replace it all
PHP Code:

$blocklist['myawards'] = array(
    
'class' => 'MyAwards',
    
'title' => $vbphrase['my_awards'],
    
'options' => array(
        
'pagenumber' => $vbulletin->GPC['pagenumber']
    ),
    
'hook_location' => 'profile_tabs_last',
    
'wrap' => false
);

require_once(
'./global.php'); 
global 
$vbulletin;  
require_once(
DIR '/includes/class_bbcode.php');
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());

class 
vB_ProfileBlock_MyAwards extends vB_ProfileBlock
{
    var 
$template_name 'memberinfo_block_myawards';

    function 
confirm_empty_wrap()
    {
        return 
false;
    }

    function 
confirm_display()
    {
        return (
$this->block_data['myawards'] != '');
    }

    function 
prepare_output($id ''$options = array())
    {
        global 
$show$vbphrase$stylevar$vbcollapse$bgclass$vbulletin;
        
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser = new vB_BbCodeParser($this->registryfetch_tag_list());

        
        
$result $this->registry->db->query_read('
            SELECT
                *
            FROM
            ' 
TABLE_PREFIX 'award_user AS award_user
                LEFT JOIN ' 
TABLE_PREFIX 'award AS award USING (award_id)
            WHERE 
                award_user.userid = ' 
$this->profile->userinfo['userid'] . '
                AND award.award_active = "1"
            ORDER BY
               '
.$vbulletin->options['aw_awardorder'].'
        '
);
        
                if ((
$vbulletin->options['aw_points']) AND ($this->profile->userinfo['userid']))
                {
                    
$userpoints $this->registry->db->query_read('
                        SELECT a.*, au.*, SUM(award_pointvalue) AS TotalPoints
                        FROM ' 
TABLE_PREFIX 'award a, ' TABLE_PREFIX 'award_user au
                        WHERE (au.userid = '
.$this->profile->userinfo['userid'].') AND (a.award_id=au.award_id) AND (a.award_active = "1")
                        GROUP BY au.userid
                    '
);
                
                    while (
$array $this->registry->db->fetch_array($userpoints))
                        {
                        
$this->block_data['total_points'] = $array['TotalPoints'];
                        }  
                }
        
        
$num $this->block_data['num'] = $this->registry->db->num_rows($result);
        
        
$this->block_data['myawards'] = '';
        
        if (
$num 0)
        {
            
// Display Awards
            
while ($award $this->registry->db->fetch_array($result))
            {
                
exec_switch_bg();
                
                
$award['award_desc'] = $bbcode_parser->parse($award['award_desc']);
                
$award['issue_reason'] = $bbcode_parser->parse($award['issue_reason']);
                
                
$award_issue_date vbdate($this->registry->options['dateformat'], $award['issue_time'], true);
                
$award_issue_time vbdate($this->registry->options['timeformat'], $award['issue_time']);
                
                
//- VB3 -// eval('$this->block_data[\'myawards\'] .= "' . fetch_template('awards_userawards_bit') . '";');
                //- BEGIN VB4 -//
                
$templater vB_Template::create('awards_userawards_bit');
                    
$templater->register('award'$award);
                    
$templater->register('award_issue_date'$award_issue_date);
                    
$templater->register('award_issue_time'$award_issue_time);
                
$this->block_data['myawards'] .= $templater->render();
                
//- END VB4 -//
            
}
        }
    }



Good luck :)

After completing the above the awards plugin works fine, at least as long as you don't use recommend or request awards.

Scyther 03-10-2012 04:53 PM

does anyone know why i can't see the Award Menu in the left panel of Admin CP??

cen1 03-11-2012 10:09 PM

Quote:

Originally Posted by squidsk (Post 2308024)
To fix the display problem on the user profiles you need to do the following:


After completing the above the awards plugin works fine, at least as long as you don't use recommend or request awards.

Ok will try that. Still.. It would be nice to see official version out for 4.1.x. there is not that much to fix really. I hope dev comes around.

Scyther 03-12-2012 09:06 AM

ok,...uninstall and reinstall worked...thanks

speedracer68 03-19-2012 04:16 PM

I wonder if supporting the coder would help? I for one am willing to make a donation if it would help get this updated. I understand it takes time to create mods like this and mods like this are what make my forum. Anyone else?

Patriots1049 03-21-2012 12:20 PM

Is there a way to increase the number of awards displayed in the user profile? Right now, a user can have 25 awards and on 18 or 19 will display down the page...

squidsk 03-21-2012 02:46 PM

Quote:

Originally Posted by Patriots1049 (Post 2311688)
Is there a way to increase the number of awards displayed in the user profile? Right now, a user can have 25 awards and on 18 or 19 will display down the page...

Yes, in admincp go the awards settings page and change the maximum number of awards to be displayed.

Mobo 03-21-2012 02:59 PM

My profile pages show at least 26 medals.

Mobo 03-21-2012 03:02 PM

There is not a setting that says it controls the diplay on the profile tab... is it the same setting that controls the postbit display? Might need to clarify that in the description.

Amaury 03-24-2012 02:49 AM

Could someone be kind enough to link me to the post with the Awards tab bug fix? I've searched this, and I can't find it.

sadiq6210 03-24-2012 09:06 AM

Quote:

Originally Posted by Amaury25 (Post 2312738)
Could someone be kind enough to link me to the post with the Awards tab bug fix? I've searched this, and I can't find it.


https://vborg.vbsupport.ru/showthrea...01#post2189701

Amaury 03-24-2012 09:34 AM

Quote:

Originally Posted by sadiq6210 (Post 2312779)

Sean, our owner, got the fix, but now we're seeing problems.

We're getting a parse error, the Awards tab isn't even there, and avatars are out of the box.

Here's a link to my profile for an example.

Edit: Post Message and Advanced Editor are now up a bit and overlapping.

Edit 2: I disabled all YAAS plugins and profiles are back to normal, but it seems the fix didn't work, because when I enabled the plugin for user profile tabs, Awards still didn't have a tab.

sadiq6210 03-25-2012 05:12 AM

Quote:

Originally Posted by Amaury25 (Post 2312788)
Sean, our owner, got the fix, but now we're seeing problems.

We're getting a parse error, the Awards tab isn't even there, and avatars are out of the box.

Here's a link to my profile for an example.

Edit: Post Message and Advanced Editor are now up a bit and overlapping.

Edit 2: I disabled all YAAS plugins and profiles are back to normal, but it seems the fix didn't work, because when I enabled the plugin for user profile tabs, Awards still didn't have a tab.

If you want you can pm me with an admin account so I can check and solve the problem.

andie215 03-27-2012 05:49 PM

Hi, i have a conflict with itrader using this mod too. Ive only noticed since upgrading my forum to version 4.1.11. The itrader profile tab is empty but only for some of my members.

squidsk 03-27-2012 07:06 PM

Why do assume its a conflict with this mod and not just a conflict with itrader and vbulletin? Have you applied the profile tab fixes from the post above yours?

andie215 03-27-2012 08:55 PM

Quote:

Originally Posted by squidsk (Post 2313976)
Why do assume its a conflict with this mod and not just a conflict with itrader and vbulletin? Have you applied the profile tab fixes from the post above yours?

Perhaps i'm wrong to assume, so i'm sorry. The fix didnt work for me :(

WoODoO 04-09-2012 08:16 PM

how to solve this problem:
Quote:

There's some error when sending your award request. Please contact site's administrator for assistant.
other problem:
https://vborg.vbsupport.ru/external/...png?1334005674

jeryp 04-10-2012 09:02 AM

I am getting this error as well.
There's some error when sending your award request. Please contact site's administrator for assistant.

It does put the request in the Moderation que though. So appears to be working.
Just giving this message and Not what it should be?

Crotan 04-10-2012 06:08 PM

1 Attachment(s)
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
);


I don't think this is a proper fix. Disabling YAAS - Profile Tab Plugin will remove the working tab.

Your addition to YAAS in Member Profile - Profile just makes the phantom tab that appears in the wrong spot now have the awards text. Really I would like to remove this phantom tab and leave the working one alone.

I fixed the inactive tab and active tab status by adding the missing dd class "<dd class="userprof_moduleinactive">" that YAAS - Profile Tab was missing. So I have mine working on inactive and active status, just want to get rid of the phantom tab.

Anyone know how to do that?

squidsk 04-10-2012 06:41 PM

You didn't follow the first step. Disable the indicated plugin and it will remove the phantom tab. The phantom tab, and that plugin, is a remnant of the old way that vb4 dealt with tabs. This was changed in Vb4.1 but this plugin has not been updated since then.

There's also a third fix, step 1 in post https://vborg.vbsupport.ru/showpost....&postcount=742, the second and third steps are the same as the ones I'd posted earlier.

You also potentially have other conflicts as you're using a custom style which have other issues that are causing problems. Always test with the vbulletin default style.

Crotan 04-10-2012 08:39 PM

Quote:

Originally Posted by squidsk (Post 2318781)
You didn't follow the first step. Disable the indicated plugin and it will remove the phantom tab. The phantom tab, and that plugin, is a remnant of the old way that vb4 dealt with tabs. This was changed in Vb4.1 but this plugin has not been updated since then.

There's also a third fix, step 1 in post https://vborg.vbsupport.ru/showpost....&postcount=742, the second and third steps are the same as the ones I'd posted earlier.

You also potentially have other conflicts as you're using a custom style which have other issues that are causing problems. Always test with the vbulletin default style.

Sorry my screen shots weren't reflective of what I was saying.

Deactivating YAAS - Profile Tab doesn't get rid of the phantom tab that was appearing out of place, it gets rid of the tab that I think was working correctly with the proper dd class fix.

By adding 'hook_location' => 'profile_tabs_last' you move the phantom tab that was once appearing out of place up into the proper tab placement.

It looks to be working

squidsk 04-10-2012 09:23 PM

The "phantom tab" is the correct tab, the other one is the bad tab that doesn't work properly.

Amaury 04-10-2012 11:49 PM

Quote:

Originally Posted by squidsk (Post 2318848)
The "phantom tab" is the correct tab, the other one is the bad tab that doesn't work properly.

We're still having this problem ourselves. Our owner even updated it with the fixed version, and now, not only is Awards still tabless, with the tab being at the bottom, but we get syntax errors, which I fixed by disabling YAAS.

squidsk 04-11-2012 01:51 PM

If you'd be willing to grant me access I'd be willing to take a look and try and fix it. I've used the fix I mentioned on three separate vb 4.x installs and its worked all three times so I don't see any reason why it shouldn't work unless there's a conflict with another plugin.

Amaury 04-11-2012 09:25 PM

Thank you, Squid, for fixing it.

While I'm here, I've got another question regarding this. Is there a way to change the Current Activity text for it? I would like it to be Viewing Award System, with Award System being a link, and I tried doing a search in Phrase Manager, but it didn't find anything.

http://i101.photobucket.com/albums/m...ASActivity.png

Hikarin 04-14-2012 04:42 AM

1 Attachment(s)
I have Yet Another Award System enabled.
Thank you for making this. I really have loved this programme ever since I saw it on some old Vb3 forums. ^_^ I glad that my forum finally has it too.

But.... what exactly's going on here? O_o
https://vborg.vbsupport.ru/attachmen...1&d=1334382392


All times are GMT. The time now is 11:38 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.05004 seconds
  • Memory Usage 1,908KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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