vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Sidebar: Activity Stream Block (4.2 only) (https://vborg.vbsupport.ru/showthread.php?t=283469)

rellect 05-25-2012 10:00 PM

Sidebar: Activity Stream Block (4.2 only)
 
Sidebar: Activity Stream Block

If you installed this mod, please "Mark as Installed".

Description:

Shows the latest activity in your forum home!

Compatibility:
Compatible only with 4.2.X and newer.

Installations:
you don't have to change anything in the templates/files,
just upload the plugin and that's all.

- Import XML file (as product): AdminCP > Plugins & Products > Manage Products > [Add/Import Product]

History:
  • [26-05-12] v1.0:
    First Release
Enjoy.


The mod removed since there are some problems of stability that need to be fixed and I don't have time to fix them. For who need this kind of feature, just wait for 4.2.1 that will have it build-in.

Skyrider 05-26-2012 09:23 AM

Awesome, thanks for this! Makes me wonder why this wasn't build in the core of vB 4.2

BlessedFWI 05-26-2012 10:09 AM

This is a great idea! Although, when I tried to upload it to vB 4.2, I get a database error and it won't upload! :( Is this happening to anyone else?

meaters 05-26-2012 10:20 AM

Awesome mod. thanks!

Lionel 05-26-2012 10:40 AM

Hi, In your picture I see all kind of activities. I installed it and only blog activities display for me.

meaters 05-26-2012 10:46 AM

Can you make phots and attachments from the activity stream appear in sidebar as well?

qpurser 05-26-2012 10:59 AM

Thanks for this Mod. Really nice to have the activity stream in the sidebar.
However it seems the stream in the sidebar doesn't get updated automatically when somebody posts something like the Stream page itself does.
Updates only occur when I go into another page or refresh the page.

Mr_Running 05-26-2012 11:26 AM

Quote:

Originally Posted by BlessedLAF (Post 2333009)
This is a great idea! Although, when I tried to upload it to vB 4.2, I get a database error and it won't upload! :( Is this happening to anyone else?

Yes, I have an error too but I not sure if it's this mod. Checking into it.
If anyone else is getting this let me know. Cheers. :)

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/block/blogentries.php on line 129

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139


Edit:
Okay, Forum Blocks Manager need to set the Display Order # for Activity Stream the above error message went away. :)

rellect 05-26-2012 11:58 AM

Quote:

Originally Posted by BlessedLAF (Post 2333009)
This is a great idea! Although, when I tried to upload it to vB 4.2, I get a database error and it won't upload! :( Is this happening to anyone else?

Send me the error.
Currently vbulletin doesn't contain the option save forum blocks in xml files, so I improvised and create the block with sql.

Quote:

Originally Posted by Lionel (Post 2333017)
Hi, In your picture I see all kind of activities. I installed it and only blog activities display for me.

It shows only the latest activities.
Post a reply or open a thread and check again.
Maybe at the time you've checked all the latest activities were related to blogs.

Quote:

Originally Posted by meaters (Post 2333018)
Can you make phots and attachments from the activity stream appear in sidebar as well?

You mean show its images?
I removed (kind of, it just hidden by css) the images to save space, and make it more compact.

Quote:

Originally Posted by qpurser (Post 2333020)
Thanks for this Mod. Really nice to have the activity stream in the sidebar.
However it seems the stream in the sidebar doesn't get updated automatically when somebody posts something like the Stream page itself does.
Updates only occur when I go into another page or refresh the page.

The activity main page runs by AJAX. My mod isn't, yet..
Next version I will consider that.

Quote:

Originally Posted by Mr_Running (Post 2333023)
Yes, I have an error too but I not sure if it's this mod. Checking into it.
If anyone else is getting this let me know. Cheers. :)

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/block/blogentries.php on line 129

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139

Edit:
Okay, Forum Blocks Manager need to set the Display Order # for Activity Stream the above error message went away. :)

The display order caused to your problem?

Mr_Running 05-26-2012 12:11 PM

Yes, the Display order was my problem by default it was #0
I gave it a display number. :)

rellect 05-26-2012 12:23 PM

Quote:

Originally Posted by Mr_Running (Post 2333036)
Yes, the Display order was my problem by default it was #0
I gave it a display number. :)

Weird, it should accept display order #0.
I checked the plugin serval times and the display order never caused to problem.
I'll look into it later.

Robru 05-26-2012 12:52 PM

Wow!! One big error when you edit the block in the blockmanager!

Alfa1 05-26-2012 12:58 PM

Please add:
- auto updating function. Without a flow of new content its not a stream, but a list.
- make the listing much more compact to allow more entries.

rellect 05-26-2012 01:58 PM

