vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Activity Stream for vb3 (https://vborg.vbsupport.ru/showthread.php?t=283342)

Chris8 05-23-2012 02:13 AM

Activity Stream for vb3
 
Like vb4 has now, that would be cool.

BirdOPrey5 05-23-2012 10:47 PM

Interesting challenge... but I don't think I could devote the time... hmmm...

EDIT- so it seems I couldn't resist... working on it.. will release "something." Not sure how close it will be to the VB4 version, we'll see...

Chris8 05-24-2012 08:06 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2332145)
Interesting challenge... but I don't think I could devote the time... hmmm...


EDIT- so it seems I couldn't resist... working on it.. will release "something." Not sure how close it will be to the VB4 version, we'll see...

Awesome news, that would be great stuff!
I'm not a coder so I can't help much in coding but I will be happy to help with testing it out on my test forum and to add my suggestions etc.
Well, there are not many things that haven't been already done for vb3 but activity stream is one of those missing things.
I've seen on the other board someone claiming he had it done as the module for vbadvanced cmps but I haven't found contact to him neither his mod. There is one mod also not from vb.org that has some kind of functionality of following friends but it isn't exactly it and it's very messy.

The only mod existing for that is this one https://vborg.vbsupport.ru/showthread.php?t=264053 but it's for vb4 and the auhor says it cannot be ported that easily cause "it requires the new vBulletin framework, which does not exist on 3.8."

So there is no even basic functional activity stream mod for vb3.

I'm happy to hear someone will give a try and will make an effort to code it.

BirdOPrey5 05-25-2012 12:27 AM

1 Attachment(s)
Well it is looking good but unfortunately I ran into a snag...

So far I have posts, threads, visitor messages, and calendar events working...

But then I realized- I did absolutely nothing on terms of permissions- so if the admin posts a thread in a mod forum, it would go right on the list for everyone to see.

So now I'm holding off until I can figure out if I can integrate permissions or something- I never really learned how permissions work.

Screenshot so you know I am serious:

https://vborg.vbsupport.ru/attachmen...1&d=1337909226

Simon Lloyd 05-25-2012 08:23 AM

This may help you out, lifted from one of vb's core files
PHP Code:

$vbulletin->userinfo['forumpermissions']["$foruminfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) ? true false;
 if (
THIS_SCRIPT == 'showthread' AND $threadinfo['threadid']) {
 if (!(
$vbulletin->userinfo['forumpermissions']["$foruminfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canview']) OR (((!$threadinfo['visible'] AND !can_moderate($foruminfo['forumid'], 'canmoderateposts'))) OR ($threadinfo['isdeleted'] AND !can_moderate($foruminfo['forumid']))) OR (in_coventry($threadinfo['postuserid']) AND !can_moderate($foruminfo['forumid'])) OR (!($vbulletin->userinfo['forumpermissions']["$foruminfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canviewthreads'])) OR (!($vbulletin->userinfo['forumpermissions']["$foruminfo[forumid]"] & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND ($threadinfo['postuserid'] != $vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] == 0)) OR !verify_forum_password($foruminfo['forumid'], $foruminfo['password'], false)) { $show['threadinfo'] = false
} else {
 
$show['threadinfo'] = true
}
 } else {
 
$show['threadinfo'] = false;
 } 

it just shows how to use the array of permissions, it may get you somewhere you want to be :)

Chris8 05-25-2012 05:08 PM

Yeah, that may problematic.
Here are some threads that might be useful:

https://vborg.vbsupport.ru/showthread.php?t=196613
https://vborg.vbsupport.ru/showthread.php?t=112718
https://vborg.vbsupport.ru/showthread.php?t=107342
https://vborg.vbsupport.ru/showthread.php?t=163063
https://vborg.vbsupport.ru/showthread.php?t=187992

I think the problem is more about privacy implementation than permissions, am I right?
I will add more if I find something I will think it may be useful for this purpose.

By the way, I would like to add that most wanted activity stream feature making it really useful is filtering. It makes much more sense when user can limit his activity stream to what are doing his/her friends otherwise it's just what's up on the board..

Looking very promising so far! :)

Chris8 06-15-2012 11:11 PM

I feel like I want to bump this thread up. :)
No pressure though on anybody. I realize this is not something small nor simple. But if anyone did any code it would be great if it could be shared. Of course the coder may state the code is not re-usable so it will stay his work even if it's not done yet but at the same time people strongly interested with using it (like me :) ) could try make some use of it. I think there is an option for posting mods with beta stage annotation that should not be treated like production ones. That's still better than nothing I think. I'm so hungry of this mod... :)

BirdOPrey5 06-16-2012 12:38 AM

1 Attachment(s)
I haven't had time to revisit this... with Vb5 now coming out sooner than I expected not sure it even makes sense anymore.

But for anyone who wants to build on it I have the mod file attached. You will need to manually create 2 database tables and insert default data into one table.


Table 1 Create:
Code:

CREATE TABLE IF NOT EXISTS `bop5astype3` (
  `typeid` int(10) unsigned NOT NULL auto_increment,
  `packageid` int(10) unsigned NOT NULL,
  `section` char(25) NOT NULL default '',
  `type` char(25) NOT NULL default '',
  `enabled` smallint(6) NOT NULL default '1',
  PRIMARY KEY  (`typeid`),
  UNIQUE KEY `section` (`section`,`type`)
) AUTO_INCREMENT=17 ;

Table 1 Insert Default Data:
Code:

INSERT INTO `bop5astype3` (`typeid`, `packageid`, `section`, `type`, `enabled`) VALUES
(1, 1, 'album', 'album', 1),
(2, 1, 'album', 'comment', 1),
(3, 1, 'album', 'photo', 1),
(4, 1, 'calendar', 'event', 1),
(5, 1, 'forum', 'post', 1),
(6, 1, 'forum', 'thread', 1),
(7, 1, 'forum', 'visitormessage', 1),
(8, 1, 'socialgroup', 'discussion', 1),
(9, 1, 'socialgroup', 'group', 1),
(10, 1, 'socialgroup', 'groupmessage', 1),
(11, 1, 'socialgroup', 'photo', 1),
(12, 1, 'socialgroup', 'photocomment', 1),
(13, 2, 'blog', 'entry', 1),
(14, 2, 'blog', 'comment', 1),
(15, 3, 'cms', 'article', 1),
(16, 3, 'cms', 'comment', 1);

Table # 2:
Code:

CREATE TABLE IF NOT EXISTS `bop5as3` (
  `activitystreamid` int(11) NOT NULL auto_increment,
  `userid` int(11) NOT NULL,
  `dateline` int(11) NOT NULL,
  `contentid` int(11) NOT NULL,
  `typeid` int(11) NOT NULL,
  PRIMARY KEY  (`activitystreamid`)
) AUTO_INCREMENT=1 ;

THIS IS RE-USABLE CODE. :up:

New Joe 06-16-2012 12:50 AM

When do you think vb5 will come out BOP?

Mark.B 06-16-2012 08:22 AM

Quote:

Originally Posted by New Joe (Post 2339946)
When do you think vb5 will come out BOP?

Crivens. :rolleyes:


All times are GMT. The time now is 03:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01257 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete