SMF Shop
SMFShop => Coding => Topic started by: Zion on July 22, 2007, 10:38:00 pm
-
Me again :laugh:
As you can see from here : www.1timeuser.com
my points display is currently like this :
310.00 1T Points
8609.00 Bank 1T Points
8919 Total 1T Points
what I would like it to look like is this :
1T Points = 310.00
Bank 1T Points = 8609.00
Total 1T Points = 8919
any sugestions on how to do it? :P
Thanks in advance, this place rocks O0
-
sure, is 1T Points your suffix?
actually, show me the code and i can change it around for you... search for something like...
// Removed one <br /> from end of post count line.
(in the display.php)
n give me the say... next 20 lines... that is if u don't know where that code is. =)
-
Ive attached the files ;)
Thanks mate I really appriciate this :)
-
there u go...
-
Thanks very much :) Works perfectly ;D
-
I have looked in the code that you have added in the Display.template.php but I the money in the bank didnt show, it only showed:
bank = and the suffex
and another question if it is possible to remove the two zeros from the end of the number
Bank 1T Points = 8609.00
so can u help in editing the problem???
CuTe_MaN
-
getting rid of the .00 would be done in the phpMyAdmin, go to...
smf_members edit the "money" and "moneyBank" to get rid of the ,2 in the "Length/Values"
also, for you to get the money in bank to show you would also have to edit Display.php...
-
thank you for the fast reply
but how to fix the other problem?
CuTe_MaN
-
I've edited post, umm... i forget what was used for it but i think that's what it was...
well that's what i thought but i was wrong. =)
-
i will try to find what you have edited in the Display.php file
edit: I have looked in the Display.php but I couldnt find any thing there for the Shop
can u help me in finding the code that I need to add?
CuTe_MaN
-
im not too sure, i'll find out sooner or later though.... ^^
-
have u found how to solve that probelm?
now It shows the users money in pocket but in bank it only shows the bank word
and the total it shows only the money in the pocket
Cute_MaN
-
im not sure, its a global so it should be able to post the bank amount no matter what... if u used the same code i put
-
thats the problem
I have checked the code several times and it is the same
-
ah... i found out...
go into Load.php
search for...
mem.money,
add
mem.moneyBank,
after both
then search for
'money' => $profile['money'],
and add
'moneyBank' => $profile['moneyBank']
-
I have added it and it gave me an error message
when I removed the code all writings changed to squares
here is a link to the website:
http://www.samasyria.net/smf/index.php
my website is in arabic and I have checked the language files and every thing is fine
I have attached my load.php file
CuTe_MaN
-
my fault...
-
acctually I made a mistake
there was some letters in the beginning of the file
and I think that I knew what was ur mistake
it was a comma in the second code
I have solved the problem my self
thank you for the help
-
np... :D