First of all, you would probably like to know that my skills in PHP and more advanced coding such as that is relatively new.
Basically I am working on a website for a friend. I've tried a number of different "How-To" threads and searching, however, I can't seem to find a way to fix my problems.
The website can be found here: http://thatswhatsupentertainment.net/index2.php
1. I'm trying to implement a "Headlines" system. And I've nearly got it completely mapped out. Maybe you could take a look at the site, and see what, exactly, it is that I'm trying to do.
2. How can I change the general settings of the news? By this, I mean, fonts, colors, etc.
3. Is there any way to shut off comments? I've tried things like messing about with the settings in the admin area (setting comments per page to, "0" for instance). While it is not a feature that this friend of mine wants to include, it's also a problem with the headlines bit.
While this has worked to an extent, especially with the fonts and colors, there's still a few problems with the site.
When clicking a headline, it does show up exactly how I want it to. However, upon going to the news story the box where my headlines are stored has changed to a comments form. Anything relating to comments has been deleted from my template.
I hope that makes sense, perhaps you should try checking the site that had been included in my original post.
Also, how can I change the colors of links (author name, headline colors, etc.)?
Well, I've somehow got most of the problems sorted out. My apologies.
However, for the headlines, I don't understand what I've done wrong. I've followed everything in the thread you made about them, but for some reason, when you click a headline, no news is showing up.
This is the code I have for fullstory.php:
Code:
<?php include('includes/header.shtml'); ?><?php
include 'news/index.php';
?>
<?php include('includes/footer.shtml'); ?>
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I suspect what's happening here is for the template you're using, in the "Comments Structure" section, you might have remove the {news} tag. Check and if you have just add that tag back in and hopefully it should work.
But there is one more, much smaller problem. When clicking the news in the Headlines, the only headline that is displayed is the current news story. Is there any way to fix that?
EDIT: I just check my footer.php file and it didn't include the "nppage" bit in the include tag. However, that doesn't seem to be the problem.