close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

break the line at the end of that fields output

Thread began 9/26/2011 2:59 am by Mike | Last modified 9/27/2011 12:51 pm by Mike | 2339 views | 7 replies |

Mike

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

Sign in to reply to this post

Jason ByrnesWebAssist

using a <br /> tag should do it, or using \r\n

Sign in to reply to this post

Mike

Nothing... not works

This is the code:

html:
<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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Mike

Originally Said By: Jason Byrnes
  what product are you having this issue with? You have this threads started under the social media toolkit forum.  



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)

Sign in to reply to this post

Mike

This is the full code generated from your Social Media Toolkit:

html:
<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>
Sign in to reply to this post

Dani Chankhour

To add new line use the following instead of br tags:

%0A

Sign in to reply to this post

Mike

Originally Said By: Dani Chankhour
  To add new line use the following instead of br tags:

%0A  



Ok, thanks Dani, now works perfectly!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...