ZenAwesomeCloud Sidebox [Support]
I’ve combined ZenTagCloud with jQuary AwesomeCloud to make ZenAwesomeCloud…
Decided it was too many changes to call it an update, thus the new sidebox.
Besides the sidebox, I also included a page based on the about page as a demo or as an add in for another page… this page is not needed if all you want is the sidebox.
AwesomeCloud has 7 shapes it can do and different settings which I’ve setup an admin config page so you can easily change things. Also has the ability to add your own list of tags. AwesomeCloud has problems with some jQuary scripts like uispinner. If for some reason script has an issue, it defaults to a standard tag cloud.
There’s some more things I wanted to do, but my computer died so will be rebuilding things.
The download is now available in the add on section…
https://www.zen-cart.com/downloads.php?do=file&id=2057
No changes to core files, tested with ZC 1.5.4 only.. PHP 5.4 and 5.5
Running live on my site.
Re: ZenAwesomeCloud Sidebox [Support]
Does this module allow customers to submit their own tags to the product? I have over 12,000 items in our store, and it would be nice if the module allowed website visitors to submit their own tags for review on individual products which an admin can approve. That way, tags get added on an exponential basis without having to have one of our admins individually create tags on the products.
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
Jeff_Mash
Does this module allow customers to submit their own tags to the product? I have over 12,000 items in our store, and it would be nice if the module allowed website visitors to submit their own tags for review on individual products which an admin can approve. That way, tags get added on an exponential basis without having to have one of our admins individually create tags on the products.
no.. the tags are created from the product categories with links to the category and product meta-data with links to the advance search. The admin create tag list links back to the main site as site branding. Making the tag cloud a fancy product menu.
It would be possible to add a function to take in titles from the reviews, but then the logic would become more of a blog content menu.
To take in user submitted tags would require more front and back end coding pages.
Re: ZenAwesomeCloud Sidebox [Support]
Installed this plugin on 1.5.1 version but couldn't find the control in admin.. :wacko:
But on front end, it's displaying.. I guess it's not meant for earlier version..?
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
naczyls747
Installed this plugin on 1.5.1 version but couldn't find the control in admin.. :wacko:
But on front end, it's displaying.. I guess it's not meant for earlier version..?
Sorry.. I reuploaded the files into the server and they work well now. Even on 1.5.1 :D
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
naczyls747
Sorry.. I reuploaded the files into the server and they work well now. Even on 1.5.1
Thanks for the update.. I have it working on a test server with ZC 1.5.5a and PHP5.6 without changing anything.
Re: ZenAwesomeCloud Sidebox [Support]
The side box is too long with hundreds of keywords in it, how to control it and make fit within the site (shorter with keywords mainly from the page that is displaying).
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
TamyA
The side box is too long with hundreds of keywords in it, how to control it and make fit within the site (shorter with keywords mainly from the page that is displaying).
Looking back at the code I see the word limit didn't get in.. well have to add that and do an up date. With it you can limit the number of words used in the cloud.
The words are created from three locations, Your site categorises, Meta Tags, your own key word list if used. With the cats and meta tags creating links to the products, and your words go to the advance search.
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
davewest
Looking back at the code I see the word limit didn't get in.. well have to add that and do an up date. With it you can limit the number of words used in the cloud.
Hi Dave, Thanks for the reply. I am a bit confused, are you saying that you want to update the code for the word limit or is it me that need to do he update?
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
TamyA
Hi Dave, Thanks for the reply. I am a bit confused, are you saying that you want to update the code for the word limit or is it me that need to do he update?
After taking another look and trying to recreate your problem, without link to your site I can only guess at the cause. I have it running on PHP7.1, jQuery 3.2.1 and ZC 1.5.5e without any problems.
The container used to house the word cloud is sized by the CSS! If that was changed or missing, then the container would fail.
Code:
/*Adjust the height to meet your needs*/
.wordcloudside {height: 4in;padding: 0;page-break-after: always;page-break-inside: avoid;}
.wordcloud {height: 4in;margin: 0.5in auto;padding: 0;page-break-after: always;page-break-inside: avoid;width: 4in;}
The word limit is simple to do, but does not change the container just the number of words used in the cloud. I'll do an update when I get time, if you want to add it now, its just adding a array_slice() before the array is used to create the links..
Which is in the includes/classes/zentagcloud.php
look for showCloud and add the lines in red..
Code:
function showCloud($returnType = "html")
{
$taglimit = MAX_TAGS;
$this->gtags = array_slice($this->gtags, 0, (int)$taglimit);
$nofollow = (USE_NOFOLLOW == 'true') ? 'rel="nofollow"' : ''; //setup nofollow for bots
$max = 0;
if (is_array($this->gtags))
I know if the java fails or has a conflict with another script you just get a list of tags that follow no rules.. If that's what your getting then check your site for script errors.
Re: ZenAwesomeCloud Sidebox [Support]
Hello davewest
I install this mod,www.targetmarts
1. i want it display after footer and need set small the h1 tag.
2. I try to install the sql in admin,but it display:
ERROR: Cannot insert configuration_key "" because it already exists
so it display blank in Zen TagCloud -admin.
3. i want it display in products info page,what code will into products_info.php .
Thanks your help .
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
davewest
I’ve combined ZenTagCloud with jQuary AwesomeCloud to make ZenAwesomeCloud…
Decided it was too many changes to call it an update, thus the new sidebox.
Besides the sidebox, I also included a page based on the about page as a demo or as an add in for another page… this page is not needed if all you want is the sidebox.
AwesomeCloud has 7 shapes it can do and different settings which I’ve setup an admin config page so you can easily change things. Also has the ability to add your own list of tags. AwesomeCloud has problems with some jQuary scripts like uispinner. If for some reason script has an issue, it defaults to a standard tag cloud.
There’s some more things I wanted to do, but my computer died so will be rebuilding things.
The download is now available in the add on section…
https://www.zen-cart.com/downloads.php?do=file&id=2057
No changes to core files, tested with ZC 1.5.4 only.. PHP 5.4 and 5.5
Running live on my site.
Hello davewest
I install this mod,www.targetmarts
1. i want it display after footer and need set small the h1 tag.
2. I try to install the sql in admin,but it display:
ERROR: Cannot insert configuration_key "" because it already exists
so it display blank in Zen TagCloud -admin.
3. i want it display in products info page,what code will into products_info.php .
Thanks your help .
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
targetmarts
Hello davewest
I install this mod,
www.targetmarts
1. i want it display after footer and need set small the h1 tag.
2. I try to install the sql in admin,but it display:
ERROR: Cannot insert configuration_key "" because it already exists
so it display blank in Zen TagCloud -admin.
3. i want it display in products info page,what code will into products_info.php .
Thanks your help .
Just ran the install on a ZC1.5.5f site with no issues. You could run the uninstall.sql and then try the install.sql again.. if it fails again, post the error log. If the language file is missing, the admin page link would not show!
Font size is set in the admin setting 'Tag Font factor' change this and the font size changes.
The demo page well give you an idea how to use, but the side box is where most use it. To add it on other pages one would just need to allow space for its display and add the following lines.
Code:
<div id="wordcloud2" class="<?php echo $tagclass; ?>">
<?php echo $cloud->showCloud(); ?>
</div>
There is only one set of controls.
keep in mind, Tag links to products, content is good... blasting unrelated tags, links could be considered spam by search engines.
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
davewest
Just ran the install on a ZC1.5.5f site with no issues. You could run the uninstall.sql and then try the install.sql again.. if it fails again, post the error log. If the language file is missing, the admin page link would not show!
Font size is set in the admin setting '
Tag Font factor' change this and the font size changes.
The demo page well give you an idea how to use, but the side box is where most use it. To add it on other pages one would just need to allow space for its display and add the following lines.
Code:
<div id="wordcloud2" class="<?php echo $tagclass; ?>">
<?php echo $cloud->showCloud(); ?>
</div>
There is only one set of controls.
keep in mind, Tag links to products, content is good... blasting unrelated tags, links could be considered spam by search engines.
run the uninstall.sql and then try the install.sql it fails again.
add the code in products_info.php display:
Fatal error: Uncaught Error: Call to a member function showCloud() on null in /home/getappreal/public_html/includes/templates/abagon/templates/tpl_product_info_display.php on line 404 Error: Call to a member function showCloud() on null in /home/getappreal/public_html/includes/templates/abagon/templates/tpl_product_info_display.php on line 404 Call Stack: 0.0001 370688 1. {main}() /home/getappreal/public_html/index.php:0 0.0577 2260608 2. require('/home/getappreal/public_html/includes/templates/abagon/common/tpl_main_page.php') /home/getappreal/public_html/index.php:117 0.0975 4185000 3. require('/home/getappreal/public_html/includes/modules/pages/product_info/main_template_vars.php') /home/getappreal/public_html/includes/templates/abagon/common/tpl_main_page.php:104 0.1181 4848696 4. require('/home/getappreal/public_html/includes/templates/abagon/templates/tpl_product_info_display.php') /home/getappreal/public_html/includes/modules/pages/product_info/main_template_vars.php:178
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
davewest
Just ran the install on a ZC1.5.5f site with no issues. You could run the uninstall.sql and then try the install.sql again.. if it fails again, post the error log. If the language file is missing, the admin page link would not show!
Font size is set in the admin setting '
Tag Font factor' change this and the font size changes.
The demo page well give you an idea how to use, but the side box is where most use it. To add it on other pages one would just need to allow space for its display and add the following lines.
Code:
<div id="wordcloud2" class="<?php echo $tagclass; ?>">
<?php echo $cloud->showCloud(); ?>
</div>
There is only one set of controls.
keep in mind, Tag links to products, content is good... blasting unrelated tags, links could be considered spam by search engines.
run the uninstall.sql and then try the install.sql it fails again.
it always display :
Success 5 statements processed.
Error ERROR: Cannot insert configuration_key "" because it already exists
Error ERROR: Cannot insert configuration_key "" because it already exists
Warning Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
no logs ,and if install again before unstall,then display logs,that means sql Duplicate entry 'configZenTagCloud' for key 'page_key' :: /* zencart 1.5 mods */ INSERT INTO zc_admin_pages (page_key ,language_key ,main_page ,page_params ,menu_key ,display_on_menu ,sort_order)VALUES ('configZenTagCloud', 'BOX_CONFIGURATION_ZENTAGCLOUD', 'FILENAME_CONFIGURATION', CONCAT('gID=',@cgi), 'configuration', 'Y', @cgi); ==> (as called by) /home/getappreal/public_html/1neogveb5st0trns/sqlpatch.php on line 304 <== in /home/getappreal/public_html/includes/classes/db/mysql/query_factory.php on line 155
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
add the code in products_info.php display:
Fatal error: Uncaught Error: Call to a member function showCloud()
As with the demo page, the script is in the modules/pages/tagcloud/jscript_main.php file. You need to copy that script to the jscript_main.php file of the page you want to display it on.
Quote:
Originally Posted by
targetmarts
run the uninstall.sql and then try the install.sql it fails again.
it always display :
Success 5 statements processed.
Error ERROR: Cannot insert configuration_key "" because it already exists
Error ERROR: Cannot insert configuration_key "" because it already exists
Warning Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
If any of the sql statement keys are still in the configuration table, the sql well fail. it sounds like your database has issues and needs to be cleaned. You may need to restore from your backup or hand delete orphaned keys.
Re: ZenAwesomeCloud Sidebox [Support]
Quote:
Originally Posted by
targetmarts
Hello davewest
I install this mod,
www.targetmarts
1. i want it display after footer and need set small the h1 tag.
2. I try to install the sql in admin,but it display:
ERROR: Cannot insert configuration_key "" because it already exists
so it display blank in Zen TagCloud -admin.
3. i want it display in products info page,what code will into products_info.php .
Thanks your help .
Ok, now i fix the install sql problem, also if everyone get this error,please check and find out blank contents if have in your Database .