Git Product home page Git Product logo

forum's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forum's Issues

Localization Updates

Hey @jasanchez and @kristofferdarj. I'm currently working on v4 of the forum and this caused some of the localization strings to change. Just wondering if you would have any time to update the strings?

You should be able to edit the spa/swe PO files and then merge in the new eng ones. Let me know if you have time for this.

Thanks again!

Unsupported operand types

Hi,

With a fresh install of cakephp 2.4.6 and the latest commit of forum I get this error:

Error: Unsupported operand types
File: /var/www/forum.tier-und-wir.net/htdocs/app/Config/bootstrap.php

basically I rsynced it into the fresh install and adjusted database.config.php.

Is there sth more I have to do?

Class 'ForumAppController' not found

--- Continuation of previous issue.

After I refresh the page to make every pages work, when user tries to logout/login, this error pops up

Fatal error: Class 'ForumAppController' not found in .../app/Plugin/forum/Controller/UsersController.php on line 1

bug in ForumToolbarComponent::initForum()

if ($user_id && $this->Controller->Auth->user($this->config['userMap']['status']) != $this->config['statusMap']['banned']) {

above condition is never executed, i have following common setup (0 -> pending, 1->active, 2->banned), $this->Controller->Auth->user($this->config['userMap']['status']) is evaluated to true so:

if ($user_id && true != 2) { //never executed }

issues install in cake php 1.3.14

  1. downloaded cake-forum-2.3 and copied the contents in app/plugins/forum/
  2. added in bootstrap

CakePlugin::loadAll(array('forum',
array('bootstrap' => true, 'routes' => true),
));

Fatal error: Class 'CakePlugin' not found

Am i missing on anything?

Form action

It appears that using $this->here for the url option in Form->create() doesn't work when using the forum in a subdirectory.

For example, I'm using the forum as http://sites2/forumtest/forum
$this->here returns: /forumtest/forum/topics/add/general-discussion

However Form->create() will prepend /forumtest resulting in /forumtest/forumtest/forum/topics/add/general-discussion making all forms using $this->here to produce a missing controller error.

missing bindings when User model is inside plugin

i think that user should explictly point to User model in configuration file (ie. Users.User when using plugin) and all relation bindings should be done in model's constructors with this settings. currently i had to manually change hardcoded "User" value in many models relations.

Notifications

Are there any plans in place for putting notifications in place for topics or general daily summaries?

Forum Install on Cake 1.3

Put files in app/plugins/forum
added route
changed prefix in forum app model to forum_
tried to go to
mysite.com/forum/install
get
Error: Database table forum_access for model Access was not found.

suggestions?

missing _ in View/Forum/help.ctp

In line 28

...
$this->Html->link(_d('forum', 'edit profile'),
...

is a _ missing before _d.
The correct syntax would be:

...
$this->Html->link(__d('forum', 'edit profile'),
...

not an issue

Hi
it's not an issue, i'm just ask if there are demo ? and how to install this without composer ?

regards

admin panel is never shown

I have integrated this plugin with my existing cakephp 1.3 application,

there's only single user with user_id and /forum/users/profile/2 shows it as administrator but when I do /admin/forum it gets redirected to my main application

I followed all the installation steps correctly

I am using WAMP server version 2.2

earlier login issues got fixed with 2.3 version of the forum

Scoped / Polymorphic Forums

There are customers and there are rentals. The job is to have a forum for each customer, as well as for each Rental. Each customer or rental should have its own set of topics.

Can this be done (fairly) easily using your plugin, or will I have to modify every find() operation?

failed to open stream

Hi

i have issue with cake Forum.install


[x] Check Database Configuration
[x] Set Table Prefix
[x] Set Users Table
[x] Check Table Status
[5] Create Database Tables
[6] Finish Installation

Existing tables will be deleted, continue? (Y/N) 
> Y
Creating tables...
Unexpected error has occurred; SQLSTATE[HY000]: General error: 1364 Field 'icon' doesn't have a default value

There have admin panel ?

Install Issues in Cake 2.2.2

Hey,
I downloaded and set up Cake-Forum like described in the documentation. After I want to login my application I get this Fatal Error:

( ! ) Fatal error: Class 'ForumAppController' not found in C:\xampp\htdocs\cake\app\Plugin\forum\Error\ForumExceptionRenderer.php on line 23

Do you have any idea what I'm doing wrong?
Thanks!

no styles and scripts

I downloaded and installed forum as specified in decoumetation. Everything works, except styles and scripts - they are not linked. Links to them exist but they are not resolved and instead of they contents I get forum start page with tons of errors. I have ubuntu server 12.04.1 as a web server and the only problem I can see here is linux case sensivity. Because on windows machine everything works just fine. Tryed to adapt .htaccess files with no success

Admin panel never get's showed

I am using 2.1 version of cakeforum and have installed with an existing user table, I could never see the admin panel and nor does it create user profile

install in 1.9.1

Good day...i just downloaded 1.9.1 and i am working with cakephp 1.3.8... i renamed the repo folder to forum, put it in ...app/plugins/...so that we now have app/plugins/forum.
i try to access the folder as mysiteurl/forum/install/ and it gives me missing controller error. So its either cakephp is not seeing the plugins folder or something else.

Please let me know what you think the issue might be.

Thanks

Routing problems in Cake 1.3

I know your plugin was developed for 1.2 but it looks like you are working on a 1.3 version so I wanted to post an issue I have been trying to resolve but haven't had any luck yet.

If I drop a fresh version of cupcake into /app/plugins/forum and attempt to access http://myapp/forum/install I get the error:

Error: Controller could not be found.
Error: Create the class Controller below in file: app\controllers\controller.php

However, if I create a route of Router::connect('/forum/install', array('plugin' => 'forum', 'controller' => 'install', 'action' => 'index')); I am able to pull up the page.

To be sure it was a 1.3 issue, I dropped the plugin into an old project that is still using 1.2 and I was able to get to the install page just fine with no custom routes.

I am just wondering if anyone has experienced this issue before? I have been having trouble trying to debug the issue further. Any help is greatly appreciated, cheers!

When installing new copy of forums, errors on 'dropping tables' while not necessary!

When installing new copy of forums, errors on 'dropping tables' while not necessary!
I have a completely empty database, and it connects just fine, but it does not see the tables are NOT there, it attempts to drop tables.

top snippet of error:

Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 255]

Code | Context

$prefix = "forum_"

 */
private function __rewriteSql($prefix = '') {
    $path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;

InstallController::__rewriteSql() - APP\plugins\forum\controllers\install_controller.php, line 255
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 106
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 107]

Code

    // Prepare SQL
    $this->__rewriteSql($this->Session->read('Install.prefix'));
    $path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;

InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 107
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Warning (2): file_get_contents(.\config\schema\prepared_schema.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 110]

Code | Context

$path = ".\config\schema"

file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 110
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Warning (2): file_get_contents(.\config\schema\prepared_users_create.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 115]

Code | Context

$path = ".\config\schema"
$schema = array(
""
)

file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 115
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Warning (512): SQL Error: 1051: Unknown table 'forum_access' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]

Code | Context

$sql = "DROP TABLE forum_access;"
$error = "1051: Unknown table 'forum_access'"
$out = null

        $out = null;
        if ($error) {
            trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);

DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Query: DROP TABLE forum_access;

Warning (512): SQL Error: 1051: Unknown table 'forum_access_levels' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]

Code | Context

$sql = "DROP TABLE forum_access_levels;"
$error = "1051: Unknown table 'forum_access_levels'"
$out = null

        $out = null;
        if ($error) {
            trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);

DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Query: DROP TABLE forum_access_levels;

--- end of snippet ---

What's wrong?

What user system?

I seem to have trouble installing the whole idea of the forum plugin in a fresh installation of CakePHP 2.4.0 stable. I would like to know what user auth is compatible with the forum plugin since there is non included inside the package.

E-mail notifications

Hi,

I just installed the version for 1.3 successfully however it states in the specs that the forum has e-mail notifications for topics. I'm struggling to find where you can set this or if its even an option in this version. Even when I subscribe to a topic and then post a reply I still don't get an e-mail notification.

Am I missing something here?

Charlotte

error adding posts in mysql (strict mode)

Adding a post fails under recent (and more standards-compliant) versions of mysql because there is no default value defined for some fields in the database, which mysql treats as an error in strict mode.

using mysql 5.1.41 the following changes to the database were required to get it working:

ALTER TABLE topics CHANGE firstPost_id firstPost_id INT( 11 ) NULL DEFAULT NULL ,
CHANGE lastPost_id lastPost_id INT( 11 ) NULL DEFAULT NULL ,
CHANGE lastUser_id lastUser_id INT( 11 ) NULL DEFAULT NULL

thanks

minor documentation correction & installation shell script improvements

following shell invocation method worked for me: cake -app /path/to/app Forum.install
i think this syntax should be also reflected on: http://milesj.me/code/cakephp/forum :)

also the name of users table is hard-coded in install script - i am using 'prefix' option in my database config so my users table is prefixed and install script is unable to detect it. i think that prompting user to enter the name of users table would be the best option.

also another nice to have install feature would be the ability to pick UUIDs as table keys :)

