PDA

View Full Version : module: vbforumblocks


elmuerte
03-18-2006, 06:28 AM
I'm working on a new module: vbforumblocks
This module is going to replace the vblock module

This module allows you to create blocks on the fly rather than having only two blocks to choose from.

The following items are on my to do list:

hot threads (sort of done)
exclude forums instead of include (done)
title trimming (done)
adjustable caching time (done)


This module is part of the vbcore package that also include a vbcode filter and the vbnode module to allows conversion of threads (first post) to nodes

sifuhall
03-18-2006, 08:17 AM
very nice!

elmuerte
03-18-2006, 03:07 PM
Hmmm.... should I add an age-cut off and should I make it global or per-block?

elmuerte
03-19-2006, 03:26 PM
I've also added a vbpolls module to show the latest poll in the forums as a block.

sifuhall
03-19-2006, 04:29 PM
The poll module will be a great addition.

Regarding age cut-off, I think per block would be preferable if it isn't that much more difficult to implement.

tamarian
03-19-2006, 04:36 PM
Another feature might be a block for a specific forum. I think this has been requested frequently.

elmuerte
03-19-2006, 04:55 PM
Regarding age cut-off, I think per block would be preferable if it isn't that much more difficult to implement.

Well, it's more that I have to change the database table I previously set. The current table doesn't provide enough movement of freedom. Anyway, not a major issue,

elmuerte
03-20-2006, 02:40 PM
Well, the vbforumblocks module is mostly done, it needs some testing here and there. But it's fully functional.

http://r.elmuerte.com/junk/vbfb_1.jpg
http://r.elmuerte.com/junk/vbfb_2.jpg
(Ps, the poll at the bottom is from the vbpolls module)

only need to change the code to use theme functions

neuston
06-28-2006, 09:26 AM
Just want to say, it is really excellent work!! Thanks a lot.

monk707
06-28-2006, 06:40 PM
Hello.....where can I download this??
vbforumblocks

neuston
06-28-2006, 11:30 PM
It should have already included in the vbdrupal (directory of modules). You just need to enable it. :)

monk707
06-28-2006, 11:43 PM
Thanks for the respone.....still not seeing it though.
where would it be....under modules?

monk707
06-28-2006, 11:44 PM
I see vblocks but that is it

neuston
06-29-2006, 12:05 AM
nope, should be vbforumblocks, along with vbcore, vbnode, vbpolls

could you find the folder of vbcore in your modules directory? :confused:

btw, what is your version of vbdrupal?

monk707
06-29-2006, 07:32 AM
uhhhh....how can I tell the version number?
And no....nothing in my modules directory called vbcore.

monk707
06-29-2006, 07:44 AM
Ok.....i just went to sourceforge and looked at the most recent release.....and there are definatly things missing from what I have first uploaded and installed.

Question now is how to up reinstall without losing all the content I have already added?

sifuhall
06-29-2006, 08:42 AM
Upload the new files over your existing ones, and re-import the vb product.

You will not lose any content. The only thing you would lose would be any changes you have made to templates if you are using something other than the theme defaultvb and in that case just do not upload the theme you are using.

monk707
06-29-2006, 09:05 AM
Sounds good to me!!
Uploading now.....hoping for an easy switch.

monk707
06-29-2006, 09:35 AM
Ok......at first glance everything seems fine......except for the output of some code about the header:


// based on server load. if (!($block['throttle'] && (module_invoke('throttle', 'status') > 0))) { $array = module_invoke($block['module'], 'block', 'view', $block['delta']); if (is_array($array)) { $block = array_merge($block, $array); } } if (isset($block['content']) && $block['content']) { $blocks[$region]["$block[module]_$block[delta]"] = (object) $block; } } } } return $blocks[$region]; } ?>


Take a look:
http://206.130.125.170

elmuerte
06-29-2006, 11:30 AM
that's part of the block.module file
don't know how that could happen, specially not without producing errors