Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * - 2 votes

cDynamic Meta Tags


384 replies to this topic

#1 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 04 February 2005, 22:59

Support thread for cDynamic Meta Tags v1.0
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#2 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 04 February 2005, 23:11

Quote

Chris,

I installed your contrib but in the title bar it keeps listing my item's stock code, is there a way to NOT show the code? It looks really tacky.

check out what I mean... www.xxx.com/index.php and pick any item

Also, when it is "true" in admin, i get an White error page in MSIE for a split-second then it displays the actual webpage, ever heard of that before?
Firefox works perfect in smile.gif

jeff

Jeff,

I am not sure what you mean when you say True in admin.

It does look like you have the path wrong. It is probably an issue in FF too, just loads faster and past it.

Check an make sure you have the correct path in Both places(languages and admin).

$cache_files_path = '/enter/the/path/to/your/cache/folder/';  

I will add this to the upload to help clarify....

-------------------

If you want to remove the model number from the title go to line 89 in includes/meta_tags.php:

Find
if (tep_not_null($product_meta_info['products_model'])) { 
$title.=$product_meta_info['products_name'].' - '.$product_meta_info['products_model'].' ';
}else{
$title.=$product_meta_info['products_name'];
}

and replace with

//if (tep_not_null($product_meta_info['products_model'])) { 
//$title.=$product_meta_info['products_name'].' - '.$product_meta_info['products_model'].' ';
//}else{
$title.=$product_meta_info['products_name'];
//}

I will add some variables for this in next release.

Chris

Edited by clarocque, 04 February 2005, 23:15.

osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#3 Graveyard666

  • Community Member
  • 404 posts
  • Real Name:Jeff
  • Location:Milwaukee, WI

Posted 05 February 2005, 00:52

Chris,

I made the change to the meta.php page in catalog/includes and worked perfect :)

for the admin, I think this is the line that needs to have my cache folder listed..

$cache_files_path = '');

my folder is in /public_html/cache/

is that how I put it in the quotes?

I just want to make sure i do this right



clarocque, on Feb 4 2005, 06:11 PM, said:

Jeff,

I am not sure what you mean when you say True in admin.

It does look like you have the path wrong.  It is probably an issue in FF too, just loads faster and past it.

Check an make sure you have the correct path in Both places(languages and admin).

$cache_files_path = '/enter/the/path/to/your/cache/folder/';  

I will add this to the upload to help clarify....

-------------------

If you want to remove the model number from the title go to line 89 in includes/meta_tags.php:

Find
if (tep_not_null($product_meta_info['products_model'])) { 
$title.=$product_meta_info['products_name'].' - '.$product_meta_info['products_model'].' ';
}else{
$title.=$product_meta_info['products_name'];
}

and replace with

//if (tep_not_null($product_meta_info['products_model'])) { 
//$title.=$product_meta_info['products_name'].' - '.$product_meta_info['products_model'].' ';
//}else{
$title.=$product_meta_info['products_name'];
//}

I will add some variables for this in next release.

Chris

<{POST_SNAPBACK}>



#4 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 01:04

Graveyard666, on Feb 4 2005, 08:52 PM, said:

Chris,

I made the change to the meta.php page in catalog/includes and worked perfect :)

for the admin, I think this is the line that needs to have my cache folder listed..

$cache_files_path = ''); 

my folder is in /public_html/cache/

is that how I put it in the quotes?

I just want to make sure i do this right

<{POST_SNAPBACK}>


When I stripped it I should have not left the ) (will fix with upgrade)

your path should read like this:

$cache_files_path = '/home/username/public_html/cache/';

or something like that - may change based on your server....

(if you want to know if you have set it correctly ftp in and see if it is creating cache files or install my ultimate cache manager)

Chris
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#5 Graveyard666

  • Community Member
  • 404 posts
  • Real Name:Jeff
  • Location:Milwaukee, WI

Posted 05 February 2005, 01:18

