Recent Topics

1 Apr 30, 2005 12:02    

Is there a way to add a link to the entry on the main page that will allow for users to email the entry to a friend? Here is an example (it is a Wordpress example) and am hoping that B2E has this ability...

http://www.glamdring.org/wp/

Thanks!

W. Hil

3 May 01, 2005 15:23

Hey Todd,

Thanks for the link!

I've been monkeying with the script there for a couple of days and hope to have it integrated into a b2evolution-specific solution (with install instructions & some better-than-original features) in a couple more days.

Well, maybe MORE than that, because my 1.5-year-old daughter is a pretty powerful deterrant for getting any computer stuff accomplished. ;)

Well ... whenever it is, I'll post a link back here!

-Scott

5 May 01, 2005 22:08

Interesting! Thanks for the link. :D

In a way, I'm glad that I didn't find that one first. I think the one I've ended up with is better in 4 ways:

1) Doesn't require any mods/changes to the b2evo database.
2) Provides some basic error-checking to determine if all fields are filled correctly (as a comparison, if you just type "adlkjfa" into the other, it fires off an email).
3) It will fire off an BCC email to you, so you know who's sending what, to whom and what they've said about it.
4) It's an easy 3-step install: 1-line java function in _main.php, a 1-line link where you want on the page & 1 PHP file.

Guess there's always room for a better mousetrap & now folks have a *choice*! ;)

-stk

The basics are done, just need to make a write-up for it.

6 May 06, 2005 04:23

I finally have both the code and the instructions together for:

[url=http://www.randsco.com/index.php/2005/05/01/email_blog_entry]Email blog entry[/url]

If you're interested in adding a link to your blog entries that allow visitors to "email blog entry" to a friend, then you should have a peek.

Some of the features include:

1) A single PHP file (no DB mods, no security risk, no hacking)
2) Toggle to email yourself whenever the feature is used (IP address of visitor, blog entry sent, sender's email, recipient's email & whatever comments - if any- accompany the email)
3) Error checking to validate field entry (email addresses, etc)
4) Graceful degredation if JavaScripting is turned off.
5) Ample CSS elements which enable customization to your site theme.
6) Added 15-May-05 - Ability to include text version of blog entry along with a link (checkbox option).
7) Added 15-May-5 - Support for multiple recipient email addresses

Hope this is helpful.

-stk

7 May 06, 2005 10:20

I'm pretty sure your blog won't accept php code, so I'll post this here.

A "possible" workaround for including the text with the email.

1/ Create a basic skin that literaly just outputs the post

2/ Add this to your email thing

<?php
$handle = fopen("---- permenant link to entry --- &skin=emailskin", "r");
$contents = '';
if($handle)
{
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
}
$message.=$contents;
?>

It's a tad of a cheat, but at least you end up with the formatted version of the post ;)

¥
?>

8 May 06, 2005 15:15

stk wrote:

I finally have both the code and the instructions together for:

[url=http://www.randsco.com/index.php/2005/05/01/email_blog_entry]Email blog entry[/url]

If you're interested in adding a link to your blog entries that allow visitors to "email blog entry" to a friend, then you should have a peek.

Some of the features include:

1) A single PHP file (no DB mods, no security risk, no hacking)
2) Toggle to email yourself whenever the feature is used (IP address of visitor, blog entry sent, sender's email, recipient's email & whatever comments - if any- accompany the email)
3) Error checking to validate field entry (email addresses, etc)
4) Graceful degredation if JavaScripting is turned off.
5) Ample CSS elements which enable customization to your site theme.

Hope this is helpful.

-stk

Wonderful feature Scott! It works very well...

Thanks,

W. Hill

9 May 16, 2005 04:15

I'm just bumping this to let folks know that I've added two new capabilities to the "[url=http://www.randsco.com/index.php/2005/05/01/email_blog_entry]send blog entry by email[/url]" utility:

1) The ability to send a text-copy of the blog entry, along with the link to the full HTML entry (checkbox option).
2) Support for multiple recipient email addresses.

Cheers,

-stk

PS - A special nod goes to ¥åßßå for all his help with some of the coding! Thanks, mate. :)

10 Jun 27, 2005 02:56

First, thanks very much for this great addition to b2evo. It's something I asked about a month or two ago and your solution is excellent.

Quick question for you: When I get the forwarded story or the autoresponder at my AOL e-mail address, the link does not show up as a link, but just as text. When I get it at another address it shows up as a link.

I was wondering if there were a way in friend.php to specify sending the link as a link rather than assuming the e-mail client will convert text starting with http:// to a link.

Or any other ideas on how to remedy that?

[I notice that if I send myself an e-mail from AOL to AOL where I put in a link but don't hit space or enter after typing it so that it shows up as text rather than a link in the outgoing e-mail it shows up as text only in the arriving e-mail. So there may be nothing I can do about it....)

Thanks again,
Rossputin

11 Jun 27, 2005 05:47

Ross,

I sent you a private email, discussing some alternative coding options. I've tested them with both Yahoo and gmail accounts (both of which convert seem to convert anything [http://blah ... blah] to a link.)

You can try wrapping the lot in a <a href=" ... "></a> tag, but when I did that, Yahoo and gmail both diligently converted only the [http://blah ... blah] portion to a link].

Good luck. I hope one of the options I presented works, but if it doesn't, reply either here or in an email, and I'll continue to work with you to find a solution.

Cheers,

-stk

12 Jun 27, 2005 21:27

Ross ...

I don't have AOL so I can't test it, but if you can find out WHAT AOL DOES accept as a "link", let me know and I'm sure that I can whip something up.

But, keep in mind that the friend.php script is meant for use by all visitors and because everyone uses a different email client(s) ... then the results will likely vary. The BEST thing to do is present a universally accepted link (which I've done with the http://blah blah), which works for a vast majority of clients. You would have to anticipate the email client by examining the "TO" address and scripting specialty code for certain domains (like whoever@aol.com).

People using AOL may not get the link in "link" form, but they can still get to the site by cutting and pasting.

13 Jun 27, 2005 22:35

it might be as simple as adding a space or carriage return after the URL... :)

14 Jul 10, 2005 21:54

I've implimented Scotts excellent solution on Topangas skin at http://www.teesblog.co.uk which works great

I've also implimented it here http://neukol.org.uk/teesblog/index.php/identity hwere it also works but NOT if I try to add the text of the blog in the email

I get this error

MySQL error!

You have an error in your SQL syntax near '' at line 6(Errno=1064)

Your query:
SELECT ID, post_author, post_issue_date, post_mod_date, post_status, post_locale, post_content, post_title, post_urltitle, post_url, post_category, post_autobr, post_flags, post_wordcount, post_comments, post_renderers, cat_blog_ID FROM teesblog_posts INNER JOIN teesblog_categories ON post_category = cat_ID WHERE ID = 

I don't get the error in the other blog - any ideas


Form is loading...