miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
The Other miniBB Support Forums / The Other /   

no commas on exporting email adresses

Author andreasm
Registered
#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 | 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
Registered
#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 | 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
Registered
#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
Registered
#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
Lead Developer
#8 | Posted: 30 Aug 2008 07:57 
If it's working for you it's ok ;-)

Author Persian
Registered
#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 Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums 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 Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB