having content and zoom image dual add-on in one block
Permalink 3 users found helpful
Hi all,
I want to use this add onhttp://www.concrete5.org/marketplace/addons/zoom-image-dual/... on a picture that is embedded at "content" block (meaning near text…) I obviously can't do it as the Zoom-Image-Dual add on is a block itself and I can't implant it the "content" block…any ideas on how to solve this problem? Maybe I can create my own block that can include both?
Thanks,
YoYo
I want to use this add onhttp://www.concrete5.org/marketplace/addons/zoom-image-dual/... on a picture that is embedded at "content" block (meaning near text…) I obviously can't do it as the Zoom-Image-Dual add on is a block itself and I can't implant it the "content" block…any ideas on how to solve this problem? Maybe I can create my own block that can include both?
Thanks,
YoYo
To have both in one block you would definitely need to create a new block. You could use 'Designer Content' for that...http://www.concrete5.org/marketplace/addons/designer-content/...
But if you don't mind adding the 'Zoom-Image-Dual' block and then the 'Content' block, it's just a minor stylesheet change in the 'packages' directory.
Change all the code for this (or just add lines 3 and 4):
in the 'view.css' file here:
'C5_SITE_ROOT/packages/zoom_image_dual/blocks/zoom_image_dual'
>> I attached a screenshot showing you how it looks on my website...
And that's it. BTW, if someone knows where else I could change this so I don't change the original files, please let me know. Thanks.
But if you don't mind adding the 'Zoom-Image-Dual' block and then the 'Content' block, it's just a minor stylesheet change in the 'packages' directory.
Change all the code for this (or just add lines 3 and 4):
.zoom_image_dual_container a img { border: none; float:left; margin:3px 20px 3px 0px } .zoom_image_dual_container p { text-align: center; }
in the 'view.css' file here:
'C5_SITE_ROOT/packages/zoom_image_dual/blocks/zoom_image_dual'
>> I attached a screenshot showing you how it looks on my website...
And that's it. BTW, if someone knows where else I could change this so I don't change the original files, please let me know. Thanks.
Thank you so much for your elaborated question...since I am not a big fan of coding and I basically know only how to edit in Concrete5, I think I will go with your first option...
I will install the Designer Content and try to make a new block...
wish me luck...:)
I will report back....:)
YoYo
I will install the Designer Content and try to make a new block...
wish me luck...:)
I will report back....:)
YoYo
Good luck, and please do let us know... That could be an interesting block... If you need any help, I'm always here...
Hi...
I have added Design Content...I can add WYSIWYG Editor but how can I add the image zoom block? its not listed as an option and I dont see any way to get to the list of blocks I have so I can chose it...
any ideas?
YoYo
I have added Design Content...I can add WYSIWYG Editor but how can I add the image zoom block? its not listed as an option and I dont see any way to get to the list of blocks I have so I can chose it...
any ideas?
YoYo
It's not that simple... you have to add some lightbox or fancybox files (css & javascript I think), then enclose an Image into special divs (using the Designer Content addon) and then add something for the add-on...
I'll see if I can start coding it up for you...
I'll see if I can start coding it up for you...
OK, I promised it to you and here it is!
///// Fancy Thumbnail Content Wrap
The block you've all been waiting for. Right now it's just a block, not a package, but I do plan on adding it to the Marketplace for FREE...
Includes:
- 2 custom templates
- Simple interface (Large image, Caption, Thumbnail, WYSIWYG Editor)
- Thumbnail uses Fancybox to display larger image on click
- Blank 'view.css' so YOU can set the default styling.
Notes:
- It's NOT in 'package' form, which means you have to extract it, upload it to the 'blocks' directory and then install it.
/////////////////////
Please, let me know your comments and give me some feedback on the block. Note that it's not done yet, I still have to add more fluidity.
///// Fancy Thumbnail Content Wrap
The block you've all been waiting for. Right now it's just a block, not a package, but I do plan on adding it to the Marketplace for FREE...
Includes:
- 2 custom templates
- Simple interface (Large image, Caption, Thumbnail, WYSIWYG Editor)
- Thumbnail uses Fancybox to display larger image on click
- Blank 'view.css' so YOU can set the default styling.
Notes:
- It's NOT in 'package' form, which means you have to extract it, upload it to the 'blocks' directory and then install it.
/////////////////////
Please, let me know your comments and give me some feedback on the block. Note that it's not done yet, I still have to add more fluidity.
Thank You so very much!!!!
Do I need to upload it to the "blocks" directory in the root directory or in the "concrete/blocks" directory?
Thank you,
YoYo
Do I need to upload it to the "blocks" directory in the root directory or in the "concrete/blocks" directory?
Thank you,
YoYo
You're welcome, you just have to upload it in the ROOT 'blocks' directory --> C5_site_root/blocks
If you want to see it in action, either go tohttp://www.nicolebardales.tk/bio/... or watch the attached screenshots...
The add-on in my website is using the 'Right Image' custom template.
The add-on in my website is using the 'Right Image' custom template.
Hi..
I get this message...
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "NBFancyThumbnailContentWrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/meniao5/public_html/meniaweb/concrete/models/block.php on line 328
what does it mean???
I get this message...
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "NBFancyThumbnailContentWrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/meniao5/public_html/meniaweb/concrete/models/block.php on line 328
what does it mean???
Let me check it out... I'll check if it's compatible with previous versions of C5... what version are you using?
Hi again...yes,I am using version 5.4.2.2
I'm stuck on this one... been fiddling around but no results... =S
//FIXED
**Note: this is not a pretty fix... (rethinking the marketplace thing)
1. Clear and Disable Caching
2. Install (or just upload) the Designer Content add-on...
3. DONE!
Use the add-on at your own risk, I'll figure out a solution soon... I hope.
// I attached 2 screenshots to prove it works now! One for v. C5.4.2 and another one for C5.5
**Note: this is not a pretty fix... (rethinking the marketplace thing)
1. Clear and Disable Caching
2. Install (or just upload) the Designer Content add-on...
3. DONE!
Use the add-on at your own risk, I'll figure out a solution soon... I hope.
// I attached 2 screenshots to prove it works now! One for v. C5.4.2 and another one for C5.5
Hi...
Thank you SO MUCH for all of your efforts...I just not really sure what I should do to make it work now...I should upload the same file you published above or there is a new file to upload...
Also, what does clear and disable caching mean? where do I do that and what would be the influence of it (if there is any) on other Add-on/functions of Concrete5.
Thank you,
YoYo
Thank you SO MUCH for all of your efforts...I just not really sure what I should do to make it work now...I should upload the same file you published above or there is a new file to upload...
Also, what does clear and disable caching mean? where do I do that and what would be the influence of it (if there is any) on other Add-on/functions of Concrete5.
Thank you,
YoYo
Hi...
Use the same file (there is NO new file).
To clear and disable the cache in Concrete5.4.2 go to:
1. Your website
2. Dashboard
3. Sitewide Settings
Or:http://yoursite.com/dashboard/settings/...
http://yoursite.com/index.php/dashboard/settings/... (if you haven't enabled pretty URLs)
In Sitewide Settings, go to 'Speed Settings' and select 'Disabled' where it says 'Basic Cache'. Then, just below the same area, click 'Clear Cache'. And you're done.!
// I attached an image to show you where to change the Cache.
To answer your other question, it should have little to no impact on add-ons and almost nothing on the website. Cache is designed to help speed up a live site, so by disabling you just make a little slower (and by little I mean little). However, some times it might have a big impact, so test it, if it turns too slow, enabled it again and use the first solutions provided (using a Popup add-on and then the content block).
Use the same file (there is NO new file).
To clear and disable the cache in Concrete5.4.2 go to:
1. Your website
2. Dashboard
3. Sitewide Settings
Or:http://yoursite.com/dashboard/settings/...
http://yoursite.com/index.php/dashboard/settings/... (if you haven't enabled pretty URLs)
In Sitewide Settings, go to 'Speed Settings' and select 'Disabled' where it says 'Basic Cache'. Then, just below the same area, click 'Clear Cache'. And you're done.!
// I attached an image to show you where to change the Cache.
To answer your other question, it should have little to no impact on add-ons and almost nothing on the website. Cache is designed to help speed up a live site, so by disabling you just make a little slower (and by little I mean little). However, some times it might have a big impact, so test it, if it turns too slow, enabled it again and use the first solutions provided (using a Popup add-on and then the content block).
Hi NBardeles.
thx for the block, but cant get it to work inspite of following your 3 steps:(
thx for the block, but cant get it to work inspite of following your 3 steps:(
Yes, I'm fixing that today... Should be able to get it done soon...
Thanks...we all look forward to it :)
OK, I fixed it... It should work perfectly, let me know if there are any glitches.
UPLOAD this NEW version. I'll try to make it a package, so you don't have to install manually.
// Install Instructions:
1. Unzip
2. Upload the unzipped file to "YOUR_SITE/blocks"
3. Go to "Add Functionality" (on 5.4.2) or "Stacks and Blocks" (in 5.5)
4. Install the package
5. Have fun adding lots of FancyThumbnailWraps!
// Features:
1. You can add more than one in the same page
2. Add a caption (optional)
3. "Right-align" custom template
4. Easy to use (it's basically an image and a content block together)
5. Full Support
Let me know if it works now, or if you have any problems. I'd be happy to help.
UPLOAD this NEW version. I'll try to make it a package, so you don't have to install manually.
// Install Instructions:
1. Unzip
2. Upload the unzipped file to "YOUR_SITE/blocks"
3. Go to "Add Functionality" (on 5.4.2) or "Stacks and Blocks" (in 5.5)
4. Install the package
5. Have fun adding lots of FancyThumbnailWraps!
// Features:
1. You can add more than one in the same page
2. Add a caption (optional)
3. "Right-align" custom template
4. Easy to use (it's basically an image and a content block together)
5. Full Support
Let me know if it works now, or if you have any problems. I'd be happy to help.
Sweet! will test it tomorrow morning at work;) thx again! this block is just what i have been looking for, hope its will be an addon soon. If ill review it right away 5stars :)
/Mike
/Mike
Hi thx for the quick reply!
For some recent i cant Downloaded and Install the block it wont display in the "Downloaded and Ready to Install" section. i have cleared my "blocks" folder on my FTP but its still dosent show up.
/Mike
For some recent i cant Downloaded and Install the block it wont display in the "Downloaded and Ready to Install" section. i have cleared my "blocks" folder on my FTP but its still dosent show up.
/Mike
You have to uninstall it properly from the dashboard.
Anyway, try this package instead... (upload it to the packages folder)
Anyway, try this package instead... (upload it to the packages folder)
Hi again thx for the pages, when i hit install in the dashboard this erro coms up:
Fatal error: Cannot redeclare class fancythumbnailwrapBlockController in /var/www/mydomaine.com/public_html/blocks/nb_fancythumbnail_contentwrap/controller.php on line 25
im running Version: 5.4.2.1 of C5, its that causing the problem?
/Mike
Fatal error: Cannot redeclare class fancythumbnailwrapBlockController in /var/www/mydomaine.com/public_html/blocks/nb_fancythumbnail_contentwrap/controller.php on line 25
im running Version: 5.4.2.1 of C5, its that causing the problem?
/Mike
// MAKE SURE YOU DELETE **ALL** INSTANCES OF THE BLOCK FOR IT TO WORK! THE 'BLOCKS' AND THE 'PACKAGES' DIRECTORY MUST BE EMPTY. Check the 'Add Functionality' tab on your Dashboard and make sure there is no block with the name Fancy Thumbnail Wrap. Remember you HAVE to unzip the file first...
You might have some trouble there because you had already installed the block.
1. Check the 'Add Functionality' area and see if you have the block already 'installed'. If so, uninstall it from the Dashboard.
2. Then try installing the package again
If this doesn't fix it, you'll have to clear the database tables (do you have access to PHP MyAdmin?)
1. Go to PHP MyAdmin
2. Look for the database in which you installed your C5 site
3. Go to the Table called 'Blocks'
4. Look for the one with the btName 'Fancy Thumbnail Wrap'
5. Check its box and delete it
6. Try to install the package again
Hope you get it working... =)
You might have some trouble there because you had already installed the block.
1. Check the 'Add Functionality' area and see if you have the block already 'installed'. If so, uninstall it from the Dashboard.
2. Then try installing the package again
If this doesn't fix it, you'll have to clear the database tables (do you have access to PHP MyAdmin?)
1. Go to PHP MyAdmin
2. Look for the database in which you installed your C5 site
3. Go to the Table called 'Blocks'
4. Look for the one with the btName 'Fancy Thumbnail Wrap'
5. Check its box and delete it
6. Try to install the package again
Hope you get it working... =)
Hi again
I did like u said, but are still gettting this:
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "fancythumbnailwrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/mydomain.com/public_html/updates/concrete5.4.2.1/concrete/models/block.php on line 328
shut i try and install it on another site? :-)
I did like u said, but are still gettting this:
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "fancythumbnailwrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/mydomain.com/public_html/updates/concrete5.4.2.1/concrete/models/block.php on line 328
shut i try and install it on another site? :-)
Yes, please, install the package on another site to discard some possibilities. If it installs, then the problem was the site, if it doesn't, there must be something I need to fix in the package.
hi
Now i tryed it on a other site that didnt have fancywrap og block installed. its says the same:
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "fancythumbnailwrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/mydomain.com/public_html/updates/concrete5.4.2.1/concrete/models/block.php on line 328
when i god to editmode and choose the picture and insert some text, and then press the update bottom its give me the error listet above.
Does it work on your site?
/Mike
Now i tryed it on a other site that didnt have fancywrap og block installed. its says the same:
Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "fancythumbnailwrapBlockController" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/mydomain.com/public_html/updates/concrete5.4.2.1/concrete/models/block.php on line 328
when i god to editmode and choose the picture and insert some text, and then press the update bottom its give me the error listet above.
Does it work on your site?
/Mike
Hi stranges, if i disable the chache in the dasbord its works fine.. againg thank for the pages and time spend on it! thanks again. will there be a version in the future where the "chache" can be enablet?
Thanks again
/Mike
Thanks again
/Mike
You don't have to disable the cache, you just need to 'clear' it... I'll keep researching to see if I can find out what's 'wrong' with it... You're welcome.
Hi...
Any solution to the problem? I get the same error
YoYo
Any solution to the problem? I get the same error
YoYo
Hi
I just installed the addon on another server and it worked, but u still need to update the chache, hope "Nbardales" have time to fix this issue when she has the time:-) but sweet addon!
I just installed the addon on another server and it worked, but u still need to update the chache, hope "Nbardales" have time to fix this issue when she has the time:-) but sweet addon!
Hi guys,
so I have opened this discussion more than a year ago and I still don't have a solution that works....its is really important for me to be able to have text and next to it a photo that can be enlarged....any ideas of how to do that?
Thank you so very much,
YoYo
so I have opened this discussion more than a year ago and I still don't have a solution that works....its is really important for me to be able to have text and next to it a photo that can be enlarged....any ideas of how to do that?
Thank you so very much,
YoYo
http://www.concrete5.org/marketplace/addons/popup-pro...
Just place this new block before your content block, and choose one of the alignment options so the content block will wrap around. Very easy to use.