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)
-   -   Add-On Releases - vBExperience (https://vborg.vbsupport.ru/showthread.php?t=171014)

bojomojo 07-04-2008 08:48 PM

okay now, can i make the points viewable as digits? not a graph?

jalemo 07-05-2008 12:09 AM

I installed this hack, but the awards are not updated :S, I always give updates from the panel!!!

car20 07-05-2008 07:10 AM

***installed ***
very very nice Hack . i love it.
please explain to me that how do i can use shop like this
i set Should the Shop be enabled? to yes
and set Show items on postbit? to 5
and create one categories and post 1 therad with pictures in it. just this
thanks so much dear Phalynx

TonySkullz 07-05-2008 09:00 AM

The shop is quite nice.
Any chance you'll add the kind of items that vbPlaza has to it in the future?
With all the methods of payment you have setup, having the privilege items would be just amazing. It'd sure drive overall community activity up. *nods*

Jawa Lunk 07-05-2008 10:56 AM

Did anyone else begin having 500 server errors on their showgroups.php after this install like me?

Is this even related?

Sorry if this is a stupid question...

Phalynx 07-05-2008 06:27 PM

Quote:

Originally Posted by jlew24asu (Post 1565824)
k thanks! done. may I ask what all the levels mean?

Please read the readme_levels.txt

Quote:

Originally Posted by djilou (Post 1565850)
Just upgraded to vbexperience 3.7.15, but after Recount I think there is a problem with Albumpictures statistics, I have a member with 50 Albumpictures, but he had 5 points for Albumpictures instead of 250 points (50 x 5)??

Cannot confirm that.

Quote:

Originally Posted by marc2005 (Post 1566257)
What's the use of "Timeframe for Activity", ist it like "Active Members Time Cut-Off" in the vBulletin setting??

Yes.

Quote:

Originally Posted by marc2005 (Post 1566257)
And must i upload the level xml file? I found it also works without upload that.

You will have to import that, it's not in the upload folder...

Phalynx 07-05-2008 06:30 PM

Quote:

Originally Posted by bojomojo (Post 1566954)
okay now, can i make the points viewable as digits? not a graph?

Quote:

Originally Posted by jalemo (Post 1567039)
I installed this hack, but the awards are not updated :S, I always give updates from the panel!!!

To get support, you will need to click "Mark as Installed".

Quote:

Originally Posted by car20 (Post 1567194)
please explain to me that how do i can use shop like this
i set Should the Shop be enabled? to yes
and set Show items on postbit? to 5
and create one categories and post 1 therad with pictures in it.

Check AdminCP, vBExperience, Manage Shop. Create Categories and items.

Quote:

Originally Posted by TonySkullz (Post 1567229)
The shop is quite nice.
Any chance you'll add the kind of items that vbPlaza has to it in the future?
With all the methods of payment you have setup, having the privilege items would be just amazing. It'd sure drive overall community activity up. *nods*

Maybe in future releases.

Quote:

Originally Posted by Jawa Lunk (Post 1567276)
Did anyone else begin having 500 server errors on their showgroups.php after this install like me?

Is this even related?

Sorry if this is a stupid question...

Uhm, I don't think it comes from vBExperience as it does not change anything related to this.

robgeo973 07-05-2008 09:24 PM

Upgrading now...

Dr. Bantham 07-05-2008 11:20 PM

I am attempting to get vBExperience to integrate with QuoteIt! and count quote submissions, but I am having problems revising the same Custom Data Provider script.

This is my first attempt:
PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<product productid="xpquotes" active="1">
    <title>vBExperience QuoteIt! Integration</title>
    <description>vBExperience QuoteIt! Submission Tracking</description>
    <version>1.0.0</version>
    <dependencies>
        <dependency dependencytype="product" parentproductid="vbexperience3" minversion="3.7.14" maxversion="" />
    </dependencies>
    <codes>
            <code version="1.0.0">
                <installcode><![CDATA[            
if (!field_exists('xperience_stats', 'points_misc_quotes')) $vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "xperience_stats ADD points_misc_quotes BIGINT DEFAULT '0'");

function field_exists($table, $field)
{
    global $vbulletin;
    return ($vbulletin->db->num_rows($vbulletin->db->query_read("SHOW COLUMNS FROM `" . TABLE_PREFIX .$table."` LIKE '".$field."'"))> 0);
}
                ]]></installcode>
                <uninstallcode><![CDATA[
                ]]></uninstallcode> 
            </code>
    </codes>
    <templates>
    <template name="xpquotes_profile" templatetype="template" date="1205333644" username="Phalynx" version="1.0.0"><![CDATA[
        <if condition="$xperience_points_misc_quotes<>0"><li><span class="shade">$vbphrase[xperience_points_misc_quotes]:</span> $xperience_points_misc_quotes</li></if>
]]></template>    
    </templates>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>vBExperience QuoteIt! Integration</title>
            <hookname>xperience_calcdata</hookname>
            <phpcode><![CDATA[
if ($vbulletin->options['xperience_points_quotes'] > 0)
{
    if ($DoDebug==1) echo "<br/>Custom Data Provider - Quotes";
    
    $attq = $vbulletin->db->query_read("SELECT 
        SUM(counter) as sum_quotes
        FROM " . TABLE_PREFIX . "quotes
        WHERE userid=".$user['userid']);
        
    if ($vbulletin->db->num_rows($attq) > 0)
    {
        $att = $vbulletin->db->fetch_array($attq);
    
        $xperience['count_misc_quotes'] = $att['sum_quotes'] * $vbulletin->options['xperience_points_quotes'];
        $xperience['count_misc'] += $xperience['count_misc_quotes'];
        $additionalsql .= "points_misc_quotes=".$xperience['count_misc_quotes'].",";
    }
}
]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5">
            <title><![CDATA[vBExperience QuoteIt! Integration]]]></title>
            <hookname>xperience_memberprofile</hookname>
            <phpcode><![CDATA[
global $vbphrase;
$xperience_points_misc_quotes = vb_number_format($stat_q['points_misc_quotes']);
eval('$this->block_data[xperience_points_misc_tpl] .= " ' . fetch_template('xpquotes_profile') . '";');
            ]]></phpcode>
        </plugin>
        <plugin active="1" executionorder="5"> 
        <title>vBExperience (cache_templates)</title> 
        <hookname>cache_templates</hookname> 
        <phpcode><![CDATA[ 
if ($vbulletin->options['xperience_enabled']) { 
  $globaltemplates = array_merge($globaltemplates, array( 
      'xpquotes_profile' 
  )); 
}
]]></phpcode> 
        </plugin>
    </plugins>
    <phrases>
        <phrasetype name="GLOBAL" fieldname="global">
            <phrase name="xperience_points_misc_quotes" date="0" username="Phalynx" version="1.0.0"><![CDATA[Custom Data Provider]]></phrase>
        </phrasetype>
        <phrasetype name="vBulletin Settings" fieldname="vbsettings">
            <phrase name="setting_xperience_points_quotes_desc" date="1205333644" username="Phalynx" version="1.0.0"><![CDATA[How many points should be given for quotes?]]></phrase>
            <phrase name="setting_xperience_points_quotes_title" date="1205333644" username="Phalynx" version="1.0.0"><![CDATA[Points for Custom Data Provider Sample]]></phrase>
        </phrasetype>
    </phrases>
    <options>
        <settinggroup name="xperience_points" displayorder="7502">
            <setting varname="xperience_points_quotes" displayorder="300">
                <defaultvalue>2</defaultvalue>
            </setting>
        </settinggroup>
    </options>
</product>

The script seemed to import, but the following error resulted when Updating Points:
Code:

Database error in vBulletin 3.7.2:

Invalid SQL:
SELECT
                SUM(counter) as sum_quotes
                FROM quotes
                WHERE userid=1;

MySQL Error  : Unknown column 'counter' in 'field list'
Error Number  : 1054
Script        : xxxxxxxxxxxxxx/admincp/misc.php?do=xperience_recount_xp
Referrer      : xxxxxxxxxxxxxxt/admincp/misc.php?do=chooser

The new field does not appear in any ACP options or templates either.

The way I see it, I have two options of referencing quote totals. The first is by totaling the counts by running through and counting totals for each "userid" within the "quotes" table. The second is by directly referencing the "quotecount" field within the "user" table, which I would think would be easier. I would appreciate anyone having a quick look at the code and offering suggestions.

H_A_R_R_Y 07-06-2008 01:41 AM

pleas add lang arabic to zip file


All times are GMT. The time now is 05:51 AM.

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.03105 seconds
  • Memory Usage 1,778KB
  • 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
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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