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)

doubleclick 05-29-2012 11:08 AM

Hello -

I need a little help on how to accomplish this using xperience in conjunction with other plugins.

1. Have a store where users can add items for purchase. For example, a bakery owner might put up a dozen cookies that will cost 100 points, a dog walker would put up an hour of walks for 25 points, etc.

2. Have actions generate different kinds of cash. So for example,
- one kind of points generated from specific actions like winning a high score in v3arcade. These points could be spent in the user stores.
- another set of points generated by other actions like posting in the forum. Those points would be added to their account to also buy those store items, PLUS they could be spent to purchase "perks" from my own site.

So the second set of points could be spent anywhere, but the first set of points could only be spent in the user stores.

I'm sure with all the options in xperience and the different cash plugins this is possible, but after a couple of weeks of trying to figure it out, I can't quite wrap my head around it.

DS MrSinister 05-29-2012 12:47 PM

Quote:

Originally Posted by jpbryan (Post 2334233)
Thank you DS, but being a little new to this, I really can't get anything out of the link.. Not sure how to find the files/hooks/navs!!?? And, if I found them, what to do with them.. So many variables..

Any other suggestions??

I was playing around with it.. this is what i came up with..

Login to your Admincp.

Goto Plugins & Products --> Plugin Manager --> Product : vBExperience --> edit the First one of these. vBExperience (links)]

Change Hook Location From process_templates_complete To build_navigation_array

Replace The Code With this.

Code:

if (vB::$vbulletin->options['xperience_enabled'] == 1)
{
    $link1 = array(
        'name' => 'top_link_cm',
        'navtype' => 'link',
        'url' => '{options.toppath}xperience.php{vb:raw session.sessionurl_q}',
        'active' => 1,
        'productid' => 'xperience40',
        'text' => $vbphrase['xperience_vbnav'],
    );

    $result['vbtab_forum']['links']['vbmenu_community']['links']['top_link_cm'] = $link1;
}
else if (vB::$vbulletin->options['xperience_enabled'] == 2)
{
    $link2 = array(
        'name' => 'top_link_ql',
        'navtype' => 'link',
        'url' => '{options.toppath}xperience.php{vb:raw session.sessionurl_q}',
        'active' => 1,
        'productid' => 'xperience40',
        'text' => $vbphrase['xperience_vbnav'],
    );

    $result['vbtab_forum']['links']['vbmenu_qlinks']['links']['top_link_ql'] = $link2;
}


PS.

It will only Show up under the Community Menu. Best I can do for now..

Coolbud01 05-29-2012 06:17 PM

Someone else had asked this in post #2041 but I couldn't find an answer:

I have vBulletin's native Paid Subscriptions set up like a donation system, which works for my purposes better than VSa PayPal Donate. I would like to know if there is a way to have vbExperience assign an award based off the paid subscription amount.

Example:
User donates $5 via Paid Subscriptions and is given a "Tier 1 Donor" award
User donates $25 via Paid Subscriptions and is given a "Tier 2 Donor" award

I'm comfortable with database modifications and PHP; but before I went that route I wanted to see if anyone had already accomplished this.

popmyzit 06-03-2012 02:31 AM

with vbulletin 4.2 the achievements and awards show in the userinfo/postbit however the experience progress bars do not. im on the 411 beta.

popmyzit 06-03-2012 02:44 AM

Also in 411 beta when recounting achievements does not process beyond 20 users, no refresh

Palmcone 06-03-2012 08:00 PM

Quote:

Originally Posted by popmyzit (Post 2336010)
with vbulletin 4.2 the achievements and awards show in the userinfo/postbit however the experience progress bars do not. im on the 411 beta.

I'm running 4.2 and the progress bars are showing fine. However, since disabling the achievements and even clearing the cache and doing the recount etc, the achievements are still showing and I can't figure out how to remove them.

betts02 06-05-2012 03:22 PM

Just updated this and getting :

Database error in vBulletin 4.1.11:

Invalid SQL:
SELECT
COUNT(*) as 8wrmediacomments
FROM forumsmedia_comment
WHERE userID=1
AND media_comment.dateline > 315532800;

MySQL Error : Unknown column 'media_comment.dateline' in 'where clause'
Error Number : 1054
Request Date : Tuesday, June 5th 2012 @ 11:20:15 AM
Error Date : Tuesday, June 5th 2012 @ 11:20:18 AM
Script : http://www.nextgenerationgamers.co.u...min_recount_xp
Referrer : http://www.nextgenerationgamers.co.u...php?do=recount
IP Address : 176.254.211.57
Username : NGG betts02
Classname : vB_Database
MySQL Version : 5.0.92-community

When i recount

And YES i have updated the Media Library

Any help please, many thanks

motorhaven 06-08-2012 06:42 PM

I'm a little lost, I'm trying to set up a giveaway. We have a sponsor who will give a prize to the user with the most posts, referrals, likes, etc. the contest would run for 30 days. How do I set this up, and then determine the winner? I don't want to count previous activity for users, so that everyone starts on a level playing field. Yes, I searched but could not find clear information.

DS MrSinister 06-08-2012 09:55 PM

If anyone is looking to get the NavTab back working without adding it to the Navigation Manager.
Login to the AdminCP --> Plugins & Products --> Pluging Manager --> vBExperience --> vBExperience (links)] --> process_templates_complete.

Just replace the code below..

Code:

if ($vbulletin->options['xperience_enabled'])
{
        if ($vbulletin->options['xperience_tabs'])
        {
                if (THIS_SCRIPT == 'xperience') 
                {
                    $vbulletin->options['selectednavtab'] = 'xperience_tab';
                }
                $template_hook['navtab_end'] .= vB_Template::create('xperience_tab')->render();
        }
}

Hopefully Phalynx will have better fixes soon..

sitwi 06-09-2012 08:20 PM

I have a persistent problem that I've been through this thread for, but can't find an answer - it's about getting it to work with vBookie.

I get the following error whenever I place a bet, or try and process a bet. The necessary changes are made (deductions, bets processed etc) - although the bet remains open and I get this message.

Please could somebody help? Thank you kindly for your time.

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:
SELECT
                SUM(bet_amount_won) AS sumbets
                FROM vbookie_bets_placed
                WHERE bet_settled='Y' AND userid=1
                AND dateline > 315532800
                GROUP BY userid;

MySQL Error  : Unknown column 'dateline' in 'where clause'
Error Number  : 1054
Request Date  : Saturday, June 9th 2012 @ 09:57:44 PM
Error Date    : Saturday, June 9th 2012 @ 09:57:44 PM
Script        : http://xxxxxxxxx.co.uk/vbookie.php
Referrer      : http://xxxxxxxxx.co.uk/showthread.php?5442-Denmark-v-Holland
IP Address    : 94.170.24.192
Username      : Si
Classname    : vB_Database_MySQLi
MySQL Version : 5.0.91-log



All times are GMT. The time now is 11:01 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.04169 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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