SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2012, 03:33:28 pm

Login with username, password and session length
Members
Total Members: 10066
Latest: khoeidong
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 87
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 59
Total: 59
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Store Edits  (Read 3228 times)
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« on: December 11, 2007, 12:55:03 pm »

Which file would I need to edit to add an image to the store main page (up on top where it says simply, STORE)? I know in the SMF forum it is the Index.template.php file. I took a look at the Store.template but didn't see any clues for a solution.
vd
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #1 on: December 11, 2007, 08:26:33 pm »

Store.template.php is the file needed to edit.

It will be located inside the template_main function
Search for this code
Code:
echo '<h1 align="center">', $txt['store_text_title'], '</h1>';
This is the area where it says Store in the store template
Logged
virtualdave
Newbie
*
Offline Offline

Posts: 18



View Profile WWW
« Reply #2 on: December 12, 2007, 09:15:18 pm »

Store.template.php is the file needed to edit.

It will be located inside the template_main function
Search for this code
Code:
echo '<h1 align="center">', $txt['store_text_title'], '</h1>';
This is the area where it says Store in the store template

I replaced your line of code with this.

Code:
echo '<img src="/forum/store/storeimg.jpg"></img>';

It worked. which for me was a major leap. I have a couple of questions which would help enlighten me about how to manipulate an image in this particular situation. 1. I tried to use various forms of the align tag to get the image I used to center. 2. I also tried to add the page break tag at the end and it was not recognised.  How would I correctly add these attributes?
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #3 on: December 13, 2007, 08:20:39 pm »

Something like this to align it center and to make a new line for the image

Code:
echo '<div align="center"><img src="/forum/store/storeimg.jpg" /></div><br />";
[code]
[/code]
Logged
Bar Nuthin
SMF Store Customer
Jr. Member
*****
Offline Offline

Posts: 98



View Profile WWW
« Reply #4 on: February 17, 2008, 10:02:27 am »

i hope this isn't hijacking a thread, but where do i find the Store.template.php file?

i've checked every folder on my server  Huh
Logged

see my smf stores at www.psthemes.com and www.tiltbuster.com
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #5 on: February 17, 2008, 01:05:04 pm »

The store.template.php file is found in Themes/default/Store.template.php
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.226 seconds with 20 queries.