Help - Search - Members - Calendar
Full Version: User Profiles
Movable Type Community Forum > Additional Resources > Tips and Tricks
kadyellebee
I would guess that the problem is that MT is processing the code and THEN the javascript is being processed... which makes it impossible for MT to filter it down to one author because the variable isn't in there yet.  I spent a long time last week trying to come up with a new method than what I was using (that would let me repeat a block of code for each author instead of having to type it out for each author).

My author profiles for TheRedKitchen are each a separate index template.  I just have them set not to rebuild every time because they rarely change information; this allows me to keep them in the same place as my other TRK info and have some of the similar sidebar data as the other pages on the site have.

Here's more info about dealing with archives for multiple authors, in case that is helpful to you.

Kristine
evan
I use MovableType for a community blog, and I was trying to create a sort of user profile for every user.  I wrote a function to pop-up a new window and print the variable "u" provided and the user "u"'s email address.

CODE
function ShowProfile(u) {
   var profile = window.open ('', 'profile', 'width=300, height=100');
   profile.document.write("<HTML><HEAD><TITLE>New Document</TITLE></HEAD><BODY>"+u+"<br><MTEntries author=""+u+"" lastn="1"><$MTEntryAuthorEmail spam_protect="1"$></MTEntries></BODY></HTML>");
   profile.document.close();}
</script>


But for some reason this wouldn't work; it can print out the "u" variable alone perfectly fine, but when I try to place it in the author tag it fails to work, and only returns the email address of the last person to post a message.  Any ideas?  Is there possibly an easier way to create profiles for users?
evan
Thanks for the info.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.