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


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