Current time: 04-23-2014, 09:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 6 Votes - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using your portal as your site home page.
06-23-2011, 12:50 PM (This post was last modified: 06-23-2011 03:58 PM by JimR.)
Post: #91
RE: Using your portal as your site home page.
I did this mod, everything worked fine with one exception :-
the new index (old portal) has a link to forums.php followed by "/portal" (the link works)
in the top left of the display below the header
E.G myforum /portal
forums.php (in the same position) contains just the forum name (no link) at the same position.
Question is which files do I need to edit to reverse this ?
So the result required is the new index.php contains no link and the forums.php contains a link back to index.php

Just found some more slight issues :- when you enter a category the link becomes active again but when clicked takes you back to index.php (portal.php) and not forums.php I guess the answer lies in the forums.php file but my knowledge of php is limited Wink

Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

Visit this user's website Find all posts by this user
Quote this message in a reply
06-23-2011, 06:10 PM
Post: #92
RE: Using your portal as your site home page.
(06-23-2011 12:50 PM)JimR Wrote:  I did this mod, everything worked fine with one exception :-
the new index (old portal) has a link to forums.php followed by "/portal" (the link works)
in the top left of the display below the header
E.G myforum /portal
forums.php (in the same position) contains just the forum name (no link) at the same position.
Question is which files do I need to edit to reverse this ?
So the result required is the new index.php contains no link and the forums.php contains a link back to index.php

Just found some more slight issues :- when you enter a category the link becomes active again but when clicked takes you back to index.php (portal.php) and not forums.php I guess the answer lies in the forums.php file but my knowledge of php is limited Wink

This is a better .htaccess modification, and you don't have to change filenames:
http://community.mybb.com/thread-43811-p...#pid669708
Find all posts by this user
Quote this message in a reply
07-19-2011, 10:55 PM
Post: #93
RE: Using your portal as your site home page.
(01-20-2009 05:22 AM)Claire Wrote:  About the navbar though, I need to find a way to make it go to forums.php

You can change that in global.php:

PHP Code:
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php"
Find all posts by this user
Quote this message in a reply
08-10-2011, 02:50 AM
Post: #94
RE: Using your portal as your site home page.
In the board tree where it shows the name of your forum board followed by the forum and the thread as board name>forum>thread, how do you change the "board name" link to point to the forums and not the portal? I've done all the changes correctly so far, but this is something I really want done and can't find the code to edit to fix it.
Find all posts by this user
Quote this message in a reply
08-10-2011, 11:12 AM
Post: #95
RE: Using your portal as your site home page.
(07-19-2011 10:55 PM)faviouz Wrote:  
(01-20-2009 05:22 AM)Claire Wrote:  About the navbar though, I need to find a way to make it go to forums.php

You can change that in global.php:

PHP Code:
$navbits[0]['url'] = $mybb->settings['bburl']."/index.php"
Find all posts by this user
Quote this message in a reply
12-31-2011, 03:04 PM (This post was last modified: 12-31-2011 03:08 PM by SuperEngineer 64.)
Post: #96
RE: Using your portal as your site home page.
I tryed it like the thread-opener descriped it 2009. It works, but every time I clicked on a forum, my addressbar shows: .... showthread.. but i still was in the mainforum.
So, the mod do not work.

Quote:RewriteCond %{HTTP_HOST} ^enigmachs.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.enigmachs.com$
RewriteRule ^/?$ "http\:\/\/www\.enigmachs\.com\/portal\.php" [R=302,L]

Then I tryed the quoted stuff with renaming the url. And it completly dont work.


So - what is an easy way - to set the portal at index, without rewrite the complete MyBB? The actual stuff seems very cunfusing and problematicly. Just rename portal to index.. didn't work in deeper subforums, and also sounds problematicly.
Find all posts by this user
Quote this message in a reply
12-31-2011, 06:17 PM
Post: #97
RE: Using your portal as your site home page.
(12-31-2011 03:04 PM)SuperEngineer 64 Wrote:  I tryed it like the thread-opener descriped it 2009. It works, but every time I clicked on a forum, my addressbar shows: .... showthread.. but i still was in the mainforum.
So, the mod do not work.

Quote:RewriteCond %{HTTP_HOST} ^enigmachs.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.enigmachs.com$
RewriteRule ^/?$ "http\:\/\/www\.enigmachs\.com\/portal\.php" [R=302,L]

Then I tryed the quoted stuff with renaming the url. And it completly dont work.


So - what is an easy way - to set the portal at index, without rewrite the complete MyBB? The actual stuff seems very cunfusing and problematicly. Just rename portal to index.. didn't work in deeper subforums, and also sounds problematicly.

advice :- don't try to think out of the box until you understand the principles ... been there & wearing the tee shirt Big Grin

Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

Visit this user's website Find all posts by this user
Quote this message in a reply
01-09-2012, 07:35 AM
Post: #98
RE: Using your portal as your site home page.
I just edited my .htaccess to put portal.php before index.php
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication