collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 258
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: How to make Simpleportal page appear in root directory (as web front page)  (Read 11448 times)

0 Members and 1 Guest are viewing this topic.

Offline lilmina

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
You see.. my forum's already installed to /forum directory... but i want my SimplePortal frontpage to appear inside root directory instead of appearing inside /forum folder. Can anyone help me for it ? Thank u in advanced (i'll click your google ads btw)

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #1 on: November 03, 2008, 02:50:38 PM »
Welcome to SP.net.

Not really an easy way to do this if you just want the SP page on a different directory.

Assuming you're on Apache, my suggestion is to use the ModRewrite function in a .htaccess file and then perhaps rewrite the /forum URL to the main forum URL, while omitting the * so only that page is affected.

Offline lilmina

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #2 on: November 03, 2008, 07:13:58 PM »
hmm, im afraid it will make my other mod cant work.

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #3 on: November 03, 2008, 07:14:43 PM »
Other mod? What mod?

Offline asude

  • Jr. Member
  • **
  • Posts: 54
  • Gender: Female
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #4 on: November 06, 2008, 08:19:56 AM »
why not?

use this.

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #5 on: November 06, 2008, 11:10:28 AM »
why not?

use this.

That wouldn't do anything as the directory where the forum is located is higher than the directory of the original folder. Meaning SSI cannot be accessed in that method. Likewise using that file name wouldn't default-out the web browser.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #6 on: November 10, 2008, 06:16:11 AM »
You can use it from any directory. Make sure you set the path to SSI correctly.
And slowly, you come to realize... It's all as it should be...

Offline hot rides

  • Semi Newbie
  • *
  • Posts: 42
    • Hot Rides Show & Cruise
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #7 on: December 05, 2008, 04:26:26 PM »
Welcome to SP.net.

Not really an easy way to do this if you just want the SP page on a different directory.

Assuming you're on Apache, my suggestion is to use the ModRewrite function in a .htaccess file and then perhaps rewrite the /forum URL to the main forum URL, while omitting the * so only that page is affected.
how would I go about this, I have no clue what to put into the .htaccess file

Offline Simone

  • Semi Newbie
  • *
  • Posts: 14
  • Gender: Female
    • Robertson426
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #8 on: December 05, 2008, 05:20:45 PM »
Just install SMF into root dir ( /public_html )
Then just install Simple Portal & anything else as you normally would.


Offline Jade Elizabeth

  • Comrade
  • *
  • Posts: 1146
  • Gender: Female
    • Jades-World
  • SMF Version: None
  • SP Version: None
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #9 on: December 05, 2008, 05:37:17 PM »
I can help you move your forum from /forum to the root.

Just move the files. Run repair settings.
What is repair_settings.php?
Jade Elizabeth
(Ex Language Coordinator)
Owner of Awesome Crazy (the home of the insane),
Color Me Forum (For Adult Coloring Enthusiasts), and
Creative Burrow (A place for creative people).

Offline Saviour

  • Semi Newbie
  • *
  • Posts: 26
  • Gender: Male
  • Gotta Glitch?
    • Saviour PC | Free Computer Help
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #10 on: December 05, 2008, 07:20:30 PM »
An even easier way...just setup a permanent redirect pointing to the portal page.

Offline hot rides

  • Semi Newbie
  • *
  • Posts: 42
    • Hot Rides Show & Cruise
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #11 on: December 07, 2008, 10:29:48 PM »
I can help you move your forum from /forum to the root.

Just move the files. Run repair settings.
What is repair_settings.php?
not an option for some like me, have to many custom theme edits and hacks that would die with a directory change and I dont remember them all. I intend on fixing it one day with a new smf 2 install

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #12 on: December 08, 2008, 01:20:27 AM »
Make a file called 'index.php' in your main directory and put this code into it. That should display the portal properly in that directory.

Code: [Select]
<?php

require_once(dirname(__FILE__) . '/forum/SSI.php');
$ssi_on_error_method true;

require_once(
$sourcedir '/SPortal1-1.php');

sportal();

obExit(true);

?>

Note: That code is the code posted by asude, it should work fine.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #13 on: December 08, 2008, 01:30:39 PM »
* SPortal1-1.php - Error Page.

Replace with,

SPortal2.php - Works Perfectly.

LHVWB, you are really great.  :applause:
- Thanks & Regards,
Sudhakar, IT Acumens

Offline lilmina

  • Semi Newbie
  • *
  • Posts: 7
  • SMF Version: 2 RC2
  • SP Version: 2.3.2
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #14 on: December 10, 2008, 07:45:21 PM »
hmm, nvermind, ive redirected my url to /forum instead, so it wont be problem :) thx for all your help

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #15 on: December 11, 2008, 02:49:15 PM »
hmm, nvermind, ive redirected my url to /forum instead, so it wont be problem :) thx for all your help

Make Sure to if you redirect , you are missing an page index on google.

If you add a above mentioned way , you will still get placed in google and other search engines and you could get more response.

So redirecting is just a temporary solution.  :)
- Thanks & Regards,
Sudhakar, IT Acumens

Offline QertysXasder

  • Just Registered
  • Posts: 1
  • Gender: Male
    • http://tinka.info/wrd/a/f/
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #16 on: December 13, 2008, 03:37:47 AM »
* SPortal1-1.php - Error Page.

Replace with,

SPortal2.php - Works Perfectly.

LHVWB, you are really great.  :applause:

yeah thats right
Qertis Werti Xasder, Jr.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #17 on: December 20, 2008, 07:04:58 AM »
Marking solved.
And slowly, you come to realize... It's all as it should be...

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #18 on: December 21, 2008, 04:43:40 AM »
Hi Team,

Thanks for the updates, sure this post is solved.

I have one more additional question,

Could i use the same come to domain2.com instead of domain1.com/forum is.

My forum is at domain1.com/forum and i want to display the same simple page portal page at domain2.com

Is that possible. Any suggestion.
- Thanks & Regards,
Sudhakar, IT Acumens

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #19 on: December 21, 2008, 05:26:04 AM »
Not really. It maybe possible but would be hard and extremely server unfriendly.
And slowly, you come to realize... It's all as it should be...

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #20 on: December 25, 2008, 06:56:22 PM »
Not really. It maybe possible but would be hard and extremely server unfriendly.

Could we have a try with the codes you say.
Just a try or we could drop at any moment.  :)
- Thanks & Regards,
Sudhakar, IT Acumens

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: How to make Simpleportal page appear in root directory (as web front page)
« Reply #21 on: January 01, 2009, 08:27:38 AM »
A php file with these codes may do it:

Code: [Select]
<?
echo file_get_contents("http://domain1.com/where/portal/is");
?>
And slowly, you come to realize... It's all as it should be...