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)

BatMs.com 10-12-2008 01:41 AM

Not working with vB 3.8B1... First mod I have not to! :(

rafa3l 10-12-2008 02:24 AM

Sorry if this question already exist in the forum.

I would like to create something like a contest in a elapsed time, for example the user with more referers, posts, thanks in a month, or with more points in a month. This is the right mod to do that?

Thanks in advance

dataman 10-12-2008 04:12 AM

Nevermind my prior post; I figured out how to install. Is there any way to change "points" to "pennies" or "cents", so it's more like play money?

crazzyustad 10-12-2008 05:57 AM

phalynx,

can we have a promotion system based on activity. Say if the user has over 50% activity he/she will be shifted to a new group and when the activity will fall below 50% he will again come back to the old group.

By the way please look at the previous problem i posted

MentaL 10-12-2008 01:52 PM

I enjoy this mod very much but how do you set it so say 3 users can recieve the award rather than one.

Thanks.

[EDIT]

Resolved.

4x4 Mecca 10-12-2008 02:34 PM

I like that idea crazzyustad! I second that!

cykelmyggen 10-12-2008 03:26 PM

I'm having an error in the shop. I added a new item in one of the categories - uploaded the images in the misc/shop directory and filled out the form in shop management. The icon in postbit only did show the link and not the image. I've doublechecked the paths to images, spelling errors and so on and I can't seem to pinpoint the error. I deleted the item in the category, but the link still shows up in postbit - not in my status though. See attached screenshot. Any ideas?

Abe1 10-12-2008 05:22 PM

Phalynx, I saw there was a problem with the new option to remove awards from a certain usergroup. It was showing the same user getting an award for gold, silver, and bronze. Since lets say user 1-5 were not to get awards, then the first user that is able to get awards gets all 3 since they will be in the limit 10 each time.

Anyways, i changed it to the mysql query. here is the whole CalculateAwards() that fixes any issue with this.

PHP Code:

function CalculateAwards()
{
    global 
$vbulletin;
    
    
    
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user
        SET
        xperience_awards=''"
);

    if (!
$vbulletin->options['xperience_use_awards'])
    {
        return;
    }

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

    
$awardsq =$vbulletin->db->query_read("SELECT
        *
        FROM " 
TABLE_PREFIX "xperience_awards
        WHERE awardstatus > 0
        ORDER BY awardstatus        
        "
);
        
        if (
$vbulletin->db->num_rows($awardsq) > 0)
        {
            while (
$awards $vbulletin->db->fetch_array($awardsq))
            {

                if (
$awards['manualassign'] <> 0)
                {
                    if (!
strstr($awards['manualassign'], ","))
                    {
                        if (
verify_id("user"$awards['manualassign'], false) <> 0)
                        {
                            
WriteAward($awards$awards['manualassign']);
                        }
                    } else {
                        
$manualawards=explode(","$awards['manualassign']);
                        
                        for (
$i 0$i count($manualawards); $i ++)
                        {
                            if (
verify_id("user"$manualawards[$i], false) <> 0)
                            {
                                
WriteAward($awards$manualawards[$i]);
                            }
                        }
                    }
                } else {
                    
                    if (
strlen($vbulletin->options['xperience_ignore_users']) > 0
                    { 
                        
$IgnoreUser=" AND u.userid NOT IN(".$vbulletin->options['xperience_ignore_users'].")"
                    }

                    
$usergroups=explode(","$vbulletin->options['xperience_award_exclude']);
                    foreach (
$usergroups AS $usergroupid)
                    {
                        
                        
$wherenot .= " OR u.usergroupid = '$usergroupid' OR FIND_IN_SET($usergroupid, u.membergroupids)";
                    }

                    
$genawardq =$vbulletin->db->query_read("SELECT
                        u.userid,
                        "
.$awards['awardfields']."
                        AS get_count
                        FROM " 
TABLE_PREFIX "xperience_stats as s
                        LEFT JOIN " 
TABLE_PREFIX "user as u ON u.userid = s.userid
                        WHERE 1 = 1 
$IgnoreUser AND NOT (1=2 $wherenot)
                        ORDER BY get_count DESC, points_xperience DESC
                        LIMIT "
.$awards['awardlimit'].",1");
                                        
                    if (
$vbulletin->db->num_rows($genawardq) > 0)
                    {
                        
$genaward $vbulletin->db->fetch_array($genawardq);
                        
                        if (
$genaward['get_count'] <> 0)
                        {
                            
WriteAward($awards$genaward['userid']);
                        }
                        
                    }
                }
            }
        }



Winterworks 10-12-2008 06:05 PM

I enabled the shop, but it displays...

Shop
You don't purchased any items yet.

When I try to access it? How do I get it fully working?

blogthea 10-12-2008 08:31 PM

first of all , thank you for this great mod

i have one question tho, is it possible to display a user's level and exp points in the navbar welcome box, (navbar template) ? and what variables store this information?


All times are GMT. The time now is 12:38 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.02702 seconds
  • Memory Usage 1,780KB
  • 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_php_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