Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Portal.php as Forum Homepage
#1
Admin, I want to make Portal.php to be index page on my Forum, how can I do that that?
[+] 1 user says Thank You to Semprul for this post
Reply
#2
(02-14-2017, 08:44 AM)Semprul Wrote: Admin, I plan to make visible the first menu Portal.php and not the ''Forum" on my forum, can make them like that?

Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php
[+]
Reply
#3
(02-14-2017, 10:13 AM)admin Wrote:
(02-14-2017, 08:44 AM)Semprul Wrote: Admin, I plan to make visible the first menu Portal.php and not the ''Forum" on my forum, can make them like that?

Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php

1. that's not what I mean

2. create a new .htaccess file or add a default .htaccess
[+]
Reply
#4
(02-14-2017, 12:43 PM)Semprul Wrote:
(02-14-2017, 10:13 AM)admin Wrote:
(02-14-2017, 08:44 AM)Semprul Wrote: Admin, I plan to make visible the first menu Portal.php and not the ''Forum" on my forum, can make them like that?

Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php

1. that's not what I mean

2. create a new .htaccess file or add a default .htacces
DSo you already have .htacces file?
If you do, please post it's content here, if not create new one and upload it to the root of your Forum.
[+]
Reply
#5
(02-14-2017, 12:58 PM)admin Wrote:
(02-14-2017, 12:43 PM)Semprul Wrote:
(02-14-2017, 10:13 AM)admin Wrote:
(02-14-2017, 08:44 AM)Semprul Wrote: Admin, I plan to make visible the first menu Portal.php and not the ''Forum" on my forum, can make them like that?

Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php

1. that's not what I mean

2. create a new .htaccess file or add a default .htacces
DSo you already have .htacces file?
If you do, please post it's content here, if not create new one and upload it to the root of your Forum.

Code:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forumbagus.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

RewriteEngine on
RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]
.htacces for google seo
[+]
Reply
#6
(02-14-2017, 01:21 PM)Semprul Wrote:
(02-14-2017, 12:58 PM)admin Wrote:
(02-14-2017, 12:43 PM)Semprul Wrote:
(02-14-2017, 10:13 AM)admin Wrote:
(02-14-2017, 08:44 AM)Semprul Wrote: Admin, I plan to make visible the first menu Portal.php and not the ''Forum" on my forum, can make them like that?

Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php

1. that's not what I mean

2. create a new .htaccess file or add a default .htacces
DSo you already have .htacces file?
If you do, please post it's content here, if not create new one and upload it to the root of your Forum.

Code:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forumbagus.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

RewriteEngine on
RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]
.htacces for google seo

Just add it to the very beginning of the file like this:

Code:
DirectoryIndex portal.php index.php

RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forumbagus.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

RewriteEngine on
RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]
[+]
Reply
#7
(02-14-2017, 01:29 PM)admin Wrote:
(02-14-2017, 01:21 PM)Semprul Wrote:
(02-14-2017, 12:58 PM)admin Wrote:
(02-14-2017, 12:43 PM)Semprul Wrote:
(02-14-2017, 10:13 AM)admin Wrote: Just to make sure we understand each other.

1. You want just to switch positions of Forum menu item and Portal menu item?

or

2. You want to have Portal.php to be shown when someone visit your Forum?
----------------------------------------------------------------------------------------------------------------------

1. First Solution is easy:
Just place portal.php item above home menu item:

Open Header Template and fine/replace the following:

Code:
              <div class="menu">
                  <ul>
                      <li class="portal"><a class="tt" href="{$mybb->settings['bburl']}/portal.php" title="Portal"></a></li>
                      <li class="home"><a class="tt" href="{$mybb->settings['bburl']}/index.php" title="Forum"></a></li>
                    <li class="search"><a class="tt searchbtn" href="#search" title="Quick Search"></a></li>
                      <li class="members"><a class="tt" href="{$mybb->settings['bburl']}/memberlist.php" title="Members"></a></li>
                      <li class="calendar"><a class="tt" href="{$mybb->settings['bburl']}/calendar.php" title="Calendar"></a></li>
    <div class="dropdown drposts">
        <a data-target="#" href="#" data-toggle="dropdown" class="dropdown-toggle"><i class="fa fa-comments" style="font-size: 17px;"></i> <b class="caret"></b></i></a>
        <ul class="dropdown-menu">
            <li><a href="{$mybb->settings['bburl']}/search.php?action=unreads"><i class="fa fa-eye-slash" style="margin-right: 5px;"></i>View unread Posts</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_newposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily"><i class="fa fa-eye" style="margin-right: 5px;"></i>{$lang->welcome_todaysposts}</a></li>
            <li><a href="{$mybb->settings['bburl']}/search.php" title="Search"><i class="fa fa-search" style="margin-right: 5px;"></i>Forum Search</a></li>
        </ul>   
    </div>
                </ul>
              </div>

