Yii Framework Forum: [Extension] Yii-Forum - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

[Extension] Yii-Forum Yii forum module Rate Topic: -----

#1 User is offline   Caliban 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 07-October 12

Posted 11 October 2012 - 06:37 AM

THis is the support thread of Yii-forum, an easy to install, mostly self-contained forum module.

Extension page
0

#2 User is offline   bettor 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 751
  • Joined: 02-February 09

Posted 11 October 2012 - 07:41 AM

Currently looking at the demo I see an issue. When you click on the user who has posted ( by admin for instance) it leads to 404 error.

Example url: http://yii-forum.pag...orum/view/id/12
click on the user that has posted.
0

#3 User is offline   prchakal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 20-January 10

  Posted 11 October 2012 - 01:41 PM

The user url has a problem. Click on user name of a post.

I need a specific table for users? Because my system has a "customer" table, i can integrate with it?

My portal: www.devgames.com.br
0

#4 User is offline   Caliban 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 07-October 12

Posted 11 October 2012 - 02:46 PM

Ah, yeah, the user link currently don't go anywhere, or, more accurately, going to a hard coded url. This will be configurable in the next release.

You can easily edit the file yii-forum/models/forumuser.php, at the bottom, the getUrl method. That should fix all user links throughout the forum.

Sorry about that!

Edit: Oh, make sure you change $this->id to $this->siteid as well!
Edit again: This does not work. Please use version 0.2

This post has been edited by Caliban: 11 October 2012 - 05:13 PM

0

#5 User is offline   prchakal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 20-January 10

Posted 11 October 2012 - 02:49 PM

Hi,

And about the user table?
0

#6 User is offline   Caliban 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 07-October 12

Posted 11 October 2012 - 04:11 PM

View Postprchakal, on 11 October 2012 - 02:49 PM, said:

Hi,

And about the user table?

You'll have to create your own. in your case, you can change the getUrl method to something like
    return Yii::app()->createUrl('customer/view', array('id'=>$this->siteid));


Edit: The above will not work. Please use version 0.2

This post has been edited by Caliban: 11 October 2012 - 05:12 PM

0

#7 User is offline   Deram 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 07-June 12

Posted 20 October 2012 - 05:58 AM

Are we to expect a lot of new versions of this extensions in the near future, or are you pretty much done with it now? I'm asking because in about a month i'm going to set up a forum on my clients website, and at the moment your extension doesn't live up to the expectations my client has. However, it would be foolish of me to begin creating a new forum, or build a lot upon yours if you are going to update it in a near future :)

By the way, it looks like this extension has potential to become great :)
0

#8 User is offline   Caliban 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 07-October 12

Posted 22 October 2012 - 08:19 PM

View PostDeram, on 20 October 2012 - 05:58 AM, said:

Are we to expect a lot of new versions of this extensions in the near future, or are you pretty much done with it now? I'm asking because in about a month i'm going to set up a forum on my clients website, and at the moment your extension doesn't live up to the expectations my client has. However, it would be foolish of me to begin creating a new forum, or build a lot upon yours if you are going to update it in a near future :)

By the way, it looks like this extension has potential to become great :)

Glad you like it! I don't have a lot of time to put into it right now. If you're willing to contribute, I can put it on github or something (will probably do that anyway), give you write access, and you can have at it. I do however not intend to make it a full blown forum with all sorts of bells and whistles (like MyBB, phpBB, you name all the big ones) that makes it half a CMS. That's not what a forum is for in my opinion. But there are some features that are definitely still missing, or ripe for improvement. Let me know if you're interested in going that route.
0

#9 User is offline   YearningForYii 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 21-September 12

Posted 23 November 2012 - 07:29 AM

Property "Forumuser.firstseen" is not defined.How to resolve this?

View PostCaliban, on 22 October 2012 - 08:19 PM, said:

Glad you like it! I don't have a lot of time to put into it right now. If you're willing to contribute, I can put it on github or something (will probably do that anyway), give you write access, and you can have at it. I do however not intend to make it a full blown forum with all sorts of bells and whistles (like MyBB, phpBB, you name all the big ones) that makes it half a CMS. That's not what a forum is for in my opinion. But there are some features that are definitely still missing, or ripe for improvement. Let me know if you're interested in going that route.

0

#10 User is offline   msams 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 12-March 11

Posted 29 November 2012 - 10:32 AM

I'm using yii-forum with the blog demo. Both the blog and yii-forum have a Post model. Other than renaming Post to Forumpost, is there another work around? Also, is this on github?
0

#11 User is offline   Benasyii 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 01-January 13

Posted 01 January 2013 - 02:39 PM

Very nice. Greatings dude. How to translite your Yii forum extension?
Updated i found how to do it.
Now another question how to specify a mybb theme?
Updated i found how to do it.
Another question is how to edit titles for all pages?
0

#12 User is offline   Luke Wenke 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 01-January 13

Posted 09 January 2013 - 11:09 PM

It wasn't letting users edit their own posts... the following needs to be changed:

views\thread\_post.php

from
<?php if($isAdmin || Yii::app()->user->id == $data->author_id): ?>

to
<?php if($isAdmin || Yii::app()->user->forumuser_id == $data->author_id): ?>

controllers\PostController.php

from
if(!Yii::app()->user->isAdmin && YII::app()->user->id != $post->author_id)

to
if(!Yii::app()->user->isAdmin && Yii::app()->user->forumuser_id != $post->author_id)

0

#13 User is offline   jsladek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 02-May 11

Posted 23 January 2013 - 09:47 PM

View PostYearningForYii, on 23 November 2012 - 07:29 AM, said:

Property "Forumuser.firstseen" is not defined.How to resolve this?


Did you figure this out?
0

#14 User is offline   Luke Wenke 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 01-January 13

Posted 29 January 2013 - 04:34 AM

/modules/yii-forum/views/thread/_post.php

            if($isAdmin)
            {
                $deleteConfirm = "Are you sure? This post will be permanently deleted!";
                echo '<div class="admin" style="float:right; border:none;">'.
                        CHtml::ajaxLink('Delete post',
                            array('/forum/admin/deletepost', 'id'=>$data->id), // change
                            array('type'=>'POST', 'success'=>'function(){document.location.reload(true);}'),
                            array('confirm'=>$deleteConfirm, 'id'=>'post'.$data->id)
                        ).
                     '</div>';
            }


Change to:
array('/forum/post/delete', 'id'=>$data->id),

0

#15 User is offline   ludovico 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 04-February 13

Posted 07 February 2013 - 03:15 PM

@Caliban: Are you still developing this? Or, did you ever put it on Github?
I just discovered this, and saw that the last release was from october.

Love the extension, by the way :)
0

#16 User is offline   Gambler 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 11-March 13

Posted 13 March 2013 - 04:38 AM

View PostYearningForYii, on 23 November 2012 - 07:29 AM, said:

Property "Forumuser.firstseen" is not defined.How to resolve this?


Hi,
the solution to this problem
ALTER TABLE  `forumuser` ADD  `firstseen` DATETIME NOT NULL ,
ADD  `lastseen` DATETIME NOT NULL

0

#17 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 02-January 11

Posted 19 March 2013 - 05:37 PM

Hi Guys,

nice extension. I'm not a big css guru, but I would like to know if there is a way to make the forum look like the bootstrap extension?
thanks a lot!
0

#18 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 02-January 11

Posted 25 March 2013 - 03:13 PM

I've found BootGroupGridView:
- is it meant to display the forum like a bootstrap widget, I mean like a bootstrap designed grid?
- BootGroupGridView extends BootGridView, but from my yii bootstrap extension, BootGridView is missing by default. what to do to make it work? I've tried to:
- change in modules\yii-forum\views\forum\view.php this:
$this->widget('forum.extensions.groupgridview.GroupGridView', ...
to this
$this->widget('forum.extensions.groupgridview.BootGroupGridView', ...
but I just get error, that BootGridView.php is missing in extensions/bootstrap/widgets -> I've inserted BootGridView.php in extensions/bootstrap/widgets, next: BootDataColumn.php is also missing. next error:
there was a problem also with preheader, but I've just copied the appropriate parts from GroupGridView.php and it seems there is no more problems with it. next error:
Property "Bootstrap.popoverSelector" is not defined.
it's in protected\extensions\bootstrap\widgets\BootGridView.php(68)
$popover = Yii::app()->bootstrap->popoverSelector;
now it's already beyond my knowledge. is there a simple way to make it look like a bootstrap grid?
thanks a lot!
0

#19 User is offline   cappadochian 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 02-January 11

Posted 25 March 2013 - 03:40 PM

okay, I guess I've found something relevant here, especially this:
(...yii-bootstrap is now resided in a module,) Yii:app()->bootstrap is not exists in this case.
I solved this problem by determine whether yii-bootstrap is resided in a module or not:

$module = ( Yii::app()->controller->module ? Yii::app()->controller->module : Yii::app() );
$popover = $module->bootstrap->popoverSelector;
$tooltip = $module->bootstrap->tooltipSelector;
now! the next error message I get, is
Property "YiiForumModule.bootstrap" is not defined.

so this is why the whole problem happened. this is the core problem. I don't know yet how to solve it, or what does it mean in fact, but I'm trying to solve it. any help is greatly appreciated.
thanks
0

#20 User is offline   Solid 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 29-December 12
  • Location:Kristiansand, Norway

Posted 26 June 2013 - 04:05 PM

Great ext!

Easy to install, and easy to modify.

I have one question tho, the
Yii::app()->controller->module->format_date

how can i customize that? Cant seem to find it, i need to translate it.

Thanks!
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users