Baja Posted October 1, 2007 Share Posted October 1, 2007 I created a new page which seems to be working great except for the bread crumb nav. It is displaying text but not as a link plus Im not sure the proper way of adding the second page. For example: You are here: Support > Second Page This is the code that was in the knowlagebase but not sure if it is missing something or incorrect: $breadcrumbnav=''.$_LANG['globalsystemname'].''; Thanks, Baja 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted October 3, 2007 Author Share Posted October 3, 2007 Any one have issues with this by chance too? Anyone find this to be working perfectly? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 3, 2007 WHMCS CEO Share Posted October 3, 2007 It's a custom page you are creating so you need to add your own link code and breadcrumb. Matt 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted October 3, 2007 Author Share Posted October 3, 2007 It's a custom page you are creating so you need to add your own link code and breadcrumb. Matt Matt what is the proper format for this and where do we do this at? What is there is not producing a link, just text which inturn is not a nav and also needs the second or third link to classify it as bread crumb navagation: $breadcrumbnav=''.$_LANG['globalsystemname'].''; I know the globalsystemname is in the language files. Do I need to create something for example like this: $MYbreadcrumbnav = ''.$_LANG['mynewpagename'].''; And if so where do I put the code for $MYbreadcrumbnav at? Or can I just add the link code directly somehow? 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted October 3, 2007 Author Share Posted October 3, 2007 Would somthing like this work: <?php require("dbconnect.php"); require("includes/functions.php"); $pagetitle = $_LANG['forumstitle']; $pageicon = "images/support/clientarea.gif"; $mybreadcrumbnav=''.$_LANG['globalsystemname'].''; require("init.php"); if ($_SESSION['loggedinstatus']=="true") { # User is Logged In - put any code you like here } # Define the template filename to be used without the .tpl extension $templatefile = "forums"; /* To assign variables in Smarty use the following syntax. $smarty->assign('variablename', $value); This can then be used as {$variablename} in the template */ $smarty->assign('mybreadcrumbnav','[url="domain(dot)com/clients/index.php"]Support[/url] > [url="domain(dot)com/forums/index.php"]Forums[/url]'); include("display.php"); ?> 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted October 3, 2007 Author Share Posted October 3, 2007 Well that didn't seem to work, 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 4, 2007 WHMCS CEO Share Posted October 4, 2007 Just a regular HTML link is all that's needed. $breadcrumbnav='<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="mypage.php">My Page Name Here</a>'; Matt 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted October 4, 2007 Author Share Posted October 4, 2007 Ya I always try to complicate things. I thought becuase it was smarty that you had to do something fancy. Thanks Matt 0 Quote Link to comment Share on other sites More sharing options...
buckneri Posted November 26, 2007 Share Posted November 26, 2007 so far i have this set up but i cannot for the life of me figure out the code to make the "home" crumb a link also? aka the globalsitename all the stock pages have it as a link but the way described here only makes it text and every time i try to make it a link i get some error. J 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted December 4, 2007 Author Share Posted December 4, 2007 so far i have this set up but i cannot for the life of me figure out the code to make the "home" crumb a link also? aka the globalsitename all the stock pages have it as a link but the way described here only makes it text and every time i try to make it a link i get some error. J Here is an example so home and forum will be links. You will have to change things according to you needs. $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="forums.php">'.$_LANG['forumstitle'].'</a>'; 0 Quote Link to comment Share on other sites More sharing options...
buckneri Posted December 6, 2007 Share Posted December 6, 2007 Here is an example so home and forum will be links. You will have to change things according to you needs. $breadcrumbnav = '<a href="index.php">'.$_LANG['globalsystemname'].'</a> > <a href="forums.php">'.$_LANG['forumstitle'].'</a>'; YOU my friend are a gentleman. thank you so much for that post i thought my site would just have to have that small item overlooked but now my obsessive compulsive and perfectionist tendencies have been quelled no really thank you soooooo much. J 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted December 6, 2007 Author Share Posted December 6, 2007 LOL, no worries. It was Matt who got me going in the right direction so if I am the gentleman then he would have to be the scholar. 0 Quote Link to comment Share on other sites More sharing options...
buckneri Posted December 6, 2007 Share Posted December 6, 2007 Matt is a scholar, and a gentleman that crazy brunette runs on Dunkin's and MY business runs on WHMCS 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.