Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Template cell 'user_noimage' is not defined!

 

 


pilotchris84
User

Feb 24, 2009, 6:20 AM

Post #1 of 9 (4989 views)
Shortcut
Template cell 'user_noimage' is not defined! Can't Post

Hi. I am attempting to update user profiles and I am receiving the error: "Template cell 'user_noimage' is not defined!"

I have been through the other threads and compared my code to the original template code. It appears my templatecells are all there and in the correct place.

Can someone tell me what I am missing? Below is a excerpt from my _publish_homepage_index.html

Thanks,

Chris

<br>
<!-- template insert : $list$ -->
<!-- templatecell : user_image -->
<!-- templatecell : user_noimage -->
<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<img src="$homepage_url$/images/$thumbnail$" width=$thumbnail_width$ border=1 alt="Photo"><br> </td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b>$user_name$</b></font><br>
<font face="ms sans serif" size=2>
Specialty: $hfield1$<br>
$hfield2$<br>
<a href="$user_file$">View my homepage</a> &nbsp;
<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a><br>
</font> </td>
</tr>
</table>
<!-- /templatecell : user_image -->

<!-- templatecell : user_noimage -->
</div>
<p align="center">
<div align="center">
<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<table border=1 cellspacing=0 cellpadding=0 width=100 height=100>
<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=3><b>Photo<br>Not<br>Available</b></font></td>
</tr>
</table> </td>
<



Donna
Staff / Moderator


Feb 25, 2009, 4:13 PM

Post #2 of 9 (4925 views)
Shortcut
Re: [pilotchris84] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Hi there,

Looks like you've got the "user_noimage" templatecell in there twice -- on the fourth line (inside the user_image templatecell) and then further down after that bit.

Make sure that's only in there once. Also, you'll want to make sure you have a noimage closing templatecell like this:

<!-- /templatecell : user_noimage -->

It's possible that was just cut off and that it exists in your template, but since it didn't appear here I thought I'd mention. :) Without that, Listing Manager doesn't know where to end that snippet.

I hope this helps!

Donna

--
support@interactivetools.com


pilotchris84
User

Feb 26, 2009, 4:25 AM

Post #3 of 9 (4888 views)
Shortcut
Re: [Donna] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Thanks for the reply Donna. Here is the code now. Still no joy when trying to update homepages. I went and looked at the original pages I downloaded from interactive and modeled the coded after it. I have open and closed the templatecells each once. This is www.lifeinthebigapple.com/listman/templates/_realty/_publish_homepage_index.html (I just want to ensure I am working on the right page). Are there other pages that may need adjustment before this will operate correctly?

thanks! Chris

</table>

<!-- template insert : $list$ -->

<!-- templatecell : user_image -->
<p><table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<img src="$homepage_url$/images/$thumbnail$" width=$thumbnail_width$ border=1 alt="Photo"><br>
</td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b>$user_name$</b></font><br>
<font face="ms sans serif" size=2>
Specialty: $hfield1$<br>
$hfield2$<br>
<a href="$user_file$">View my homepage</a> &nbsp;
<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : user_image -->
<!-- templatecell : user_noimage -->


<p><table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<table border=1 cellspacing=0 cellpadding=0 width=100 height=100>
<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=3><b>Photo<br>Not<br>Available</b></font></td>
</tr>
</table>
</td>
<td valign=top width=469>
<font face="ms sans serif" size=3><b>$user_name$</b></font><br>
<font face="ms sans serif" size=2>
Specialty: $hfield1$<br>
$hfield2$<br>
<a href="$user_file$">View my homepage</a> &nbsp;
<a href="$search_url$?user_num=$user_num$&search=1">View my listings</a><br>
</font>
</td>
</tr>
</table>
<!-- /templatecell : user_noimage -->



Donna
Staff / Moderator


Feb 26, 2009, 7:17 PM