And Below those lines of code:

Code:
        <div id="menu" >
    <div style="margin: 5px 5px 0px;">
         <div class="navbar-header">
         <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-menu" style="float: none;">
           <i class="fa fa-bars"></i>
         </button>
           <span style="font-size: 16px; float: left; margin-top: 3px;"></span>
       </div>
         </div>
       
         <div class="navbar-collapse collapse" id="nav-menu">
           <ul class="nav navbar-nav" data-nav_menu="true">
                     <li><a href="{$mybb->settings['bburl']}/portal.php" title="Portal">Portal</a></li>
                     <li><a href="{$mybb->settings['bburl']}/index.php" title="Forum">Forum</a></li>
                     <li><a href="{$mybb->settings['bburl']}/memberlist.php" title="Members">Members</a></li>
                     <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" title="Today's Posts">Today's Posts</a></li>
                     <li><a href="{$mybb->settings['bburl']}/calendar.php" title="Calendar">Calendar</a></li>
                   <li><a href="{$mybb->settings['bburl']}/misc.php?action=help" title="Help">Help</a></li>
           </ul>        
           </div>
           </div>

Than open theme.css, find this:
Code:
/* Main menu */

and replace current lines of codes with these ones:

Code:
/* Main menu */
.menu {
   width: 360px;
   float: left;
   margin: 0;
   padding: 0;
   text-align: left;
}

.menu ul {
   margin: 0;
   padding: 0;
}

.menu ul li {
   list-style: none;
   display: inline-block;
   text-align: center;
   text-transform: uppercase;
   transition: all linear .5s;
}

li.home a, li.members a, li.search a, li.today a, li.calendar a, li.help a {
    color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a:hover, li.members a:hover, li.search a:hover, li.today a:hover, li.calendar a:hover, li.help a:hover {
   background: #009dff;
    color: #fff !important;
}

li.portal a {
   background: #009dff;
   color: #fff !important;
   text-decoration: none;
   padding: 15px 15px;
   line-height: 43px;
}

li.home a::before {
   font-family: 'FontAwesome';
   content: "\f27b";
   font-size: 19px;
}

li.portal a:before {
   font-family: 'FontAwesome';
   content: "\f015";
   font-size: 19px;
}

li.members a:before {
   font-family: 'FontAwesome';
   content: "\f0c0";
   font-size: 19px;
}

li.search a:before {
   font-family: 'FontAwesome';
   content: "\f00e";
   font-size: 19px;
}

li.today a:before {
   font-family: 'FontAwesome';
   content: "\f0e6";
   font-size: 19px;
}

li.calendar a:before {
   font-family: 'FontAwesome';
   content: "\f133";
   font-size: 19px;
}

li.help a:before {
   font-family: 'FontAwesome';
   content: "\f29c";
   font-size: 19px;
}

.badge {
   background: #009dff;
    border-radius: 0px;
}

.badge:hover {
   background: #5b82a4;
}

.badge a:hover {
   color: #fff;
}



2. If you want Portl.php to be the index page of your Forum, create .htaccess file and add this:

Code:
DirectoryIndex portal.php index.php

1. that's not what I mean

2. create a new .htaccess file or add a default .htacces
DSo you already have .htacces file?
If you do, please post it's content here, if not create new one and upload it to the root of your Forum.

Code:
RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forumbagus.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

RewriteEngine on
RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]
.htacces for google seo

Just add it to the very beginning of the file like this:

Code:
DirectoryIndex portal.php index.php

RewriteEngine on

# Some hosts require RewriteBase to make RewriteRules work.
RewriteBase /

# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://forumbagus.com/$1?$2 [L,QSA,R=301]

# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]

# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]

# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]

# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]

# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]

# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]

# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]

RewriteEngine on
RewriteRule ^tag-(.*?)\.html$ tag.php?name=$1 [L,QSA]
RewriteRule ^tag\.html$ tag.php [L,QSA]
succeed

Thank you so much admin
[+] 1 user says Thank You to Semprul for this post
Reply
#8
i was wondering how to go about makeing the portal.php appear when you first go to the website instead of the regular phpbb forum index?
[+]
Reply
#9
Check this:
https://community.mybb.com/thread-218096.html
[+]
Reply
#10
summary of posts gives the last post time of say, 50 minutes ago. But when you go the thread the last post was like 2 hours ago. I dunno. No big deal. Just raising the issue.
[+]
Reply
  


Forum Jump:


Users browsing this thread:
1 Guest(s)

Portal.php as Forum Homepage00