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)

VargTimmen 06-16-2008 02:21 PM

Quote:

Originally Posted by Phalynx (Post 1550611)
Promotion system enabled?

Yes, it is enabled.

Phalynx 06-16-2008 02:22 PM

Please mail me your XML file, I'll take a look. I will send you eMail address via PN.

Kaitlyn2004 06-16-2008 06:32 PM

I am looking to try this out on a board with:
- 160,000 members
- 32,000 posts/week
- about 6 million posts

Will this be suitable or will it just cause way too much load?

MorrisMcD 06-16-2008 06:49 PM

I installed and got the following when refreshing anywhere on my site, including admincp...

Code:

db->query_write("UPDATE " . TABLE_PREFIX . "user SET xperience_awards=CONCAT('".addslashes($award['awardid'])."|".addslashes($award['awardname'])."|".addslashes($award['awardtitle'])."', ',', xperience_awards) WHERE userid=".$userid); } function WriteShopItem($item, $userid) { global $vbulletin; if (strlen($item['itemicon']) < 3) { $item['itemicon'] = $vbulletin->options['bburl']."/images/misc/level/icon_item_s.png"; } $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET xperience_shopitems=CONCAT('".addslashes($item['itemid'])."|".addslashes($item['cnt_items'])."|".addslashes($item['itemname'])."|".addslashes($item['itemicon'])."', ',', xperience_shopitems) WHERE userid=".$userid); } function WriteShopItems($userinfo) { global $vbulletin; if ($vbulletin->options['xperience_shop_postbit'] == 0) { return; } $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET xperience_shopitems='' WHERE userid=".$userinfo['userid']); $itemsaq =$vbulletin->db->query_read("SELECT COUNT(t.itemid) as cnt_items, s.itemname, s.itemicon, s.itemid FROM " . TABLE_PREFIX . "xperience_shop_ta as t INNER JOIN " . TABLE_PREFIX . "xperience_shop as s ON s.itemid=t.itemid WHERE t.buyer=".$userinfo['userid']." GROUP BY t.itemid ORDER BY dateline DESC LIMIT ".$vbulletin->options['xperience_shop_postbit']); if ($vbulletin->db->num_rows($itemsaq) > 0) { while ($itemsa = $vbulletin->db->fetch_array($itemsaq)) { WriteShopItem($itemsa, $userinfo['userid']); } } } function GetShopItems($userinfo) { global $vbulletin, $vbphrase; $xperience_items=explode(",", $userinfo['xperience_shopitems']); foreach($xperience_items AS $itemk => $iteme) { $itemi = explode("|", $iteme); $itemid = $itemi[0]; if (is_numeric($itemid)) { $itemcount = $itemi[1]; $itemname = $itemi[2]; $itemicon = $itemi[3]; eval('$items .= " ' . fetch_template('xperience_shop_item_p') . '";'); } } return $items; } function GetAwards($MyAwards) { global $vbulletin, $stylevar; $xperience_awards=explode(",", substr($MyAwards, 0, strlen($MyAwards)-1)); foreach($xperience_awards AS $awardk => $awarde) { $awardi=explode("|", $awarde); $awardid=$awardi[0]; if (is_numeric($awardid)) { $awardname = $awardi[1]; $awardtitle = $awardi[2]; if ($vbulletin->options['xperience_awardgfx']) { $awardname .= ".png"; } else { $awardname .= ".gif"; } //this has to be hardcoded as the fetch_musername hook comes before style_fetch if (strlen($stylevar[imgdir_misc])<2) $stylevar[imgdir_misc]="images/misc"; //this has to be hardcoded as the fetch_musername hook comes before cache_templates $awards.=' ['.$awardtitle.'] '; } } return $awards; } function GetAvatar($userinfo) { global $vbulletin; $avatarurl=$userinfo['avatarurl']; if ($userinfo['avatarid']) { $avatarurl = $userinfo['avatarpath']; } else { if ($userinfo['hascustomavatar'] AND $vbulletin->options['avatarenabled']) { if ($vbulletin->options['usefileavatar']) { $avatarurl = $vbulletin->options['avatarurl'] . "/avatar$userinfo[userid]_$userinfo[avatarrevision].gif"; } else { $avatarurl = 'image.php?' . $vbulletin->session->vars['sessionurl'] . "u=$userinfo[userid]&dateline=$userinfo[avatardateline]"; } } else { if (!empty($userinfo['avatarurl'])) { $avatarurl=$userinfo['avatarurl']; } else { $avatarurl = ''; } } } return $avatarurl; } function GetItemCount($catid) { global $vbulletin; $count_items = 0; if (strlen($catid > 0)) { $itemsq = $vbulletin->db->query_read("SELECT COUNT(itemid) as c_items FROM " . TABLE_PREFIX . "xperience_shop WHERE catid=".$catid); if ($vbulletin->db->num_rows($itemsq) > 0) { $items = $vbulletin->db->fetch_array($itemsq); $count_items = $items['c_items']; } } return $count_items; } function construct_xp_categories($parentid, $current, $prechars = '') { global $vbulletin, $vbphrase; $prechars .= "    "; $catq =$vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "xperience_shop_cat WHERE catstatus<>0 AND catparent=".$parentid." ORDER BY catstatus"); if ($vbulletin->db->num_rows($catq) > 0) { while ($cat = $vbulletin->db->fetch_array($catq)) { global $bgclass, $altbgclass; exec_switch_bg(); if ($current == $cat['catid']) { $cat['catname'] = "> " . $cat['catname']; } $count_items = GetItemCount($cat['catid']); eval('$categories .= "' . fetch_template('xperience_shop_cat') . '";'); $categories .= construct_xp_categories($cat['catid'], $current, $prechars); } } return $categories; } function CheckBuyConditions($itemsa, $userstats, $getphrase = false) { global $vbulletin; $allow = true; $buyphrase = "xperience_shop_buy"; if ($itemsa['quantity'] == 0) { $allow = false; $buyphrase = "xperience_shop_err_qnt"; } if ($itemsa['costs'] > $userstats["$itemsa[costfield]"]) { $allow = false; $buyphrase = "xperience_shop_err_cost"; } if (!$vbulletin->options['xperience_shop_allow_multi']) { $userq =$vbulletin->db->query_read("SELECT itemid FROM " . TABLE_PREFIX . "xperience_shop_ta WHERE itemid=".$itemsa['itemid']." AND buyer=".$userstats['userid']); if ($vbulletin->db->num_rows($userq) > 0) { $allow = false; $buyphrase = "xperience_shop_err_own"; } } if ($getphrase) { return $buyphrase; } else { return $allow; } } function fetch_xperience($userid) { global $vbulletin; $userstats = array(); $userq =$vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "xperience_stats WHERE userid=".$userid); if ($vbulletin->db->num_rows($userq) > 0) { $userstats = $vbulletin->db->fetch_array($userq); } return $userstats; } ?>
That is all that shows up on my site when this addon is enabled. I was able to globally disable the hook system in config and ultimately disable the addon.. For now anyway. Would love to get this working. Any ideas? I installed .14Beta3

Phalynx 06-16-2008 07:13 PM

Did you uploaded PHP files as text files?

MorrisMcD 06-16-2008 07:46 PM

Quote:

Originally Posted by Phalynx (Post 1551068)
Did you uploaded PHP files as text files?

Maybe not?

lol I have an IIS server on Windows.. So really, I just copied and pasted as I always do with any addon...

Not sure how else I could do it to be honest.

I saw your instructions on specifically uploading php and image files a certain way, but I kinda figured maybe that was a unix thing that didn't apply to me

Phalynx 06-16-2008 07:48 PM

You did not mention you are working with IIS.

As I also have IIS running this could not be the problem. Do you get the same error with 3.7.12?

MorrisMcD 06-16-2008 07:50 PM

Quote:

Originally Posted by Phalynx (Post 1551090)
You did not mention you are working with IIS.

As I also have IIS running this could not be the problem. Do you get the same error with 3.7.12?

I didnt actually try with .12.. This would be the first time I ever installed this addon.. I decided to go with the beta. Should I uninstall and reinstall .12? Or should I just overwrite with .12 (files and product)?

Phalynx 06-16-2008 08:11 PM

A simple overy should do it.

MorrisMcD 06-16-2008 08:30 PM

Quote:

Originally Posted by Phalynx (Post 1551106)
A simple overy should do it.

Interesting... .12 works like a charm.. At first glance anyway

Phalynx 06-16-2008 08:36 PM

You should take a higher level XML, there are too many users with level 100. Or just tweak down the point providers...

MorrisMcD 06-16-2008 08:41 PM

Quote:

Originally Posted by Phalynx (Post 1551129)
You should take a higher level XML, there are too many users with level 100. Or just tweak down the point providers...

Yea.. I am noticing that but the maintanance is still running.. Was gonna keep going up in XML levels until there are no level 100s

Awesome addon.. Ty.. I am def going to play around with it and suit it to my site... tyvm!

mikkitine 06-16-2008 09:06 PM

Get this error when deleting from the transaction log.
Quote:

Fatal error: Class 'xPerience' not found in /home/.../xperience_admin.php on line 387
Item is still deleted from the transaction log though.

Other than that, all seems well.

But, I created an item that deducts activity points. I deducted 50 points from my own profile and now my activity is locked at 50%. Does this just mean my maximum possible activity is now 50%? Also, is there a way to undo this change without uninstalling and reinstalling vBExperience?

slinky 06-16-2008 11:00 PM

Quote:

Originally Posted by Phalynx (Post 1550810)
To get support, you will need to click "Mark as Installed".

Did you run a recount after changing values in AdminCP?

OK to the first question and yes to the second. It looks like a bug. The posts number is off by a factor of 10 times the actual post number.

Greek76 06-16-2008 11:20 PM

Upgrade went smooth everything seem to be working fine but I do have a question. What is the shop for? I dont see any items to purchase.

Keyser S?ze 06-17-2008 01:08 AM

possible addon or new feature, but like on my forum the admin ( me) and mods we are around all the time, so i mean of course our levels are way higher than regular users

so what about this, for admins and mods they get a maxed our 3 bars with either Administrator over it of Moderator over it

lomg pf like this, excuse my poor artwork

Phalynx 06-17-2008 06:24 AM

Quote:

Originally Posted by mikkitine (Post 1551146)
Get this error when deleting from the transaction log.

Fixed in final.

Quote:

Originally Posted by mikkitine (Post 1551146)
But, I created an item that deducts activity points. I deducted 50 points from my own profile and now my activity is locked at 50%. Does this just mean my maximum possible activity is now 50%? Also, is there a way to undo this change without uninstalling and reinstalling vBExperience?

activity points are not useable as costfield because it's value is percentage. I removed that now from choosable fields.
Undo: Just delete the transaction. Until the final version comes out you will have to do a manual recount on that user (just write a posting and wait for cron job). The manual recount does not work currently, see above.

Quote:

Originally Posted by slinky (Post 1551188)
OK to the first question and yes to the second. It looks like a bug. The posts number is off by a factor of 10 times the actual post number.

I don't see a bug here.
Actual post number where? In your profile? vBExperience counts also posts that are in forums who are excluded of post count. Enter such a forum in the ignore forums setting.


Quote:

Originally Posted by Greek76 (Post 1551195)
Upgrade went smooth everything seem to be working fine but I do have a question. What is the shop for? I dont see any items to purchase.

The Shop must be filled by you. You can put virtual items in it, like WoW addons: Sell WoW Items in exchange of f.e. thread points. Great for RPG forums.

Quote:

Originally Posted by Keyser S?ze (Post 1551244)
possible addon or new feature, but like on my forum the admin ( me) and mods we are around all the time, so i mean of course our levels are way higher than regular users

so what about this, for admins and mods they get a maxed our 3 bars with either Administrator over it of Moderator over it

Just put your mod/admin usergroups to the ignore usergroup setting in admincp.

TimberFloorAu 06-17-2008 06:32 AM

Quote:

Originally Posted by Phalynx (Post 1550611)



It's a Bug in the Beta, will be fixed in next version.

Regarding the missing delete button, in transaction log, is this fixed in beta3?

Thanks Phalynx

mikkitine 06-17-2008 06:39 AM

Cheers, Phalynx.
Quote:

Originally Posted by TimberFloorAu (Post 1551367)
Regarding the missing delete button, in transaction log, is this fixed in beta3?

Thanks Phalynx

It is.

TimberFloorAu 06-17-2008 07:09 AM

Quote:

Originally Posted by mikkitine (Post 1551370)
Cheers, Phalynx.It is.

Cheers Mikki

TimberFloorAu 06-17-2008 07:21 AM

Ok Installed BETA 3

Tried deleting an item in transaction log, we get:

Fatal error: Class 'xPerience' not found in /home/*******/public_html/forum/admincp/xperience_admin.php on line 387

Any suggestions please SIR :)

Phalynx 06-17-2008 07:25 AM

Already reported:
https://vborg.vbsupport.ru/showpost....postcount=1053
https://vborg.vbsupport.ru/showpost....postcount=1057

The transaction is beeing deleted, but the user does not get points back immediatly, only if the user writes a posting or you run a recount.

Phalynx 06-17-2008 07:35 AM

Finally it is here! vBExperience 3.7.14 is now GOLD. I tried to include most of your wishes and fixed reported bugs.
As a paid request of the The Brotherhood of International Gamers, a virtual Shop has been introduced.

How to upgrade?
1. Copy ALL (I mean ALL) files from /upload/ to the server. Espacially take care of the images, copy them to your style misc folder if you use a customized style
2. ReImport product_vbexperience3714.xml, allow overwrite
3. If you modified any of the vBExperience templates, revert them
4. Run Maintenance Tools/Recount

These are the changes:
3.7.14, 17th June 2008
- Added "Custom Data Provider" - you can now define your own data providers and extend vBExperience to calculate data that you choose. You will need some experience in creating mods to work with the hooks.
- Added Shop: Users can buy virtual items that you can define via AdminCP. You can decide which points should be substracted by a purchase. Supports categories.
- Added: Navigaton bar
- Added new xperience: "thanks - vS-Hide Hack Resurrection (Expanded Edition)". This one is controlled by the already existing "thanks" setting.
- Awards: Manual assign of awards to multiple users possible via seperating ID's with a comma
- Awards: Removed underlining on Username
- Awards: Fields for calculation are now translated and sorted
- Experience: Now working with "Memberlist per page" (formerly static 50 users per page)
- Experience: Added possibility to search members by name
- Experience: Added new setting: Count only active users. Only users who were active in the last X days are beeing calculated. Speeds up performance on large boards.
- Experience: Added new behaviour: Stats of ignored users/usergroups are deleted
- Experience: Fixed double stats for particular users
- Added: Before installation, check if class_xperience.php is uploaded
- Smaller fixes/changes

Kral.Hakan 06-17-2008 08:01 AM

thank's

mikkitine 06-17-2008 08:16 AM

Brilliant!

KURTZ 06-17-2008 10:06 AM

thx Marius :) just a question: what about the 'limit per user awards'?

Phalynx 06-17-2008 10:11 AM

Currently not implemented - as it states in description :)
It did not work satisfyable for me, so I removed it temporary.

