Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 268
Total: 269

Author Topic: Store Edits  (Read 7114 times)

0 Members and 1 Guest are viewing this topic.

Offline virtualdave

  • Member
  • *
  • Posts: 18
    • View Profile
    • icefishin247.com
Store Edits
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Store Edits
« 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: [Select]
echo '<h1 align="center">', $txt['store_text_title'], '</h1>';
This is the area where it says Store in the store template
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline virtualdave

  • Member
  • *
  • Posts: 18
    • View Profile
    • icefishin247.com
Re: Store Edits
« 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: [Select]
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: [Select]
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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Store Edits
« 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: [Select]
echo '<div align="center"><img src="/forum/store/storeimg.jpg" /></div><br />";
[code]
[/code]
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Bar Nuthin

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • The Freedom Riders Chapter 2
Re: Store Edits
« 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  ???

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Store Edits
« Reply #5 on: February 17, 2008, 01:05:04 pm »
The store.template.php file is found in Themes/default/Store.template.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3426 Views
Last post June 14, 2009, 06:57:55 pm
by Ronlx2
4 Replies
3602 Views
Last post December 24, 2010, 10:03:23 am
by G1
13 Replies
7510 Views
Last post January 28, 2013, 09:47:42 am
by amwebby
2 Replies
4008 Views
Last post September 14, 2012, 10:23:56 am
by SMFHacks
8 Replies
7524 Views
Last post March 22, 2015, 11:20:30 pm
by SMFHacks

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Powered by EzPortal