The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
uCash & uShop old support and thank you thread Details »» | |||||||||||||||||||||||||||
uCash & uShop old support and thank you thread
Developer Last Online: Aug 2005
/me Installs. I'm the first for the most aniticipated hack!!1
Show Your Support
|
Comments |
#2302
|
|||
|
|||
I have just installed this, i have to say, thank you for such a simple install... was a piece of cake!
However, im getting a error... I get Warning: Invalid argument supplied for foreach() in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/ushop.php on line 151 on http://www.majorfm.com/forum/ushop.php Please advise |
#2303
|
||||
|
||||
Did you run the installer.
|
#2304
|
|||
|
|||
why is all my question ignored?
if im doing something wrong then please tell me...and please answer my question.(two post above this) |
#2305
|
||||
|
||||
Quote:
2. Yes. |
#2306
|
|||
|
|||
Quote:
|
#2307
|
|||
|
|||
I dont know what has happend, but its fixed itself, i assume this is a error when the system has no points, the minute someone earned a point, it all worked fine.
Has the option to buy points via paypal been released yet? i would love this and so would many others, i have seen it on some forums like: http://board.rapmusic.com/ushop.php http://board.rapmusic.com/buypoints.php |
#2308
|
|||
|
|||
Just noticed, i get the following error when trying to add to a users reputation:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/local/apache/www/crazyapes/majorfmforum.com/htdocs/forum/reputation.php on line 196 Please advise link 196 is this Code:
if ($vboptions['uttpoints_enablesystem'] == '1') |
#2309
|
|||
|
|||
ok i think i have fixed this
the code was Code:
$DB_site->query(" INSERT INTO " . TABLE_PREFIX . "reputation (postid, reputation, userid, whoadded, reason, dateline) VALUES ($postid, $score, $userid, $bbuserinfo[userid], '" . addslashes(fetch_censored_text($reason)) . "','" . TIMENOW . "') // ## <ucs> if ($vboptions['uttpoints_enablesystem'] == '1') { // It's enabled! Yay! if ($score > '0') { // If the amount of reputation is positive... if ($vboptions['uttpoints_pointsforgreputation'] != '0') { // Needed value is not 0... good. $givethempoints = ($vboptions['uttpoints_pointsforgreputation'] * $score); } } else { // If the amount of reputation is negative... if ($vboptions['uttpoints_pointsforbreputation'] != '0') { // Needed value is not 0... good. $givethempoints = ($vboptions['uttpoints_pointsforbreputation'] * $score); } } if (isset($givethempoints)) { // If they get money.... // Send the query and we're done. $DB_site->query("UPDATE ".TABLE_PREFIX . $vboptions[uttpoints_pointtable]." SET ".$vboptions[uttpoints_pointsfield]."=".$vboptions[uttpoints_pointsfield]."+".$givethempoints." WHERE userid='$userinfo[userid]'"); } } // ## </ucs>"); Code:
$DB_site->query(" INSERT INTO " . TABLE_PREFIX . "reputation (postid, reputation, userid, whoadded, reason, dateline) VALUES ($postid, $score, $userid, $bbuserinfo[userid], '" . addslashes(fetch_censored_text($reason)) . "','" . TIMENOW . "') "); // ## <ucs> if ($vboptions['uttpoints_enablesystem'] == '1') { // It's enabled! Yay! if ($score > '0') { // If the amount of reputation is positive... if ($vboptions['uttpoints_pointsforgreputation'] != '0') { // Needed value is not 0... good. $givethempoints = ($vboptions['uttpoints_pointsforgreputation'] * $score); } } else { // If the amount of reputation is negative... if ($vboptions['uttpoints_pointsforbreputation'] != '0') { // Needed value is not 0... good. $givethempoints = ($vboptions['uttpoints_pointsforbreputation'] * $score); } } if (isset($givethempoints)) { // If they get money.... // Send the query and we're done. $DB_site->query("UPDATE ".TABLE_PREFIX . $vboptions[uttpoints_pointtable]." SET ".$vboptions[uttpoints_pointsfield]."=".$vboptions[uttpoints_pointsfield]."+".$givethempoints." WHERE userid='$userinfo[userid]'"); } } // ## </ucs> Code:
$DB_site->query(" UPDATE " . TABLE_PREFIX . "user SET reputation = $userinfo[reputation], reputationlevelid = $reputationlevelid WHERE userid = $userinfo[userid] Code:
$DB_site->query(" UPDATE " . TABLE_PREFIX . "user SET reputation = $userinfo[reputation], reputationlevelid = $reputationlevelid WHERE userid = $userinfo[userid] "); |
#2310
|
||||
|
||||
Quote:
and yes there is a paypal action that is avaible at Geeky Designs forums. |
#2311
|
|||
|
|||
must be my eyes at 5 in the mornin... lol
and thanks, i just bought the paypal addon..! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|