2007-08-11, 04:03 PM
Pages: 1 2
2007-08-11, 04:26 PM
2007-08-11, 04:31 PM
tmhai Wrote:http://mods.mybboard.net/view.php?did=402
You can also change the header block and add a portal link.
How?
2007-08-11, 04:34 PM
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:
Edit:
if you have before "<a href=..." something like <LI> then you need use this form:
If you want change header and portal link:
- 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"
- Go to AdminCP -> templates, choose a templateset (for example "Default templates"). Next find "header". In this template find something like:
before this add:<a href="{$mybb->settings['bburl']}/search.php"> {$lang->toplinks_search}</a>
<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>
2007-08-11, 04:40 PM
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:
- 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"
- Go to AdminCP -> templates, choose a templateset (for example "Default templates"). Next find "header". In this template find something like:
before this add:<a href="{$mybb->settings['bburl']}/search.php"> {$lang->toplinks_search}</a>
<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
2007-08-11, 05:33 PM
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
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
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.phpAfter 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
2007-08-11, 05:37 PM
ok so what does that mean also what are bread crumbs
2007-08-11, 05:42 PM
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
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
2007-08-11, 05:45 PM
ok but is this change good
2007-08-11, 06:12 PM
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 And i hope i wrote "clear"
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 And i hope i wrote "clear"
Pages: 1 2