Hello,
I am just starting to build my first ever webpage...so I am very new at this.
I was looking to change the default message is simplenews "Stay informed on our latest news!" to something else...and thought it would be easy.
There is one topic in the simplenews issues page...but the solution described must be for a different version...as I don't see what they are describing.
I also noticed in the simplenews-block.tpl.php file it says this:
" Copy this file in your theme directory to create a custom themed block.
* Rename it to simplenews-block--.tpl.php to override it for a
* newsletter using the newsletter term's id.
*"
So I want to change the default message...
What is the newsletter's term ID? Would it be the name I gave it?
Thank you for the help...this community is great!
Comments
Following. Can't find this
Following. Can't find this in the settings for 6.x-1.0-rc6
_
I don't have simplenews installed anywhere to check, but if the phrase is provided via the t() function, you can use the core locale or contributed stringoverrides modules.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Nevermind. Found it. It's
Nevermind. Found it. It's in the block configuration settings for that newsletter. I missed it when I first looked for it there.
=-=
I presume you are talking about the text in the block provided by simplenews.
go to administer -> modules
click the configure link for the newletter in question
edit the text
save the form
done
simplenews-block-tpl.php
You can copy the file sites/all/modules/simplenews-block-tpl.php to your themes/[theme-name] directory and modify these variables for the simplenews signup block.
<?php
// $Id: simplenews-block.tpl.php,v 1.1.2.5 2009/01/02 11:59:33 sutharsan Exp $
/**
* @file
* Default theme implementation to display the simplenews block.
*
* Copy this file in your theme directory to create a custom themed block.
* Rename it to simplenews-block--<tid>.tpl.php to override it for a
* newsletter using the newsletter term's id.
*
* Available variables:
* - $subscribed: the current user is subscribed to the $tid newsletter
* - $user: the current user is authenticated
* - $tid: tid of the newsletter
* - $message: announcement message (Default: 'Stay informed on our latest news!')
* - $form: newsletter subscription form *1
* - $subscription_link: link to subscription form at 'newsletter/subscriptions' *1
* - $newsletter_link: link to taxonomy list of the newsletter issue *2
* - $issuelist: list of newsletters (of the $tid newsletter series) *2
* - $rssfeed: RSS feed of newsletter (series) *2
* Note 1: requires 'subscribe to newsletters' permission
* Note 2: requires 'view links in block' or 'administer newsletters' permission
*
* Simplenews module controls the display of the block content. The following
* variables are available for this purpose:
* - $use_form : TRUE = display the form; FALSE = display link to example.com/newsletter/subscriptions
* - $use_issue_link : TRUE = display link to newsletter issue list
* - $use_issue_list : TRUE = display list of the newsletter issue
* - $use_rss : TRUE = display RSS feed
*
* @see template_preprocess_simplenews_block()
*/
$form = "<div id=\"newsletter_title\"><h4>Inside Interactive Marketing E-Newsletter</h4>" . $message . $form;
?>
<?php if ($use_form): ?>
<?php print $form; ?>
<?php elseif ($subscription_link): ?>
<p><?php print $subscription_link; ?></p>
<?php endif; ?>
<?php if ($use_issue_link && $newsletter_link): ?>
<div class="issues-link"><?php print $newsletter_link; ?></div>
<?php endif; ?>
<?php if ($use_issue_list && $issue_list): ?>
<div class="issues-list"><p>Test drive the most recent issues:</p><?php print $issue_list; ?></div>
<?php endif; ?>
<?php if ($use_rss): ?>
<?php print $rssfeed; ?>
<?php endif; ?>
</div>
http://www.hydeinteractive.com/
when i follow the
when i follow the instructions
* Copy this file in your theme directory to create a custom themed block.
* Rename it to simplenews-block--<tid>.tpl.php to override it for a
* newsletter using the newsletter term's id.
It doesn't matter if i name the file simplenews-block--14.tpl.php , simplenews-block-14.tpl.php, simplenews-block-.tpl.php or simplenews-block.tpl.php (14 is the newsletter id).
Any ideas?
copied block.tpl.php not used
I know this might be too little too late, but in case it might still help or help another: I had a similar problem until I flushed the cache (on Drupal 6: ...admin/settings/performance -- bottom of page, click button labeled "Clear cached data").