FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


In phpbb, what does {postrow.CASH} refer to?





ocalhoun
In the template file (viewtopic_body.tpl)I'm working on, the place where the user's cash is displayed is marked by a '{postrow.CASH}'.

What I want to know, and am unable to figure out, is just what file this {postrow.CASH} refers to. You see, I'd like to modify the way the cash is displayed in a way not normally supported by cash mod, but I can't find the file that is responsible for doing so.
Mgccl
you have to install the cash mod...
which shows a part of the cash mod output...
ocalhoun
I have cash mod installed; and I have installed it successfully several times. This is the first time, however, that I'm trying to modify it more than just using it with a theme other than subsilver.
blueray
hi, ocalhoun, that sounds interesting . But anyway, you can download a copy of it from www.phpbb.com and looking for items that related to template files and will be fine.

Also, the {postrow.CASH} is a variable like symbol that phpbb template engine use to replaced with some data for display. If you need to modify what the cash mod is displayed. You have to check the cash_*.php files that are used for main logic and variable assignment.

Hope this help,

Eric,
ocalhoun
^ALREADY DONE ALL THAT!
If I don't get an answer here, I'll go to phpbb.com's forum.
blueray
hi, ocalhoun,
If you wanted to modify it. Just open the classes_cash.php and look for a class named 'cash_viewtopic' - function named 'post_vars'

Hope this help
Eric,
salman_500
in what ways do you want to show it diferently?

it only contains 2 things...

(1) "342" (2) "Points"

so how do you want to change this??
ocalhoun
^Actually, on mine, it says;
Gold - 9347
Experience - 54
HP - 345
MP - 57
PP - 134

And I want it to be like:
Gold - 9347
Experience: ||||||||____
HP:|||||||||||__
MP:||||||||||||||
PP:||||||______
(Except with good graphics, not ASCII art)



blueray wrote:
hi, ocalhoun,
If you wanted to modify it. Just open the classes_cash.php and look for a class named 'cash_viewtopic' - function named 'post_vars'

Hope this help
Eric,

^Now that's what I'm looking for!
Mgccl
I get it now...
so HP is just part of your Gold like thing..
ok..
you have to edit some PHP file for the output, you can't just do the tempate
ocalhoun
^Which one? That's what I want to know.
Mgccl
I don't know....
you have to find yourself...
Related topics
[RESOLVED] Invision Power board...
general technology
Counter
Looking for someone to install a phpBB mod...
phpbb cash mod problemos
mysql problems
[Debate]: Embedded or seperated
Can't open the World News forum
Bannig IPs
Religion... how deep is it?
Custom Forums
JESUS' burial site found!!! - Not resurrected!?
the best way to add a search function is?
Is it more logical to believe in God?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.