jfox015 / bonfire-news Goto Github PK
View Code? Open in Web Editor NEWCreate, manage and publish news articles for the Bonfire Admin Library
Create, manage and publish news articles for the Bonfire Admin Library
I'm getting this error in the Random Details section
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: article
Filename: content/news_form.php
Line Number: 147
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: content/news_form.php
Line Number: 147
I've fixed it by making a change on line 146
`````` elseto
elseif(isset($article))```
The form will not submit due to an attachment error, but it should be able to even if no attachment is specified. This is currently happening in dev/sv_merge branches.
I've tried opening up the permissions so that users can edit their own entries, but if I filter for just their articles, it seems like I'd be doing the same thing to the admin... so in theory the admin or an editor should be able to edit any article and the users should only be able to edit theirs. Am I overlooking an easy permission somewhere. I don't mind if they see them... I'm running into similar issues with who is allowed to delete an article, they seem to go into limbo, I still have them in the database, but they disappear from the live site. Most recent live version has been moved to http://brolu.net/, I'm starting to get feedback from beta testers now, so hold onto your hat.
It would be good have support for multiple attachments per article, but I'm torn on whether to add this as an "articles_attachments" table or create a separate Bonfire media manager module. I'm kind of leaning towards the latter, but still going to think a little more on this.
Once multiple attachments are available to the article, they could be embedded either by
I do sort of like the way Wordpress auto inserts the complete image code when inserting media rather than other CMS tools custom shortcode embedding (mostly because you can preview the image in the editor as your writing.
i've installed the module, made the migration.
I got this error when trying to access index.php/admin/content/news
Fatal error: Call to undefined function css_path() in \bonfire\modules\news\controllers\content.php on line 67
Error Number: 1075
Incorrect table definition; there can be only one auto column and it must be defined as a key
CREATE TABLE bf_news_articles
( id
int(11) NOT NULL AUTO_INCREMENT, author
int(11) NOT NULL DEFAULT '-1', title
varchar(255) NOT NULL, date
int(11) DEFAULT NULL, body
longtext, attachment
varchar(1000) NOT NULL, image_align
varchar(255) NOT NULL, image_caption
varchar(255) NOT NULL, tags
varchar(255) NOT NULL, created_on
int(11) NOT NULL DEFAULT '0', created_by
int(11) NOT NULL DEFAULT '-1', modified_on
int(11) NOT NULL DEFAULT '0', modified_by
int(11) NOT NULL DEFAULT '-1', status_id
tinyint(1) NOT NULL DEFAULT '0', category_id
tinyint(1) NOT NULL DEFAULT '0', date_published
int(11) DEFAULT NULL, deleted
tinyint(1) NOT NULL DEFAULT '0' ) DEFAULT CHARACTER SET = utf8 COLLATE = utf8_general_ci
Filename: *****/bonfire/modules/news/migrations/001_Install_news.php
Line Number: 43
A PHP ERROR WAS ENCOUNTERED
Severity: Notice
Message: Undefined property: stdClass::$display_name
Filename: content/index.php
Line Number: 15
I installed the module and ran all the migration scripts and went to Content -> News and got the following error
I'm setting both to /public/assets/images/uploads/ but continue to get directory "" not write-able.
The installation process states I may be asked if I want it to overwrite some files... It's not doing this. Everything is in a BonfireNews directory. I move the News directory into my Modules folder and then seem able to migrate, but alot of the core components are still not in place. Any advice would be appreciated. This module sounds very promising!
In 0.6-dev, the auth->username, auth->user_name and auth->email functions are removed and have to be handled differently.
Add ability for users to access form to submit articles publicly. All articles submitted in "Draft" draft status.
I'm not getting any response under sorting for author or category.
Right now, any user who is not an admin with News.Content.Manage permissions can't see their news articles to edit them. Need to think on and revamp the article creator level permissions for news articles as I intended for original submitters to possibly have access.
Update the module to work with Bonfire 0.7.
The body field needs a rich text editor attached to it. The actual JS files for the Xania editor that comes with Bonfire seems to be missing and my first attempt to connect the NicEdit tool caused the Ajax functionality to break.
I may have discovered a security leak... possibly a serious one, but I have an easy suggestion to fix it, I think... When I'm on the homepage, when signed in as a mach "user" his name is jamez, I can click on the author of an article... and it takes me to a page where I can edit the author's profile, just so happens in this case, that's an admin of the site. But the same hyper link could be set to got to a listing or open a jquery submenu whatever, but it goes to a listing of articles by that same author... finally some code "I" can contribute back... I'll write up that view, first and maybe that fancy open a selection list later...
Hi,
after installing your module i got many sql errors.
i have checked it and the problem is the missing $table_name variable in the model files.
I'm using Bonfire 0.7.
ok, I'm getting it to work now I thought I tried that one first... I'm still hacking the installation. I'll post what I'm doing differently to make it work, but following your wiki I'm posting
public function index()
{
$this->load->library('installer_lib');
if (!$this->installer_lib->is_installed())
{
redirect( site_url('install') );
}
$this->load->library('users/auth');
$this->set_current_user();
$count = 7;
$startIndex = 0;
$data['articles'] = modules::run('news/get_article_list',$count,$startIndex);
Template::set('news_list',$this->load->view('news/news_list',$data, true));
Template::render();
}//end index()
into the home controller, but getting the following 2 errors.
at line 168 it looks like it's looking for the users ID, but if they are not signed in, there is nothing to return as the object... this is probably effecting the session variable as well. But I'm getting the same errors even if I'm still signed in... I'll post my hack in a few, probably just copy what worked last time, but trying to find the differences along the way, to help installation in the future and make sure it's all correct and smooth.
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/news.php
Line Number: 168
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /hermes/waloraweb035/b1597/moo.turtlewolf/ace/bonfire/core/Loader.php:659)
Filename: libraries/Session.php
Line Number: 675
Add ability to share articles via social networking. Also add check boxes to automatically include Facebook Like, Goople + anf TweetMeme.
Create and admin page to allow site admins to add and manage news categories
Also provide an admin page to describe statuses used. Don't think we want to edit statuses as they are hard coded into the admin tool and display code.
When creating a new article, dates save as 0 in the DB. They can be fixed on edit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.