Closed dbashby closed 8 years ago
you should really post code here.
Place the setup.php
and the index.php
code, use http://pastebin.com/ .
Pastebin url - http://pastebin.com/raw/RcnknBmM
You have the site title as an static variable... in line 23 in setup.php
. ($site_title = "My Site";
)
Change it to $site_title = data_setting_value($dbcon, site-title');
and it should be fixed.
Thanks for that,
$site_title = data_setting_value($dbcon, 'site-title');
Resolved the one issue but the issue regarding the navigation only displaying the 1st letter in the hard coded navigation bar is still baffling. As the screenshots above the page title is only showing the first letter and it is in lower case despite the Navigation as below.
Thanks
`
<ul class="nav navbar-nav">
<li><a href="?page=dashboard">Dashboard</a></li>
<li><a href="?page=pages">Pages</a></li>
<li><a href="?page=users">Users</a></li>
<li><a href="?page=navigation">Navigation</a></li>
<li><a href="?page=settings">Settings</a></li>
</ul>
<div class="pull-right">
<ul class="nav navbar-nav">
<li>
<?php if($debug == 1){ ?>
<button type="button" id="btn-debug" class="btn btn-info navbar-btn"><i class="fa fa-bug"></i></button>
<?php } ?>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $user['fullname']; ?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="logout.php">Logout</a></li>
</ul>
</li>
</ul>
</div><!-- end of pull right -->
`
To help you with that I need the header.php
file, please. Of the admin section of course.
header.php
`<?php
# Start the session
session_start();
if(!isset($_SESSION['username'])){
header('Location: login.php');
}
?>
<?php //require('php/connection/conx.php'); require('config/setup.php'); ?> <!DOCTYPE HTML>
After looking at the code again I see the lower case letter but still unsure why only the first letter is showing
that code looks not complete, but you can change the <?php echo $page['title'] . ' | ' . $site_title; ?>
with <title><?php echo $page. ' | ' . $site_title; ?></title>
.
It'll make an acceptable result.
I am starting to get the feeling that I have missed out on 1 or more videos. Thanks for your help with all of the above though.
Upon completion of the project, video 112, I noticed that the title bar only displays the first letter of any of the hard coded navigation buttons but also the site title does not carry over.
In the form on the Settings form if I change the title, it saves to the database but in the title bar it is still taking the title from the hard coded site title on setup.php on the admin side.
I noticed in the final video that Alan had the same issue as far as the navigation bar only displaying the first letter of each button.
Has anyone else experienced this? If you did how did you fix one or both issues?
Thanks for any help.