How to change Newsletters UnsubscribeLink text - asp.net

I am using macro as {%UnsubscribeLink %} to unsubscribe from newsletters.
I want to change the text of this link when a user received newsletters.
This time it is shown as 'Unsubscribe'. How to change this text value?

I would recommend using a different macro that returns only the unsubscription URL and create the unsubscription link text on your own.
Exact macro depends on Kentico Version. This is surely working on v11/v1.
YOUR TEXT
More complex
<td>
We hope you found this message to be useful.
However, if you'd rather not receive these emails in the future,
please <a href="{% EmailFeed.UnsubscribeFromEmailFeedUrl #%}" target="_blank"
style="color: #000000;">unsubscribe</a> from this newsletter.
You can also unsubscribe from all marketing emails.
</td>
Link to official documentation

Related

Why whatsapp click to chat link on wordpress redirect to 'send to' on whatsapp instead of the person's chat?

simple task I supposed but maybe I missed something. I have added a 'click to chat' whatsapp link to my whatsapp icon on a wordpress website, but it redirects the user to a 'send to...' page instead of the individual's phone number's chat page. Did I missed anything here?
Whatsapp Icon on website linking to chat, once clicked the whatsapp icon, it redirects to 'send to...' page on whatsapp.
I have tried all these links below but they all redirect to the same 'send to...' on whatsapp:
https://wa.me/0123456789
Wa.me/0123456789
whatsapp://send?phone=0123456789
https://api.whatsapp.com/send?phone=0123456789
https://wa.link/xxxxx, where x is the unique code
*mobile number is just an example
header.php
removed
index.php
removed
UPDATED SOLUTION
Here's the documentation and answer for those who are using Porto theme and encounter the same whatsapp problem. Big thank you to the brilliant #Aneesh for helping.
https://www.portotheme.com/wordpress/porto/documentation/faq/how-to-fix-whatsapp-number-and-clicking-to-take-to-whatsapp-chat-on-header-and-footer/
I just checked, the href link starts with: whatsapp://send?text
Which asks for SEND TO option on the mobile screen. What you need to do is, remove whatsapp://send?text and just keep it as: https://wa.me/message/ASDFASDFASDF
In short, your current code looks like:
<a rel="nofollow" class="share-whatsapp" style="display:none" href="whatsapp://send?text=https://wa.me/message/ASDFASDFASDF" data-action="share/whatsapp/share" title="WhatsApp">WhatsApp</a>
How it needs to look like
<a rel="nofollow" class="share-whatsapp" style="display:none" href="https://wa.me/message/ASDFASDFASDF" data-action="share/whatsapp/share" title="WhatsApp">WhatsApp</a>
Try this, and do let me know if you've any more issues.
Note: For the sake of privacy, I've changed the letters are /message/ to ASDFASDFASDF, please replace it with original link.

how to embedding google doc link in email sent by airflow

I am using the below emailoperator in airflow to send emails that can be embedded with google sheet link nicely. however, i only can receive the email with congrats.
email = EmailOperator(
task_id='email',
to='aa#gmail.com',
subject='test dag done',
html_content="Congrats.<iframe src='https://docs.google.com/presentation/d/Ts94ZwN11UAyY/edit?usp=sharing' noborder='0' width='95%' height='600' scrolling='yes' seamless></iframe>",
dag=dag,
trigger_rule=TriggerRule.ONE_SUCCESS
)
Not sure how to embed the google link in the email?
You are actually trying to embed an iframe into a mail - which is NOT supported by most clients/mail providers, i.e. mailchimp states:
An (inline frame) is an HTML element that embeds content from
one website into another. Inline frames are often used to insert
advertisements, video, audio, or forms in other websites. Iframes
often contain scripts, so most email clients block them.
Instead, link to the content you want to display in your campaign.
If you just want to embe a link, and not the document itself, you can use <a href>, i.e.
<a href='https://docs.google.com/presentation/d/Ts94ZwN11UAyY/edit?usp=sharing'>Google Doc Link</a>

How to provide a convenient link to next post in Ghost Framework (Blog)

Is there a way to conveniently provide a link to the next post in the Ghost Blogging Platform?
How to do that?
Ideally it would be dynamic. Therefore if I change the title of the next post I would not have to go to the post and manually change it there since it will know the details of the next post has changed.
You can use the {{next_post}} helper to do that. Inside this helper, you can use the usual post attributes, like the url or title.
Here's the implementation from my blog theme:
<div class="next-post">
{{#next_post}}
Next <i class="fa fa-angle-double-right"></i>
{{title}}
{{/next_post}}
</div>
Here's more in the documentation: https://themes.ghost.org/docs/prev_next_post

how to add captcha in form created in wordpress's text editor

I have created a form using wordpress's visual/text editor. I want to include a captcha in this form. But i dont know how to do it. In wordpress, A really simple captcha plugin is already installed but it works with contact form 7 forms only. i tried to copy the [captchac captcha-1] [captchar captcha-1] but it didn't work. Please help me
here is the form
<form name="profile" method="post" action="handler.php">
<input type="text" name="customer_name" placeholder="Please enter your namne"/>
<input type="file" name="picture" required/>Please select a picture
</form>
i'm not 100% sure.
a captcha is a dynamic element which needs some sort of server communication to be safe. so your server needs to know whats inside the captcha image and needs to check the user input and the captcha value after submitting the form.
so, if you have a working captcha service you could add it like
<img src="//domain.com/path-to-capture-service/" />
but creating a form in wordpress text editor is not the best idea, i would recommend to use a plugin or create a custom template.
You can use the Contact Form 7 and by using the Short code you can easily implement in your text area or WordPress Editor.

Twitter share button doesn't forward custom text

I'm working on a website with twitter share option for each specific product.
I followed twitter API instructions for tweet-sharing, and everything works fine except custom display of text. For example I want user to tweet like this:
"What do you think? Should I buy this? http://url.etc #mywebsite"
but all I get when user tweets is the link:
http://url.etc
This is the code:
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<a target="_blank" href="https://twitter.com/share" data-url="http://bit.ly/twitter-api-announce" data-via="testtest" data-text="What do you think? Should I buy this? " data-count="none" data-counturl="http://groups.google.com/group/twitter-api-announce" >TWITTER</a>
The problems seems to be with data-text option.
Any experience on this? Ideas?
Thanks
On Wordpress I just used Tweet
Works like a charm!
simply use a link like :
tweet
Just change what is between [] (and remove them)
note that everything have to be RFC (with weird chars such as 'space' replaced by %20 etc.)
twitter propose a nice page to make the buttons
https://about.twitter.com/resources/buttons#tweet
But my solution avoid the javascript to force the design of the buton
You can use this:
<a href='https://twitter.com/share?url=google.com&text=Signup>Tweet</a <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','twitter-wjs');</script>
Confirm that you have included the correct twitter scripts . Better still, generate your tweet button code from the twitter developer interface here ..
https://about.twitter.com/resources/buttons
If you would like to modify the tweetbutton content on the fly ...e.g after page load, you will have to creat and insert your tweet button into the html DOM dynamically .
Some guidance on that can be found here .
http://denvycom.com/blog/twitter-button-with-dynamic-custom-data-text-message/
Hopefully this is helpful.
You have to encode your text before inserting it in the link. The correct procedure is:
Encode the text with an online tool like this one
Put the result inside an HTML link (as suggested by #FenixAoras): Share on Twitter
If you generate your HTML with php, you can use the urlencode function directly in your script:
echo "Share on Twitter";
If you are using WordPress, the best way is creating a shortcode, beacuse with it you can use also the native functions of WordPress:
function tweet_this($atts, $content = null)
{
extract(shortcode_atts(array(
"text" => ''
), $atts));
return "<a href='https://twitter.com/intent/tweet?text=".urlencode( $text." - ".get_the_title()." - ".get_permalink() )."'>Share on Twitter</a>";
}
add_shortcode( 'tweet_this', 'tweet_this' );
(Note: the code above is just a lead, you can expand it and you have to test)
Usage:
[tweet_this text="my custom text with #hashtag and #Mention"]

Resources