[Extension] Yii-Forum Yii forum module
#1
Posted 11 October 2012 - 06:37 AM
Extension page
#2
Posted 11 October 2012 - 07:41 AM
Example url: http://yii-forum.pag...orum/view/id/12
click on the user that has posted.
#3
Posted 11 October 2012 - 01:41 PM
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
#4
Posted 11 October 2012 - 02:46 PM
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
#6
Posted 11 October 2012 - 04:11 PM
prchakal, on 11 October 2012 - 02:49 PM, said:
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
#7
Posted 20 October 2012 - 05:58 AM
By the way, it looks like this extension has potential to become great
#8
Posted 22 October 2012 - 08:19 PM
Deram, on 20 October 2012 - 05:58 AM, said:
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.
#9
Posted 23 November 2012 - 07:29 AM
Caliban, on 22 October 2012 - 08:19 PM, said:
#10
Posted 29 November 2012 - 10:32 AM
#11
Posted 01 January 2013 - 02:39 PM
Updated i found how to do it.
Updated i found how to do it.
Another question is how to edit titles for all pages?
#12
Posted 09 January 2013 - 11:09 PM
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)
#14
Posted 29 January 2013 - 04:34 AM
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),
#15
Posted 07 February 2013 - 03:15 PM
I just discovered this, and saw that the last release was from october.
Love the extension, by the way
#17
Posted 19 March 2013 - 05:37 PM
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!
#18
Posted 25 March 2013 - 03:13 PM
- 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!
#19
Posted 25 March 2013 - 03:40 PM
(...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

Help














