Metadata problem

Feb 14, 2008 22:31

I just changed my layout tonight to one by gawariel_design.

My problem is I am trying to move my tags to below my mood, music, location and the mood icon to the left of the mood text.

Here is my stylesheet

Stylesheet for Sweeney Todd layout

Here is the code I have.

Metada code When I use that code I keep getting an error saying there is no bracket ( Read more... )

metadata, mood icon

Leave a comment

jack4will February 17 2008, 14:20:42 UTC
I fixed those problems but now I get this.

S2 Compiler Output at Sun Feb 17 14:11:00 2008
Error compiling layer:

Compile error: line 523, column 34: Didn't find closing brace in statement block
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 51
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27

Context

519: ## This function override allows users to change the order that the metadata elements print.
520: ## To change the labels or whether the metadata print one per line or all on one line, users
521: ## must still go through the Customization page and set properties accordingly.
522: set tags_aware = true;
523: function Entry::print_metadata() {
524:
525: ## If there is metadata (mood, music, location) or tags to print, and we're not in the guestbook, print stuff.
526: if (((size $.metadata>0) or ((size $.tags>0)and($*layout_position_entrytags=="metadata"))) and ($.itemid!=int($*layout_guestbook_entryid))) {
527:

What did I do wrong now? The closing bracket shows up in the code My stylesheet and the code are still up.

Reply

lorata February 17 2008, 14:49:48 UTC
Aha, found it! There were actually two brackets missing, but because the compiler stops after the first error, I didn't catch it. (Also, apparently I can't read.)

Anyway, just add another } to the end of your code, take out the ) following $metaclose; (that was a copy-paste error), and you should work. (I tested it this time by creating a theme layer myself using what you've given instead of just eyeballing it, which I should've done in the first place, sorry.)

If that doesn't work then I'm stymied, because it's working for me.

Reply

jack4will February 17 2008, 15:20:23 UTC
Can you please send me the code you did? Because I am still getting the same error message. I even found the code I had used before with another smoothsailing layout I had about a month ago and used that. I'm still getting that same message. My personal email is LadyLegolas@comcast.net

Thank you.

Reply


Leave a comment

Up