![]() |
Quote:
|
Please mail me your XML file, I'll take a look. I will send you eMail address via PN.
|
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? |
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; } ?> |
Did you uploaded PHP files as text files?
|
Quote:
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 |
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? |
Quote:
|
A simple overy should do it.
|
Quote:
|
You should take a higher level XML, there are too many users with level 100. Or just tweak down the point providers...
|
Quote:
Awesome addon.. Ty.. I am def going to play around with it and suit it to my site... tyvm! |
Get this error when deleting from the transaction log.
Quote:
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? |
Quote:
|
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.
|
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 |
Quote:
Quote:
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:
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:
Quote:
|
Quote:
Thanks Phalynx |
Cheers, Phalynx.
Quote:
|
Quote:
|
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 :) |
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. |
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 |
thank's
|
Brilliant!
|
thx Marius :) just a question: what about the 'limit per user awards'?
|
Currently not implemented - as it states in description :)
It did not work satisfyable for me, so I removed it temporary. |
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
|
Disable "Use Awards in rich username?" until I find a solution for this.
|
That did the trick, thanks. Will just wait for the fix before enabling again.
|
Quote:
|
Quote:
In case vBExperience is nothing for your forum, you can uninstall it. |
Will this hack conflict with vBPlaza since that as it's own virtual shop.
|
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 |
Quote:
Quote:
Quote:
|
Quote:
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:
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 |
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.
|
Quote:
It would be nice if we didnt have to do that :o Thanks VinylJunky |
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.
|
Quote:
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|