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

Jump to content

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

[Extension] Bbii Forum Forum module

#41 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 16 December 2014 - 07:31 AM

View PostStefano Mtangoo, on 16 December 2014 - 06:51 AM, said:

Hello Ronald,
Whats the purpose of BbiiLogTopic model?
I see its used alot in your code and seems to have multiple uses there!
Am trying to understand the code!


When a registered user opens a topic a record is inserted/updated in the db table bbii_log_topic.
The record will contain the id of the last post in the topic at the moment the user opens the topic.

The entries are used to be able to display to the user which topics (and forums) contain unread posts.
0

#42 User is offline   Stefano Mtangoo 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 349
  • Joined: 02-January 12
  • Location:Dar es Salaam, Tanzania

Posted 16 December 2014 - 07:50 AM

View PostRonald van Belzen, on 16 December 2014 - 07:31 AM, said:

When a registered user opens a topic a record is inserted/updated in the db table bbii_log_topic.
The record will contain the id of the last post in the topic at the moment the user opens the topic.

The entries are used to be able to display to the user which topics (and forums) contain unread posts.


Ok thats clear.
My concern now is, as forum lives years, doesn't that table swell in size or there is mechanism to mitigate that?
And God said, Let there be science...and it was so! Forum coded in Yii2 here, and its github repo here
0

#43 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 16 December 2014 - 10:21 AM

View PostStefano Mtangoo, on 16 December 2014 - 07:50 AM, said:

Ok thats clear.
My concern now is, as forum lives years, doesn't that table swell in size or there is mechanism to mitigate that?


Not at the moment. Truncating that table can be done without damaging anything though, but I suspect it will take some years before that would become necessary on a regular forum.
0

#44 User is offline   Roberto Basáñez 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-December 14

Posted 16 December 2014 - 10:53 AM

Thanks Roland. Now, the forum is working perfectly with "Cruge"
0

#45 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 10 January 2015 - 06:16 AM

View PostRonald van Belzen, on 16 December 2014 - 10:21 AM, said:

Not at the moment. Truncating that table can be done without damaging anything though, but I suspect it will take some years before that would become necessary on a regular forum.


After giving it some thought, I have decided that I am going to redesign this functionality.
0

#46 User is offline   Mono 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 21-January 15

Posted 21 January 2015 - 09:50 AM

Hello Ronald,
Thank you for your application!

I made a translation into Russian, it is in the attached file.

And found a few small errors:

in file bbii/views/setting/index.php

in line
<?php echo CHtml::label(Yii::t('BbiiModule.bbii', 'Forum naam'), false); ?>

must be
<?php echo CHtml::label(Yii::t('BbiiModule.bbii', 'Forum name'), false); ?>


in file bbii/views/member/view.php

in line
<?php if(isset($model->blogger)) echo Chtml::link(CHtml::image($this->module->getRegisteredImage('Blogger.png'),
 'Blogger', array('title'=>'Blogger','target'=>'_blank')), $model->blogger); ?>......

it's not work 'target'=>'_blank', must be
<?php if(isset($model->blogger)) echo Chtml::link(CHtml::image($this->module->getRegisteredImage('Blogger.png'), 
'Blogger', array('title'=>'Blogger')), $model->blogger, array('target'=>'_blank')); ?>.......

Attached File(s)

  • Attached File  ru.zip (4.43K)
    Number of downloads: 1

1

#47 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 21 January 2015 - 01:47 PM

Hello Mono,

thanks for sharing. Your translation will be included in the next release together with the bugfixes.
0

#48 User is offline   012 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 26-January 15

Posted 26 January 2015 - 05:47 AM

Hi anyone knows how to modify bbii to use it on yii2 advanced application template?
Thank you so much
0

#49 User is offline   Rick 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 08-December 11

Posted 28 January 2015 - 08:31 PM

Hi Ronald, thank you for such a wonderful extension!

Have you thought about the ability to attach file(s) to a post and sending emails to thread participants when the thread changes?

Actually, I'm more interested in setting up the ability to define watchers on a thread, board, and category levels.

I'll probably start working towards these features in my spare (yeah right!) time but didn't want to reinvent the wheel if anything similar might be on your roadmap.
0

#50 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 29 January 2015 - 10:28 AM

View PostRick, on 28 January 2015 - 08:31 PM, said:

Hi Ronald, thank you for such a wonderful extension!

Have you thought about the ability to attach file(s) to a post and sending emails to thread participants when the thread changes?

Actually, I'm more interested in setting up the ability to define watchers on a thread, board, and category levels.

I'll probably start working towards these features in my spare (yeah right!) time but didn't want to reinvent the wheel if anything similar might be on your roadmap.


