Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

What does this error mean?

Quote Reply
What does this error mean?
When I click on the username in the category list view for the last poster to a forum, I get this error:

Username 'Unknown Tag: 'GT::CGI::escape$forum_last_poster)'' does not exist

Is it a syntax error?

Thanks,
Quote Reply
Re: [ArmyAirForces] What does this error mean? In reply to
Seems like a typo to me. Replace

<%GT::CGI::escape$forum_last_poster)%>

with

<%GT::CGI::escape($forum_last_poster)%>

in the relevant template.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] What does this error mean? In reply to
Ivan,

Thanks, worked great.

Now got any tips for restricting the character count on a post subject line? Wink
Quote Reply
Re: [ArmyAirForces] What does this error mean? In reply to
Is this what you are looking for?

<input type="text" name="<%post_subject%> maxlength="20" />

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] What does this error mean? In reply to
Whispers "yes", and hides head in shame. Unsure

DOH!
Quote Reply
Re: [ArmyAirForces] What does this error mean? In reply to
Beware: this is just a quick and dirty solution. It can easily be circumvented by evil hackers, but should keep the subjects of your average site visitors short...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] What does this error mean? In reply to
In Reply To:
Seems like a typo to me. Replace

<%GT::CGI::escape$forum_last_poster)%>

with

<%GT::CGI::escape($forum_last_poster)%>

in the relevant template.

For future reference, you could also just change the tag to the GT::Template built-in <%escape_url forum_last_poster%>. There are also escape_html, unescape_html, and escape_js commands.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com