[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.

Rating:

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

archibalduk
Registered User
Posts: 48
Joined: Fri Oct 14, 2005 4:21 pm
Contact:

Post by archibalduk »

Yes that works great! Thank you very much. :)

I'll have a look through classes_cash.php to see if I can get it working on the User Profile Pages.

As for exchange, donate, etc. I don't use them do that's fine.

archibalduk
Registered User
Posts: 48
Joined: Fri Oct 14, 2005 4:21 pm
Contact:

Post by archibalduk »

I found the viewprofile section in classes_cash.php and managed to get it working on the profile page too 8)

Where it says:

Code: Select all

$template->set_filenames(array(
				'cm_viewprofile' => 'cash_viewprofile.tpl')
			);
			while ( $c_cur = &$cash->currency_next($cm_i,$mask) )
			{
				$template->assign_block_vars('cashrow', array(	'CASH_NAME' => $c_cur->name(),
																'CASH_AMOUNT' => $profiledata[$c_cur->db()]));
			}

I changed:

Code: Select all

'CASH_AMOUNT' => $profiledata[$c_cur->db()]));
to:

Code: Select all

'CASH_AMOUNT' => sprintf ("%01.2f", ($profiledata[$c_cur->db()]))/100));

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51931
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

Cool. I thought I remembered that in viewprofile.

plc
Registered User
Posts: 39
Joined: Fri Sep 01, 2006 5:09 am

Post by plc »

is it possible for me to edit some code so I can see the cash value of members in all forums, not just the cash forums?

Or is this question allready answered maybe in this huge topic? :)

User avatar
efrt
Registered User
Posts: 19
Joined: Sun Jan 14, 2007 5:47 pm
Contact:

Post by efrt »

i downloaded the view points in header thing on a different website so i dont know if it is a topic like this here.. but how come it only says this?

Welcome ceb, you have : Points

and when i post a post it says that i earned 1 point..

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51931
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

plc wrote: is it possible for me to edit some code so I can see the cash value of members in all forums, not just the cash forums?

Or is this question allready answered maybe in this huge topic? :)


Try this.....

In includes/classes_cash.php
In class cash_viewtopic
function generate_columns.

Look for:

Code: Select all

			while ( $c_cur = &$cash->currency_next($cm_i,CURRENCY_ENABLED | CURRENCY_VIEWTOPIC,$forum_id) )
replace $forum_id with 0

mizzywizzy
Registered User
Posts: 4
Joined: Thu Jan 18, 2007 8:45 pm

Post by mizzywizzy »

Hi can someone help me with these errors?

clicking on the memberlist link i recieve this error
Parse error: syntax error, unexpected T_VARIABLE in /home/*********/public_html/forum/memberlist.php on line 278


these are the lines for 270 -279
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);

$cm_memberlist->listing($template,$row

$i++;
}

while( $row = $db->sql_fetchrow($result) )
$db->sql_freeresult($result);
}


also when i click the profile button on the forum i get this error
Fatal error: Call to a member function post_vars() on a non-object in /home/********/public_html/forum/includes/usercp_viewprofile.php on line 244



i can access everything else and mod is working
how can i sort these? first time phpbb user[/quote][/quote]

ultima30461
Registered User
Posts: 36
Joined: Sat Jan 13, 2007 9:09 pm

Post by ultima30461 »

Now ive got it installed and im in my admin. I click on cash admin and it says

functions_cash.php has not been included.

Please make sure you have properly installed Cash Mod, including all the necessary file edits as found in cm_install_22x.txt

But i see the file in my inclued folder. what does this mean?

Thanks..=)

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51931
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

mizzywizzy wrote:
'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"))
);

$cm_memberlist->listing($template,$row

$i++;
}

while( $row = $db->sql_fetchrow($result) )
$db->sql_freeresult($result);
}


You lost a );
put that on the line after the $cm_memberlist one.
Fatal error: Call to a member function post_vars() on a non-object in /home/********/public_html/forum/includes/usercp_viewprofile.php on line 244
Did you do the edit to profile.php?

falafelboy
Registered User
Posts: 29
Joined: Fri Oct 06, 2006 10:36 pm
Location: canada
Contact:

View Topic Modification Help

Post by falafelboy »

I've installed Cash Mod and everything went very, very smooth.

I have the Apollo theme installed and the only thing I had trouble doing was the final step.
[ OPEN ] templates/subSilver/viewtopic_body.tpl
[ FIND ] {postrow.POSTER_FROM}
[ IN-LINE AFTER, ADD ] <br />{postrow.CASH}


I couldn't figure out how to integrate it into my theme. Can someone help? It would be immensely appreciated. Thank you.

Here is my viewtopic_body.tpl:
<table width="100%" cellspacing="1" cellpadding="0" border="0" align="center" class="nav">
<tr>
<td class="nav" style="padding-left:4px" align="left"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a> &raquo; <a href="{U_VIEW_TOPIC}" class="nav-current">{TOPIC_TITLE}</a></td>
<td class="nav" style="padding-right:4px" align="right">
<form action="{HVM_SEARCH}" method="post" style="display: inline;">
<input type="hidden" name="show_results" value="topics" />

<input type="text" name="search_keywords" class="post" size="15" />

<input type="submit" name="submit" value="{L_SEARCH}" class="mainoption" />
</form>
</td>
</tr>
</table>

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom" class="gensmall">{S_TIMEZONE}<br /><a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a></td>
<td align="right" valign="bottom" class="gensmall">{S_WATCH_TOPIC}<br /><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a></td>
</tr>
</table>

<table width="100%" cellspacing="0">
<tr>
<td align="left" valign="middle" style="padding-bottom: 5px"><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></td>
<td align="right" valign="bottom" style="padding-bottom: 5px"><span class="gen">{PAGE_NUMBER}<br /><span class="pagination">{PAGINATION}</span></span></td>
</tr>
</table>

<!-- IF TPL_CFG_LINK == "all" -->
<?php
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
$search = array($lang['Read_profile'], '<a ');
$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
}
}
?>
<!-- ENDIF -->

<!-- IF TPL_CFG_TOPICVIEW == "linked" --><!-- INCLUDE xs/viewtopic_together.tpl --><!-- ENDIF -->
<!-- IF TPL_CFG_TOPICVIEW == "seperate" --><!-- INCLUDE xs/viewtopic_seperated.tpl --><!-- ENDIF -->

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51931
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

You will probably have to look in one of your custom viewtopic tpls.

falafelboy
Registered User
Posts: 29
Joined: Fri Oct 06, 2006 10:36 pm
Location: canada
Contact:

Post by falafelboy »

Brf wrote: You will probably have to look in one of your custom viewtopic tpls.


You were right. It was a seperate file in a seperate folder. It seems to have worked.

What did that last piece of code do exactly? I haven't created currencies or anything like that, but didn't really see any difference when viewing topics.

thanks again for you help.

:wink:

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51931
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Post by Brf »

Once you create your currencies... You should see a cash-block in the author mini-profile in viewtopic

falafelboy
Registered User
Posts: 29
Joined: Fri Oct 06, 2006 10:36 pm
Location: canada
Contact:

Post by falafelboy »

Brf wrote: Once you create your currencies... You should see a cash-block in the author mini-profile in viewtopic


Thank you.

ultima30461
Registered User
Posts: 36
Joined: Sat Jan 13, 2007 9:09 pm

Post by ultima30461 »

so what should i do? >.>

Post Reply

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