Droptop 06-17-2008 10:28 AM

Hi just upgraded from the older version, and I'm running 3.7.1 The new version is causing spacing between usernames in the current active users, and in another hack users active in the past 24hrs. Any ideas? Thanks

Phalynx 06-17-2008 10:35 AM

Disable "Use Awards in rich username?" until I find a solution for this.

Droptop 06-17-2008 10:44 AM

That did the trick, thanks. Will just wait for the fix before enabling again.

Kaitlyn2004 06-17-2008 11:21 AM

Quote:

Originally Posted by Kaitlyn2004 (Post 1551050)
I am looking to try this out on a board with:
- 160,000 members
- 32,000 posts/week
- about 6 million posts

Will this be suitable or will it just cause way too much load?

bump... was just hoping someone could shed some light on whether or not this would be possible...

Phalynx 06-17-2008 11:28 AM

Quote:

Originally Posted by Kaitlyn2004 (Post 1551543)
bump... was just hoping someone could shed some light on whether or not this would be possible...

This is something noone can definitly answer you. It depends much on the performance of your server and also on the options you selected. I would suggest to try it out.

In case vBExperience is nothing for your forum, you can uninstall it.

Megatr0n 06-17-2008 11:48 AM

Will this hack conflict with vBPlaza since that as it's own virtual shop.