now I get these errors on all my pages:

<b>Warning</b>: fopen(public_html/cache/_product_info.php_pName=12inch-creature-from-black-lagoon-sse&osCsid=9f2a809fb91808a3fcd577c9bf44045d.meta-cache): failed to open stream: No such file or directory in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>315</b><br />

<br />
<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>316</b><br />
<br />
<b>Warning</b>: fclose(): supplied argument is not a valid stream resource in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>317</b><br />

I also checked the /cache/ dir and there's no files

also, your link to ultimate_cache_manager in your sig took me to microsoft.com

#6 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 01:32

Graveyard666, on Feb 4 2005, 09:18 PM, said:

now I get these errors on all my pages:

<b>Warning</b>:  fopen(public_html/cache/_product_info.php_pName=12inch-creature-from-black-lagoon-sse&osCsid=9f2a809fb91808a3fcd577c9bf44045d.meta-cache): failed to open stream: No such file or directory in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>315</b><br />

<br />
<b>Warning</b>:  fwrite(): supplied argument is not a valid stream resource in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>316</b><br />
<br />
<b>Warning</b>:  fclose(): supplied argument is not a valid stream resource in <b>/home/curtisd/public_html/includes/meta_tags.php</b> on line <b>317</b><br />

I also checked the /cache/ dir and there's no files

also, your link to ultimate_cache_manager in your sig took me to microsoft.com

<{POST_SNAPBACK}>


Look like your path is still

you are missing all of the stuff before the public_html like /home/user/....

Give me 5 or 10 minustes I will have a new version that will remove the hassle of paths... Seem like many people have a hard time with this....

I fixed the link (had to http in it)

Edited by clarocque, 05 February 2005, 01:33.

osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#7 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 01:51

Uploaded a new version - should be easier to install.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#8 Graveyard666

  • Community Member
  • 404 posts
  • Real Name:Jeff
  • Location:Milwaukee, WI

Posted 05 February 2005, 02:09

Chris,

I just installed your updated file, do I need to edit anything? I refreshed my page and now the source code is NOT showing any errors in FF

#9 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 03:17

Graveyard666, on Feb 4 2005, 10:09 PM, said:

Chris,

I just installed your updated file, do I need to edit anything? I refreshed my page and now the source code is NOT showing any errors in FF

<{POST_SNAPBACK}>



You will have to set the conditions on the includes/languages/english/meta_tags.php page. But no path to set just what you want to use for variables....

You can verify you are setup correctly by FTPing ina you should be able to view the cached files.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#10 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 03:41

If you want to remove the - in the start of the title on the home page you can change this file (will add to next release)

includes/meta_tags.php around line 197 look for:

$metatitle.=$title .' - '.STORE_NAME;

and replace it with:

if (tep_not_null($title))
$metatitle.=$title.' - ';
$metatitle.=STORE_NAME;

osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#11 Graveyard666

  • Community Member
  • 404 posts
  • Real Name:Jeff
  • Location:Milwaukee, WI

Posted 05 February 2005, 03:47

Chris,

I did as you suggested in language/english/ dir but I'm not seeing any files in the /cache/ when i ftp to it.. just the .htaccess file..
I have that folder set permissions to 777

I marked this line:
$cache_type = 2; // number only, no ' or "

do I need to do anything else?

#12 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 03:54

Graveyard666, on Feb 4 2005, 11:47 PM, said:

Chris,

I did as you suggested in language/english/ dir but I'm not seeing any files in the /cache/ when i ftp to it.. just the .htaccess file..
I have that folder set permissions to 777

I marked this line:
$cache_type = 2; // number only, no ' or "

do I need to do anything else?

<{POST_SNAPBACK}>


Did you upload all of the the new files?

Contact me on AIM
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#13 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 05:54

clarocque, on Feb 4 2005, 11:54 PM, said:

Did you upload all of the  the new files?

Contact me on AIM

<{POST_SNAPBACK}>


OK what I found here was the configuration file was off...

Please make sure you configuration file has

DIR_FS_CATALOG as a full path if not (not sure why not) but if not, you will have to set the cache path manually - should not be a problem for most though.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#14 Graveyard666

  • Community Member
  • 404 posts
  • Real Name:Jeff
  • Location:Milwaukee, WI

Posted 05 February 2005, 22:44

Chris,

I think something you did with your meta tags files messed up my site. I can no longer use the "buy now" button on product pages..

I'm on AIM so hit me up..

jeff

#15 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 23:35

Graveyard666, on Feb 5 2005, 06:44 PM, said:

Chris,

I think something you did with your meta tags files messed up my site. I can no longer use the "buy now" button on product pages..

I'm on AIM so hit me up..

jeff

<{POST_SNAPBACK}>


Look at your SEO URL's more likely that - also might want to do some research on your configuration file (and fix soem of thos errors)... I will try to to IM you...
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#16 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 05 February 2005, 23:43

Jeff,

Seems better now that you disabled Ultimate SEO URL's...

go over the install and make sure you did the changes correcty... there are changes for the buy now button

You should really look in to some settings... the SID should not stay in the URL, your cookies should not have http ior https or www ...

Good Luck
- Gladd it was not my contribution :)
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#17 yandus

  • Community Member
  • 28 posts
  • Real Name:Yandus

Posted 06 February 2005, 14:43

Hi Claroque,

I have 2 stupid questions here to make me understand things better.

Q1: Having Header Tag controller installed, is cdynamic tag still working? I think not. I had to remove the Dynamic Product meta tag earlier because it didn't allow me to set HTC correctly.

Q2: Where should I write the path for the cache folder? I see the path mentionned above but I don't know where to add it.

Thanx!

#18 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 06 February 2005, 23:38

yandus, on Feb 6 2005, 10:43 AM, said:

Hi Claroque,

I have 2 stupid questions here to make me understand things better.

Q1: Having Header Tag controller installed, is cdynamic tag still working? I think not. I had to remove the Dynamic Product meta tag earlier because it didn't allow me to set HTC correctly.

Q2: Where should I write the path for the cache folder? I see the path mentionned above but I don't know where to add it.

Thanx!

<{POST_SNAPBACK}>



I am nost sure it will work if you have othe meta tag contributions in - you might have to remove them if you want to use this one. You can set some static information but this contributino is mainly to do it all dynamic for you.

If you uploaded the latest version just create the cache folder and drop in the htaccess that is in the file and the path should be good to go. The path is already set by default.
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!

#19 Nulles

  • Community Member
  • 8 posts
  • Real Name:Nue Bee

Posted 07 February 2005, 03:32

I got error with adding or rename category.

1146 - Table 'dbase.cache' doesn't exist

SELECT 1 FROM cache LIMIT 0

If I changed from in admin/categories.php

# cDynamic Meta Tags
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');

to

# cDynamic Meta Tags
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) );

It works fine. Is there gona be any problem with the deleted.

Thanks for this great contribution.

#20 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 07 February 2005, 04:05

Nulles, on Feb 6 2005, 11:32 PM, said:

I got error with adding or rename category.

1146 - Table 'dbase.cache' doesn't exist

SELECT 1 FROM cache LIMIT 0

If I changed from in admin/categories.php

# cDynamic Meta Tags
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) ) include_once('includes/reset_meta_cache.php');

to

# cDynamic Meta Tags
  // If the action will affect the cache entries
  if ( eregi("(insert|update|setflag)", $action) );

It works fine. Is there gona be any problem with the deleted.

Thanks for this great contribution.

<{POST_SNAPBACK}>


Yes, you need that file to reset the cache when changes are made to a product or category.

I will uploaded a new version with fix. The only file you will have to change is admin/includes/reset_meta_cache.php (and put categories back to the way install explains)

Chris
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!