Quote:

Originally Posted by Robru (Post 2333053)
Wow!! One big error when you edit the block in the blockmanager!

Copy here the error
Quote:

Originally Posted by Alfa1 (Post 2333059)
Please add:
- auto updating function. Without a flow of new content its not a stream, but a list.
- make the listing much more compact to allow more entries.

1. I will add ajax in the next version
2. Its the most compact style I was able to get without remove important information.

Aurvandil 05-26-2012 04:21 PM

Great mod! Would it be possible to make this into a CMS Widget as well?

RSNF 05-26-2012 04:28 PM

Looks promising Tagged with hopes that the ajax version will be released :)

meaters 05-26-2012 04:43 PM

I think it would be great if you make it that images fromt he forum activity show in the sidebar.

rellect 05-26-2012 06:07 PM

Quote:

Originally Posted by Aurvandil (Post 2333157)
Great mod! Would it be possible to make this into a CMS Widget as well?

Not supposed to be problem,
I'll consider create plugin for that :)

nezr 05-26-2012 06:16 PM

tagged :) Awesome!

rellect 05-26-2012 06:19 PM

Quote:

Originally Posted by meaters (Post 2333167)
I think it would be great if you make it that images fromt he forum activity show in the sidebar.

I will consider set it as option in the next version.
Please mark as install :)

Alfa1 05-26-2012 06:26 PM

Quote:

Originally Posted by RellecT (Post 2333080)
2. Its the most compact style I was able to get without remove important information.

Please make the preview appear on hover. This reduces 1-2 lines per entry.

'See more' is superfluous, as there already is a link to the content.

Reflect replied to the thread sup in main forum
The word sup can be linked to Reflect his post. Then there is no need for a 'See more'

This reduces 2 lines per entry.

If you color the timedate in grey font (like done in vb3 with .time) place it after the event, then that saves another line.

So with the above changes Each entry has 4-5 lines less and consist out of 2 lines, instead of 6-7. This allows the activity stream to show almost 3 times as many entries in the same space.

rafiul 05-26-2012 09:39 PM

Intalled but problem. I see this erorr-
Code:

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 129

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139

I have give the block a number. But not helpd. any idea?

meaters 05-26-2012 10:12 PM

Quote:

Originally Posted by RellecT (Post 2333205)
I will consider set it as option in the next version.
Please mark as install :)

Thank you. Installed.

Robru 05-27-2012 05:19 AM

Quote:

Originally Posted by RellecT (Post 2333080)
Copy here the error

Code:

Invalid blockid or blocks cache on line 105 in /var/www/includes/class_block.php
#0 /var/www/includes/class_block.php(601): vB_Block::create(Object(vB_Registry), 12, NULL)
#1 /var/www/admincp/block.php(226): vB_BlockManager->createBlock(12)
#2 {main}

When I give it a number, it gives me the same error ;)

rellect 05-27-2012 06:23 AM

Quote:

Originally Posted by Alfa1 (Post 2333213)
Please make the preview appear on hover. This reduces 1-2 lines per entry.

'See more' is superfluous, as there already is a link to the content.

Reflect replied to the thread sup in main forum
The word sup can be linked to Reflect his post. Then there is no need for a 'See more'

This reduces 2 lines per entry.

If you color the timedate in grey font (like done in vb3 with .time) place it after the event, then that saves another line.

So with the above changes Each entry has 4-5 lines less and consist out of 2 lines, instead of 6-7. This allows the activity stream to show almost 3 times as many entries in the same space.

Sounds cool, I'll implement your suggestion.
Quote:

Originally Posted by rafiul (Post 2333286)
Intalled but problem. I see this erorr-
Code:

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 129

Warning: in_array() expects parameter 2 to be array, string given in [path]/includes/block/blogentries.php on line 131

Warning: Invalid argument supplied for foreach() in [path]/includes/block/blogentries.php on line 139

I have give the block a number. But not helpd. any idea?

Don't know how blogentries is affected, but I will look into that and let you know as soon as possible.

Quote:

Originally Posted by Robru (Post 2333386)
Code:

Invalid blockid or blocks cache on line 105 in /var/www/includes/class_block.php
#0 /var/www/includes/class_block.php(601): vB_Block::create(Object(vB_Registry), 12, NULL)
#1 /var/www/admincp/block.php(226): vB_BlockManager->createBlock(12)
#2 {main}

When I give it a number, it gives me the same error ;)

I will look into that.
Seems as I need to change the way I create the block.

Lionel 05-27-2012 07:14 AM

Quote:

It shows only the latest activities.
Post a reply or open a thread and check again.
Maybe at the time you've checked all the latest activities were related to blogs.
no not for me. new threads and new replies do not show. Only new blog entries do