Vinyljunky 06-17-2008 11:51 AM

Due to my lack of experience I have a few questions :D

How/Where do I find the plugins for products such as LDM?

How do I manually assign an award?
I tried AdminCP -> VBExperience -> Manage Awards -> Edit Community Award -> Change "Assign this Award manual to users" from 0 to 0, 123456 (User Id) (Also tried username)
However the Awards dont show :confused:

I know Im doing something wrong but Im not sure what :o

Can somebody educate me

Thanks

VinylJunky

Phalynx 06-17-2008 12:16 PM

Quote:

Originally Posted by Megatr0n (Post 1551553)
Will this hack conflict with vBPlaza since that as it's own virtual shop.

No, as it uses own tables.

Quote:

Originally Posted by Vinyljunky (Post 1551557)
How/Where do I find the plugins for products such as LDM?

You don't need plugins as they are automatically recognized and included. The Plugins are only needed if you want to include hacks that are not listed here.

Quote:

Originally Posted by Vinyljunky (Post 1551557)
How do I manually assign an award?
I tried AdminCP -> VBExperience -> Manage Awards -> Edit Community Award -> Change "Assign this Award manual to users" from 0 to 0, 123456 (User Id) (Also tried username)

Use the UserID(s). Is the display order set to 0?

Vinyljunky 06-17-2008 02:27 PM

