Right now, on a test site I've been using to develop features in NAML, I've got an interesting little feature up and running... In the custom "user_profiles.naml" file I have, I managed to create custom profile options for users. The method by which I do this is fairly simple -- |
Yes, it should be safe.
Nabble staff. We never ask for passwords.
|
Thank you for the quick reply.
I do have another question real quick: how would I go about applying the same HTML processing to these custom properties as that applied to posts? I.e. stripping out SCRIPT tags and the like, while permitting most HTML code? I found process_message_html and the related macros, but I can't get them to work for anything that isn't specifically a message or signature. |
In reply to this post by DavidJCobb
If the idea is to expand the user profile, then you should use the user properties instead of the node properties. So you can call things like this: n.page_user.has_property name="abc" n.page_user.set_property name="abc" value="1" n.page_user.delete_property name="abc" n.page_user.get_property name="abc"I know this information is not easily available on our NAML user interface, but we will keep improving it so that users can explore the binary namespaces and learn more about the available commands. |
In reply to this post by DavidJCobb
This is a very good question. I will discuss this with the Nabble team and try to find a solution. I will get back to you soon. |
In reply to this post by Hugo <Nabble>
Ah, I actually did set it directly on the users. I just thought that users were also nodes, which is why I said "some user node". Thank you for the clarification. Thanks. You and Peter's help is very, very much appreciated. :) |
In reply to this post by DavidJCobb
We just added a new command to make this possible. The name of the command is "to_html_list" and can be used like this: <n.to_html_list. text="[n.my_text/]"> <n.process_message_html/> </n.to_html_list.>my_text is your text to be processed. Here is a sample macro with hardcoded text: <macro name="my_text"> aaa <b>bbb</b> ccc <script>var i;</script> ddd <a href="#">link</a> </macro>And the result is: aaa <b>bbb</b> ccc <script>var i;</script> ddd <a href="#" target="_top" rel="nofollow" link="external">link</a>Please let me know if you have questions. |
This is perfect! Thanks for the addition. :D
|
I'd like to send my thanks as well. The work you've put into NAML, and the support like this is thoroughly appreciated. Just take a look at testing perfection, and you'll see your time and effort has not gone to waste. Cobb's added awesome features across the forum, including a Quick Reply, "Quick Edit", and customizable User "About Me" pages.
http://derflatulator.com/
|
Thanks. It indeed looks amazing.
That's only the beginning of NAML and the potential is huge. We are still working on the UI and also trying to reach perfection on our side :-) |
Free forum by Nabble | Edit this page |