Does anyone know if this has been updated for 1.5.5 yet?
Thanks
Does anyone know if this has been updated for 1.5.5 yet?
Thanks
Hi, I've got this excellent plugin installed on our site. I have v1.5.5 of Zen Cart installed.
English language version of site - https://www.welsh-lovespoons.co.uk/testimonials
Welsh language version of site - https://www.llwyaucaru.com/gairda
I was just wondering how the meta tags for the individual testimonial pages should work? Currently the meta tag title, description and keywords for all of my testimonials are exactly the same, no content is taken from the text added (title or body) in the testimonial themselves. Is this how it should work? Thanks for any advice.
Here is an example of one of the testimonial pages - https://www.welsh-lovespoons.co.uk/i...monials_id=522
The meta tags are as follows. This is exactly the same for each and every testimonial which isn't great for google.
Thanks for any advice.Code:<title>Testimonial : Welsh Love Spoons, Hand Carved Lovespoons from Wales</title> <meta name="keywords" content="welsh love spoons, lovespoons, love spoons, love spoon, lovespoon, welsh lovespoons, celtic lovespoon, celtic love spoon, cadwyn Testimonial" /> <meta name="description" content="Welsh Love Spoons : Testimonial - welsh love spoons, lovespoons, love spoons, love spoon, lovespoon, welsh lovespoons, celtic lovespoon, celtic love spoon, cadwyn" />
Sounds like the plugin hasn't been written to consider metatags.
To do that it would need to:
- figure out which testimonial is currently displayed
- generate relevant metatags for that
- update the default metatags to the ones for the displayed testimonial
The default logic for calculating metatags is in /includes/modules/meta_tags.php
Since v1.5.5 there's support built in to allow writing of Observer classes which avoid having to edit the actual metatags module file itself. But if you don't mind merging your customizations done to the original file when you upgrade next, you can just edit it directly with the requisite logic.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
does this allow for guests to make a testimonial without having to login?
cheers, Mike
There is a admin switch that turns off/on registered only! so yes none account holders can do testimonials...
Dave
Always forward thinking... Lost my mind!
Regarding Meta Tags:
I have Testimonials Manager running on 1.5.5e
There is some code in the instructions which needs to be applied into meta_tags.php
This is what it says in the read me
9) This section is entirely optional.
To implement metatags for your testimonials;
open includes/modules/meta_tags.php.
locate the following line of code (around line 336)
// NO "break" here. Allow defaults if not overridden at the per-page level
Immediately above this line copy and paste the code below.
(save the edited file to includes/modules/YOUR_TEMPLATE/meta_tags.php and upload to your server.
break;
//TESTIMONIALS:
case 'display_all_testimonials':
$sql = "select * from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = '" . (int)$_SESSION['languages_id'] . "' order by date_added DESC, testimonials_title";
$testimonials = $db->Execute($sql);
while (!$testimonials->EOF) {
$testimonial_string_metatags .= zen_clean_html($testimonials->fields['testimonials_title']) . METATAGS_DIVIDER;
$testimonials->MoveNext();
} //EOF
define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS . $testimonial_string_metatags);
break;
case 'testimonials_manager':
define('META_TAG_TITLE', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
define('META_TAG_DESCRIPTION', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . zen_trunc_string($page_check->fields['testimonials_html_text'],TESTIMONIALS_MANAGER_DESCRIPTION_LENGTH));
define('META_TAG_KEYWORDS', META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER . $page_check->fields['testimonials_title']);
---------------------------------------------------------
Trouble is, when I add this code I get this output:
<title>META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat</title>
<meta name="keywords" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERGreat" />
<meta name="description" content="META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGERThis is just a test submission to show you how it looks, great, eh?" />
Any ideas why it would put META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER, META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER, and META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER before the actual tag content ?
I think I have an idea but not sure.
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
your most likely thinking you need to add something to languages
I did to includes/languages/english/YOUR_TEMPLATE/meta_tags.phpCode:// Testimonial manager meta tags define('META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER_ALL_TESTIMONIALS', 'SOME WORDS '); define('META_TAG_TITLE_PAGE_TESTIMONIALS_MANAGER', 'SOME WORDS ');
Or none, depending on what common wording you want to have for each post... I use my site name.
Dave
Always forward thinking... Lost my mind!
Bookmarks