Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2012, 02:13 AM
Chris8's Avatar
Chris8 Chris8 is offline
 
Join Date: Nov 2009
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Activity Stream for vb3

Like vb4 has now, that would be cool.
Reply With Quote
  #2  
Old 05-23-2012, 10:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
3 благодарности(ей) от:
Chris8, dlewisr, Simon Lloyd
  #3  
Old 05-24-2012, 08:06 PM
Chris8's Avatar
Chris8 Chris8 is offline
 
Join Date: Nov 2009
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
  #4  
Old 05-25-2012, 12:27 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Attached Images
File Type: jpg vb3as_ss.jpg (118.3 KB, 0 views)
Reply With Quote
2 благодарности(ей) от:
Chris8, z3r0
  #5  
Old 05-25-2012, 08:23 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
BirdOPrey5
  #6  
Old 05-25-2012, 05:08 PM
Chris8's Avatar
Chris8 Chris8 is offline
 
Join Date: Nov 2009
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Благодарность от:
BirdOPrey5
  #7  
Old 06-15-2012, 11:11 PM
Chris8's Avatar
Chris8 Chris8 is offline
 
Join Date: Nov 2009
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #8  
Old 06-16-2012, 12:38 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Attached Files
File Type: zip Activity Stream for VB3 by BOP5 -INCOMPLETE-.zip (7.9 KB, 14 views)
Reply With Quote
  #9  
Old 06-16-2012, 12:50 AM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When do you think vb5 will come out BOP?
Reply With Quote
  #10  
Old 06-16-2012, 08:22 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
When do you think vb5 will come out BOP?
Crivens.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05082 seconds
  • Memory Usage 2,309KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (7)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete