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

ZenTagCloud Beta [support]

Views: 17,128

Results 21 to 40 of 54
31 Jul 2009, 1:45 PM
#21
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

ZenTagCloud Beta [support]

my admin login also tells me:

Warning: error_log(/home/a8033afr/public_html/cache/page_parse_time.log) [function.error-log]: failed to open stream: No such file or directory in /home/a8033afr/public_html/admin/includes/classes/logger.php on line 60
Parse Time: 0.718s

my site: https://www.afro-masks.com

18 Aug 2009, 10:01 AM
#22
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Sorry my last post didn't had anything to do with zentagcloud, but thispost does.
I get a blank page and this is the error the error debug utility says:
[18-Aug-2009 01:14:01] PHP Parse error: syntax error, unexpected T_CLASS in /home/a8033afr/public_html/includes/classes/zentagcloud.php on line 10

My problem is, there is nothing on line 10 :-(

<?php /* @ZenWordCloud Author: - Nathan Keilar (<https://www.madteckhead.com>) Version 0.1; The is the project page for the ZenTagCloud. Its in development right now, its open source and I'd love input / contributions. LINE 10 GOES HERE....???????????????????????? Note: the current version is not recommended for live online stores (where you have something to loose), however by all means try it out on you test site, have a look at the code and give me feedback. p.s. Don't hold me responsible if something breaks. What is a Tag Cloud? A tag cloud (or weighted list in visual design) can be used as a visual depiction of content tags used on a website. Often, more frequently used tags are depicted in a larger font or otherwise emphasized, while the displayed order is generally alphabetical. Thus both finding a tag by alphabet and by popularity is possible. Selecting a single tag within a tag cloud will generally lead to a collection of items that are associated with that tag. Features: 2/June/07: Displays category titles with random weights 3/June/07: Tags links to you Zen Cart site category pages. Install: 1. Copy the code from this file to one of the Defined Pages using: Tools > Defined Pages Editor. 2. Ensure that the Defined Pages module is enables under: Tools > Layout Box Controller 3. Visit your site, and go to the defined page you pasted the code into. You should see a list of your sites categorie, with random sizes assigned to each one. Todo/Wishlist: - Save weights to database - Add code to ?category's page? so that visits to category's changes weights - Incorporate some noise in the category's weights to enable new category's a fair chance. - Option to read tags from meta data - Option to weight tags my relevance to current tag. (If you like a, you might like b type of thing) With some code from: - Derek Harvey (<https://www.derekharvey.co.uk>) - Zen Cart Team (<https://www.zen-cart.com>) Security Note: I've copied and modified a zen cart function to retrieve data from the db, and I think that by leaving the function embeded with the code if may pose some security risk. I'm open to advice on where to put it for best security practice. */ 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]); } } }
18 Aug 2009, 11:02 AM
#23
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

I suspect the error should be somewhere here ,but where?

