Jump to content


Forums in Sub Folder


10 replies to this topic

#1 jkmcgrath

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 07 October 2008 - 06:44 PM

Hi,

I have my forum software installed in a sub directory so to access the forums it would be http://johnmcgrathracing.com/forums/ which gives me the Unreal Portal page.

What I would like is to have http://johnmcgrathracing.com take me to the portal. In other words I want the portal page out side of the ./forums directory.

Can this be accomplished?

Also I have another problem, depending on which side column block is colapsed, the width of all the blocks in that side column reduce in width and then expand when the colapsed block is expanded. Anyway to stop this?

Thanks,
John

#2 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 09:15 AM

For the first one, You need to upgrade to Unreal Portal 2.3 for the functionality. After you upgrade to Unreal Portal 2.3, edit init.php and change
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 1 );
to
define( 'IPB_MAKE_UPORTAL_HOMEPAGE', 0 );


After that, use mod_rewrite to make /portal to to /index.php?act=uportal

If you have no idea what I mean by mod_rewrite, then simply google it.

For your second question, the content in the block that distorts the layout most likely contains content that has dimensions greater than the width of the column. For example, a picture of large dimensions, a table with a specific width, etc. Unfortunately, in the current version of Unreal Portal, there isn't anything you can do about it other than changing the widths of the columns or modifying that block so it doesn't distort your portal layout.
Posted Image

#3 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 08 October 2008 - 03:59 PM

Here's what you need to do for the mod_rewrite part.

In your root directory, create a file called .htaccess and add the following code:
RewriteEngine on
RewriteRule   ^$		forums/index.php?act=uportal [L]
RewriteRule   ^([^*]+)$	forums/$1 [NC]


Now in your forums directory, create a file called .htaccess and add the following code:
RewriteEngine off


This should take care of that.
Posted Image

#4 dv2236

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts
  • Gender:Male
  • Location:Lost & Found

Posted 01 November 2008 - 09:34 PM

Nice I never played around with that Mod rewrite stuff before.

when i read the title i was first thinking something along the lines of "forums.website.com" would that code work the same for that cricket?
Posted Image

#5 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 06 November 2008 - 01:59 PM

View Postdv2236, on Nov 1 2008, 11:34 PM, said:

Nice I never played around with that Mod rewrite stuff before.

when i read the title i was first thinking something along the lines of "forums.website.com" would that code work the same for that cricket?


Not the exact same code, but you can use mod_rewrite to do that too.
Posted Image

#6 Kiribati

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 17 January 2009 - 01:16 AM

This just gives me

Quote

Error 500 - Internal server error

An internal server error has occured!
Please try again later.
on both the root page and /forums.

Any idea?

#7 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 18 January 2009 - 06:27 PM

Not sure what you're doing wrong. Maybe your host doesn't allow .htaccess files or you didn't do it right.

I'll look into it and get back to ya.
Posted Image

#8 Kiribati

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 18 January 2009 - 11:27 PM

I received an email from my host, and they do allow .htaccess files. As for user error, I've done it back and forth around 12 times already. :(
Transfer mode ASCII, and exact copy/paste per your instructions, Cricket.

Nevertheless, thanks for the help!

#9 Kiribati

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 05 February 2009 - 07:35 PM

Hmm, I hate to bump this topic, but I check everyday and still there's no update.
:(

#10 cricket

    Administrator

  • Root Admin[Root Admin]
  • PipPipPip
  • 301 posts

Posted 17 February 2009 - 06:26 PM

Sorry m8. If you can PM me your server's FTP info I can take a look at it.
Posted Image

#11 ghosty

    Member

  • Members
  • PipPip
  • 11 posts

Posted 01 September 2009 - 05:55 PM

Not to dig up the dead but I noticed in 3.0 you made this an easy fix, is there an easier way for 2.36 as well?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users