Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 365
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 1
Guests: 202
Total: 203

Author Topic: Front page store  (Read 3320 times)

0 Members and 1 Guest are viewing this topic.

Front page store
« on: »
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

Re: Front page store
« Reply #1 on: »
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/

Re: Front page store
« Reply #2 on: »
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/

Re: Front page store
« Reply #3 on: »
Oops I shoulda mentioned for 2.1RC4 :)

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

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

Re: Front page store
« Reply #4 on: »
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
5766 Views
Last post January 07, 2007, 01:36:36 pm
by brandy1j
0 Replies
5687 Views
Last post May 27, 2007, 07:12:06 pm
by stormlrd
1 Replies
6140 Views
Last post January 28, 2010, 08:20:46 pm
by SMFHacks
13 Replies
15706 Views
Last post January 07, 2013, 09:16:09 am
by SMFHacks
2 Replies
7887 Views
Last post November 28, 2013, 02:46:59 am
by opeedo

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal