[2.0.18] Cash Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply

Rating:

Excellent!
1036
66%
Very Good
239
15%
Good
121
8%
Fair
36
2%
Poor
126
8%
 
Total votes: 1558

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 5:31 am

gigasonic wrote: ya i checked there is only one in there and im not sure if it has cash feild in it but there is only one


err. anyway, that's the line you're looking for

does it look like

Code: Select all

$sql = "SELECT u.*
or like

Code: Select all

$sql = "SELECT u.username, ...
?
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

gigasonic
Registered User
Posts: 16
Joined: Wed Jul 09, 2003 3:14 am

Post by gigasonic » Wed Aug 13, 2003 5:33 am

err. anyway, that's the line you're looking for

does it look like

Code: Select all

$sql = "SELECT u.*
or like

Code: Select all

$sql = "SELECT u.username, ...
?[/quote]

do you mean the string im looking for thats correct its found that but it cant find the cash_field

EDIT:oh and it starts like this:
$sql = "SELECT u.username

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 5:37 am

can you post the whole line please?
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

gigasonic
Registered User
Posts: 16
Joined: Wed Jul 09, 2003 3:14 am

Post by gigasonic » Wed Aug 13, 2003 5:40 am

Xore wrote: can you post the whole line please?


ok here it is the whole line:

$sql = "SELECT u.username, u.user_id, u.user_items, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile,$cash_field p.*, pt.post_text, pt.post_subject, pt.bbcode_uid


oops i got a bit of the next line lemme fix that

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 5:45 am

gigasonic wrote:
Xore wrote:can you post the whole line please?


ok here it is the whole line:

$sql = "SELECT u.username, u.user_id, u.user_items, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile,$cash_field p.*, pt.post_text, pt.post_subject, pt.bbcode_uid


oops i got a bit of the next line lemme fix that

Magnifying Glass wrote: $cash_field p.*,


it looks like it's there

perhaps, try adding a space before $cash_field, and see if that helps your installer script...
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

gigasonic
Registered User
Posts: 16
Joined: Wed Jul 09, 2003 3:14 am

Post by gigasonic » Wed Aug 13, 2003 5:48 am

nope same thing happends:
Critical Error

FIND FAILED: In file [viewtopic.php] could not find:

$cash_field p.*,

MOD script line #437

and im pretty positive that moogies mod is easymod capable(if it werent it wouldnt have gotten so far...)

EDIT:are you sure your even supposed to have that p.* thing in there?

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 6:01 am

gigasonic wrote: nope same thing happends:
Critical Error

FIND FAILED: In file [viewtopic.php] could not find:

$cash_field p.*,

MOD script line #437

and im pretty positive that moogies mod is easymod capable(if it werent it wouldnt have gotten so far...)

EDIT:are you sure your even supposed to have that p.* thing in there?


i'm not sure how to approach this. That piece of text is obviously there. Try doing that section of the install manually, and then remove that part from the installer and see if it runs

short of that, i can't really help you.
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

gigasonic
Registered User
Posts: 16
Joined: Wed Jul 09, 2003 3:14 am

Post by gigasonic » Wed Aug 13, 2003 6:02 am

ok ill try but thats for at least trying to help(it probably would have been easyer if i had thought of that fromt eh start)

EDIT: dang it that jsut cause anouther error:
Critical Error

FIND FAILED: In file [templates/subSilver/profile_add_body.tpl] could not find:

<tr>
<td class="row2"><span class="genmed"><b>{L_TIMEZONE}:</b></span></td>
<td class="row1"><span class="gensmall">{TIMEZONE_SELECT}</b></span></td>
</tr>

MOD script line #491
this is getting redundant

Q-Zar
Registered User
Posts: 779
Joined: Sun Nov 17, 2002 8:30 pm
Location: Brussels
Contact:

Post by Q-Zar » Wed Aug 13, 2003 8:59 am

Either you did something wrong, or the problem is with easymod.
Because I installed the cash mod, and afterwards moogie's mod, and both work fine.
There is also a cash mod compatibility text file in moogie's mod, did you perform those actions as well ? (I don't exactly remember what's in it, but maybe that's where the problem is if you forgot it)
Traductions : Cash Mod v2.2.2 (Getting Started) / Dice Mod v1.2.3 / Activity Mod Plus 1.0.8
Remember this. Please read the F.A.Q/Troubleshooting of a mod before asking questions.
Image

