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)

flbutterflyz 07-05-2011 02:49 AM

Quote:

Originally Posted by MarceloS (Post 2182722)
Same thing for me.

Same question as some others. Is it possible to get the code so we can manually change the awards location in the postbit?

1stsAz 07-05-2011 04:34 PM

Hey, we have it installed in 4.1.4 and it is working fine except one thing. When we activated it as a Tab on our NavBar, our banner disappears at the top of the page. We think there is a CSS reference missing and we tried to get it in there by modifying the XML but it isn't taking. Anyone else have this issue?

Gamelobby 07-07-2011 03:31 AM

Quote:

Originally Posted by 1stsAz (Post 2217079)
Hey, we have it installed in 4.1.4 and it is working fine except one thing. When we activated it as a Tab on our NavBar, our banner disappears at the top of the page. We think there is a CSS reference missing and we tried to get it in there by modifying the XML but it isn't taking. Anyone else have this issue?

I know a friend who's site works fine except on the awards.php page there is no header. lol

nacaruncr 07-07-2011 04:08 AM

try with this:
https://vborg.vbsupport.ru/showpost....26&postcount=7

;) or copying the css award's code in your additional.css :)

danswano 07-08-2011 01:57 PM

When i disable or remove this product all avatars disappear, any idea why?

if a disable all plugins and keep this one active YAAS - postbit_display_start the avatars appears.

If i remove the whole product and i add a plugin contains this code to postbit_display_start

Code:

// [START HACK='Yet Another Award System' AUTHOR='HacNho']
if ((THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'announcement') OR (THIS_SCRIPT == 'newreply'))
{
        global $db, $vbulletin;
        {
                if (THIS_SCRIPT == 'private')
                {
                        $this->post['userid'] =& $post['fromuserid'];
                }
                if (($vbulletin->options['aw_postbit']) AND ($this->post['userid']))
                {
                       
                        $post['userawards'] = '';
                        // Obtain list of awards for current user
                        $alluserawards =  $db->query_read("
                                SELECT a.*, au.*
                                FROM " . TABLE_PREFIX . "award a, " . TABLE_PREFIX . "award_user au
                                WHERE (au.userid = ".$this->post['userid'].") AND (a.award_id=au.award_id) AND (a.award_active=1)
                                ORDER BY ".$vbulletin->options[aw_awardorder]."
                        ");

                        $post['showuserawards'] = false;
                       
                        if ($post['num_awards'] = $db->num_rows($alluserawards))
                        {
                                $aw_i = 0;

                                while ($award = $db->fetch_array($alluserawards))
                                {
                                        $aw_i++;
                                        if ($aw_i <= $vbulletin->options['aw_display_limit'])
                                        {
                                                //- VB3 -// eval('$post[userawards] .= "' . fetch_template('awards_bit') . '";');
                                                //- BEGIN VB4 -//
                                                $templater = vB_Template::create('awards_bit');
                                                        $templater->register('award', $award);
                                                $post[userawards] .= $templater->render();
                                                //- END VB4 -//
                                        }
                                }
                               
                                if (($vbulletin->options['aw_points']) AND ($this->post['userid']))
                                {
                                        $userpoints = $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->post['userid'].") AND (a.award_id=au.award_id) AND (a.award_active=1)
                                                GROUP BY au.userid
                                        ");
                               
                                        while ($array = $db->fetch_array($userpoints))
                                                {
                                                $post['total_points'] = $array['TotalPoints'];
                                                } 
                                }
                                       
                                $post['showuserawards'] = true;
                                $db->free_result($alluserawards);
                        }
                }
        }
}
// [END HACK='Yet Another Award System' AUTHOR='HacNho']

the avatar appears too, what's wrong with this plugin i can't see the avatars without it?

any clue?

Gamelobby 07-08-2011 06:40 PM

Quote:

Originally Posted by squidsk (Post 2211891)
I don't have that phrase in any template but either way I was looking in the wrong location, it would be in the awards_awardbit template because that's where you'll get both the awards_awardusers_bit being used and the phrase "users who have received this award".

I'm guessing your seeing this on http://www.yourforum.com/forum/awards.php (where http://www.yourforum.com/forum/ is your main forum index) in each different award right?

I just checked my template with a friends, & they are identical, so it must be a conflict of mods or something. :erm: :(

TheLastSuperman 07-08-2011 06:49 PM

Quote:

Originally Posted by nacaruncr (Post 2217647)
try with this:
https://vborg.vbsupport.ru/showpost....26&postcount=7

;) or copying the css award's code in your additional.css :)

Actually I found in this case it was better to use:

Code:

{vb:raw headinclude_bottom}
Instead of:

Code:

{vb:cssfile additional.css}
Mods are nearly identical so edit template AWARDS instead ;) - https://vborg.vbsupport.ru/showpost....58&postcount=2

Gamelobby 07-08-2011 11:57 PM

Is that to help fix my issue or someone else's.?

I didn't try the original one or your "better" one, because i thought it was directed at someone else.

TheLastSuperman 07-09-2011 12:06 AM

Quote:

Originally Posted by Gamelobby (Post 2218380)
Is that to help fix my issue or someone else's.?

I didn't try the original one or your "better" one, because i thought it was directed at someone else.

An attempt to fix yours as he replied directly after your post, as I took it kwim ;).

Tahir_Younus786 07-10-2011 10:46 AM

Is this hock work in VB 4.1.4


All times are GMT. The time now is 08:19 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.02676 seconds
  • Memory Usage 1,763KB
  • 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
  • (3)bbcode_code_printable
  • (5)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