Thusfar I have always decided against adding more functionality to the module. Not because it would be difficult to do or because I lack the time, but because I want to keep the module relatively lightweight and easy to adapt. The forum only contains what I consider to be minimum requirements to be functional, and I strive to keep it that way.

However, I have been known to change my mind from time to time.
0

#51 User is offline   Mono 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 21-January 15

Posted 29 January 2015 - 07:29 PM

Hi Ronald.

I think this is not correct.
in file views/forum/_post.php

div class="post">
	<?php echo CHtml::tag('a', array('name'=>$data->id)); ?>
	<div class="member-cell">

may be better

div class="post">
	<div class="member-cell">

0

#52 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 30 January 2015 - 02:33 PM

View PostMono, on 29 January 2015 - 07:29 PM, said:

Hi Ronald.

I think this is not correct.
in file views/forum/_post.php

div class="post">
	<?php echo CHtml::tag('a', array('name'=>$data->id)); ?>
	<div class="member-cell">

may be better

div class="post">
	<div class="member-cell">



You will lose the functionality that automatically scrolls to a post on a page when you do that.
0

#53 User is offline   Mono 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 21-January 15

Posted 30 January 2015 - 03:58 PM

I'v got it. But I don't use it. So I don't see the difference.
thanks for the reply.
0

#54 User is offline   Zummer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 31-January 15

Posted 31 January 2015 - 06:51 AM

Hi! Where to look for the problem?

Attached File(s)

  • Attached File  123.jpg (136.13K)
    Number of downloads: 19

0

#55 User is offline   Mono 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 21-January 15

Posted 02 February 2015 - 03:33 PM

Hello Ronald,
For the second day, I can not understand how to do it, if at all possible. Maybe you have something to help? How to withdraw paginator show from the post in page 'forum/forum/forum'? As show example in the picture.

Attached File(s)

  • Attached File  forum.png (26.46K)
    Number of downloads: 4

0

#56 User is offline   Stefano Mtangoo 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 349
  • Joined: 02-January 12
  • Location:Dar es Salaam, Tanzania

Posted 02 February 2015 - 04:13 PM

View PostRonald van Belzen, on 10 January 2015 - 06:16 AM, said:

After giving it some thought, I have decided that I am going to redesign this functionality.


So which way are you going this time?
I have found that this is one of hard topics in forums design!
And God said, Let there be science...and it was so! Forum coded in Yii2 here, and its github repo here
0

#57 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 02 February 2015 - 05:01 PM

View PostMono, on 02 February 2015 - 03:33 PM, said:

Hello Ronald,
For the second day, I can not understand how to do it, if at all possible. Maybe you have something to help? How to withdraw paginator show from the post in page 'forum/forum/forum'? As show example in the picture.


I have not much experience with the subject of pagination in Yii, but I guess you will have to take a look at http://www.yiiframew...1.1/CPagination and http://www.yiiframew.../1.1/CLinkPager and figure it out.

Good luck.
0

#58 User is offline   oligalma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 07-April 12
  • Location:Spain

Posted 04 February 2015 - 06:33 PM

I get this error:

Trying to get property of non-object

protected/modules/bbii/views/forum/_footer.php(38)
<th><?php echo Yii::t('BbiiModule.bbii','Newest member'); ?></th><td><?php $member = BbiiMember::model()->newest()->find(); echo CHtml::link($member->member_name, array('member/view', 'id'=>$member->id)); ?></td>


Please help!
0

#59 User is offline   Ronald van Belzen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 159
  • Joined: 04-July 13
  • Location:The Netherlands

Posted 05 February 2015 - 08:02 AM

View Postmoginn, on 04 February 2015 - 06:33 PM, said:

I get this error:

Trying to get property of non-object

protected/modules/bbii/views/forum/_footer.php(38)
<th><?php echo Yii::t('BbiiModule.bbii','Newest member'); ?></th><td><?php $member = BbiiMember::model()->newest()->find(); echo CHtml::link($member->member_name, array('member/view', 'id'=>$member->id)); ?></td>


Please help!


The cause is that database table `bbii_member` is still empty, which is most likely due to not following the installation instructions.

Login before visiting the forum again, or add a dummy user to the table `bbii_member`.
0

#60 User is offline   Mono 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 18
  • Joined: 21-January 15

Posted 07 February 2015 - 02:27 PM

Hello Ronald.

In file ModeratorController.php
in line error

$poll = BBiiPoll::model()->findByAttributes(array('post_id'=>$model->id));

correct model name

$poll = BbiiPoll::model()->findByAttributes(array('post_id'=>$model->id));

0

Share this topic:


  • (5 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • 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