thx for great plugin :)

Install script bug

If you run install script with no initial tables (other than users table), run through process and choose to use an existing user the shell throws missing table warning:

Would you like to [c]reate a new user, or use an [e]xisting user? (C/E) 
> e
Error: Missing database table 'forum_profiles' for model 'Profile'

If then run the same script once more with the same settings it works fine.

Error after installation

After installation , I got this error. It seem that cakephp can't detect configuration in Forum.

forum/posts/add - error spit out from this URL. Let me know any info you want to debug this. Thank you.

screen shot 2013-08-20 at 7 28 27 am

screen shot 2013-08-20 at 7 27 52 am

Missing Method in UsersController

Error: The action dashboard is not defined in controller UsersController

Error: Create UsersController::dashboard() in file: app/Controller/UsersController.php.

Forum help

Hi Bud,

I really like this forum was wondering may I ask you for some help?

Can't install on 1.3

I moved css and js and img to webroot. This fixed a lot. However it seems that the javascript still isn't running for some reason (when trying to click on the 'create tables' form button). I went to the create tables action and recieved this error:

Warning (2): file_get_contents(/Users/Dean/Sites/plugins/forum/config/schema/parsed_schema.sql) [function.file-get-contents]: failed to open stream: No such file or directory [CORE/plugins/forum/controllers/install_controller.php, line 98]

