{"id":50,"date":"2008-03-08T14:48:00","date_gmt":"2008-03-08T14:48:00","guid":{"rendered":"http:\/\/www.mohanjith.net\/wordpress\/?p=50"},"modified":"2008-03-08T14:48:00","modified_gmt":"2008-03-08T14:48:00","slug":"filter-module-support-for-premium","status":"publish","type":"post","link":"https:\/\/mohanjith.net\/blog\/2008\/03\/filter-module-support-for-premium.html","title":{"rendered":"Filter module support for Premium module"},"content":{"rendered":"<p>There was a need to put a log in link with destination get variable set if the user is not authenticated and trying to view a premium node. The obvious place to put such content is the &#8220;Premium body text&#8221; in \/admin\/settings\/premium, however one problem was that &#8220;Premium body text&#8221; can only static html, no filters\/format.<\/p>\n<p>I couldn&#8217;t quite believe why filter module was not being made use of there, so I went ahead an made the necessary changes to make it possible to select the filter\/format to be applied to &#8220;Premium body text&#8221;. The patch will add a Input format section to the settings form, that filter chosen there will be applied when the &#8220;Premium body text&#8221; is rendered into a node.<\/p>\n<p>You can see the progress of the patch submitted to drupal.org at <a href=\"http:\/\/drupal.org\/node\/231641\">http:\/\/drupal.org\/node\/231641<\/a>. I just hope the patch will make it to the premium module head. The development of the premium module is nearly stagnant :(, that conserns me.<\/p>\n<div id=\"fb-like\" style=\"\"><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https:\/\/mohanjith.net\/blog\/2008\/03\/filter-module-support-for-premium.html&amp;layout=standard&amp;show_faces=true&amp;width=300&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:300px; height:30px\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>There was a need to put a log in link with destination get variable set if the user is not authenticated and trying to view a premium node. The obvious place to put such content is the &#8220;Premium body text&#8221; in \/admin\/settings\/premium, however one problem was that &#8220;Premium body text&#8221; can only static html, no &#8230; <a title=\"Filter module support for Premium module\" class=\"read-more\" href=\"https:\/\/mohanjith.net\/blog\/2008\/03\/filter-module-support-for-premium.html\" aria-label=\"More on Filter module support for Premium module\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[102,113],"tags":[414,425],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-drupal","category-premium","tag-drupal","tag-premium"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5lUHm-O","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":0,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohanjith.net\/blog\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}