vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   uCash & uShop old support and thank you thread (https://vborg.vbsupport.ru/showthread.php?t=73736)

MajorFm.com 01-02-2005 02:09 AM

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

Zachery 01-02-2005 03:15 AM

Did you run the installer.

Sai01 01-02-2005 03:32 AM

why is all my question ignored?

if im doing something wrong then please tell me...and please answer my question.(two post above this)

Link14716 01-02-2005 04:23 AM

Quote:

Originally Posted by Sai01
is it possible to see which user donate points/cash to you?

you get interest if you put points/cash in the bank rite?

1. If you view the purchase history for the donate action, you should see who donated what to who. Also, in uShop 1.00, PMs will be sent on a donation.

2. Yes.

MajorFm.com 01-02-2005 11:46 AM

Quote:

Originally Posted by Zachery
Did you run the installer.

Yes i did run the installer, i did everything eactly step by step..

MajorFm.com 01-02-2005 02:20 PM

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

MajorFm.com 01-02-2005 02:34 PM

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')

MajorFm.com 01-02-2005 02:41 PM

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>");

but i moved the ucs code after the ");

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>

I think thats a small error in the installation guide as im pretty sure it said add that code in after

Code:

        $DB_site->query("
                UPDATE " . TABLE_PREFIX . "user
                SET        reputation = $userinfo[reputation],
                        reputationlevelid = $reputationlevelid
                WHERE userid = $userinfo[userid]

and not after

Code:

        $DB_site->query("
                UPDATE " . TABLE_PREFIX . "user
                SET        reputation = $userinfo[reputation],
                        reputationlevelid = $reputationlevelid
                WHERE userid = $userinfo[userid]
        ");


Zachery 01-02-2005 03:34 PM

Quote:

Originally Posted by MajorFm.com
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>");

but i moved the ucs code after the ");

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>

I think thats a small error in the installation guide as im pretty sure it said add that code in after

Code:

        $DB_site->query("
                UPDATE " . TABLE_PREFIX . "user
                SET        reputation = $userinfo[reputation],
                        reputationlevelid = $reputationlevelid
                WHERE userid = $userinfo[userid]

and not after

Code:

        $DB_site->query("
                UPDATE " . TABLE_PREFIX . "user
                SET        reputation = $userinfo[reputation],
                        reputationlevelid = $reputationlevelid
                WHERE userid = $userinfo[userid]
        ");


There are no errors inside of the guide that we are aware of, most of the time when there is an error it is on the end user

and yes there is a paypal action that is avaible at Geeky Designs forums.

MajorFm.com 01-02-2005 04:27 PM

must be my eyes at 5 in the mornin... lol

and thanks, i just bought the paypal addon..!


All times are GMT. The time now is 07:02 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.04393 seconds
  • Memory Usage 1,786KB
  • 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
  • (9)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (3)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