 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
January 3rd, 2013, 06:34 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
| VB3 enhanced templates
Hello,
I've noticed in a lot of vb3enhanced templates there is
class="$fillcolor[$x]}"
which should be
class="$fillcolor[$x]"
without the curly brace. I think some refactoring went wrong somewhere. I have been through all my templates and fixed it but that's from a live 5.23 copy.
Thanks!
|
| |
January 3rd, 2013, 06:51 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
Yes I show 6 templates in that set which had that and that has been corrected thanks.
|
| |
January 4th, 2013, 03:04 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
|
Off to work so no chance to be more thorough now, but I searched for
}" width
and it turned up a few more I think, I've yet to fix them yet.
Thanks
|
| |
January 4th, 2013, 07:30 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
well there are some variables that should be surrounded with brackets just to let you know. LOL
|
| |
January 4th, 2013, 11:59 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
|
Heh, I started to have that feeling this morning.
I'll just do the six templates that you mentioned and see if I bump into anything else
Thanks
|
| |
January 4th, 2013, 12:07 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
|
Just fyi, if I search in the root templates folder I find 7 files to fix.
Thanks
|
| |
January 4th, 2013, 12:42 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
what do you mean by root templates folder as there are no files in the root of templates
I already fixed anything related to this in any templates folder in my build.
|
| |
January 4th, 2013, 01:49 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
|
I mean in the folder above the vb3enhanced folder, so the templates folder itself.
I'm sure you're right, but when I extract a fresh 5.23 I find matches in
templates\forumstyle\bids.tmpl
templates\vb3enhanced\bids.tmpl
templates\vb4enhanced\bids.tmpl
templates\vb3enhanced\showproduct.tmpl
templates\vb3enhanced\showproduct1.tmpl
templates\vb3enhanced\showproduct2.tmpl
templates\vb3enhanced\showproduct3.tmpl
templates\vb3enhanced\showproduct4.tmpl
templates\forumstyle\feedback.tmpl
templates\mobile\feedback.tmpl
templates\classfieds\feedback.tmpl
templates\vb3enhanced\feedback.tmpl
templates\vb4enhanced\feedback.tmpl
|
| |
January 4th, 2013, 01:50 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jun 2003
Posts: 42
|
Oh and congratulations on your 70k post |
| |
January 4th, 2013, 02:10 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
Those are not root of templates those are subfolders and yes I already searched and found all those so thanks.
yeah I post alot and the sad thing is we already pruned a couple years from the database here.
|
| |
January 4th, 2013, 08:37 PM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Jun 2011
Posts: 16
|
If I am not mistaken, (and that happens plenty of times  ) wouldn't it be better to leave the curly braces on rather then off. It should help with some ambiguity to the parser.
Last edited by tbworld; January 4th, 2013 at 08:47 PM.
|
| |
January 4th, 2013, 09:23 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,689
|
No not at all both are valid
{$fillcolor['$x']}
and
$fillcolor[$x]
Part of the new versions was making variables more user friendly and the templating not being so PHP heavy handled but more straight html so users could understand and work with it more.
See how much simpler the second one is rather than the old way of doing it. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 07:17 AM. | |