Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop
uCash & uShop old support and thank you thread Details »»
uCash & uShop old support and thank you thread
Version: , by BarHopper BarHopper is offline
Developer Last Online: Aug 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-12-2004 Last Update: Never Installs: 0
 
No support by the author.

/me Installs. I'm the first for the most aniticipated hack!!1

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #372  
Old 04-13-2004, 06:44 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have someone who's points're in the minus range (-9). Is that normal? Everything else has been fine still, by the way. Even with the Arcade Pass.
Reply With Quote
  #373  
Old 04-13-2004, 06:48 PM
vhoang vhoang is offline
 
Join Date: Mar 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To Matt: i cant seem to get "point per view" to work, u have any suggestion? Thanks.
Reply With Quote
  #374  
Old 04-13-2004, 06:49 PM
vhoang vhoang is offline
 
Join Date: Mar 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King
I have someone who's points're in the minus range (-9). Is that normal? Everything else has been fine still, by the way. Even with the Arcade Pass.
He/she might have tried "Thief" options!!!
Reply With Quote
  #375  
Old 04-13-2004, 06:59 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zelda-King
I have someone who's points're in the minus range (-9). Is that normal? Everything else has been fine still, by the way. Even with the Arcade Pass.
Sounds like a possible small bug.Can you go to that user's user history (ushop.php?do=userhistory&u=<userid>) and see what actions they used to get into the negatives?
Reply With Quote
  #376  
Old 04-13-2004, 07:00 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vhoang
To Matt: i cant seem to get "point per view" to work, u have any suggestion? Thanks.
I think Zachery missed a file edit when he was making the HTML file. Hold on and I'll post it.

EDIT: More than one actually.
Reply With Quote
  #377  
Old 04-13-2004, 07:06 PM
vhoang vhoang is offline
 
Join Date: Mar 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
I think Zachery missed a file edit when he was making the HTML file. Hold on and I'll post it.

EDIT: More than one actually.
Clear enuf, thanks. I'll wait for ur post.
Reply With Quote
  #378  
Old 04-13-2004, 07:09 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From what I can see, Zachery missed two file edits - meaning points per views and points for reputation won't work.

In reputation.php:
Find:
PHP 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 "')
    "
); 
Add below:
PHP Code:
    // ### START UTT POINTS SYSTEM  ###
    
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]'");
        }
    } 
In showthread.php:
Find:
PHP Code:
    $DB_site->shutdown_query("
        INSERT INTO " 
TABLE_PREFIX "threadviews (threadid)
        VALUES (" 
intval($threadinfo['threadid']) . ')'
    
);

Add below:
PHP Code:
// ### START UTT POINTS SYSTEM  ###
if ($vboptions['uttpoints_enablesystem'] == '1')
// It's enabled! Yay!
    
if ($thread['postuserid'] != $bbuserinfo['userid'])
    { 
// Don't give points if the user viewing the thread is the one who created it.
        
if ($vboptions['uttpoints_perview'] != '0' && $forum['uttpoints_perview'] != '0')
        { 
// Both needed values are not 0... good.
                
$givethempoints = ($vboptions['uttpoints_perview'] * $forum['uttpoints_perview']);
        }
    }
    if (isset(
$givethempoints))
    { 
// If they get money....
        // Send the query and we're done.
        
$DB_site->shutdown_query("UPDATE ".TABLE_PREFIX $vboptions[uttpoints_pointtable]." SET ".$vboptions[uttpoints_pointsfield]."=".$vboptions[uttpoints_pointsfield]."+".$givethempoints." WHERE userid='$thread[postuserid]'");
    }

The zip will be updated accordingly in a few minutes.
Reply With Quote
  #379  
Old 04-13-2004, 07:19 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
Sounds like a possible small bug.Can you go to that user's user history (ushop.php?do=userhistory&u=<userid>) and see what actions they used to get into the negatives?
It says "No History Found". They've gone up to 17 now, by the way (+17 that is).
Reply With Quote
  #380  
Old 04-13-2004, 07:19 PM
vhoang vhoang is offline
 
Join Date: Mar 2004
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated, it works. Thanks Matt a bunch!!!!!
Reply With Quote
  #381  
Old 04-13-2004, 07:28 PM
erikajune's Avatar
erikajune erikajune is offline
 
Join Date: Jan 2004
Location: Canada
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
Re-download the zip file and re-upload the installer. When you load up ushop_install.php, there is a link: "Click here to install ONLY the templates (useful after upgrading vBulletin) -->", use it to redo the templates.
That worked! The links now work.

Now just that error I get every once and a while. Hmmm

Also, when I went to remove a glow - it charged me the amount of a glow. ??
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06845 seconds
  • Memory Usage 2,354KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete