Closed (fixed)
Project:
Simplenews
Version:
6.x-1.0-rc6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2005 at 13:16 UTC
Updated:
2 Apr 2010 at 00:10 UTC
Currently, it seems possible to show the simplenews subscription form only in a block. It would be great if it could be shown in the main content area also, just like the user registration form which can be shown both in a block and in the body area.
For example, I can alias "user/register" to "register" and the registration form will show up in the main content area of the register page.
The user registration form can be shown both in a block and in the main
Comments
Comment #1
venkat-rk commentedSorry, please ignore the last line.
Comment #2
DriesK commentedThis is already possible :-) read this issue.
What you want is option number 5:
Use _simplenews_subscription_manager() if you want the form returned and not printed
Use _simplenews_recent_newsletters($tid, $count, $title) if you want the list returned and not printed
Please close this issue after you've read it and are satisied with the answer.
Comment #3
DriesK commentedI case you don't know how to use the API:
create new node, set the input filter to PHP, and add this code:
Above and below it, you can add as much text/html as you want.
Comment #4
venkat-rk commentedWonderful. Thank you for such a prompt response.
And, yes, I wouldn't have know how to use the API, so it is great that you showed me the way to do it :-)
Comment #5
venkat-rk commentedComment #6
davidshaw commentedI know this is an old issue but comes up high on google.
To print a Simplenews 6.x-1.0-rc6 subscribe form in a node or block set input to php and drop this in:
print theme('simplenews_block', 8);Make sure the 8 above matches the tid for your newsletter's taxonomy term id.
Comment #7
ryank76 commentedI tried that code above and got this error:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'simplenews_block_form_2' was given in /home/content/b/r/o/brooklynnet/html/grrrl/includes/form.inc on line 366.