rellect 05-27-2012 07:24 AM

Quote:

Originally Posted by Lionel (Post 2333419)
no not for me. new threads and new replies do not show. Only new blog entries do

And in the main activity page (activity.php) you do see new threads and new replies?
Maybe you disabled it in the admincp under the activity stream options.

Lionel 05-27-2012 08:03 AM

no, not all. They all display in the main activity and in profile

I do have a lot of private threads, but they display to me in main activity and to thread starter

rellect 05-27-2012 08:15 AM

Quote:

Originally Posted by Lionel (Post 2333428)
no, not all. They all display in the main activity and in profile

I do have a lot of private threads, but they display to me in main activity and to thread starter

That just weird.
I'll check it but I'm not sure why you can't see other activities except blog.

Anyway, today I will release an update to improve the installation.
It might fix your problem.

meaters 05-27-2012 08:28 AM

Awesome, I hope you included the option to show images as well!

etca 05-27-2012 08:51 AM

great mod, n installed. thx RellecT

Gecuba 05-27-2012 01:41 PM

Quote:

Originally Posted by Lionel (Post 2333419)
no not for me. new threads and new replies do not show. Only new blog entries do

+1 - the same issue.

What's new? section shows new forum posts-threads, but activity stream sideblock shows the blog's activity only.

meaters 05-31-2012 11:15 AM

I hope you release the improved version soon.

Skyrider 05-31-2012 12:15 PM

Quote:

Database error in vBulletin 4.2.0:

Invalid SQL:

INSERT INTO `blockconfig` (`blockid`, `name`, `value`, `serialized`) VALUES
(, 'html_content', 'class rellect_activity_stream extends vB_ActivityStream_View\\r\\n{\\r\\n public function processActivityBlock()\\r\\n {\\r\\n global $show;\\r\\n\\r\\n $show[\'as_blog\'] = (vB::$vbulletin->products[\'vbblog\']);\\r\\n $show[\'as_cms\'] = (vB::$vbulletin->products[\'vbcms\']);\\r\\n $show[\'as_socialgroup\'] = (\\r\\n vB::$vbulletin->options[\'socnet\'] & vB::$vbulletin->bf_misc_socnet[\'enable_groups\']\\r\\n AND\\r\\n vB::$vbulletin->userinfo[\'permissions\'][\'socialgrouppermissions\'] & vB::$vbulletin->bf_ugp_socialgrouppermissions[\'canviewgroups\']\\r\\n );\\r\\n\\r\\n $this->setPage(1, 10); // display latest 10\\r\\n $result = $this->fetchStream(\'recent\');\\r\\n foreach ($result[\'bits\'] AS $bit)\\r\\n {\\r\\n $activitybits .= $bit;\\r\\n }\\r\\n\\r\\n return \'<ul>\'.$activitybits.\'</ul>\';\\r\\n }\\r\\n}\\r\\n$activity = new rellect_activity_stream($vbphrase);\\r\\nreturn $output = $activity->processActivityBlock();', 0),
(, 'html_template', 'block_html', 0),
(, 'html_type', 'php', 0);

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'html_content', 'class rellect_activity_stream extends vB_ActivityStream_View\\' at line 2
Error Number : 1064
Request Date : Thursday, May 31st 2012 @ 03:14:26 PM
Error Date : Thursday, May 31st 2012 @ 03:14:27 PM
Script : /plugin.php?do=productimport
Referrer : /plugin.php?do=productadd
IP Address : xxxxx
Username : Skyrider
Classname : vB_Database_MySQLi
MySQL Version : 5.1.61
When installing.

cuco88 06-26-2012 08:15 PM

Just tried to install it and I got this error:
Code:

Importiere Add-on, Bitte warten...

[:]

Install Forum Block Step 1

[:]


Warnung: mysql_insert_id() [function.mysql-insert-id]: Access denied for user 'www-data'@'localhost' (using password: NO) in [path]/includes/adminfunctions_plugin.php(1174) : eval()'d code (Zeile 10)

Warnung: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in [path]/includes/adminfunctions_plugin.php(1174) : eval()'d code (Zeile 10)
Install Forum Block Step 2

[:]


