Follow vBSEO on Twitter
vBulletin Modifications
  • Forums
  • Add-Ons
  • Template Modifications
  • Styles
  • Graphics
  • Tutorials
  • Support Center
  • Register
  • vBulletin SEO

Member Log In

Site Navigation

  • Register
  • Members List
  • Social Groups
  • Search
  • Today's Posts
  • Mark Forums Read

Latest Modifications

  • [vB 3.8.4] THX - Hack for VB. 3.8.4
    By: bluedog
  • [vB 3.8.4] Cyb - Chatbox V.2.3
    By: bluedog
  • [vB 4.0.x] PHPKD - Advanced Quick...
    By: PHPKD
  • [vB 3.6.x] StopSpam
    By: flappi282
  • [vB 3.8.x] vBulletin Chat Addon for...
    By: 123flashchat

Latest Template Mods

  • [vB 4.0.x] Remove My Profile Link...
    By: Ak Worm
  • [vB 3.8.x] Images DownloadBox...
    By: cRs!MP
  • [vB 3.8.x] Adviertise Mod On Forum...
    By: MG4
  • [vB 3.8.4] Images PassWordBox...
    By: cRs!MP
  • [vB 3.8.4] Footer Follow Ups
    By: Ak Worm

Latest Styles

  • [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
    By: Belon
  • [vB 4.0.x] [4.0.3] vbdesigns.de...
    By: Belon
  • [vB 3.8.4] CompletevB - Skylight
    By: DreadKnight
  • [vB 3.8.3] [vB 3.8.4] Barcelona...
    By: hoiquantinhoc.com
  • [vB 3.8.3] Natures Walk by vBSkin...
    By: Chri5

Latest Graphics

  • [vB ] [anim.]Team Ranks
    By: cRs!MP
  • [vB ] Abstract Circles (3...
    By: cRs!MP
  • [vB ] PlayStation Rank Images
    By: cRs!MP
  • [vB 3.6.12] Heavy Stroked Button...
    By: Shelley
  • [vB ] Minature Ranks.
    By: Shelley
vBulletin Modifications » General vBulletin Section » vBulletin Modification Requests » [Req] Transaction Mod For uCash/uShop..read please ;)
Reply
Page 1 of 6 1 23 > Last »

 

  • Thread Tools
Old 03-23-2005, 08:39 PM   #1
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default [Req] Transaction Mod For uCash/uShop..read please ;)
Hey Folks

I've found this site very helpful .. and am in very dire need for a mod that i cant find anywhere:

Transactions Mod for uCash/uShop that'll show transactions based on user ID (ex: transaction.php?userid=1), a global transaction (ex: transaction.php?do=global) and that it shows the person's whos logged in transactions on the default page (ex: transaction.php?) that shows all Admin Donates And Regular Donations for each.

Might sound like alot, I kno...i tried coding it myself, but failed quite miserably..lol..

if you need something to refer to or to see what i started with, i'll post the code I had

Thanks!

TwiSteD aka Tyler
Reply With Quote
Old 03-23-2005, 09:19 PM   #2
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default
here's what i had and got myself frustrated with before stopping:

PHP Code:
<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'transactions');
define('NO_REGISTER_GLOBALS', 1);

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
    
'TRANSACTIONS_GLOBAL',
    
'transactions_userid',
    
'transactions_mine',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

if ( 
$bbuserinfo['userid'] == 0 )
{
    
print_no_permission();
}

if ( 
$_REQUEST['do'] == 'global' )
{
    
$get = $DB_site->query('SELECT * from ' . TABLE_PREFIX . 'utt_store_history WHERE action="Donate" AND action="Admin Donate" ORDER BY historyid DESC');
    while ( 
$getstuff = $DB_site->fetch_array($get) )
    {
        
$userid = $getstuff['userid'];
        
$action = $getstuff['action'];
        
$tousr    = $getstuff['touser'];
        
$touid    = $getstuff['touserid'];
        
$cost    = $getstuff['totalcost'];
        
$hisid    = $getstuff['historyid'];
        eval(
'print_output("' . fetch_template('TRANSACTIONS_GLOBAL') . '");');
    }
}
else if ( 
$_REQUEST['userid'] )
{
    
$getuser = $DB_site->query('SELECT * from ' . TABLE_PREFIX . 'utt_store_history WHERE userid="' . $_REQUEST['userid'] . '" AND action="Admin Donate" AND action="Donate" ORDER BY historyid DESC');
    while ( 
$getuid = $DB_site->fetch_array($getuser) )
    {
        
$userid = $getuid['userid'];
        
$action = $getuid['action'];
        
$tousr    = $getuid['touser'];
        
$touid    = $getuid['touserid'];
        
$cost    = $getuid['totalcost'];
        
$hisid    = $getuid['historyid'];
        eval(
'print_output("' . fetch_template('transactions_userid') . '");');
    }
}
else
{
    
$get = $DB_site->query('SELECT * from ' . TABLE_PREFIX . 'utt_store_history WHERE userid="' . $bbuserinfo['userid'] . '" AND action="Donate" AND action="Admin Donate" ORDER BY historyid DESC');
    while ( 
$getstuff = $DB_site->fetch_array($get) )
    {
        
$userid = $getstuff['userid'];
        
$action = $getstuff['action'];
        
$tousr    = $getstuff['touser'];
        
$touid    = $getstuff['touserid'];
        
$cost    = $getstuff['totalcost'];
        
$hisid    = $getstuff['historyid'];
        eval(
'print_output("' . fetch_template('transactions_mine') . '");');
    }
}

