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

Better Meta Extension and Plugin - Looking for testers

Development and Programming

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

** UPDATE: I have released V1 of this extension. Refer to this thread **

Hi Guys, Im working on a new meta plugin that adds an extra tab to the publish page and allows you to customise the title and meta tags in the head of your page. Anyone keen to help me test it?

       
Gabriel's avatar
Gabriel
130 posts
17 years ago
Gabriel's avatar Gabriel

Do not hesitate add me on your beta-testers list 😊

Gabriel

       
lincolnpixel's avatar
lincolnpixel
76 posts
17 years ago
lincolnpixel's avatar lincolnpixel

I’m ready!!

       
chrispiciullo's avatar
chrispiciullo
69 posts
17 years ago
chrispiciullo's avatar chrispiciullo

Not to be one to ever turn away a new plugin, but couldn’t this be done using custom weblog fields?

       
silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

The problem with custom fields as it is, is that you have to create them for each and every fieldgroup you have … I’d be interested, too.

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hi Leevi,

Would also like to get in on testing this out for you too. I love to see all the new plugins, extensions and modules and I think it is great when people share what they have created as it allows others to learn (hopefully if my brain can take in all the code!! 😊 ) from the said plugin etc..

Best wishes,

Mark

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

Ok guys,

Here is the first beta. Ill leave it up for a couple of days an then pull it again for more testing.

You can grab it from the link at the top of the thread.

There is a readme.txt included on usage and installation. I can only confirm that the plugin works with EE1.6 - Build: 20070708

Enjoy

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
There is a readme.txt included on usage and installation.

@Victor: see above @Everyone: I found the first bug! Its only a one liner at this point. Please change line 45 of the plugin file from:

// if there is an entry id
 if($TMPL->fetch_param('entry_id')){

to

// if there is an entry id
 if($TMPL->fetch_param('entry_id') && ctype_digit($TMPL->fetch_param('entry_id'))){

or download the fix

this fix checks if you passed a number as the entry_id.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
ok i think this is how it suppose to work?
<HTML>
<HEAD>
{exp:weblog:entries weblog="weblog1"}
<TITLE>{title}</TITLE>

{exp:lg_better_meta entry_id="{entry_id}"}
{meta_description}
{meta_keywords}
{/exp:lg_better_meta}

{/exp:weblog:entries}
That gives me a php error if not please show me some example code ? Another question: lets say i want to do this
{if meta_description != ""}
{meta_description}
{else}
{default_meta_in_extension_settings}
{/if}

Hey victor:

The readme says: LG Better Meta only has one tag {exp:lg_better_meta}.. Looking back I need to make this a little clearer.

LG Better Meta only has one single tag which outputs the template in the extension settings.

So here is an exaple:

<head profile="http://gmpg.org/xfn/11">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  {exp:lg_better_meta entry_id="2"}
</head>

I have found there is still some bugs if you are trying to embed you header and pass through the entry_id as an embeded variable. Im tryig to figure out a solution in the next couple of days.

Also if you are using any other plugins that add tabs to the publish page this plugin will overide them at the moment. A fix is included in the upcoming release.

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

I have updated the beta to beta version to 1.2 with fixes for a couple of issues and an updated readme.

You can grab it at the top of the thread

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
you forgot the language file in the 1.2 beta .zip file…

My mistake..

You can grab it from the top of the thread

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa
OK i just tested it on another installation and i am getting this error when i enable the extension:
Notice: Undefined property: Preferences::$core_inin in /home/raine/public_html/removed/system/extensions/ext.lg_better_meta.php on line 98

Warning: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/REMOVED/system/extensions/ext.lg_better_meta.php:98) in /home/raine/public_html/removed/system/core/core.functions.php on line 296
and it does enable the extension when you hit the back button.

There was a typo on line 98:

'lg_better_meta_author' => $PREFS->core_inin['webmaster_name']));

Should be:

'lg_better_meta_author' => $PREFS->core_ini['webmaster_name']));

After that it seems like its working. It’s a pretty useful plugin. I really hate recreating commonly use fields for each of my blogs. I haven’t really tested it much yet until my next project.

Any reviews so far?

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

Thanks for being patient guys… I uploaded the fix over the old version… just use the same links.

       
wiL.Laxa's avatar
wiL.Laxa
69 posts
17 years ago
wiL.Laxa's avatar wiL.Laxa

I don’t know if this is a good idea of not but would you think it would be a good idea of you added url_title as a parameter so that we can use something like this instead of querying an entry id before hand?

I mainly use it for my templates like this:

corporate template

{if segment_3}

{embed="site/embed_header"  data_url_title="{segment_3}"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="{segment_3}"}

{if:else}

{embed="site/embed_header"  data_url_title="management_board_of_directors"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="management_board_of_directors"}

{/if}

{embed="site/embed_footer"}

embed_header template

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

{exp:lg_better_meta url_title="{embed:data_url_title}"}


<link href="/jquery/thickbox.css" rel="stylesheet" type="text/css" />
<link href="/tpl_inner/style.css" rel="stylesheet" type="text/css" />
</head>
       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham
I don’t know if this is a good idea of not but would you think it would be a good idea of you added url_title as a parameter so that we can use something like this instead of querying an entry id before hand? I mainly use it for my templates like this: corporate template
{if segment_3}

{embed="site/embed_header"  data_url_title="{segment_3}"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="{segment_3}"}

{if:else}

{embed="site/embed_header"  data_url_title="management_board_of_directors"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="management_board_of_directors"}

{/if}

{embed="site/embed_footer"}
embed_header template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

{exp:lg_better_meta url_title="{embed:data_url_title}"}


<link href="/jquery/thickbox.css" rel="stylesheet" type="text/css" />
<link href="/tpl_inner/style.css" rel="stylesheet" type="text/css" />
</head>

Yep cool idea…. I haven’t needed this yet but I can see how it would help.

Ill add it to the next release… sometime soon?

       
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.