Warnung: mysqli_query() [function.mysqli-query]: (42000/1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'html_content', 'class rellect_activity_stream extends vB_ActivityStream_View\\' at line 2 in [path]/includes/class_core.php (Zeile 1391)
        Datenbankfehler
Es trat ein Problem mit der Kletterforum Datenbank auf.
Versuchen Sie Folgendes:
Laden Sie die Seite ?ber die Aktualisieren Schaltfl?che in Ihrem Browser neu.
?ffnen Sie die [myhomepage] Homepage und versuchen Sie eine andere Seite zu ?ffnen.
Klicken Sie auf Zur?ck, um einen anderen Link zu versuchen.
Der technische Administrator von [myhomepage] wurde ?ber den Fehler informiert. Falls das Problem jedoch weiterhin auftritt, k?nnen Sie ihn auch kontaktieren.
 
Wir entschuldigen uns f?r die Unannehmlichkeiten.

Datenbankfehler in vBulletin 4.2.0:

Invalid SQL:

        INSERT INTO `blockconfig` (`blockid`, `name`, `value`, `serialized`) VALUES
        (, 'html_content', 'class rellect_activity_stream extends vB_ActivityStream_View\\r\\n{\\r\\n        public function processActivityBlock()\\r\\n        {\\r\\n                global $show;\\r\\n\\r\\n                $show[\'as_blog\'] = (vB::$vbulletin->products[\'vbblog\']);\\r\\n                $show[\'as_cms\'] = (vB::$vbulletin->products[\'vbcms\']);\\r\\n                $show[\'as_socialgroup\'] = (\\r\\n                        vB::$vbulletin->options[\'socnet\'] & vB::$vbulletin->bf_misc_socnet[\'enable_groups\']\\r\\n                                AND\\r\\n                        vB::$vbulletin->userinfo[\'permissions\'][\'socialgrouppermissions\'] & vB::$vbulletin->bf_ugp_socialgrouppermissions[\'canviewgroups\']\\r\\n                );\\r\\n\\r\\n                $this->setPage(1, 10); // display latest 10\\r\\n                $result = $this->fetchStream(\'recent\');\\r\\n                foreach ($result[\'bits\'] AS $bit)\\r\\n                {\\r\\n                        $activitybits .= $bit;\\r\\n                }\\r\\n\\r\\n                return \'<ul>\'.$activitybits.\'</ul>\';\\r\\n        }\\r\\n}\\r\\n$activity = new rellect_activity_stream($vbphrase);\\r\\nreturn $output = $activity->processActivityBlock();', 0),
        (, 'html_template', 'block_html', 0),
        (, 'html_type', 'php', 0);

MySQL-Fehler  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'html_content', 'class rellect_activity_stream extends vB_ActivityStream_View\\' at line 2
Fehler-Nr.    : 1064
Fehler-Zeit  : Tuesday, 26.06.2012 @ 23:06:56
Datum        : Tuesday, 26.06.2012 @ 23:06:56
Skript        : http://[myhomepage]/admincp/plugin.php?do=productimport
Referrer      : http://[myhomepage]/admincp/plugin.php?do=productadd
IP-Adresse    : 115.64.57.60
Benutzername  : admin
Klassenname  : vB_Database_MySQLi
MySQL-Version : 5.1.63-nmm1-log

Sorry, party of the error are German... If you have problems understanding it ask me and I will try to translate it.

//EDIT: Ah, forgot to mention the version - it is the 4.2.0 PL2 Suite.

rellect 07-05-2012 05:55 AM

I dropped the development of this hack since 4.2.1 probably will has it built-in.
http://tracker.vbulletin.com/browse/VBIV-15099

xxdestinyxx 12-29-2012 10:47 PM

I understand that you are not developing this anymore; however I got a major error which is affecting my forum since installing this mod.

Quote:

Here is a breakdown.

1) The website loads all other tabs (activity etc) and I can even access threads if I know their link, but the actual forum.php (our forum homepage) won't load.
Link: http://www.subeta-unique.com/forums/forum.php
I get the error "Server error

The website encountered an error while retrieving http://www.subeta-unique.com/forums/forum.php. It may be down for maintenance or configured incorrectly.
Here are some suggestions:


Reload this webpage later.


HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."

2) I disabled all current plugins with the config file and that did not fix anything so I reenabled them.
3) I am not getting any errors sent to my email and I created an error file (not sure if I did it 100% correct...) but nothing was being added to the log there either.
4) I ran the 'upgrade' script and replaced all the files but the problem is still persisting.

I even replaced my forum.php with a fresh one from vbulletin but nothing changed. Not sure what to do!
Vbulletin suggested I ask you about this.

EDIT:

An update

Quote:

An update in case anyone else ends up with this issue and googles this thread.

After a lot of messing around and trying things - I disabled my forum blocks in the admin CP and now my page is up again.

Stinks that I have to disable it, but hey at least it's working :)


All times are GMT. The time now is 06:26 PM.

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.01342 seconds
  • Memory Usage 1,853KB
  • 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
  • (7)bbcode_code_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete