break the line at the end of that fields output
I'd like to break the line at the end of that fields output (for mail option).… I have tried with <br />, /n, /r… but it's not working.
How to resolve this issue? Any suggestions?
Thanks,
Michele
I'd like to break the line at the end of that fields output (for mail option).… I have tried with <br />, /n, /r… but it's not working.
How to resolve this issue? Any suggestions?
Thanks,
Michele
using a <br /> tag should do it, or using \r\n
Nothing... not works
This is the code:
<div class="icons"> <a href="mailto:?subject=[news] news from Dominio.com&body=News from Dominio.com<br />
<br />
<?php echo $row_rsNewsDetails['title_news']; ?>
<br />
<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"><img src="../webassist/social/icons/mail.png" title="Mail" /></a> </div>
I have tried with <br /> or \r\n but same results... not break the line
what product are you having this issue with? You have this threads started under the social media toolkit forum.
can you send screen shots in a zip archive showing the problem so I can get a better idea.
I'm using the new Social Media Toolkit (2.0 version) and the issue is with mail option (facebook, twitter, print, bookmark, etc. are ok)
This is the full code generated from your Social Media Toolkit:
<div class="wasocial">
<div class="icons"> <a name="fb_share" type="icon" href="#" onclick="window.open('http://www.facebook.com/sharer.php?u=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>', 'Facebook', 'toolbar=0,status=0,width=626,height=436'); return false;" title="Facebook"> <img src="../webassist/social/icons/facebook.png" /> </a> </div>
<div class="icons">
<div id="custom-tweet-button"> <a href="https://twitter.com/share?url=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>" target="_blank"><img src="../webassist/social/icons/twitter.png" alt="Twitter" border="0" title="Twitter" /></a> </div>
</div>
<div class="icons">
<!-- Place this tag where you want the +1 button to render -->
<g:plusone size="medium" count="false" href="<?php echo (((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"></g:plusone>
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
<div class="icons"> <a href="#" onclick="window.open('http://reddit.com/submit?url=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>')"> <img src="../webassist/social/icons/reddit.png" alt="submit to reddit" border="0" title="Reddit" /></a> </div>
<div class="icons">
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
<script type="in/share" data-url="<?php echo (((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"></script>
</div>
<div class="icons">
<script src="http://www.stumbleupon.com/hostedbadge.php?s=4&r=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"></script>
</div>
<div class="icons"> <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+('<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>')+'&title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=550,height=550'); return false;"> <img src="../webassist/social/icons/delicious.png" alt="Delicious" id="delicious" title="Delicious" /></a> </div>
<div class="icons"> <a title="Post to Google Buzz" href="#" onclick="javascript:window.open('http://www.google.com/buzz/post?url=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>', 'GoogleBuzz', 'resizable=0,scrollbars=0,width=690,height=415');"> <img src="../webassist/social/icons/google_buzz.png" /> </a> </div>
<div class="icons">
<script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script>
<a class="DiggThisButton DiggIcon" href="http://digg.com/submit?url=<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>" alt="Digg" title="Digg"></a> </div>
<div class="icons"> <a href="mailto:?subject=[news] news from Domain.com&body=News from Domain.com<br />
<br />
<br />
<?php echo $row_rsNewsDetails['title_news']; ?><br />
<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>"><img src="../webassist/social/icons/mail.png" title="Mail" /></a> </div>
<div class="icons"> <a href="#"><img src="../webassist/social/icons/print.png" onclick="window.print()" title="Print" /></a> </div>
<div class="icons"> <a href="javascript:addBookmark(document.title, '<?php echo urlencode(((!empty($_SERVER["HTTPS"])) ? "https://" : "http://") . $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>')"><img src="../webassist/social/icons/favorites.png" title="Bookmarks" /></a> </div>
</div>
To add new line use the following instead of br tags:
%0A
Ok, thanks Dani, now works perfectly!
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.