Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11838
Latest: Paul7788
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 42415
Total Topics: 7393
Most Online Today: 52
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 64
Total: 64

Author Topic: Front page store  (Read 353 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • 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: 16084
    • 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: 16084
    • 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

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • 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: 16084
    • 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
4110 Views
Last post January 07, 2007, 01:36:36 pm
by brandy1j
1 Replies
3491 Views
Last post January 28, 2010, 08:20:46 pm
by SMFHacks
13 Replies
10386 Views
Last post January 07, 2013, 09:16:09 am
by SMFHacks
2 Replies
6368 Views
Last post November 28, 2013, 02:46:59 am
by opeedo
2 Replies
1773 Views
Last post July 13, 2015, 01:52:58 am
by davejo

+- Recent Topics

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Setting a single free download. by Zaphod
August 07, 2022, 10:39:26 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Some questions by mickjav
July 30, 2022, 03:31:07 am

prettyurls - TroubleShooting.wiki by SMFHacks
July 29, 2022, 12:27:28 pm

Powered by EzPortal