MyBB Community Forums

Full Version: How do i link to my portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Do i link to my portal?Also how do i add it to all theme headers at once?
tmhai Wrote:http://mods.mybboard.net/view.php?did=402

You can also change the header block and add a portal link.

How?
Now you have uploaded "Portal Redirect plugin" so only what you need, go to admin cp and activate this.

If you want change header and portal link:
  1. In admin CP, go to "Configuration -> Change" next go to "General Configuration" and there you can find "Homepage URL". There you have something like "http://your_site/" change this to "http://your_site/portal.php"
  2. Go to AdminCP -> templates, choose a templateset (for example "Default templates"). Next find "header". In this template find something like:
    <a href="{$mybb->settings['bburl']}/search.php">
    {$lang->toplinks_search}</a>
    
    before this add:
    <a href="{$mybb->settings['bburl']}/portal.php">
    Home</a>
    


Edit:
if you have before "<a href=..." something like <LI> then you need use this form:
<li><a href="{$mybb->settings['bburl']}/portal.php">
Home</a></li>
patrick_2007 Wrote:Now you have uploaded "Portal Redirect plugin" so only what you need, go to admin cp and activate this.

If you want change header and portal link:
  1. In admin CP, go to "Configuration -> Change" next go to "General Configuration" and there you can find "Homepage URL". There you have something like "http://your_site/" change this to "http://your_site/portal.php"
  2. Go to AdminCP -> templates, choose a templateset (for example "Default templates"). Next find "header". In this template find something like:
    <a href="{$mybb->settings['bburl']}/search.php">
    {$lang->toplinks_search}</a>
    
    before this add:
    <a href="{$mybb->settings['bburl']}/portal.php">
    Home</a>
    


Edit:
if you have before "<a href=..." something like <LI> then you need use this form:
<li><a href="{$mybb->settings['bburl']}/portal.php">
Home</a></li>

Already changed the homepage url also check yo inbox
Small info for anyone who want have "Home" link in a "bread crumbs"
This can look like:
Home / Forums / My Thread

in the file "inc/functions.php" find
function build_breadcrumb()
{
	global $nav, $navbits, $templates, $theme, $lang;

	eval("\$navsep = \"".$templates->get("nav_sep")."\";");

	if(is_array($navbits))
	{
		reset($navbits);
		foreach($navbits as $key => $navbit)
...
and replace this with:
function build_breadcrumb()
{
	global $nav, $navbits, $templates, $theme, $lang;

	eval("\$navsep = \"".$templates->get("nav_sep")."\";");

//*****************
// new code
//*****************
      $navsize = count($navbits);
      if ( $navbits[$navsize-1]['url'] != "portal.php" || $navbits[$navsize-1]['name'] != $lang->nav_portal ) {
	      $navbit['name'] = "Home";
	      $navbit['url'] = "portal.php";
	      eval("\$nav .= \"".$templates->get("nav_bit")."\";");
	      if ($navsize > 1) {
	        $nav .= $navsep;
            }
      } else {
            $donenav = "";
            return $donenav;
      }
//*****************
// end of new code
//*****************

	if(is_array($navbits))
	{
		reset($navbits);
		foreach($navbits as $key => $navbit)
Preview is on my site http://www.engpol-community.org/forum/index.php

After this changes, when you go to portal page, bread crumbs are not showed, so you can put your own link to forum everywhere you want Smile
ok so what does that mean also what are bread crumbs
Bread Crumbs:
Under page header, you have a path to place where you are now. For this thread is:
MyBB Community Forums / MyBB / General Support / How do i link to my portal

After changes is something like:

MyBB Home / MyBB Community Forums / MyBB / General Support / How do i link to my portal
ok but is this change good
This change you can use, if you want have portal page as your web-service home page and make access to HomePage very easy.
After change people can see:
HOME / FORUMS / ....
so they can easy use HOME link to navigate to portal page

At this moment portal is a component of forum, after change: forum is a component of your main-site (portal.php)

Before changes, on the portal page you have bradcrumbs like:
FORUM / PORTAL

After change, this path is not showed.
So it's an easy way to make your portal page as a main page for your web-service where you can have much more like only forum.
From now this site can be used "independently" of forum.

I can't write much more simply Smile And i hope i wrote "clear"
Pages: 1 2