miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Photo album addon for miniBB Attract your miniBB-community, letting members publish their own photos with the Photo album add-on!
The Other miniBB Community Forum / The Other /
Short link for this topic:

no commas on exporting email adresses

Author andreasm
Forums Member
#1 | Posted: 17 Feb 2007 15:22
I have trouble with exporting mail feature in admin
( bb_admin.php?action=exportemails )

If I want to export mail adresses, I can't see commas between mail adresses. Instead of it, I see a square. I know, that browsers often show a square, if a character isn't in actual character-set.
I also see squares if I change to "tabs" between mail adresses.

But all other commas show fine in my forums...

what's wrong?

using miniBB version 2.0.3a
Author Paul
CEO
#2 | Posted: 19 Feb 2007 04:09 | Edited by: Paul
If you export email addresses ONLY they will be separated by the new linefeed (LF). If you export both usernames AND email addresses, there will be a comma or tab between username and email depending on what you choose.

In what program are you opening exported list so you see "squares"? In Notepad2, it is opened perfectly... In Windows Notepad there will be squares, because in general linefeed only is a Unix format. Windows format is carriage return AND linefeed (CR + LF). So if you want to fix this, look up in bb_admin.php the following line:

if ($_POST['screen']==1) $cont.='<br />'; else $cont.="\n";

change it to

if ($_POST['screen']==1) $cont.='<br />'; else $cont.="\r\n";
Author andreasm
Forums Member
#3 | Posted: 19 Feb 2007 08:46
I opened that list in Firefox 2.0.0.1


Thanks for your suggestion, I will change that code!
Author Paul
CEO
#4 | Posted: 19 Feb 2007 10:29 | Edited by: Paul
I opened that list in Firefox 2.0.0.1
Browser doesn't matter for sure. Try to update the code I've suggested... maybe I'll fix it also in the main core.
Author andreasm
Forums Member
#5 | Posted: 19 Feb 2007 13:53
Now I changed it in that way:

if ($_POST['screen']==1) $cont.=', '; else $cont.="\r\n";


So, I can directly copy that list in browser and paste email adresses into my email client.
Author Paul
CEO
#6 | Posted: 20 Feb 2007 06:16
That could be your custom solution ;-) Anyway it's ok if it works for you.

I thought carefully and will include my first suggestion into official release later.
Author Persian
Forums Member
#7 | Posted: 30 Aug 2008 05:56 | Edited by: Persian
I have new version...!

and it's already in bb_admin like this:

if ($_POST['screen']==1) $cont.='<br />'; else $cont.="\r\n";

but when I export email in notepad appears like this:

email1@yahoo.com
email2@yahoo.com

when i changed to this:

if ($_POST['screen']==1) $cont.='<br />'; else $cont.="\n";

it appears:

email1@yahoo.comemail2@yahoo.com

then I changed like this

if ($_POST['screen']==1) $cont.='<br />'; else $cont.="\n, ";

it's working :

email1@yahoo.com, email2@yahoo.com

is it ok?
Author Paul
CEO
#8 | Posted: 30 Aug 2008 07:57
If it's working for you it's ok ;-)
Author Persian
Forums Member
#9 | Posted: 30 Aug 2008 09:21
Paul:
If it's working for you it's ok ;-)

Thanks!
The Other miniBB Community Forum / The Other / no commas on exporting email adresses Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts