Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MultiBlock
#1
MultiBlock is tools what you need!

With this plugin you can create every block with custom fields what you want.

You can:
  • creator category block with template and custom fields
  • Create block what you want with custom loop and own sort order.

You can create with this:
  • Carousel, gallery,section, dynamic element of website for your theme.

THANK ISLANDER FOR YOUR IDEA AND BETATESTSSmile

How to use
  • Default Placeholder: mbvaluetext('valuename')
  • Wysiwyg Placeholder: mbvalue('valuename')
  • If you want to force list order (default is random), place in root element of template: mborder()
  • Place this into page template: getMultiBlock('categoryname')
  • Place this if you want to force list order: getMultiBlock('categoryname' , '#idContainer or .classContainer')

v 2.0 fixed work many multiblock functions uses on one page.

Added new option:

Dropdown

Thumbnail generator

New function:
  • Dropdown placeholder:
  • mbdropdown('valuename')

If you want use a dropdown, default value is:

example 1|example 2|example 3

Thumbnails placeholder:

 mbthumb('imageslug',300 or different number width)


Youtube how it's work and how to use:

https://www.youtube.com/watch?v=W0E18jbV-vA

v 4.0 GAMECHANGER
  • One Block support, you can create Block for use whooole website!
  • Better File Browser, link input, Hide disable & add new button options

Check video what's new on this release!

Reply
#2
Up! New release 4.0
Reply
#3
v 5.0
I18n added Lang Support
Function name shows on label
Migrator included
Rebuild whole plugin on code and structure

Important - if you update from 4.0 to 5.0 you must update all MultiBlock and OneBlock, and elements update title input. This is require for good works.
Reply
#4
Hi. I've installed the plugin and watched the video (several times).

The dropdown box to the left of the Choose Section button on the initial MultiBlock screen is empty. How do I populate it?

In the video when you create a MultiBlock under Options you have a photo area and a content area. How do you add those?

Thanks in advance - Cath
Reply
#5
Hello Cath, let me see if I can walk you though it.

If you have already installed the plugin and activated it, go back to the Plugins tab and from the side menu choose "MutliBlock Settings".

Next, click the "Add New MultiBlock" button.
Here you will give it section a name and slug (holder), add your desired field types, and create a template to hold these fields.

For example:
Section Name= My Products
Slug = products

(click "Add New Field" 3 times)
Field Name   |  Slug   |  Default Value   |   Field Type
Product Title | title     |                        |  Text
Product Image | photo |                        |  image
Description | description |                        |  Wysiwyg

Click save, and now click on the "Template" button to add your template.

For example:
<div>
  <img src="<?php mbvaluetext('photo');?>">
  <h4><?php mbvaluetext('title');?></h4>
  <span style="color: grey"><?php mbvalue('valuename');?></span>
</div>

Click save and go to your Theme tab and edit theme.
Place <?php getMultiBlock('products');?> where you would like your new blocks to appear.

Finally, go to your Pages tab and click "MutliBlock".
Here you should see "My Products" in the dropdown list.
Choose Section, then click "Add New +" and populate your desired info.
Hope this helps!


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#6
(2023-10-15, 18:48:26)islander Wrote:
Hello Cath, let me see if I can walk you though it.

If you have already installed the plugin and activated it, go back to the Plugins tab and from the side menu choose "MutliBlock Settings".

Next, click the "Add New MultiBlock" button.
Here you will give it section a name and slug (holder), add your desired field types, and create a template to hold these fields.

For example:
Section Name= My Products
Slug = products

(click "Add New Field" 3 times)
Field Name   |  Slug   |  Default Value   |   Field Type
Product Title | title     |                        |  Text
Product Image | photo |                        |  image
Description | description |                        |  Wysiwyg

Click save, and now click on the "Template" button to add your template.

For example:
<div>
  <img src="<?php mbvaluetext('photo');?>">
  <h4><?php mbvaluetext('title');?></h4>
  <span style="color: grey"><?php mbvalue('valuename');?></span>
</div>

Click save and go to your Theme tab and edit theme.
Place <?php getMultiBlock('products');?> where you would like your new blocks to appear.

Finally, go to your Pages tab and click "MutliBlock".
Here you should see "My Products" in the dropdown list.
Choose Section, then click "Add New +" and populate your desired info.
Hope this helps!

OH MAN!!! Thank you SO much. I haven't gone through all the steps yet, but this is exactly what I needed. That's very kind of you.
Reply
#7
(2023-10-15, 18:48:26)islander Wrote:
Hello Cath, let me see if I can walk you though it.

If you have already installed the plugin and activated it, go back to the Plugins tab and from the side menu choose "MutliBlock Settings".

Next, click the "Add New MultiBlock" button.
Here you will give it section a name and slug (holder), add your desired field types, and create a template to hold these fields.

For example:
Section Name= My Products
Slug = products

(click "Add New Field" 3 times)
Field Name   |  Slug   |  Default Value   |   Field Type
Product Title | title     |                        |  Text
Product Image | photo |                        |  image
Description | description |                        |  Wysiwyg

Click save, and now click on the "Template" button to add your template.

For example:
<div>
  <img src="<?php mbvaluetext('photo');?>">
  <h4><?php mbvaluetext('title');?></h4>
  <span style="color: grey"><?php mbvalue('valuename');?></span>
</div>

Click save and go to your Theme tab and edit theme.
Place <?php getMultiBlock('products');?> where you would like your new blocks to appear.

Finally, go to your Pages tab and click "MutliBlock".
Here you should see "My Products" in the dropdown list.
Choose Section, then click "Add New +" and populate your desired info.
Hope this helps!

I've followed the steps and they work brilliantly!

If I add a field type "Dropdown", how to I add items to it?

How difficult would it be to add a video field type (I want HTML video, not Youtube or Vimeo). Is this something I could pay to have done? 

This is a small thing, but if I select WYSIWYG as the field type, <p> tags are displayed in the website. It's not a big deal - I just switched to textarea and that works fine.

Thank you so much again. I'm SO happy!


Attached Files Thumbnail(s)
   
Reply
#8
Adding items is working fine.

When I go back to edit an item, the slug changes to the name, so I have to put it back in. Then the Update button is doing nothing!
Reply
#9
Me again. Please don't sob.

I've been working locally. I thought I'd try uploading the site and see whether Multiblock behaves differently.

It does.

I can view all the items I've added. When I click "Add Item" I get a blank screen. The same if I try to edit an item.

The same happens if I try to add or edit a category.

There are no errors in the console.
Reply
#10
Very strange things you are experiencing. I havent seen that behavior before.
Maybe turn on debug to see if it gives any info.

Info regarding dropdown is located below the template area in MB.

Could you provide what version of GS you are using as well as PHP version?


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#11
GS 3.3.16
PHP 5.6.40

Everything is showing "OK" on the site health check page.

When I try to add a new item I get this from the debugger:
Parse error: syntax error, unexpected '?' in /home16/webdesi5/public_html/gs4/plugins/multiBlock/multiform/newblock.php on line 91

Do you suppose that removing the plugin and reinstalling it would be a good first step? I won't lose anything important - just been playing with it today.
Reply
#12
I think I might scrub this whole site and start again. My navigation is no longer working, although it's fine locally. I tried turning off Fancy URLs and flushing the cache. I can type the path, like https://mysite/gs4/index.php?id=events and can navigate to a page. But otherwise I just get 404.

It's just a playing around site so nothing lost.

Thanks for your help, Islander. Tomorrow I'll start from scratch again.
Reply
#13
(2023-10-16, 19:28:47)CathG Wrote: I think I might scrub this whole site and start again. My navigation is no longer working, although it's fine locally. I tried turning off Fancy URLs and flushing the cache. I can type the path, like https://mysite/gs4/index.php?id=events and can navigate to a page. But otherwise I just get 404.

It's just a playing around site so nothing lost.

Thanks for your help, Islander. Tomorrow I'll start from scratch again.

Even though you are still on php5.6, you may want to give this newer version a try:
 GS Community Edition (php8.x)
which would be more forward compatible and includes several bug fixes that exist in the 3.3.16 version.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#14
(2023-10-16, 19:55:23)islander Wrote:
(2023-10-16, 19:28:47)CathG Wrote: I think I might scrub this whole site and start again. My navigation is no longer working, although it's fine locally. I tried turning off Fancy URLs and flushing the cache. I can type the path, like https://mysite/gs4/index.php?id=events and can navigate to a page. But otherwise I just get 404.

It's just a playing around site so nothing lost.

Thanks for your help, Islander. Tomorrow I'll start from scratch again.

Even though you are still on php5.6, you may want to give this newer version a try:
 GS Community Edition (php8.x)
which would be more forward compatible and includes several bug fixes that exist in the 3.3.16 version.
Good morning.

I did a brand new install of GetSimple, version 3.3.16. PHP 8.0.30. Everything is showing OK under health check.

When I add a dropdown box, I get this at the front end:

Fatal error: Uncaught Error: Call to undefined method MultiBlock::dropdown() in /home16/webdesi5/public_html/gs5/plugins/multiBlock.php:151 Stack trace: #0 /home16/webdesi5/public_html/gs5/data/other/multiBlock/category/mains.txt(7): mbdropdown() #1 /home16/webdesi5/public_html/gs5/plugins/multiBlock/class/frontMultiBlock.class.php(27): include('/home16/webdesi...') #2 /home16/webdesi5/public_html/gs5/plugins/multiBlock.php(167): frontMultiBlock->get() #3 /home16/webdesi5/public_html/gs5/theme/Innovation/multiblock.php(30): getMultiBlock() #4 /home16/webdesi5/public_html/gs5/index.php(134): include('/home16/webdesi...') #5 {main} thrown in /home16/webdesi5/public_html/gs5/plugins/multiBlock.php on line 151

When I edit an item, I get this at the back end:

Warning: file_get_contents(/home16/webdesi5/public_html/gs5/data/other/multiBlock/entrees/secondentree.json): Failed to open stream: No such file or directory in /home16/webdesi5/public_html/gs5/plugins/multiBlock/multiform/newblock.php on line 40

I wanted to send a screenshot showing the fields and what I have in the block template, but it says I've exceeded my quota so I've uploaded it: https://education.place/getsimple/multiblock.html

WEIRD ADDENDUM: If I go back to the same block and edit it, I don't get the error and it updates okay.

Any thoughts? Thanks, Islander.
Reply
#15
GS v3.3.16 will not work with anything higher than php7.4.

You are going to need to visit GS Community Edition (php8.x) and download v3.3.19.
You will also find a link to many of the common plugins that have been updated to work with php8.x

There is also a patch that you can use there, just overwrite your existing install. No data should be effected, but it it always best to backup just in case.

See if that solves some of your problems and let us know. Wink


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#16
(2023-10-17, 07:54:27)islander Wrote: GS v3.3.16 will not work with anything higher than php7.4.

You are going to need to visit GS Community Edition (php8.x) and download v3.3.19.
You will also find a link to many of the common plugins that have been updated to work with php8.x

There is also a patch that you can use there, just overwrite your existing install. No data should be effected, but it it always best to backup just in case.

See if that solves some of your problems and let us know. Wink

Okay doke. Switched to PHP 7.3.33.

Editing now works perfectly.

Same problem and message at the front end with the dropdown box.

I just tried to add a new block (to the section that has a dropdown box) and got this at the back end:

Warning: file_get_contents(/home16/webdesi5/public_html/gs5/data/other/multiBlock/mains/Mains2Slug.json): failed to open stream: No such file or directory in /home16/webdesi5/public_html/gs5/plugins/multiBlock/multiform/newblock.php on line 40

You can try it yourself.

https://education.place/gs5/admin/



Thank you so much for sticking with this.
Reply
#17
OK Cath, I just took a look, so you can edit your last post and remove the login info before something bad happens.

Its late on my end, so I will see if I can look at this tomorrow. I dont known If I have used the drop down or not, so will need to check it on my end before giving any more feedback.

I will let you know as soon as I can.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#18
(2023-10-17, 08:28:26)islander Wrote: OK Cath, I just took a look, so you can edit your last post and remove the login info before something bad happens.

Its late on my end, so I will see if I can look at this tomorrow. I dont known If I have used the drop down or not, so will need to check it on my end before giving any more feedback.

I will let you know as soon as I can.

Thanks again. Sleep well.
Reply
#19
Could you also tell me when you have time whether it's possible to stop images from being inserted with an absolute path? It's a pain when I upload!
Reply
#20
Error
I can not replicate this error on my end, tried several versions of php. Maybe check to see if that .json file exists or if it has read/write permissions.
I will pass this over to @Multi to see if he knows whats going on. Not sure if he has time at the moment though.

Question
This is not possible, but there are tools to help with this. MB and several other plugins either have built in or an add on to migrate. For example, go to Plugins tab, choose Multi Block, at the top of the settings, you will see a Migrate button. Just update this info, and it will fix all your image links.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#21
(2023-10-17, 18:47:29)islander Wrote: Error
I can not replicate this error on my end, tried several versions of php. Maybe check to see if that .json file exists or if it has read/write permissions.
I will pass this over to @Multi to see if he knows whats going on. Not sure if he has time at the moment though.

Question
This is not possible, but there are tools to help with this. MB and several other plugins either have built in or an add on to migrate. For example, go to Plugins tab, choose Multi Block, at the top of the settings, you will see a Migrate button. Just update this info, and it will fix all your image links.

You mean that if you create a dropdown box in your own installation, you're not getting this problem?

Which .json file should I check exists?

I've checked all the files listed below - they all exist:

Fatal error: Uncaught Error: Call to undefined method MultiBlock::dropdown() in D:\xampp\htdocs\gs5\plugins\multiBlock.php:151 Stack trace: #0 D:\xampp\htdocs\gs5\data\other\multiBlock\category\dropdowntest.txt(1): mbdropdown('dropdown') #1 D:\xampp\htdocs\gs5\plugins\multiBlock\class\frontMultiBlock.class.php(27): include('D:\\xampp\\htdocs...') #2 D:\xampp\htdocs\gs5\plugins\multiBlock.php(167): frontMultiBlock->get('dropdowntest', '') #3 D:\xampp\htdocs\gs5\theme\Innovation\multiblockDropdown.php(27): getMultiBlock('dropdowntest') #4 D:\xampp\htdocs\gs5\index.php(134): include('D:\\xampp\\htdocs...') #5 {main} thrown in D:\xampp\htdocs\gs5\plugins\multiBlock.php on line 151

