We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Better Meta v1.8.0 not working on EE 1.6.7

Development and Programming

jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Leevi,

That worked in that it pulled the correct meta information from the publish tabs “About” entry. And, I temporary replaced the one I had in the original head template and that also worked (using an I.D. of “2” for the “About” entry.) But, I tried to replace the “2” with {segment_1} and it didn’t work. Am I missing something in how to implement the code?

Also, in the first example, while it pulled the correct entry specific meta information, it also rendered empty meta information from Geo, etc. that I specified not to include in the default set-up. That may be normal but I wanted to mention it just in case.

I really appreciate your help. I’m sure that a lot of this is due to my inexperience.

Jerry

       
jerrycharles's avatar
jerrycharles
10 posts
16 years ago
jerrycharles's avatar jerrycharles

Any thought? Using a specific entry number works as I indicated above but not the {segement_1} variable, etc. I resolved the second issue, figuring out that the meta template in the extension settings just needs to be edited to remove the elements I don’t want to show up.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Hey Jerry,

Are you 100% sure your url_title for the about page is “about”? Can you PM a URL?

Cheers

       
simplyee's avatar
simplyee
104 posts
16 years ago
simplyee's avatar simplyee

Any update to when this will work for those of us stuck with php4? Thanks.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

I’m working on an update that removes the short tags and php 5 stuff now. I have to roll back a little becuase I got too creative but it shouldn’t be too long.

       
stamper's avatar
stamper
25 posts
16 years ago
stamper's avatar stamper

Hi Leevi..

any progress on this yet?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
about 16 years ago
Leevi Graham's avatar Leevi Graham

Not yet… The quick update is to replace all instances of

self::[code] with [code]$this->

. If you want to remove the shorttag support replace all

<?= ... ?>

with

<?php echo(...); ?>
       
PhilBrienesse's avatar
PhilBrienesse
185 posts
15 years ago
PhilBrienesse's avatar PhilBrienesse

For some people who may be seeing an error similar to this…

Fatal error: Call to undefined method stdClass::parse_weblog_entries() in /home/sitename/public_html/cms/plugins/pi.lg_better_meta_pl.php on line 410

in their sitemap.xml template I have found a fix for my specific case (sort of).

If you try and reference a weblog which has no entries you get this error. It is only realistic that you would have no entries on a brand new install so I put a test entry in each until the client is ready to add their content.

I did try to exclude the entry using {if no_results} but that still resulted in the same error.

Here is an example of the code i was trying.

{if "{section_3}" != ''}
    {exp:lg_better_meta_pl:entries
        weblog="{section_3}"
        disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="Top-Level" 
    }
    <url>
        <loc>{site_url}{section_3}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/exp:lg_better_meta_pl:entries}
    {exp:lg_better_meta_pl:entries
        weblog="{section_3}"
        disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="not closed|Top-Level" 
    }
    {if no_results}
    {if:else}
    <url>
        <loc>{site_url}{section_3}/{url_title}</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/if}
    {/exp:lg_better_meta_pl:entries}
{/if}

The fix was to make sure each weblog had 1 top-level status entry and one regular open entry

Hope that helps some people from scratching their heads as long as i did.

I am using EE 1.6.8 and LG Better Meta 1.8.0

       
Danny T.'s avatar
Danny T.
426 posts
15 years ago
Danny T.'s avatar Danny T.

I’m wondering if this fix will be applied and distributed soon? As a commercial customer of LG Better Meta, it sure would be great.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.