Post #4 of 9 (4860 views)
Shortcut
Re: [pilotchris84] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Hi Chris,

I took a look at your template (http://www.lifeinthebigapple.com/listman/templates/_realty/_publish_homepage_index.html) and you've still got some oddities -- it looks like the bit you copied & pasted here has been corrected, but your online template hasn't. The two don't match.

On your online template, I still see the <!-- templatecell : user_noimage --> inside the user_image templatecell, and the closing noimage tag (further down) is missing the last angly bracket (which appears to be a few lines up instead.)

Donna

--
support@interactivetools.com


pilotchris84
User

Feb 27, 2009, 3:52 AM

Post #5 of 9 (4825 views)
Shortcut
Re: [Donna] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Donna,

Thanks so much. I don't know how I did that. Lesson learned to cross check and make sure the changes are there when uploading new code. Can you tell this is not what I do for a living. :)

Thanks again!

Chris


pilotchris84
User

Feb 27, 2009, 4:04 AM

Post #6 of 9 (4822 views)
Shortcut
Re: [Donna] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Hey....sorry to be a pain in your butt. The templatecells are working fine now...thank you. However, when I only have one user (myself) the script is pushing the table containing my info way to the right. As soon as I add another user it pulls everything back where it should be. Is this a quick fix? Something you have heard of happening before?

Thanks! Chris


Donna
Staff / Moderator


Feb 27, 2009, 3:46 PM

Post #7 of 9 (4784 views)
Shortcut
Re: [pilotchris84] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Hi Chris,

Sounds like there's a formatting issue with your template, but it's hard to tell without seeing the published page -- can you post a link to it?

Donna

--
support@interactivetools.com


pilotchris84
User

Feb 28, 2009, 2:08 AM

Post #8 of 9 (4700 views)
Shortcut
Re: [Donna] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Thanks Donna.....here is the link:

http://www.lifeinthebigapple.com/listman/homepages/



Chris


Donna
Staff / Moderator


Mar 4, 2009, 1:32 PM

Post #9 of 9 (4285 views)
Shortcut
Re: [pilotchris84] Template cell 'user_noimage' is not defined! [In reply to] Can't Post

Hi Chris,

Hmm, didn't see anything that obviously popped out at me and said "Ah, this is the cause!" but I do see a couple of things that might be.

You've got this as your "no image" templatecell right now:


Code
                    </div> 
<p align="center">
<div align="center">
<table border=0 cellspacing=0 cellpadding=2 width=590>
<tr>
<td valign=top align=center width=115>
<table border=1 cellspacing=0 cellpadding=0 width=100 height=100>

<tr>
<td bgcolor="#EEEEEE" align=center><font face="tahoma,arial" size=3><b>Photo<br>Not<br>Available</b></font></td>
</tr>
</table> </td>


It's quite a bit different from your "image" templatecell, as it starts with a closing div (that has no corresponding open div, ends with a </td> tag... whereas your "image" templatecell is a nicely formatted single table. The two should be virtually identical, except one will have the code for an image, and the other will have some filler that says "no image".

Basically what a templatecell is is a bit of code that is repeated if the conditions of that templatecell are met. So, imagine that the code in that templatecell is going to be repeated each time you add a user, and it'll pick which one to use based on if there's an image or not. Add 6 agents with no images, and it'll duplicate your "no image" code 6 times. Have 3 with images and 3 without, and for each one with an image, it'll duplicate the "image" code, and for each one without an image, it'll use the "no image" code.

This means that the code needs to be reasonably "independent", since you don't know what order it's going to be in. You can't have the "image" code depend on the "no image" code, since it might not appear -- and vice versa. And save for being in a "container" on your page, you don't really want it to depend on the external code either, as adding multiple agents will make things go a bit wonky. (Or in your case, it fixes the wonky.)

Does that make sense? I hope that helps -- try comparing again to the default templatecells, that might help make a bit more sense. :)

Donna

--
support@interactivetools.com