I'd be HAPPY to pay for support, if one of you has time.

Haaa - sorry, I missed the migrate button. Thanks for that.

Thanks again.
Reply
#22
(2023-10-17, 19:30:26)CathG Wrote:
(2023-10-17, 18:47:29)islander Wrote: Error
I can not replicate this error on my end, tried several versions of php. Maybe check to see if that .json file exists or if it has read/write permissions.
I will pass this over to @Multi to see if he knows whats going on. Not sure if he has time at the moment though.

Question
This is not possible, but there are tools to help with this. MB and several other plugins either have built in or an add on to migrate. For example, go to Plugins tab, choose Multi Block, at the top of the settings, you will see a Migrate button. Just update this info, and it will fix all your image links.

You mean that if you create a dropdown box in your own installation, you're not getting this problem?

Which .json file should I check exists?

I've checked all the files listed below - they all exist:

Fatal error: Uncaught Error: Call to undefined method MultiBlock::dropdown() in D:\xampp\htdocs\gs5\plugins\multiBlock.php:151 Stack trace: #0 D:\xampp\htdocs\gs5\data\other\multiBlock\category\dropdowntest.txt(1): mbdropdown('dropdown') #1 D:\xampp\htdocs\gs5\plugins\multiBlock\class\frontMultiBlock.class.php(27): include('D:\\xampp\\htdocs...') #2 D:\xampp\htdocs\gs5\plugins\multiBlock.php(167): frontMultiBlock->get('dropdowntest', '') #3 D:\xampp\htdocs\gs5\theme\Innovation\multiblockDropdown.php(27): getMultiBlock('dropdowntest') #4 D:\xampp\htdocs\gs5\index.php(134): include('D:\\xampp\\htdocs...') #5 {main} thrown in D:\xampp\htdocs\gs5\plugins\multiBlock.php on line 151

I'd be HAPPY to pay for support, if one of you has time.

Haaa - sorry, I missed the migrate button. Thanks for that.

Thanks again.

Hi!
If you can, try on newest PHP - 8.1 or newer.
Reply
#23
I already did, php version doesnt seem to be the issue.

But I am not sure what is causing this yet. tbd


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#24
I am working with fix for that, please stand bySmile
Reply
#25
Wink 
(2023-10-17, 19:30:26)CathG Wrote:
(2023-10-17, 18:47:29)islander Wrote: Error
I can not replicate this error on my end, tried several versions of php. Maybe check to see if that .json file exists or if it has read/write permissions.
I will pass this over to @Multi to see if he knows whats going on. Not sure if he has time at the moment though.

Question
This is not possible, but there are tools to help with this. MB and several other plugins either have built in or an add on to migrate. For example, go to Plugins tab, choose Multi Block, at the top of the settings, you will see a Migrate button. Just update this info, and it will fix all your image links.

You mean that if you create a dropdown box in your own installation, you're not getting this problem?

Which .json file should I check exists?

I've checked all the files listed below - they all exist:

Fatal error: Uncaught Error: Call to undefined method MultiBlock::dropdown() in D:\xampp\htdocs\gs5\plugins\multiBlock.php:151 Stack trace: #0 D:\xampp\htdocs\gs5\data\other\multiBlock\category\dropdowntest.txt(1): mbdropdown('dropdown') #1 D:\xampp\htdocs\gs5\plugins\multiBlock\class\frontMultiBlock.class.php(27): include('D:\\xampp\\htdocs...') #2 D:\xampp\htdocs\gs5\plugins\multiBlock.php(167): frontMultiBlock->get('dropdowntest', '') #3 D:\xampp\htdocs\gs5\theme\Innovation\multiblockDropdown.php(27): getMultiBlock('dropdowntest') #4 D:\xampp\htdocs\gs5\index.php(134): include('D:\\xampp\\htdocs...') #5 {main} thrown in D:\xampp\htdocs\gs5\plugins\multiBlock.php on line 151

I'd be HAPPY to pay for support, if one of you has time.

Haaa - sorry, I missed the migrate button. Thanks for that.

Thanks again.

https://getsimplecms-ce-plugins.github.io/ New version for test 5.1 (now only on ce repo plugins), now fixed dropdown Smile ,Before end this week or begin next i will do create more feature what you suggest. Thanks a lot for idea and support my work from PP! That's gives me power for do it more for people Smile I waiting for feedback.
Reply




Users browsing this thread: 1 Guest(s)