/*

  • 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]);
}
}
}

18 Aug 2009, 3:38 PM
#24
lieven23 avatar

lieven23

Zen Follower

Join Date:
Aug 2008
Posts:
340
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

found the solution by removing the comments.

26 Nov 2009, 5:37 PM
#25
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Hi, can I adjust the tagcloud to appear in a sidebox? :)

26 Nov 2009, 7:00 PM
#26
tuor avatar

tuor

New Zenner

Join Date:
Jun 2007
Location:
Zurich, Switzerland
Posts:
23
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Asdesign:

Hi, can I adjust the tagcloud to appear in a sidebox? :)

It should work, just add the output statements to a sidebox template.

26 Nov 2009, 7:28 PM
#27
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

How do I change the length of the cloud? I've got too many keywords appearing right now. :\

26 Nov 2009, 7:31 PM
#28
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

tuor:

It should work, just add the output statements to a sidebox template.

Kewl, its like I thought it'd be.

Just wondering tho, do I have to create the sidebox also under modules/sideboxes and insert the output statements there? Or can I just create it under template/sideboxes, insert the output statements and it'll work?

26 Nov 2009, 10:08 PM
#29
tuor avatar

tuor

New Zenner

Join Date:
Jun 2007
Location:
Zurich, Switzerland
Posts:
23
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

I'd build the list in modules/sideboxes then pass an array to the template. The original plugin doesn't do this, but it's the right way to go.

29 Jan 2010, 10:06 AM
#30
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

bigjoed:

Excellent mod. Works great on my site. I'm using the code on the tpl_product_info_display.php file to display only on the product page. What I would like is for the tags to show the keywords for that specific product only.

Does anybody know or have attempted this?

Thanks

I would like to know how to do this, the list is far too log and random....

It's good that it shows results in search results but i want to limit the tags to the specific products, even if it is just from the meta tags or descriptions.....

If any one has done this I would appreciate a head start.

29 Jan 2010, 4:21 PM
#31
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
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,

I am looking for a solution to this also - did you find it?

4 Feb 2010, 2:02 AM
#32
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

Seems like a nice idea but I keep getting errors. As another poster reported, an error about an unexpected T_STRING on line 10, and then when I put it in my blank sidebox I get another similar error.

Also, why does the stylesheet contain <style> tags and HTML comment tags?

11 Feb 2010, 9:25 PM
#33
qy0429 avatar

qy0429

New Zenner

Join Date:
Feb 2010
Posts:
1
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

I installed this module and it looks nice on my website. One thing that I would like to know is that how to set the tag size according to the number of times it appears. It seems to be random now. Thanks!

10 Apr 2010, 10:00 AM
#35
asdesign avatar

asdesign

Zen Follower

Join Date:
Jun 2009
Location:
Israel
Posts:
152
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

maybe you should try contacting the webmaster of that website, asking how how done it. I think it's the same module.

10 Apr 2010, 10:32 AM
#36
gamesmart avatar

gamesmart

New Zenner

Join Date:
Nov 2008
Posts:
28
Plugin Contributions:
0

Re: ZenTagCloud Beta [support]

The site https://www.gamesmart.it is mine, i need to limit the tag in product_info page.

26 Oct 2010, 4:09 PM
#37
lina0962 avatar

lina0962

Zen Follower

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

Re: ZenTagCloud Beta [support]

I really want to put the tagcloud into the sidebox and let it followt the sidebox template.

I created a zentagcloud.php in the sidebox:

 $show_blank_sidebox = true;

  if ($show_blank_sidebox == true) {
      require($template->get_template_dir('tpl_zentagcloud.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_zentagcloud.php');
      $title =  BOX_HEADING_TAGCLOUD_SIDEBOX;
      $title_link = false;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
 }
?>

Then I created a tpl_zentagcloud.php in the template/sidebox folder, but I don't know how to paste the code from ztc_pagecode.php into this file.

Anybody help??

1 Nov 2010, 11:03 AM
#38
arora_girl avatar

arora_girl

New Zenner

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

Re: ZenTagCloud Beta [support]

lina0962:

I really want to put the tagcloud into the sidebox and let it followt the sidebox template.

I created a zentagcloud.php in the sidebox:

$show_blank_sidebox = true;

if ($show_blank_sidebox == true) {
require($template->get_template_dir('tpl_zentagcloud.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_zentagcloud.php');
$title = BOX_HEADING_TAGCLOUD_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>

> 
> Then I created a tpl_zentagcloud.php in the template/sidebox folder, but I don't know how to paste the code from ztc_pagecode.php into this file. 
> 
> Anybody help??



hi.........

you dont have need to create a sidebox by own.
just install the blank sidebox from
<http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_52&products_id=174>

and in template folder tpl_blank_sidebox file copy that code.
2 Nov 2010, 1:00 PM
#39
lina0962 avatar

lina0962

Zen Follower

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

Re: ZenTagCloud Beta [support]

yes, I did download the blank sidebox plug in. But the tpl_blank_sidebox cannot take PHP code, only html....

3 Nov 2010, 5:01 AM
#40
arora_girl avatar

arora_girl

New Zenner

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

Re: ZenTagCloud Beta [support]

lina0962:

yes, I did download the blank sidebox plug in. But the tpl_blank_sidebox cannot take PHP code, only html....

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.