Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (alissarose, KuKuKaChu, Dunny, id242), 47 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#189948 - 07/04/07 10:34 AM Templates and curly brackets
Helice Offline
newbie
Registered: 08/25/06
Posts: 40
Loc: New England, US
I have embedded a java applet in a template and have it working successfully, with one exception. In the applet parameters, there are multiple lines of the nature:
 Code:
<param name="item.something" value="{0} ({1})">


It seems that the curly brackets demanded by the applet code are getting "eaten" when I place them in a ubb threads template, and that's breaking the applet. How can I escape the brackets so that my applet works correctly?

Thanks.
_________________________
Helice
http://foolmoon.com


"Men never do evil so completely and cheerfully as when they do it from a religious conviction."
-Blaise Pascal

Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#189952 - 07/04/07 11:38 AM Re: Templates and curly brackets [Re: Helice]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
embed your code sections with the real {'s within a {literal} and smarty won't eat them up

now if you still have a problem. ie: you need some smarty variables that are passed in to be made available inside that literal.

you do much like you do with php / html combo bombo:

simply do:

{literal}
buncha code
{/literal}
{$smarty_variable_passed_in}
{literal}
more stuff
{/literal}

from your snippet, it doesn't look like you need to have smarty vars in that section, so i'd guess you'd be doing

{literal}
your stuff
{/literal}
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#189955 - 07/04/07 11:59 AM Re: Templates and curly brackets [Re: SD]
Helice Offline
newbie
Registered: 08/25/06
Posts: 40
Loc: New England, US
AH! A-HA!

{literal} somestuff {/literal} worked beautifully!

Thank you!! My hero. Appreciate your help.
_________________________
Helice
http://foolmoon.com


"Men never do evil so completely and cheerfully as when they do it from a religious conviction."
-Blaise Pascal

Top
#189965 - 07/04/07 05:15 PM Re: Templates and curly brackets [Re: Helice]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Went to your site to take a look. What is up with the mouse drag and popup SPAM ??? Not a good way to attract or keep new users.
Top
#189976 - 07/04/07 07:03 PM Re: Templates and curly brackets [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
<snicker> Iknew the fix to this one, but sd is too on the ball today
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#189978 - 07/04/07 07:05 PM Re: Templates and curly brackets [Re: Gizmo]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
hell, it's once in a blue moon that i zing one in before the GizBot..

i consider this a victory of sorts!! \:D
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#189979 - 07/04/07 07:09 PM Re: Templates and curly brackets [Re: SD]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
<anicker> its just cas i'm exhausted from running around all day yesturday ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#189980 - 07/04/07 07:10 PM Re: Templates and curly brackets [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
then again, the gizbot is offline at 8a
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#189993 - 07/04/07 08:31 PM Re: Templates and curly brackets [Re: ntdoc]
Helice Offline
newbie
Registered: 08/25/06
Posts: 40
Loc: New England, US
 Quote:
What is up with the mouse drag and popup SPAM ???


Huh...? What mouse drag and what spam...?

I have ads on my site -- it helps pay for my dedicated server. Other than that, your language is foreign to me, meester.
_________________________
Helice
http://foolmoon.com


"Men never do evil so completely and cheerfully as when they do it from a religious conviction."
-Blaise Pascal

Top
#189995 - 07/04/07 08:33 PM Re: Templates and curly brackets [Re: SD]
Helice Offline
newbie
Registered: 08/25/06
Posts: 40
Loc: New England, US
 Quote:
hell, it's once in a blue moon that i zing one in before the GizBot..


Go ahead, enjoy it. ;\) It'll keep him on his toes!
_________________________
Helice
http://foolmoon.com


"Men never do evil so completely and cheerfully as when they do it from a religious conviction."
-Blaise Pascal

Top
#190011 - 07/04/07 11:33 PM Re: Templates and curly brackets [Re: Helice]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Well doesn't seem to be there now.

Earlier when clicking and dragging the mouse it fired off a pop under window telling me I had a virus and should get their software to scan and fix it. That to me is SPAM, junk. Not sure why unless maybe you link to some other site and their Java script runs it.
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10490 Members
36 Forums
33841 Topics
181708 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image