View Full Version : Activity Stream for vb3
Chris8
05-23-2012, 02:13 AM
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
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
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/attachment.php?attachmentid=138697&stc=1&d=1337909226
Simon Lloyd
05-25-2012, 08:23 AM
This may help you out, lifted from one of vb's core files$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
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:
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:
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:
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
When do you think vb5 will come out BOP?
Crivens. :rolleyes:
BirdOPrey5
06-16-2012, 10:59 AM
Well it was announced "later this year."
So even if it means December I *assume* it means we'll see Betas well before then.
I have no "inside knowledge" however- surprisingly they tell us very little- everything I learned about VB5 was from the same press releases as everyone else.
So how does vb5 coming out affect this? Do you mean because vb3 will be two major versions old?
BirdOPrey5
06-16-2012, 11:37 AM
So how does vb5 coming out affect this? Do you mean because vb3 will be two major versions old?
Just my time- I can't justify putting lot of time into this since I plan (hope) to upgrade my VB3 forum to VB5. I don't really need a major new modification that would be live only a few months.
Just my time- I can't justify putting lot of time into this since I plan (hope) to upgrade my VB3 forum to VB5. I don't really need a major new modification that would be live only a few months.
Oh, I see. Thanks.
Paul M
06-16-2012, 11:53 AM
Just my time- I can't justify putting lot of time into this since I plan (hope) to upgrade my VB3 forum to VB5. I don't really need a major new modification that would be live only a few months.
I think vB3 will be around much longer than a few months, however, I do see your point. :cool:
Paul M
06-16-2012, 11:54 AM
When do you think vb5 will come out ...
2012 :D
Chris8
06-16-2012, 10:23 PM
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.
Thank you BOP! I will surely try to work on it, and if I will have big troubles I will hire someone to help me. Well, I really like the idea of activity stream and I'm not going to upgrade my board except security fixes. I realize the new vb4 is much more stable than in the past but it's still lacking too much and the update to vb4 after 3 years of working on it everyday and rewriting it would be not the thing for me, especially when it's all working just perfect now. I know also a few other guys that are on the same boat as me. :) Thanks once again for trying and sharing. :)
tyteen4a03
06-18-2012, 03:25 PM
Thank you BOP! I will surely try to work on it, and if I will have big troubles I will hire someone to help me. Well, I really like the idea of activity stream and I'm not going to upgrade my board except security fixes. I realize the new vb4 is much more stable than in the past but it's still lacking too much and the update to vb4 after 3 years of working on it everyday and rewriting it would be not the thing for me, especially when it's all working just perfect now. I know also a few other guys that are on the same boat as me. :) Thanks once again for trying and sharing. :)
I can also help :)
I'd really like to see Activity Stream for vB3 too... vB4 just sounds too crappy for me.
Simon Lloyd
06-18-2012, 05:42 PM
... vB4 just sounds too crappy for me.Lol thats because it's the longest running beta in the hsitory of forums :D
Alfa1
06-18-2012, 05:58 PM
I'd really like an AS for vb3 as well.
christon26
06-23-2012, 12:01 PM
Have you seen this one? https://vborg.vbsupport.ru/showthread.php?t=279463
Chris8
06-25-2012, 04:33 PM
Have you seen this one? https://vborg.vbsupport.ru/showthread.php?t=279463
Nope!
I must check it out too.
I see also added a few days ago this one:https://vborg.vbsupport.ru/showthread.php?t=284521 .
All looking interesting.
christon26
06-25-2012, 07:57 PM
I tried the vBSocial one but nothing ever happened, tried a few test notificatins and all that and nada....I do have a very heavily modded noard though so maybe something conflicted. I wasn't impressed enough to try and find out lol :P
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.