Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 241
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 222
Total: 222

Author Topic: Front page store  (Read 987 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Full Member
  • ***
  • Posts: 219
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Front page store
« on: August 17, 2021, 12:12:23 am »
How about a way to make the store the front page of the forum? Where "Home" points to index.php?action=store and "Forum" points to index.php?action=forum
« Last Edit: August 17, 2021, 12:15:34 am by Shades »

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Front page store
« Reply #1 on: August 17, 2021, 12:17:24 am »
It's possible just requires a change to the index.php

Changing this

Code: [Select]
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
To
Code: [Select]
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/Store2.php');
return 'StoreMain';
}
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 SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Front page store
« Reply #2 on: August 17, 2021, 12:18:27 am »
Then after
Code: [Select]
'findmember' => array('Subs-Auth.php', 'JSMembers'),
Add
Code: [Select]
'forum' => array('BoardIndex.php', 'BoardIndex'),
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 Shades

  • Full Member
  • ***
  • Posts: 219
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Front page store
« Reply #3 on: August 17, 2021, 12:27:52 am »
Oops I shoulda mentioned for 2.1RC4 :)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Front page store
« Reply #4 on: August 17, 2021, 09:38:46 am »
Almost the same except
Find
Code: [Select]
// No default action huh? then go to our good old BoardIndex.
else
{
require_once($sourcedir . '/BoardIndex.php');

return 'BoardIndex';
}
Change to
Code: [Select]
// No default action huh? then go to our good old BoardIndex.
else
{
require_once($sourcedir . '/Store2.php');

return 'StoreMain';
}
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
2 Replies
4335 Views
Last post January 07, 2007, 01:36:36 pm
by brandy1j
1 Replies
4804 Views
Last post January 28, 2010, 08:20:46 pm
by SMFHacks
13 Replies
12431 Views
Last post January 07, 2013, 09:16:09 am
by SMFHacks
2 Replies
6911 Views
Last post November 28, 2013, 02:46:59 am
by opeedo
2 Replies
2408 Views
Last post July 13, 2015, 01:52:58 am
by davejo

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 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

Powered by EzPortal