DivineAthena
Registered User
Posts: 46
Joined: Mon Aug 04, 2003 9:59 am
Contact:

Post by DivineAthena » Wed Aug 13, 2003 9:03 am

hello. I installed the Cash MOD, but when I try to access and modify it from my admin panel, this message appears;

phpBB : Critical Error

Could not query the logs table

DEBUG MODE

SQL Error : 1146 Table 'athena_emma.CASH_LOGS_TABLE' doesn't exist

SELECT count(log_id) FROM CASH_LOGS_TABLE

Line : 198
File : /home/athena/public_html/forum/admin/admin_cash_log.php


A friend of mine said it had something to do with my database or something :?
Anyway, what's wrong and what can I do about it??

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 9:05 am

DivineAthena wrote:

Code: Select all

SELECT count(log_id) FROM CASH_LOGS_TABLE 
Anyway, what's wrong and what can I do about it??


Please read my Cash Mod Support thread, it deals with your problem directly.
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

DivineAthena
Registered User
Posts: 46
Joined: Mon Aug 04, 2003 9:59 am
Contact:

Post by DivineAthena » Wed Aug 13, 2003 11:34 am

ok..err..where is it? the link you gave me leads back to this thread

User avatar
aradcliff
Registered User
Posts: 23
Joined: Wed Jul 09, 2003 11:25 pm
Location: Lost
Contact:

Tiny Addon

Post by aradcliff » Wed Aug 13, 2003 1:46 pm

Little tiny tidbit addon: If you're using an image to display the cash, this will add the name of the cash to the image's alt tag in viewtopic and viewprofile so people know what the currency is.

In viewtopic.php, find:

Code: Select all

		$template->assign_block_vars('postrow.cashrow', array(	'CASH_NAME' => (($cash_set['cash_image'] == 1)?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" />'):($cash_set['cash_name'])),
replace it with:

Code: Select all

		$template->assign_block_vars('postrow.cashrow', array(	'CASH_NAME' => (($cash_set['cash_image'] == 1)?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" alt="'.$cash_set['cash_name'].'" />'):($cash_set['cash_name'])),
In includes/usercp_viewprofile.php, find:

Code: Select all

		$template->assign_block_vars('cashrow', array(	'CASH_NAME' => (($cash_set['cash_image'])?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" />'):($cash_set['cash_name'])),
replace it with:

Code: Select all

		$template->assign_block_vars('cashrow', array(	'CASH_NAME' => (($cash_set['cash_image'])?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" alt="'.$cash_set['cash_name'].'" />'):($cash_set['cash_name'])),

User avatar
ilpil
Registered User
Posts: 98
Joined: Fri Dec 21, 2001 9:20 pm

Post by ilpil » Wed Aug 13, 2003 4:01 pm

I wonder if someone has come up with any solution to the problem with Editing posts? A number of ppl had it when 2.0.0 was released i believe.

For me, The cash isn't subtracted when removing lines from my post, so you can just post a big spam post and then change it , giving you max cash :)

And it's possible to just edit the post and add a lot of text and it will even break the "max cash amount per post"-limit! Note: No text will be there when you post (the "You earned..."-part i mean). It just adds the cash! Though this part was solved by adding the "$added = 0;" as Xore suggested and taking away the "$added = ( $n (etc tec)".

I tried using the 2.0.2 functions_cash.php and its the same there. PHP 4.2.2 and 4.2.0 tested.

So basically, it's the first mentioned problem i really need to get fixed, the one with not subtracting at all.. :? Do I need a newer PHP-version?

Thanks in advance!

Xore
Former Team Member
Posts: 2594
Joined: Wed Apr 16, 2003 7:42 pm
Location: the wastelands between insomnia and clairvoyance
Contact:

Post by Xore » Wed Aug 13, 2003 4:22 pm

DivineAthena wrote: ok..err..where is it? the link you gave me leads back to this thread


Yes. if you read that post (the link is, once again, Cash Mod Support, you can find it in my signature), you will find that it spells out how to deal with a lot of common problems that people make when they mess up installing Cash Mod. Please read it.
Camels in the Mist
<noise type="random" source="camel" />
Cash Mod

Post Reply

Return to “[2.0.x] MOD Database Releases”

cron