eval(
'$navbar = "' . fetch_template('navbar') . '";');

?>
Reply With Quote
Old 03-24-2005, 03:52 PM   #3
Arnoud
vBulletin Guru

Arnoud's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss3129
Location: Europe, Flanders
Arnoud is on a distinguished road
Send a message via MSN to Arnoud Send a message via Yahoo to Arnoud
Status: Offline Default
I can't see anything wrong with that code.
I only looked through it briefly, though.

What error does it give you?
Reply With Quote
Old 03-24-2005, 05:57 PM   #4
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default
i have all the templates done right..it just prints out a blank page :(
Reply With Quote
Old 03-24-2005, 06:23 PM   #5
Arnoud
vBulletin Guru

Arnoud's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss3129
Location: Europe, Flanders
Arnoud is on a distinguished road
Send a message via MSN to Arnoud Send a message via Yahoo to Arnoud
Status: Offline Default
Have you added the template to all styles?
Reply With Quote
Old 03-24-2005, 07:36 PM   #6
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default
yes..considering i only have one skin :p
Reply With Quote
Old 03-24-2005, 09:35 PM   #7
Arnoud
vBulletin Guru

Arnoud's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss3129
Location: Europe, Flanders
Arnoud is on a distinguished road
Send a message via MSN to Arnoud Send a message via Yahoo to Arnoud
Status: Offline Default
Hehe

Have you already tried going to ?do=global?
Because 99% when it shows a blank page, the template doesnt exits, or simply isnt called.
Reply With Quote
Old 03-24-2005, 09:42 PM   #8
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default
yeah i've tried all of the things i set up :(

http://www.corrupted-minds.org/trans....php?do=global
http://www.corrupted-minds.org/transaction.php?userid=1
http://www.corrupted-minds.org/transaction.php?
Reply With Quote
Old 03-24-2005, 09:57 PM   #9
Arnoud
vBulletin Guru

Arnoud's Avatar

Activity Longevity
0/20 18/20
Today Posts
0/3 sssss3129
Location: Europe, Flanders
Arnoud is on a distinguished road
Send a message via MSN to Arnoud Send a message via Yahoo to Arnoud
Status: Offline Default
Hmm, I see....

Can you maybe post a template, dont need all, 1 is good.
Reply With Quote
Old 03-25-2005, 01:20 AM   #10
TwiSteD
vB User

Activity Longevity
0/20 17/20
Today Posts
0/3 ssssss100
Location: North Carolina
Age: 22
TwiSteD is on a distinguished road
Status: Offline Default
TRANSACTIONS_GLOBAL:

Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<table cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
	<tr>
		<td align="left" style="text-align: left;">
			<table width="100%" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="left">
<tr>
	<td class="tcat" align="center" colspan="4"><b>Transactions</b></td>

</tr>
<tr valign="top" align="center">
	<td class="thead">&nbsp;User</td>
	<td class="thead">Total Cost</td>
	<td class="thead">To User</td>
</tr>
<tr valign="top" align="center">
	<td class="$class">&nbsp;<a href="member.php?u=$userid">$username</a></td>
	<td class="$class">$cost</td>
	<td class="$class"><a href="/member.php?u=$touid">$tousr</a></td>
</tr>
</td></tr></table>
</table>
<br />

$footer
</body>
</html>
its the same for them all since they all have the same variables.
Reply With Quote

Reply
Page 1 of 6 1 23 > Last »

« [req]Credits hack | [TouchingVirus.FXP.HACK.v3] related »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Mod Plzzz Read cool999 vBulletin Modification Requests 3 02-17-2007 11:25 AM
Need Mod Plz Read cool999 vBulletin Modification Requests 11 02-03-2007 05:15 PM
[REQ] Simple HIDE mod wartom vBulletin Modification Requests 3 01-02-2006 06:40 AM
[REQ] Admin Can Read Other PMs Thai vBulletin Modification Requests 2 11-23-2005 09:30 PM



All times are GMT. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Transverse Styles
  • Top
  • Archive
  • vBSEO
  • Contact Us
LinkBack
LinkBack URL LinkBack URL
About LinkBacks About LinkBacks
Bookmark & Share
Digg this Thread! Digg this Thread!
Add Thread to del.icio.us Add Thread to del.icio.us
Bookmark in Technorati Bookmark in Technorati
Furl this Thread! Furl this Thread!