This file does not appear to exist whatsoever, nor does it appear on your online copy, so I was wondering if this should have been generated by a preceding step.

AccessLevel.id vs AccessLevel.level

Hi,

I'm not sure if this is an error or just misunderstanding. In the forum 3.2.0-rc4 when I logged in as admin, the AccessLevel model creates this query:

SELECT AccessLevel.id, AccessLevel.title, AccessLevel.level, AccessLevel.isAdmin, AccessLevel.isSuper FROM c0tipmaster.forum_access_levels AS AccessLevel WHERE AccessLevel.id = 10

However, the table forum_access_levels generated with these columns:
id (autoincrement)
title
level
isAdmin
isSuper

So the IDs are 1,2,3,4 and the levels 1,4,7,10 (10 for admin)... I don't have much experience with cakePHP and the forum seems to work but inside topics it outputs this:

Undefined index: title [APP/Plugin/Forum/View/Helper/CommonHelper.php, line 178]

Forum ACL in admin area

: DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 1 [username] => admin [email] => [email protected] [status] => active [avatar] => ) ) Aco: Forum.Poll [CORE/Cake/Model/Permission.php, line 94]

I've problem accessing forum admin page inside Admin plugin, can I know how to initialize the forum ACL ? I've done clean install

Attach is the ACL page inside Admin

screen shot 2013-08-20 at 9 43 24 am

error messages

In all model, there is a line $this->invalid(....

but I have not found that function anywhere in the class. This cause a fatal error.

Thanks

Attachments

I need to be able to attach files. There are a few approaches I can take but happy to implement any existing design and feed back via the fork I've created.

Your thoughts?

ForumExceptionRenderer Fatal Error

It seems throughout my entire app (outside of /forum/...), where Cake would normally prompt me with a Missing Controller/Model/Table/View error, I instead get the following error:

Fatal error: Class 'ForumAppController' not found in C:\Development\AppName\app\Plugin\Forum\Error\ForumExceptionRenderer.php on line 23

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.