miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
The Other miniBB Support Forums / The Other /  
 

no commas on exporting email adresses

 
Author andreasm
Partaker
#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
Lead Developer 
#2 | Posted: 19 Feb 2007 04:09 
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
Partaker
#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
Lead Developer 
#4 | Posted: 19 Feb 2007 10:29 
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
Partaker
#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
Lead Developer 
#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
Partaker
#7 | Posted: 30 Aug 2008 05:56 
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
Lead Developer 
#8 | Posted: 30 Aug 2008 07:57 
If it's working for you it's ok ;-)

Author Persian
Partaker
#9 | Posted: 30 Aug 2008 09:21 
Paul:
If it's working for you it's ok ;-)
Thanks!

The Other miniBB Support Forums / The Other /
 no commas on exporting email adresses
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