SMF Shop

SMFShop => Coding => Topic started by: Zion on July 22, 2007, 10:38:00 pm

Title: [SOLVED] Points display config help
Post 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
Title: Re: Points display config help
Post by: feildmaster on July 23, 2007, 01:41:07 am
sure, is 1T Points your suffix?

actually, show me the code and i can change it around for you... search for something like...

Code: [Select]
// 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. =)
Title: Re: Points display config help
Post by: Zion on July 23, 2007, 02:50:03 am
Ive attached the files ;)

Thanks mate I really appriciate this :)
Title: Re: Points display config help
Post by: feildmaster on July 23, 2007, 03:14:26 am
there u go...
Title: Re: Points display config help
Post by: Zion on July 23, 2007, 03:19:30 am
Thanks very much :) Works perfectly  ;D
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on July 24, 2007, 07:28:52 pm
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
Title: Re: [SOLVED] Points display config help
Post by: feildmaster on July 24, 2007, 09:44:52 pm
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...
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on July 24, 2007, 09:46:28 pm
thank you for the fast reply

but how to fix the other problem?

CuTe_MaN

Title: Re: [SOLVED] Points display config help
Post by: feildmaster on July 24, 2007, 09:47:57 pm
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. =)
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on July 25, 2007, 02:45:18 am
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
Title: Re: [SOLVED] Points display config help
Post by: feildmaster on July 25, 2007, 11:28:01 am
im not too sure, i'll find out sooner or later though.... ^^
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on August 13, 2007, 06:24:23 am
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
Title: Re: [SOLVED] Points display config help
Post by: feildmaster on August 13, 2007, 07:40:35 am
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
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on August 13, 2007, 07:41:57 am
thats the problem

I have checked the code several times and it is the same
Title: Re: [SOLVED] Points display config help
Post by: feildmaster on August 13, 2007, 07:51:43 am
ah... i found out...

go into Load.php
search for...
Code: [Select]
mem.money,add
Code: [Select]
mem.moneyBank,after both

then search for
Code: [Select]
'money' => $profile['money'],and add
Code: [Select]
'moneyBank' => $profile['moneyBank']
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on August 13, 2007, 06:32:51 pm
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

Title: Re: [SOLVED] Points display config help
Post by: feildmaster on August 14, 2007, 01:55:58 am
my fault...
Title: Re: [SOLVED] Points display config help
Post by: CuTe_MaN on August 14, 2007, 04:19:27 am
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

Title: Re: [SOLVED] Points display config help
Post by: feildmaster on August 14, 2007, 03:08:59 pm
np... :D