Quote:

Originally Posted by Phalynx (Post 1551593)
You don't need plugins as they are automatically recognized and included. The Plugins are only needed if you want to include hacks that are not listed here.

Thanks Ive sussed that bit now!

How do I manually assign an award?

I tried AdminCP -> VBExperience -> Manage Awards -> Edit Community Award -> Change "Assign this Award manual to users" from 0 to 0, 123456 (User Id) (Also tried username)
However the Awards dont show :confused:

Quote:

Originally Posted by Phalynx (Post 1551593)

Use the UserID(s). Is the display order set to 0?


No, it is set to 1 :up:

Do I set "Assign this Award manual to users" to 0, 68998, 69048 to have auto and manually assigned?


Thanks

VinylJunky

Phalynx 06-17-2008 02:36 PM

Don't use the 0 in manual assign, it will disable manual assign. If you manual assign an award, it will not be automatically assigned. Use 0 or UserID(s), but not a combination of both.

Vinyljunky 06-17-2008 02:53 PM

Quote:

Originally Posted by Phalynx (Post 1551694)
Don't use the 0 in manual assign, it will disable manual assign. If you manual assign an award, it will not be automatically assigned. Use 0 or UserID(s), but not a combination of both.

So if I want to Auto and manually assign I need to duplicate the award?

It would be nice if we didnt have to do that :o

Thanks

VinylJunky

rinkrat 06-17-2008 02:59 PM

I like the shop but is there any way we can buy the items for other users aka "gifts". That is what I miss the most about the old shops.

Phalynx 06-17-2008 03:03 PM

Quote:

Originally Posted by Vinyljunky (Post 1551704)
So if I want to Auto and manually assign I need to duplicate the award?

It would be nice if we didnt have to do that

I will redo the code for the awards for 3.7.15, maybe I will include this also.

Quote:

Originally Posted by rinkrat (Post 1551711)
I like the shop but is there any way we can buy the items for other users aka "gifts". That is what I miss the most about the old shops.

Will be in 3.7.15


All times are GMT. The time now is 10:54 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.02496 seconds
  • Memory Usage 1,864KB
  • 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
  • (25)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