Forumotion profile customization using jQuery based on URL
Posted
by Harvengure
on Stack Overflow
See other posts from Stack Overflow
or by Harvengure
Published on 2010-06-11T20:59:14Z
Indexed on
2010/06/11
21:02 UTC
Read the original article
Hit count: 311
The idea is have a jQuery snippet (I like Jquery...I can understand it better then regular javascript) that will detect that when it has been run on a profile with a url such as "http://customize.forum-motion.com/profile.forum?mode=viewprofile&u=1" (just as an example)...then upon detecting that it is a url of a profile...fetch data from a specific (and most likely hidden) element before wrapping that data in css tags and appending it to the heady of the current document.
In short I'm trying to figure out how to make a sort of profile customization system where users can create their own css. The biggest problem I am having so far is figuring out how to make it so that the snippet can figure out what URL its being run on. Is there a function that can do this in jQuery at all?
© Stack Overflow or respective owner