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 - vBExperience 4 (https://vborg.vbsupport.ru/showthread.php?t=245023)

Veer 08-16-2010 06:06 PM

Quote:

Originally Posted by Phalynx (Post 2084858)
I need more informations from you all:
- vBulletin Version and Edition
- Installed vBExperience version in Pluginmanager
- Exact date/time AND exact filesize of file \xperience\hooks\member_build_blocks_start.php on server (not in zip....)

This is an old bug from earlier beta versions, I assume the file is outdated on your server.

vB 4.0.4
vBExperience 4.0.1
member_build_blocks_start.php Size: 8,461 Date/Time: 29-July-10, 12:51 PM

Veer 08-16-2010 06:16 PM

Quote:

Originally Posted by Phalynx (Post 2084860)
The Top Posters modification does not store anything in the database that can be used for calculation. It is pulling it's data live from the database.

I will add the top posters in months/year to my todo list.

hmm okay.. thanks.

Phalynx 08-16-2010 06:22 PM

Quote:

Originally Posted by Veer (Post 2084862)
vB 4.0.4
vBExperience 4.0.1
member_build_blocks_start.php Size: 8,461 Date/Time: 29-July-10, 12:51 PM

This is an outdated file. Please update the file with the file in the downloaded ZIP. It should have 8636 bytes.

Veer 08-16-2010 07:29 PM

Quote:

Originally Posted by Phalynx (Post 2084868)
This is an outdated file. Please update the file with the file in the downloaded ZIP. It should have 8636 bytes.

okay updated, found same 8636 bytes, also reuploaded all files.

But it doesn't fix the tab problem.

Phalynx 08-16-2010 08:05 PM

Quote:

Originally Posted by Veer (Post 2084896)
okay updated, found same 8636 bytes, also reuploaded all files.

But it doesn't fix the tab problem.

Still cannot confirm that as it does not happen on any board I have my hands in. I'm using also iTrader and DownloadsII.

If you need further support with this, provide me a temporary admin account on your forum via PM.

I cannot fix it if I'm not seeing it.

bybart 08-17-2010 03:52 PM

vB 4.0.5
vBExperience 4.0.1
member_build_blocks_start.php Size: 8,636 Date/Time: 11-July-10, 7:57 PM

The code i have inside member_build_blocks_start.php is :

Code:

<?php       
/*======================================================================*\
|| #################################################################### ||
|| # vBExperience 4.0                                                # ||
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2006-2010 Marius Czyz. All Rights Reserved.          # ||
|| #################################################################### ||
\*======================================================================*/

require_once('./includes/functions_xperience.php');

if ($vbulletin->options['xperience_use_awards'])
{
                $output = '';
                $html = '';
                $id = 'xperience_block_awards';
                                               
                $awards = GetAwards($userinfo['xperience_awards'], true);       
               
                $title = $vbphrase['xperience_awards_short'];
                               
                if (strlen($awards) < 3)
                {
                        $html = $vbphrase['xperience_awards_empty'];
                }
                else
                {
                        $html = $awards;
                }
                               
               
                $templater = vB_Template::create('xperience_memberinfo_showcase');
                $templater->register('title', $title);
                $templater->register('id', $id);
                $templater->register('html', $html);
                $template_hook['profile_sidebar_groups'] .= $templater->render();
}

if ($vbulletin->options['xperience_use_achievements'])
{
                $output = '';
                $title = $vbphrase['xperience_achievements_short'];
                $id = 'xperience_block_achievements';
                               
                $achievements = GetAchievementsFull($userinfo['userid'], true);       
               
                $title = $vbphrase['xperience_achievements_short'];
                               
                if (strlen($achievements) < 3)
                {
                        $html = $vbphrase['xperience_achievements_empty'];
                }
                else
                {
                        $html = $achievements;
                }
                               
       
                $templater = vB_Template::create('xperience_memberinfo_showcase');
                $templater->register('title', $title);
                $templater->register('id', $id);
                $templater->register('html', $html);
                $template_hook['profile_sidebar_groups'] .= $templater->render();
}

global $selected_tab;


$stats_q = $vbulletin->db->query_read("SELECT * FROM
        " . TABLE_PREFIX . "xperience_stats
        WHERE userid=".$vbulletin->GPC['userid']."
        LIMIT 0,1");


if ($vbulletin->db->num_rows($stats_q) > 0)
{
        $stat_q = $vbulletin->db->fetch_array($stats_q);
 
        $block_data['xperience_points_shop'] = vb_number_format($stat_q['points_shop']);
        $block_data['xperience_points_misc'] = vb_number_format($stat_q['points_misc']);
        $block_data['xperience_points_misc_ldm'] = vb_number_format($stat_q['points_misc_ldm']);
        $block_data['xperience_points_misc_dl2'] = vb_number_format($stat_q['points_misc_dl2']);
        $block_data['xperience_points_misc_ppd'] = vb_number_format($stat_q['points_misc_ppd']);
        $block_data['xperience_points_misc_vbblog'] = vb_number_format($stat_q['points_misc_vbblog']);
        $block_data['xperience_points_misc_vbcms'] = vb_number_format($stat_q['points_misc_vbcms']);
        $block_data['xperience_points_misc_events'] = vb_number_format($stat_q['points_misc_events']);
        $block_data['xperience_points_misc_custom'] = vb_number_format($stat_q['points_misc_custom']);
        $block_data['xperience_points_user_socialgroup'] = vb_number_format($stat_q['points_user_socialgroup']);
        $block_data['xperience_points_user_friends'] = vb_number_format($stat_q['points_user_friends']);
        $block_data['xperience_points_user_visitormessages'] = vb_number_format($stat_q['points_user_visitormessages']);
        $block_data['xperience_points_user'] = vb_number_format($stat_q['points_user']);
        $block_data['xperience_points_user_infractions'] = vb_number_format($stat_q['points_user_infractions']);
        $block_data['xperience_points_user_law'] = vb_number_format($stat_q['points_user_law']);
        $block_data['xperience_points_user_referrals'] = vb_number_format($stat_q['points_user_referrals']);
        $block_data['xperience_points_user_albumpictures'] = vb_number_format($stat_q['points_user_albumpictures']);
        $block_data['xperience_points_user_reputation'] = vb_number_format($stat_q['points_user_reputation']);
        $block_data['xperience_points_user_reputation_use'] = vb_number_format($stat_q['points_user_reputation_use']);
        $block_data['xperience_points_user_online'] = vb_number_format($stat_q['points_user_online']);
        $block_data['xperience_points_user_profile'] = vb_number_format($stat_q['points_user_profile']);
        $block_data['xperience_points_thread'] = vb_number_format($stat_q['points_thread']);
        $block_data['xperience_points_threads'] = vb_number_format($stat_q['points_threads']);
        $block_data['xperience_points_threads_sg'] = vb_number_format($stat_q['points_threads_sg']);
        $block_data['xperience_points_thread_votes'] = vb_number_format($stat_q['points_thread_votes']);
        $block_data['xperience_points_thread_rate'] = vb_number_format($stat_q['points_thread_rate']);
        $block_data['xperience_points_thread_replycount'] = vb_number_format($stat_q['points_thread_replycount']);
        $block_data['xperience_points_thread_views'] = vb_number_format($stat_q['points_thread_views']);
        $block_data['xperience_points_thread_tags'] = vb_number_format($stat_q['points_thread_tags']);
        $block_data['xperience_points_thread_stickies'] = vb_number_format($stat_q['points_thread_stickies']);
        $block_data['xperience_points_post'] = vb_number_format($stat_q['points_post']);
        $block_data['xperience_points_posts'] = vb_number_format($stat_q['points_posts']);
        $block_data['xperience_points_posts_sg'] = vb_number_format($stat_q['points_posts_sg']);
        $block_data['xperience_points_post_avg'] = vb_number_format($stat_q['points_post_avg'], 2);
        $block_data['xperience_points_post_thanks'] = vb_number_format($stat_q['points_post_thanks']);
        $block_data['xperience_points_post_thanks_use'] = vb_number_format($stat_q['points_post_thanks_use']);
        $block_data['xperience_points_post_attachment'] = vb_number_format($stat_q['points_post_attachment']);
        $block_data['xperience_points_post_attachment_views'] = vb_number_format($stat_q['points_post_attachment_views']);

        ($hook = vBulletinHook::fetch_hook('xperience_memberprofile')) ? eval($hook) : false;
       
        $block_data['xperience_points'] = vb_number_format($userinfo['xperience']);
        $block_data['xperience_level'] = vb_number_format($userinfo['xperience_level']);
        $block_data['xperience_levelp'] = vb_number_format($userinfo['xperience_levelp'], 1);
        $block_data['xperience_level_up'] = vb_number_format($userinfo['xperience_next_level']);
        $block_data['xperience_level_up_points'] = vb_number_format($userinfo['xperience_next_level_points']);
        $block_data['xperience_activity'] = vb_number_format($userinfo['xperience_ppd'], 1);
        $block_data['xperience_activity30'] = vb_number_format($userinfo['xperience_ppd30'], 1);
        $block_data['xperience_activity7'] = vb_number_format($userinfo['xperience_ppd7'], 1);
       
       
        $block_data['xperience_gfx_level'] = construct_phrase($vbphrase['xperience_gfx_level'], $block_data['xperience_points'], $block_data['xperience_level']);
        $block_data['xperience_gfx_levelup'] = construct_phrase($vbphrase['xperience_gfx_levelup'], $block_data['xperience_level_up'], $block_data['xperience_level_up_points'], "");
        $block_data['xperience_gfx_activity'] = construct_phrase($vbphrase['xperience_gfx_activity'], $block_data['xperience_activity']);
        $block_data['xperience_gfx_activity30'] = construct_phrase($vbphrase['xperience_gfx_activity'], $block_data['xperience_activity30']);
        $block_data['xperience_gfx_activity7'] = construct_phrase($vbphrase['xperience_gfx_activity'], $block_data['xperience_activity7']);
       
       
       
       
        if ($vbulletin->options['xperience_use_awards'])
        {
                if ($vbulletin->options['xperience_award_block'] == 0)
                {
                        //$block_data['xperience_awards'] = GetAwards($userinfo['xperience_awards']);
                }
        }
       
       
        $date_start = mktime(0, 0, 0, date("m"), date("d") - 180 , date("Y"));
        $date_end = mktime(23, 59, 59, date("m"), date("d"), date("Y"));
        $do = $_REQUEST['do'];
        if (strlen($do) < 1)
        {
                $do = "all";
        }
        require_once(DIR . '/includes/functions_xperience.php');
        GetActivityAll($date_start, $date_end, $do, 20, $userinfo['userid'], 1);
        $block_data['xperience_activities'] = $activity;

       
       
        $templater = vB_Template::create('xperience_memberinfo_tab_xp');
        $templater->register('selected_tab', $selected_tab);
        $templater->register('relpath', $relpath);
        $template_hook['profile_tabs_last'] .= $templater->render();
       
       
       
        $templater = vB_Template::create('xperience_memberinfo_block');
        $templater->register('selected_tab', $selected_tab);
        $templater->register('block_data', $block_data);
        $template_hook['profile_tabs'] .= $templater->render();

}

?>



Any help will be appreciated :)

RollaJedi 08-17-2010 06:04 PM

Phalynx, is there any way you could explain the custom data provider for more novice forum owners? I want to do some custom achievements but i just need some guidance. If you could roughly go over your custom data provider in a more lamens term way that would go really far. Thanks!

pedroenf 08-17-2010 06:27 PM

1 Attachment(s)
Hi Phalynx, could you help fix this:

https://vborg.vbsupport.ru/attachmen...1&d=1282073223

pedroenf 08-18-2010 11:34 AM

Never mind i fix (at least after the template fix it did). In template experience_memberinfo_tab_activities a > is missing:
Code:

<dd<vb:if condition="$selected_tab == 'activities'">
change to
Code:

<dd><vb:if condition="$selected_tab == 'activities'">

Phalynx 08-18-2010 12:16 PM

Quote:

Originally Posted by RollaJedi (Post 2085408)
Phalynx, is there any way you could explain the custom data provider for more novice forum owners? I want to do some custom achievements but i just need some guidance. If you could roughly go over your custom data provider in a more lamens term way that would go really far. Thanks!

There is a bunch of examples in ZIP\extras\addons showing where points need to be collected and where they need to be stored.
You must collect and store the points.

Quote:

Originally Posted by pedroenf (Post 2085415)
Hi Phalynx, could you help fix this:

Fixed in 4.0.2, which will be released this week.

Quote:

Originally Posted by pedroenf (Post 2085724)
Never mind i fix (at least after the template fix it did). In template experience_memberinfo_tab_activities a > is missing:
Code:

<dd<vb:if condition="$selected_tab == 'activities'">
change to
Code:

<dd><vb:if condition="$selected_tab == 'activities'">

This is no error, as now the > is doubled. The > comes at the end of the condition:
<dd<vb:if condition="$selected_tab == 'xperience'"> class="selected"</vb:if>><a id="xperience-tab"

What is now the result in source code of the created html page?


All times are GMT. The time now is 03: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.03141 seconds
  • Memory Usage 1,805KB
  • 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
  • (5)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