Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon!
Click here to read more
.
miniBB Community Forum
|
Forums
|
File Bank
|
Sign Up
|
Reply
|
Search
|
Statistics
|
Manual
|
miniBB Community Forum
/
Other
/
no commas on exporting email adresses
andreasm
Forums Member
#1
|
Posted: 17 Feb 2007 15:22
Reply
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
Paul
CEO
#2
|
Posted: 19 Feb 2007 04:09
|
Edited by: Paul
Reply
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
";
andreasm
Forums Member
#3
|
Posted: 19 Feb 2007 08:46
Reply
I opened that list in Firefox 2.0.0.1
Thanks for your suggestion, I will change that code!
Paul
CEO
#4
|
Posted: 19 Feb 2007 10:29
|
Edited by: Paul
Reply
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.
andreasm
Forums Member
#5
|
Posted: 19 Feb 2007 13:53
Reply
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.
Paul
CEO
#6
|
Posted: 20 Feb 2007 06:16
Reply
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.
Persian
Forums Member
#7
|
Posted: 30 Aug 2008 05:56
|
Edited by: Persian
Reply
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?
Paul
CEO
#8
|
Posted: 30 Aug 2008 07:57
Reply
If it's working for you it's ok ;-)
Persian
Forums Member
#9
|
Posted: 30 Aug 2008 09:21
Reply
Paul:
If it's working for you it's ok ;-)
Thanks!
Your Reply
»
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.
News & Announcements
FAQ
How To
Bugs
Other
Official Addons and Solutions
Custom Tutorials and Modifications
Master Class
Specific
Re-cycled
Suggestions
Testimonials
qwerty
Online now: Guests - 6
Members - 0
Most users ever online: 214 [11 Jan 2009 10:23]
Guests - 214 / Members - 0
Forums are powered by
miniBB
®