The only thing I noticed is that if you have your site in a subfolder, you need to go in and change the following code in the /view/newsview.php file:
Code:
$newsObj = new News($news); |
Thank you! I will add a note to the first post!
|
This looks really good! I cant wait to try this out --- thanks for sharing this with us! :)
|
Quote:
|
Nice mod, will definitely use this once I start working on my site. Right now I've been diggin g deep into learning MVC, OOP, and PDO before I even touch Mysidia.
|
Just created and added everything and it is functioning perfectly! I have to fix up the formatting a little bit so it works more neatly with the theme, but it's awesome so far!
How do you think one should go about making it so that a news alert appears at the top of the page until the member visits the news page? So each time a new news post is added members are alerted when they logon? |
Quote:
Quote:
I was thinking of sending a new message to users to alert them of a new news, but I kinda got lazy and didn't do it lol I guess it would work exactly like the messages system that alerts users when they get a new message. Maybe another table that contains all users and a field that says if they have been to the news page ever since a new news was posted. So when posting a news, all fields would reset to "unread" for all users and while it was unread, a message would appear somewhere in the site |
Okay, I'm having this error:
CREATE TABLE `newscomments` ( `id` INT( 5 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `newsID` INT( 5 ) NOT NULL DEFAULT 'None', `userID` INT( 5 ) NOT NULL DEFAULT 'None', `comment` VARCHAR( 300 ) NULL DEFAULT NULL , `date` VARCHAR( 30 ) NULL DEFAULT NULL ) ENGINE = MYISAM MySQL said: Documentation #1067 - Invalid default value for 'newsID' Any ideas? |
Quote:
Code:
CREATE TABLE `[your_prefix_here]_newscomments` ( |
The phpMyAdmin that my host is using seems to be a bit dated, so it doesn't actually have a drop-down for most of the parts. I'll go through and run it directly to see if that'll work.
Thank you :) |
All times are GMT -5. The time now is 07:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.