Zen Cart Logo
Forums / All Other Contributions/Addons / ZenTagCloud Beta [support]

ZenTagCloud Beta [support]

Views: 17,128

Results 41 to 54 of 54
3 Nov 2010, 6:04 PM
#41
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

ZenTagCloud Beta [support]

arora girl:

no it takes php code
its running on my local server.

try once again, its php extension file so it will definetely takes php code.

This is how I did it:

<?php
/**
 * blank sidebox - allows a blank sidebox to be added to your site
 *
 * @package templateSystem
 * @copyright 2007 Kuroi Web Design
  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
 */

  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  // Replace the text and HTML tags between the apostophes on lines 19 and 20.
  // Use as many or as few lines using this model as you need for your custom content.
  // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
  // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
  $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
  $content .= '<p><?php 

//
// Make a new empty tag cloud
//

$cloud = new wordCloud();

//
// Add the product keywords
//
$array_ids = my_get_prod_ids();
foreach ($array_ids as $key1 => $id_val)
{
	$prod_key_words =readCSV(zen_get_metatags_keywords1($id_val, 1));
	foreach ($prod_key_words as $key2 => $tag)
	{
		$cloud->addTag(rand(5, 15),zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keyword=' . $tag),$tag);
	}
}

//
// Add the catagories
//

    foreach (zen_get_categories_names(array(array()),0 ,'') as $key => $value) 
    {
      if (is_array($value)) 
      {
      	$cloud->addTag(rand(5, 15),$value[0],$value[1]);
      }
    }
    
//
// Add some sample data
//
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","something");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Else");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Todo");

//
//Display the cloud
//
echo $cloud->showCloud();
?></p>';

  $content .= '</div>';
?>

It seems not working for me....

9 Nov 2010, 6:12 AM
#42
arora_girl avatar

arora_girl

New Zenner

Join Date:
Jul 2010
Posts:
19
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

lina0962:

This is how I did it:

<?php /** * blank sidebox - allows a blank sidebox to be added to your site * * @package templateSystem * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $ */ $content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; // Replace the text and HTML tags between the apostophes on lines 19 and 20. // Use as many or as few lines using this model as you need for your custom content. // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19. // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!) $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>'; $content .= '<p><?php // // Make a new empty tag cloud // $cloud = new wordCloud(); // // Add the product keywords // $array_ids = my_get_prod_ids(); foreach ($array_ids as $key1 => $id_val) { $prod_key_words =readCSV(zen_get_metatags_keywords1($id_val, 1)); foreach ($prod_key_words as $key2 => $tag) { $cloud->addTag(rand(5, 15),zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keyword=' . $tag),$tag); } } // // Add the catagories // foreach (zen_get_categories_names(array(array()),0 ,'') as $key => $value) { if (is_array($value)) { $cloud->addTag(rand(5, 15),$value[0],$value[1]); } } // // Add some sample data // //$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me"); //$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me"); //$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","something"); //$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Else"); //$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Todo"); // //Display the cloud // echo $cloud->showCloud(); ?></p>';

$content .= '</div>';
?>

> 
> It seems not working for me....



hi.......

do it like this........

