MyBB Community Forums

Full Version: How to add a custom breadcrumb?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright I need a bit of help since I'm a total newbie at PHP Rolleyes

Basically, I found a thread that helped me make 2 custom pages, An about page and a portfolio page (about.php, portfolio.php). Now I want to add a custom breadcrumb to each page but when I try to add one it doesnt work...

HTML (portfolio_template)
<head>
<title>{$mybb->settings['bbname']} - Portfolio</title>
{$headerinclude}
</head>
<body id="portfolio">
{$header}

<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div><b>Tech2Game - Reloaded</b></div>
</td>
</tr>
</thead>
<tr>
<td class="trow1"><a href="http://tech2game.com"><img src="images/t2g_small.png" alt="" style="max-width: 760px;"/></a></td>
<td class="trow1" width="200px">Test</td>
</tr>
</table>

<br />

<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead">
<div><b>Alliance Forums 2.0</b></div>
</td>
</tr>
</thead>
<tr>
<td class="trow1"><a href="http://allianceforums.ws"><img src="images/af_small.png" alt="" style="max-width: 760px"/></a></td>
</tr>
</table>

<br />

<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead">
<div><b>PaidtoReg</b></div>
</td>
</tr>
</thead>
<tr>
<td class="trow1"><a href="http://paidtoreg.com"><img src="images/ptr_small.png" alt="" style="max-width: 760px;"/></a></td>
</tr>
</table>

<br />

<table border="0" cellspacing="0" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead">
<div><b>SystemFreeze</b></div>
</td>
</tr>
</thead>
<tr>
<td class="trow1"><a href="http://systemfreeze.com"><img src="images/sf_small.png" alt="" style="max-width: 760px;"/></a></td>
</tr>
</table>
{$footer}
</body>
</html>


portfolio.php
<?php

define('IN_MYBB', 1); 
require './global.php'; 

add_breadcrumb($title->, "portfolio.php");
eval("\$custompage = \"".$templates->get("portfolio_template")."\";"); 
output_page($custompage); 

?>

So what do I do with add_breadcrumb($title->, "portfolio.php"); Huh
This thread is already some time ago, but if you still need help take a look on this here, it's very easyToungue:

add_breadcrumb("page name here", "portfolio.php");