Webmastersite.net
Register Log In

Link field + checkboxes
error on multiples > 2

Comments on Link field + checkboxes

zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Feb 26, 2006 - 2:04 AM:

A custom link field, checkboxes error if 3 or more checked, as described here.
zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Apr 24, 2006 - 3:32 PM:

Persists through version 3.3.14
Parse error: syntax error, unexpected T_STRING in /../commonfuncs.php(496) : eval()'d code on line 194
Simply trying to have some custom glyphs show next/right of link titles. Selecting 3 or more checkboxes produces error above.. 0,1 or any 2 checkboxes checked works fine.

EG: a movie listing with graphic ratings shown next to links:

some movie [R][L][N]
..
..
some movie [PG][V]
..
..
some movie [G]
..
..
etc.

Glyphs:
[R] = Restricted, [PG] = Parental Guidance, [G] = General Audience
[L] = Language/Profanity
[N] = Nudity
[V] = Violence
..etc.

I still can't figure out how the KB Article applies as all works okay with 0 or any 1 & 2 checkboxes selected.

See attached segment of displaylinks.tpl -- I can't see anything out of whack.

PS: If I try to past the contents of the text file as a quote in the forum there is a lot of substitutions and messages generated by WSN Forum.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 27, 2006 - 11:49 PM:

It's a problem with conditionals, PHP would work.

<IF {LINKCHECKED[tracktype <,> RatePG]}>Rating is PG</IF> is the best way to do it anyhow and appears to work.
zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Apr 28, 2006 - 11:46 AM:

Thank you Paul, that worked for me perfectly.

This is my first use of my own field I'm glad to finally see it working as I had hoped it would.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.