S2 Code - Changing the order of your current tags with flexible squares

Apr 05, 2006 09:37


This code will allow you to change the order of your meta tags and remove the google maps link from the location.
code )

tech, lj

Leave a comment

Comments 6

_disco_dollie_ April 5 2006, 17:07:59 UTC
er... comments in the code please... what does this code do?? :p

Reply

ravenchyld April 5 2006, 19:19:34 UTC
Sorry, I put it there for someone in one of the communities I've been reading. They're just copy and pasting it into their journal. Should have knowen you'd be interested ;)

If you have a paid account you can create a "layer" of code to replace the code which normally creates the output for your journal. In tech speak what we get to do is re-define all the functions. The code above redefines the print_metadata() function. Not all styles have the same functions we can redefine so that's why I'm saying this one is specific to Flexible Squares.

I didn't pick the variable names, I just worked with the ones that were there. They're horribly undescriptive aren't they?

#Entry is the object for the function method we are re-defining, metadata is the term for current location, mood, music ( ... )

Reply


_disco_dollie_ April 5 2006, 23:23:11 UTC
#now we're going to print everything!
Love the comments! LOL

Reply


aidara April 14 2006, 05:18:31 UTC
Thank you, this looks like it could be the answer to my problem! One question: what, exactly, do I do if I want to move "location" below "mood" and "music"? I can't seem to get anything to work.

Reply

ravenchyld April 14 2006, 15:43:41 UTC
Right down at the bottom there's three print statments, they look like this:

print $my_location;
print $my_mood;
print $my_music;

You can move them around to be in the order you want, for example:

print $my_mood;
print $my_location;
print $my_music;

Hope that works for you :)

Reply

aidara April 14 2006, 19:12:50 UTC
Awesome, thank you so much!

Reply


Leave a comment

Up