Ca$h MOD

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Ca$h MOD

Post by Jdude »

I am running phpBB 2.20, (I know, I need to update) but anyway, although the CA$H MOD claims it is EM compliant, no luck. It gives me the following:
EasyMod wrote: Critical Error

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

$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';

MOD script line #253 :: FAQ :: Report


My board does have other MODs, but nothing major like this.
I <3 phpBB!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Ca$h MOD

Post by Nightrider »

The Cash MOD is not an easy MOD to install, so I'm not surprised that you are having trouble with it. Since we have run into the error you have below several times, I can pretty much guess what you need to do without even looking at your posting.php file...

Try this:

OPEN
cm_install_223.txt

FIND

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
		$select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';
REPLACE WITH

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
$select_sql = 
Save, upload, and try again using EM...

Image

Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Re: Ca$h MOD

Post by Jdude »

I only have cm_install_221.txt...
I <3 phpBB!

Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Re: Ca$h MOD

Post by Jdude »

Well, I searched in that file, found what you were talking 'bout. Now I get

Code: Select all

Critical Error

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

LIMIT $start, ".$board_config['posts_per_page']; 

MOD script line #359 :: FAQ :: Report 
  
Ugh.
I <3 phpBB!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Ca$h MOD

Post by Nightrider »

Jdude, it might help if you provide a text link to your cm_install_221.txt and viewtopic.php files. The line listed in your error message exists in my heavily modded viewtopic.php file, so without seeing what you have, I can only guess on what to suggest...

Without seeing either your MOD script or your viewtopic.php files, this would be my guess of what to try. If the following doesn't work, then I would need to see a copy of both files. Please don't post the code here though. All I need are links to the files...

Ok, do this:

OPEN
cm_install_221.txt

FIND

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
	LIMIT $start, ".$board_config['posts_per_page'];
REPLACE WITH

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
LIMIT $start
Save, upload, and try again using EM...

I installed the Cash MOD on another site last night and found a flaw in it that prevents the Cash values from appearing in the View Topic page. You might run into this problem too. This is what I had to do to get the MOD script to install the code in the correct place in the viewtopic.php file:

FIND

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
		'U_POST_ID' => $postrow[$i]['post_id'])
REPLACE WITH

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# Find this, then skip to the next instance
		'U_POST_ID' => $postrow[$i]['post_id'])

# 
#-----[ FIND ]------------------------------------------ 
# 
		'U_POST_ID' => $postrow[$i]['post_id'])
Note that the FIND statement is duplicated. The reason this is necessary is that the Cash MOD code was being added to the Anonymous user (Guests) rather than your registered members. I doubt that Guests would have Cash values, so this is clearly an error in the MOD script. The double FIND places the Cash MOD code in the correct location in the viewtopic.php file...

There is another problem in the Profile View Body page. I didn't find the workaround, but someone else did. Apparently if you have eXtreme Styles installed, there can be a conflict that prevents the Cash MOD values from appearing in the Profile page and luckily there is a workaround available. If you run into this problem, I can find the workaround for you too...

Image

Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Re: Ca$h MOD

Post by Jdude »

Yeah, I have eXtreme styles MOD. Here I'll put the links here in just a second.
I <3 phpBB!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Ca$h MOD

Post by Nightrider »

Since you have the eXtreme Styles MOD installed, you will need to go into the eXtreme Styles MOD contrib folder, find the cash_mod sub-folder, then upload the classes_cash.php file to your includes folder. That will make it so that the Cash values will appear in your Prifile page as they should...

Image
Last edited by Nightrider on Mon Jul 17, 2006 1:48 pm, edited 1 time in total.

Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Re: Ca$h MOD

Post by Jdude »

http://www.cooljdude.com/forums/admin/m ... ll_221.txt
http://cooljdude.com/forums/viewtopic.txt I made that page in my FTP client...

The eXtreme styles thing I'll do in a minute...
Last edited by Jdude on Mon Jul 17, 2006 1:56 pm, edited 1 time in total.
I <3 phpBB!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Ca$h MOD

Post by Nightrider »

Could you remove the viewtopic.php code above, create a copy of it and add the .txt extension on the end. Then you can provide a text link that I can download. Posting code here adds too much unnecessary clutter. And since it only takes a minute to create a text link to your files there is no good reason to unnecessarily clutter up these topics...

Image

Jdude
Posts: 41
Joined: Fri Jun 30, 2006 11:50 pm

Re: Ca$h MOD

Post by Jdude »

How's that?
I <3 phpBB!

Locked