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

Chris11987 07-06-2008 05:50 AM

If I wanna make like 50 ranks, and make them a few of them have different perks, like certain ones have larger PM boxes, bigger avis and sigs, etc, do I have to make one new usergroup for every rank/title I want?

car20 07-06-2008 06:11 AM

Quote:

Originally Posted by Phalynx (Post 1567569)
Check AdminCP, vBExperience, Manage Shop. Create Categories and items.
.

thanks thanks thanks...thanks
vbxperience is my best hack:)

car20 07-06-2008 08:29 AM

Dear Phalynx

I go to manage shop and add category by the name shop ( like bellow picture )

http://www.irangain.com/temp/2.GIF

then clicked on edit items and add one item by the name test and set icon , picture and tumb ( like bellow picture )

http://www.irangain.com/temp/3.GIF

and click on link (Generate icons /name for postbit....

----------------
now i dont see any change on forum :( ، on postbit not appear any icon and picture.

i'm really sorry that i'm very stupid.
please help me

mnm85 07-06-2008 09:39 AM

for some odd reason i get a MY SQL Error after visiting the detail page of a product in the shop after upgrading to .15

Quote:

Database error in vBulletin 3.7.1:

Invalid SQL:
SELECT itemid FROM xperience_shop_ta WHERE itemid=5 AND buyer=;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Request Date : Sunday, July 6th 2008 @ 05:23:08 AM
Error Date : Sunday, July 6th 2008 @ 05:23:09 AM
Script : http://www.site.com/forum/xperience....=details&cat=2
Referrer : https://www.site.com/forum/xperience.php?go=shop&cat=2
MySQL Version : 4.1.22-standard

Phalynx 07-06-2008 10:00 AM

Quote:

Originally Posted by Dr. Bantham (Post 1567745)
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.

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.

Your SQL Statement is wrong:
PHP Code:

        SUM(counter) as sum_quotes
        FROM 
" . TABLE_PREFIX . "quotes
        WHERE userid
=".$user['userid']); 

counter seems not a column of the quotes table.


Quote:

Originally Posted by H_A_R_R_Y (Post 1567810)
pleas add lang arabic to zip file

Thanks, will add to first post.

Quote:

Originally Posted by Chris11987 (Post 1567904)
If I wanna make like 50 ranks, and make them a few of them have different perks, like certain ones have larger PM boxes, bigger avis and sigs, etc, do I have to make one new usergroup for every rank/title I want?

Yes, you will have to do usergroups with this.

Quote:

Originally Posted by car20 (Post 1567983)
Dear Phalynx

I go to manage shop and add category by the name shop ( like bellow picture )


then clicked on edit items and add one item by the name test and set icon , picture and tumb ( like bellow picture )

and click on link (Generate icons /name for postbit....

----------------
now i dont see any change on forum :( ، on postbit not appear any icon and picture.

i'm really sorry that i'm very stupid.
please help me

Icons in postbit are only visible if someone has purchased it.

Phalynx 07-06-2008 10:03 AM

Quote:

Originally Posted by mnm85 (Post 1568021)
for some odd reason i get a MY SQL Error after visiting the detail page of a product in the shop after upgrading to .15

Seems you don't have vBExperience Stats. Can it be you are beeing ignored by usergroup/userid?

car20 07-06-2008 10:05 AM

but i cant see any icon in postbit ! i put icon addres (for example): images/favicon.ico
am i right ?

Phalynx 07-06-2008 10:38 AM

Quote:

Originally Posted by car20 (Post 1568038)
but i cant see any icon in postbit ! i put icon addres (for example): images/favicon.ico
am i right ?

Did you purchased the item?
Don't use .ico, take png, gif or jpg.

mnm85 07-06-2008 10:43 AM

Quote:

Originally Posted by Phalynx (Post 1568037)
Seems you don't have vBExperience Stats. Can it be you are beeing ignored by usergroup/userid?

Yes I have set so my user group, administrator and moderators groups are ignored through the admin settings. But I don't see why I should be getting a SQL error. Maybe at least be able to view the product and not be able to purchase it or get a error message?

Phalynx 07-06-2008 10:45 AM

Quote:

Originally Posted by mnm85 (Post 1568055)
Yes I have set so my user group, administrator and moderators groups are ignored through the admin settings. But I don't see why I should be getting a SQL error. Maybe at least be able to view the product and not be able to purchase it or get a error message?

I agree, this should be catched. Will be fixed in 3.7.16

mnm85 07-06-2008 10:53 AM

wow, that's great, thanks!

car20 07-06-2008 11:03 AM

Dear Phalynx you say : Did you purchased the item?

me and user can't see any icon that click and purchased it .

me use test.gif for icon but i have problem in this hack.:(

please visit post at my forum .

car20 07-06-2008 11:19 AM

dear Phalynx
why you have in this page tree icon by the names ( Ranking and shop and Statistics ) but me have just ranking ?

Ideal Web Tech 07-06-2008 11:53 AM

It is just me or is the album pictures code wrong again? (im in the hospital right now on some strong pain meds and havent tested the code was just reading thro it but I believe that currently it only counts how many albums a user has and not how many pictures)

PHP Code:

        //Albumpictures
        
$albumfield="visible";
        if (
$this->field_exists('album''picturecount')) $albumfield="picturecount";

        if (
$DoDebug==1) echo "<br/>Albumpictures";
        if (
$vbulletin->options['xperience_points_pc'] > 0
        {    
            
$vmessagesq =$vbulletin->db->query_read("SELECT 
            COUNT(
$albumfield) AS cnt_pictures
            FROM " 
TABLE_PREFIX "album
            WHERE userid="
.$user['userid']);
    
            if (
$vbulletin->db->num_rows($vmessagesq) > 0)
            {
                
$vmessages $vbulletin->db->fetch_array($vmessagesq);
                
$xperience['count_user_albumpictures'] = $vmessages['cnt_pictures']*$vbulletin->options['xperience_points_pc'];
            } 
        } 

Correct me if im wrong but shouldnt that be a sum not a count as you just made it now give points for each album instead of each picture (I could be wrong I am calling this from my memory for what I changed last time to fix it originally and I havent slept in 2-3 days). But from what I do remember that should be a SUM if I am remembering the table structure properly.

Phalynx 07-06-2008 12:57 PM

Quote:

Originally Posted by car20 (Post 1568067)
Dear Phalynx you say : Did you purchased the item?

me and user can't see any icon that click and purchased it .

me use test.gif for icon but i have problem in this hack.:(

please visit post at my forum .

Quote:

Originally Posted by car20 (Post 1568075)
dear Phalynx
why you have in this page tree icon by the names ( Ranking and shop and Statistics ) but me have just ranking ?

there are NO icons in postbit if you don't purchased something. It seems you didn't have updated all files from ZIP on server, you are using an outdated xperience.php.


Quote:

Originally Posted by Ideal Web Tech (Post 1568097)
It is just me or is the album pictures code wrong again? (im in the hospital right now on some strong pain meds and havent tested the code was just reading thro it but I believe that currently it only counts how many albums a user has and not how many pictures)

Correct me if im wrong but shouldnt that be a sum not a count as you just made it now give points for each album instead of each picture (I could be wrong I am calling this from my memory for what I changed last time to fix it originally and I havent slept in 2-3 days). But from what I do remember that should be a SUM if I am remembering the table structure properly.

Yes, it should be a sum. What a pity nobody see this in betatest :(
Will correct this in 3.7.16

Dr. Bantham 07-06-2008 01:35 PM

Quote:

Originally Posted by Phalynx (Post 1568033)
Your SQL Statement is wrong:
PHP Code:

        SUM(counter) as sum_quotes
        FROM 
" . TABLE_PREFIX . "quotes
        WHERE userid
=".$user['userid']); 

counter seems not a column of the quotes table.

Many thanks! I changed it to the following and it seems to be working flawlessly:
PHP Code:

        SUM(quotecount) as sum_quotes
        FROM 
" . TABLE_PREFIX . "user
        WHERE userid
=".$user['userid']); 

I also made some changes to the labeling where I had not changed the default expressions. I am attaching the final file in case anyone is interested.

Phalynx 07-06-2008 01:38 PM

Thanks for sharing. It would be great to see this as an addin for vBExperience like Ideal Web Tech's addons.

car20 07-06-2008 03:50 PM

Dear Phalynx
i uploaded again all files .
where appear shop picture ?
if user to want buy a something where they must to go ?

msvi007 07-06-2008 04:02 PM

I have it working on our site fabulously, thank you. www.uofmom.com


One question though, what determines the order the icons appear in the postbit. Our users buy them in a specific order, but they seem to appear in a different order. Any help would be greatly appreciated on how to make them appear in postbit in the order they were purchased or if you could let me know how to re-arrange them for specific users.

thanks

AWF 07-06-2008 04:13 PM

will this work with the vBExperience mod??

Phalynx 07-06-2008 05:19 PM

Quote:

Originally Posted by car20 (Post 1568245)
Dear Phalynx
i uploaded again all files .
where appear shop picture ?
if user to want buy a something where they must to go ?

I would suggest they need to go to shop.

Quote:

Originally Posted by msvi007 (Post 1568250)
I have it working on our site fabulously, thank you. www.uofmom.com


One question though, what determines the order the icons appear in the postbit. Our users buy them in a specific order, but they seem to appear in a different order. Any help would be greatly appreciated on how to make them appear in postbit in the order they were purchased or if you could let me know how to re-arrange them for specific users.

thanks

The icons already appear in the order of date of purchase

Quote:

Originally Posted by AWF (Post 1568256)
will this work with the vBExperience mod??

Uhm, this is the vBExperience mod?

msvi007 07-06-2008 05:45 PM

Quote:

Originally Posted by Phalynx (Post 1568295)

The icons already appear in the order of date of purchase

Hmmm, they appear in a different order on the profile page and different on the postbit. It is the postbit order that I would like to modify. Any help would be appreciated.

Thanks

Phalynx 07-06-2008 05:47 PM

You need to modify function WriteShopItems in functions_xperience.php

Ideal Web Tech 07-06-2008 06:40 PM

Quote:

Originally Posted by Phalynx (Post 1568165)
Thanks for sharing. It would be great to see this as an addin for vBExperience like Ideal Web Tech's addons.

Glad to see that you like the quality of my addons for it. :)

I will be releasing more when I get time as I have quite a few ideas for things that can be done with this.

Stryker412 07-07-2008 12:18 AM

Where do we get a level 1 small xml?

How do the Levels work? Everyone on our rank list is level 1.

Ideal Web Tech 07-07-2008 02:17 AM

Did you load up one of the included level xml product files to populate the levels into the system?

leeman 07-07-2008 02:19 AM

Quote:

Originally Posted by Stryker412 (Post 1568581)
Where do we get a level 1 small xml?

How do the Levels work? Everyone on our rank list is level 1.

You can find it in the extra folder in the zip-file.

car20 07-07-2008 03:46 AM

Quote:

Originally Posted by Phalynx (Post 1568295)
I would suggest they need to go to shop.

Dear Phalynx

Everything is OK thanks a looooooooooooooooooooooooooooot .

https://vborg.vbsupport.ru/external/2009/06/20.gifhttps://vborg.vbsupport.ru/external/2008/07/30.gifhttps://vborg.vbsupport.ru/external/2008/07/31.gif

Stryker412 07-07-2008 11:07 AM

Quote:

Originally Posted by Ideal Web Tech (Post 1568647)
Did you load up one of the included level xml product files to populate the levels into the system?

I loaded a level 2 because that was all I found, but my board is not that big.

Here is our page:

http://www.shatteredplanet.org/forum/xperience.php

Phalynx 07-07-2008 11:31 AM

Quote:

Originally Posted by Stryker412 (Post 1568995)
I loaded a level 2 because that was all I found, but my board is not that big.

Please click "Mark as Installed" to get Support.


All times are GMT. The time now is 06:51 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.04015 seconds
  • Memory Usage 1,903KB
  • 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
  • (5)bbcode_php_printable
  • (32)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