EllisLab text mark
Advanced Search
     
title and meta tags not showing up
Posted: 05 July 2012 08:33 AM   [ Ignore ]
Joined: 2008-05-30
224 posts

we switched to 2.4 and some of our pages/templates are still giving us some trouble

a member template to show the bio and their recent columns no longer gives me a title and the meta tags do not show up

What have I done wrong?

attached below is the code

I have blanked out my website name in the title tag

{exp:channel:entries  limit="1"  channel="default_site" dynamic="off"  username="{segment_3}"  disable="pagination|custom_fields|trackbacks"}
<title>XXXX XXXX XXXX{screen_name}</title>
<
meta name="description" content="{screen_name}" />
<
meta name="keyword" content="{screen_name}" />
{/exp:channel:entries} 
 
Posted: 05 July 2012 05:43 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi bthom62,

Are you seeing this behavior for all users?

Some troubleshooting to try, hard-code a known username in the username= parameter. What are the results?

Are you sure the the username in the parameter has a value stored for {screen_name}? If a user has not supplied a screen name, the variable will not have a value.

I look forward to your reply!

Cheers,

 Signature 

How may I help you?

 
Posted: 05 July 2012 05:48 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2008-05-30
224 posts

I enter all members.

So I made the username the same as the screen name

A few iterations ago ( I think when I went from 1.6 to 1.7, my old way of coding failed , so I came up with this one. and it worked

Now the display is fine, but as i said no meta tags and titles on the page

 
Posted: 06 July 2012 03:07 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey bthom62,

Can you show the whole template code?

Thank you!

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade

 
Posted: 06 July 2012 03:27 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2008-05-30
224 posts

Thank you

{preload_replace:my_channel="default_site"}
{preload_replace
:my_template_group="site"}

<?xml version
="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<
html xml:lang="en" lang="en">
<
head>

{exp:channel:entries  limit="1"  channel="default_site" dynamic="off"  username="{segment_3}"  disable="pagination|custom_fields|trackbacks"}
<title>Canada Free Press{username}</title>
<
meta name="description" content="{screen_name}" />
<
meta name="keyword" content="{screen_name}" />
{/exp:channel:entries}
{script
-header-banner-ads}
<table width="1030" border="0" align="center" cellpadding="5" cellspacing="0" summary="ad row">
 <!-- 
Start of main content -->
<
tr>
<
td width="160" valign="top">
<!-- 
Left side starts -->

{script-leftside}
</td>
<
td width="550" valign="top">
<
table width="550" align="center" border="0" cellpadding="0" cellspacing="0" summary="">
<
tr valign="top'"><td>
{exp:channel:entries orderby="date" sort="desc"  limit="1"  channel="default_site" dynamic="off"  author_id="{segment_4}"  disable="pagination|trackbacks"<!-- Fixed N2 -->
<
span>Author Profile</span>
<
h2>{author}</h2
</
td></tr>
<
tr><td>
<
table border='0' cellspacing='0' cellpadding='0' width="550">
<
tr><td valign="top" width="120">
{if photo}
<br />
<
div class="itempad"><img src="{photo_url}" border="0" width="{photo_width}" height="{photo_height}" title="{lang:my_photo}" /></div>
{/if}
<br />
<
a href="mailto:{email}">Email</a>
<
br /></td>
<
td width="430">
<
br />
<
strong>Bio:</strong{signature}
</td></tr></table>
{/exp:channel:entries}
</td></tr></table>
<
table width="550" align="center" border="0" cellpadding="0" cellspacing="0" summary="">
<
tr><td>
<
h3>Most Recent Articles:</h3>
{exp:channel:entries orderby="date" sort="desc"  limit="65"  channel="default_site" dynamic="no"  author_id="{segment_4}" paginate="both" disable="member_data|trackbacks|category_fields"}
<a href="{site_url}index.php/article/{entry_id}"><span>{title}</span></a><span> - {entry_date format=' %M %j, %Y '}</span><br /><br />

{paginate}
{if previous_page}
<span>a href="{auto_path}"><< - Previous 65 Columns</a></span> &nbsp;
{/if}
{if next_page}
<span>a href="{auto_path}">Next 65 Columns - >></a></span><br /><br />
{/if}

{
/paginate}
{
/exp:channel:entries}
<br />


<
hr size="1" width="90%"  noshade />



</
td></tr></table>
</
td><td width="300" valign="top">
{script-new-rightside} 
 
Posted: 09 July 2012 03:56 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi bthom62,

So this was an update from 1.x to 2.4?

The only thing that stands out to me is the use of “trackbacks” in the disable= parameter. That is no longer available in 2.x

While EE should ignore it, it may be causing the hiccup here. Can you remove trackbacks from the disable parameter and see if things begin behaving properly?

If not, we would want to get in for a closer look.

Cheers,

 Signature 

How may I help you?

 
Posted: 09 July 2012 04:10 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2008-05-30
224 posts

I took it out and no such luck

It still does not work

 
Posted: 11 July 2012 12:13 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi bthom62,

You should receive an email from EllisLab shortly.

Cheers,

 Signature 

How may I help you?

 
Posted: 13 July 2012 03:51 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi bthom62,

After looking into this, the problem only occurs on username(s) with a space in them.

You can either have your users remove special characters from their user names, or use something like {member_id} as {segment_3}.

Cheers!

 Signature 

How may I help you?