Author Topic: No Credit Amount Shown -> Display.template.php error  (Read 3551 times)

Offline Luxsphinx

No Credit Amount Shown -> Display.template.php error
« on: January 21, 2007, 06:41:19 am »
Okay, maybe someone else encountered this as well.  At installation, a Test Failure resulted in the Display.template.php file.  I backed-up the forum and tried it anyways.  The shop did in fact work, however, the amount of credits a user has is not posted under their names beside their posts as it should.  Does anyone have a fix or reason for this?



Installations actions for "SMFShop":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    installScript.php    
2.    Extract Tree    ./Sources/shop    
3.    Extract File    ./Themes/default/languages/Shop.english.php    
4.    Extract File    ./Themes/default/ShopAdmin.template.php    
5.    Extract File    ./Themes/default/Shop.template.php    
6.    Execute Modification    ./index.php    Test successful
7.    Execute Modification    ./Sources/Load.php    Test successful
8.    Execute Modification    ./Sources/ManageBoards.php    Test successful
9.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
10.    Execute Modification    ./Sources/Post.php    Test successful
11.    Execute Modification    ./Sources/RemoveTopic.php    Test successful
12.    Execute Modification    ./Sources/Subs.php    Test successful
13.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
14.    Execute Modification    ./Sources/Subs-Members.php    Test successful
15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
16.    Execute Modification    ./Themes/default/index.template.php    Test successful
17.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
18.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
19.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful
21.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
« Last Edit: January 21, 2007, 08:59:36 am by Luxsphinx »

Offline FakorX

Re: No Credit Amount Shown -> Display.template.php error
« Reply #1 on: April 08, 2007, 04:31:29 am »
I have this problem as well, is there a fix?

I use default temp and smf 1.1.2

Offline feeble

Re: No Credit Amount Shown -> Display.template.php error
« Reply #2 on: April 08, 2007, 07:00:50 am »
BEFORE YOU ACTUALLY FOLLOW THIS, THERE IS A REASON WHY THIS FAILED ON YOUR FORUMS. YOU MUST ACTUALLY BE ABLE TO READ PHP AND MAKE THE NECESSARY CHANGES.
WHEN I SAY REPLACE, I MEAN MAKE THIS CODE LOOK LIKE THE ONE BELOW.
SO YOU WILL NEED TO ADJUST THE BELOW CODE ACCORDING TO WHAT YOU HAVE IN YOUR DISPLAY.TEMPLATE AS YOU PROBABLY HAVE OTHER MODS INSTALLED ALTERING THIS SAME SPOT.

all im posting is the changes that SMFShop does when it installs onto your forums

open display.template

look for
Code: [Select]
// Show how many posts they have made.
> echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

replace with
Code: [Select]
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code

Offline FakorX

Re: No Credit Amount Shown -> Display.template.php error
« Reply #3 on: April 08, 2007, 03:33:54 pm »
yah, that was on the wiki.

didnt work. any other advice?

is there an issue with it working on 1.1.2 somehow?

Offline Daniel15

Re: No Credit Amount Shown -> Display.template.php error
« Reply #4 on: April 08, 2007, 03:40:35 pm »
Are you sure you edited Themes/default/Display.template.php?
Could you please attach your Display.template.php file  here, or send it to me (daniel15 -[at-] daniel15 (dot) com)?

Offline FakorX

Re: No Credit Amount Shown -> Display.template.php error
« Reply #5 on: April 08, 2007, 04:32:01 pm »
yes i am sure.

in fact I finally got it to work.

first time, I installed mod, then edited display

second time i did it the other way around and it worked. apparently that makes a difference. i dunno why.

my question now is how do I remove the .00 from the amount? so that it  reads 300 credits rather than 300.00 credits? 

just using this mod as a bit of fun for my gfx site.

website is http://www.blacksungfx.com if ya need to look at it.

thanks for the help!