```php
<?php


/**

 * blank sidebox - allows a blank sidebox to be added to your site

 *

 * @package templateSystem

 * @copyright 2007 Kuroi Web Design

  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $

 */



  $content = '';

  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';



  // Replace the text and HTML tags between the apostophes on lines 19 and 20.

  // Use as many or as few lines using this model as you need for your custom content.

  // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.

  // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)


  //$content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';

//
// Make a new empty tag cloud
//

$cloud = new wordCloud();


//
// Add the product keywords
//
$array_ids = my_get_prod_ids();
foreach ($array_ids as $key1 => $id_val)
{
	$prod_key_words =readCSV(zen_get_metatags_keywords1($id_val, 1));
	foreach ($prod_key_words as $key2 => $tag)
	{
		//$cloud->addTag(rand(5, 10),zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keyword=' . $tag),$tag);
	}
}


//
// Add the catagories
//


    foreach (zen_get_categories_names(array(),0 ,'') as $key => $value) 
    {
/*echo "<pre>";
print_r($value);
echo "</pre>";*/
      if (is_array($value)) 
      {

      	$cloud->addTag(rand(2,4),$value[0],$value[1]);
      }
    }
    
//
// Add some sample data
//
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Me");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","something");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Else");
//$cloud->addTag(rand(5, 15),"http://www.madteckhead.com/","Todo");

//
//Display the cloud
//
$content.= $cloud->showCloud();


  //$content .= '<p>You can include text, links, images, HTML markup and even PHP code</p>';



  $content .= '</div>';

?>
12 Jan 2011, 9:37 PM
#43
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Hello....was wondering if anyone has any experience with this mod running on a 1.3.8A cart. When I upload the files to my server, the cart freezes once I upload the /include/classes/zentagcloud.php file.

So, I checked out the file and I noticed that the beginning has code for both PHP 4 and 5:

class wordCloud
{
var $gtags = array(); // tags array

/*
* PHP 5 Constructor
*
* @param array $words
* @return void
*/

function __construct($newtags = false)
{
if ($newtags !== false && is_array($newtags))
    {
        foreach ($newtags as $key => $value)
        {
            $this->addTag($value[0],$value[1],$value[2]);
        }
    }
 }

/*
* PHP 4 Constructor
*
* @param array $words
* @return void
*/

function wordCloud($newtags = false)
{
    $this->__construct($newtags);
}

/*
* Assign word to array
*
* @param
* @return
*/

function addTag($count, $url, $tag)

Do I need to comment out either the first or second set, as well as the last, depending on which version of PHP I have ?running?

12 Jan 2011, 9:58 PM
#44
donn avatar

donn

Zen Follower

Join Date:
Oct 2007
Posts:
241
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

OK...when I removed the super-long comment section at the beginning of the file , it worked 100%.

Before that, I removed functions one at a time, until they were all tested, and the file wouldn't work with ANY of them still there.

So, I wondered about the commenting. Why would this have been the case, though?

16 Mar 2011, 7:19 AM
#45
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Anyone have this up and running?

If I can get the products by tag/keyword basis could I also assign a template file or tag specific css class to a tag page? I'm looking for making custom styles for categories and tags..

3 Jul 2011, 9:11 PM
#46
jack911 avatar

jack911

New Zenner

Join Date:
Nov 2006
Posts:
17
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Did anyone get this to work on 1.3.9? I have v1.3.9d. I tried to upload config.core.php, index.php goes blank.

17 Jul 2011, 12:42 AM
#47
jack911 avatar

jack911

New Zenner

Join Date:
Nov 2006
Posts:
17
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

adam9110:

How to limit the numbers of the tags show?
I notice if not control the tags numbers , the web will get mass with thousand of tags together.

Kind Regards,

Did you figure out how to do this? I need to limit to show only 20 random tags.

I tried this below in zentagcloud_func.php, but didn't work. Still shows all tags.

function zen_get_metatags_keywords1($product_id, $language_id) {
    global $db;
    $product = $db->Execute("select metatags_keywords
                             from " . TABLE_META_TAGS_PRODUCTS_DESCRIPTION . "
                             where products_id = '" . (int)$product_id . "'
                             and language_id = '" . (int)$language_id . "' [I][B]LIMIT 20[/B][/I]");

    return $product->fields['metatags_keywords'];
  }
25 Jul 2011, 3:13 AM
#48
enginarat avatar

enginarat

New Zenner

Join Date:
Mar 2011
Location:
Marco Island, FL
Posts:
71
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

**TRUTH BE TOLD! **: This must be the least taken care of add-on amongst all others. The developer has already left the building and can not even be reached via his own website.

Nobody mentions here that there are 2 major typos at installation instructions that is in the "read me" file. If you miss those in your haste (like I did) you might lose website!!!!
............................

  1. Download the zip file and unzip it

  2. Rename \includes\templates\custom\ folder to your template name (so far so good)
    ** Important ** please make sure not to overwrite your \includes\templates\customtemplate\tpl_index_default.php
    (Typo 1: There's no "template" folder. It must be "templates":no:

  3. Upload the 'include' folder to your site.
    (Typo 2: It must be includes:no:
    ..............................
    [Not everybody is a zen_genius here. Most of us are 4 year olds. I am not even 3 yet:)

Cheers.

24 Jul 2012, 4:43 PM
#49
paxnegro avatar

paxnegro

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Question.

How do you do add a Cast listing to your dvds in your tab on your site? I been trying to do this for weeks.

gamesmart:

I need to limit tags too, see this example:

http://www.gamesmart.it/last-remnant-ita-pal-xbox360-p-5975.html

any ideas?

24 Apr 2013, 5:59 PM
#50
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Can users place their own unique tags?

15 Jan 2016, 6:14 AM
#51
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: ZenTagCloud Beta [support]

Was wondering if there is still an interest in this mod... I managed to get it to function with jQuery AwesomeCloud plug-in today and now looking at reworking the code for better weighted numbering.

It uses the cat names and whatever meta-tags was added to the product. I added the ability to use a defined list of tags too, but thinking it needs more. what's nice about the define, you can add brand or site hashtags. The AwesomeCloud makes for a nice clean side box layout, but can do star, ovals and cloud shape patterns. I'm trying it out as a side box now.

18 Jan 2016, 6:18 PM
#52
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Hello Dave,
I would be interested in this, is it available for purchase at all?

Regards,
James

18 Jan 2016, 7:10 PM
#53
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: ZenTagCloud Beta [support]

HeathenMagic:

Hello Dave,
I would be interested in this, is it available for purchase at all?

Regards,
James

Not for sail, just the difference between using for myself vs packaging it up for others. Wasn't sure if others are interested due to the SEO debits about tag spamming... I haven't notice any issues, but I don't code for spiders ether.

If there's interest, then I'll spend some time cleaning it up for upload to the plugin section. I'll work on it..

19 Jan 2016, 5:06 AM
#54
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: ZenTagCloud Beta [support]

davewest:

Not for sail, just the difference between using for myself vs packaging it up for others. Wasn't sure if others are interested due to the SEO debits about tag spamming... I haven't notice any issues, but I don't code for spiders ether.

If there's interest, then I'll spend some time cleaning it up for upload to the plugin section. I'll work on it..

Dave i think we might be interested in this to. Thanks