SUDSOL
| NAML
alpha
|
reply
›
reply
›
new_post
›
send_node_as_email
›
send_node_as_email_to_user
›
html_email_message_with_signature
›
message_with_signature
›
node_message_as_html
›
node_message_as_html
›
message_as_html
›
img_regex
SUDSOL_message_header
Requires subscription, node_page
♦
♦
anonymous_subscription_form
attachments_regex
authenticated_self_profile_header
Requires user
♦
♦
can_delete
Requires user
♦
♦
can_manage_users_and_groups
Requires user
♦
♦
change_email_message
delete_node_recursively_and_redirect
Requires node
♦
♦
digest email
Requires subscription, node_list
♦
♦
digest_html
Requires subscription, node_list
♦
♦
digest_text
Requires subscription, node_list
♦
♦
display_subscriptions
Requires servlet
♦
♦
display_user_subscriptions
Requires servlet
♦
♦
display_user_subscriptions_path
edit_profile
Requires servlet
♦
♦
forum_footer
handle_registration_errors
href_regex
href_regex_wIMG
img_regex
instant_html
Requires subscription, node_page
♦
♦
instant_text
Requires subscription, node_page
♦
♦
is_people_default
is_people_search
js_header_functions
Requires servlet
♦
♦
list_subscribers
Requires node
♦
♦
load_field_values_user
Requires user
♦
♦
menu_manage_users_and_groups
Requires node
♦
♦
message_as_html
Requires message
♦
♦
message_control
Requires node_page
♦
♦
next_topic
people_page_length
people_tabbed_pane
post by email
Requires post_by_email
♦
♦
prev_topic
process_message_html
Requires html_list
♦
♦
process_registration
process_unsubscription
profile_options
raw_subscriber_list
Requires node
♦
♦
register_now_section
registration_fields
save_field_values_user
Requires user
♦
♦
save_post_by_email
Requires post_by_email
♦
♦
searchName
search_form
Requires node
♦
♦
search_page_html
Requires servlet
♦
♦
search_page_length
searched_users_list
Requires node_page
♦
♦
send_subscription_email
Requires subscription
♦
♦
send_unsubscription_reminder
Requires subscription, node_page, servlet
♦
♦
should_get_instant_mail
Requires user, node_page
♦
♦
show_email_warning
Requires servlet
♦
♦
sub_descendants
Requires node
♦
♦
sub_descendants_user
Requires node
♦
♦
subscribe_by_code
Requires servlet
♦
♦
subscribe_user
Requires servlet
♦
♦
subscribe_user_top_digest
Requires servlet
♦
♦
subscribe_user_top_digestl_path
Requires node
♦
♦
subscriber_page_length
Requires servlet
♦
♦
subscription_form_user
Requires node_page, user
♦
♦
subscription_msg
subscription_msg_user
subscription_msg_user2
subscription_removed_user
Requires servlet
♦
♦
subscription_removed_user_url
subscription_saved_user
Requires servlet
♦
♦
subscription_saved_user2
Requires servlet
♦
♦
subscription_saved_user_url
subscription_saved_user_url2
subscription_user_row
thread_expiration_days
topic_controls_right
Requires forum_topic_namespace
♦
♦
topic_html
Requires servlet
♦
♦
unsub_descendants
Requires node
♦
♦
unsubscribe_user
Requires servlet
♦
♦
unsubscribe_user_all
Requires servlet
♦
♦
unsubscribe_user_all_path
Requires node
♦
♦
unsubscribe_user_path
Requires node
♦
♦
unsubscription_msg_user
updated_notice
Requires node
♦
♦
user email changed
user_from_get
user_link
Requires user
♦
♦
user_nodes
Requires servlet
♦
♦
user_nodes_path
user_request
user_response
validate_registration_form
site_style
img_regex
NAML documentation
Watch a video
Close
Save Changes
Cancel
Edit this macro
Remove macro
Usages of this macro
You must login as an administrator of SUDSOL.
If you are not the administrator, you can
create your own Nabble app
and customize its NAML code!
Email
Example: johnsmith@domain.com
Password
Forgot your password?
<override_macro name="message_as_html" requires="message"> <n.if.either condition1="[n.is_deleted/]" condition2="[n.is_deactivated/]"> <then> <b><t>CONTENTS DELETED</t></b> <div class="weak-color"><t>The author has deleted this message.</t></div> </then> <else> <n.set_var. name="output"> <n.as_html_list.process_message_html /> </n.set_var.> <n.if.is_imported_mail> <then> <n.set_var. name="output"> <n.remove_unsubscription_link.var name="output" /> </n.set_var.> <n.comment> PART 1: Copy the attachment links to a variable </n.comment> <n.set_var. name="attachments"> <n.regex. text="[n.var name='output'/]" pattern="[n.attachments_regex/]"> <n.if.find> <then.found/> </n.if.find> </n.regex.> </n.set_var.> <n.regex. text="[n.var name='attachments'/]" pattern="[n.href_regex/]"> <n.loop.> <n.set_var. name="thumb_url"> <n.regex. text="[n.current_element/]" pattern="[n.href_regex_wIMG/]"> <n.if.find> <then > src= <n.regex_replace_all text ="[n.current_element/]" pattern="href=" replacement =''/> height="250px" \> </then> <else> src="http://forum.sudsol.org/images/icon_attachment.gif" </else> </n.if.find> </n.regex.> </n.set_var.> <n.set_var. name="attachments"> <n.regex_replace_first text ="[n.var name='attachments'/]" pattern="[n.img_regex/]" replacement ="[n.var name='thumb_url'/]"/> </n.set_var.> </n.loop.> </n.regex.> <n.comment> PART 2: Rebuild the "output" variable by placing the attachments at the top. At the end, we remove the old attachments so that we don't show duplicate links. </n.comment> <n.set_var. name="output"> <div id ="attachments"> <n.var name='attachments' /> </div> <br/> <n.regex_replace_all text ="[n.var name='output'/]" pattern="[n.attachments_regex/]" replacement ='' /> </n.set_var.> </then> </n.if.is_imported_mail> <n.var name="output" /> </else> </n.if.either> </override_macro> <macro name="attachments_regex"> <![CDATA[<!--start-attachments-->.*<!--end-attachments-->]]> </macro> <macro name="img_regex"> <![CDATA[src="([^"]*).(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)" >]]> </macro> <macro name="href_regex"> <![CDATA[href="([^"]*)"]]> </macro> <macro name="href_regex_wIMG"> <![CDATA[href="([^"]*).(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)"]]> </macro>
↓
Overrides administrator change
...
in
message_as_html.naml
77
78
79
<macro name="img_regex">
<![CDATA[src="([^"]*).(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG)" >]]>
</macro>
Free forum by Nabble
Edit this page