Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I sent out a message to all my members.

This is a sample of the text:

WELCOME

=======

Welcome to the new software and features at Maritime SDA OnLine.



NEW LINK

========

If you missed the previous email, the new direct link is now


Is there a way or a fix to get rid of the
in each line?

Last edited by Rick; 10/15/2006 11:39 PM.
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
WELCOME
<br />=======
<br />Welcome to the new software and features at Maritime SDA OnLine.
<br />
<br />NEW LINK
<br />========
<br />If you missed the previous email, the new direct link is

Here it is again, as they disappeared when I edited my previous post.

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Also in "Moderator notification of post" emails, and I'm sure most emails. We REALLY need a Text Only / HTML email option in control panel....

Quote
SC has notified you of a post you should look at entitled: 'Re: Mmmm hmmmm....!'

Reason you are being notified:

Being nosy

<div class="ubbcode-block"><div class="ubbcode-header">Originally Posted By: J Geoff</div><div class="ubbcode-body">So..... You gonna come along with me in these things I have to do -- or what. Because if not.... </div></div>

Yes, I'm staying. Now what is it that you want me to do?

(Hey.... I already have Tom Hagen's hairline) <img src="/threads/images/graemlins/default/frown.gif" alt="" height="15" width="15" />



GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Shouldn't be too hard, just have an option to send the post through striptags or not before emailing it wink


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
I am still showing the <br /> in my emails to the users.

WELCOME
<br />=======
<br />Welcome to the new software and features at Maritime SDA OnLine.
<br />
<br />NEW LINK
<br />========
<br />If you missed the previous email, the new direct link is

Is there a way I can correct this?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The notify moderator one is fixed by grabbing the post as the user entered it instead of the marked up post. Basically change line 91 of scripts/donotifymod.inc.php

Current it has

POST_BODY

that should be

POST_DEFAULT_BODY

as for the mass emailer....still working on that.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, currently we are sending in plaintext only. So to fix the mass emailer you can edit line 198 of admin/dosendemail.php.

You'll want to remove this line completely:

$mailbody = str_replace("\n","<br />",$mailbody);

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Rick, why not store one copy and use striptags?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Once copy of what, the post? Because striptags wouldn't allow it to be converted back to it's original input by the user. It would just strip all of the HTML so all of the ubbcode would be gone.

Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
I hate HTML email, so I welcome it!! cool


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
So store the html copy then striptags for things like email or to display, then use the html version where it normally is?

not entirely sure where all the non-html version is utilized, just ideas hehe


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
ok i made the changes now I have this


Parse error: parse error, unexpected T_LNUMBER in /homepages/1/d118328893/htdocs/clubadventist/forum/admin/dosendemail.php on line 3

I am hoping to email this am for my weekly mailing to the members

H E L P


http://clubadventist.com/forums

No longer following the carrot
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you're running 7.0.2 then you don't need to make these changes. The best thing I can recommend is to upgrade to the latest version so you have all of the fixes.

Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
OK I did the upgrade... thanks

NOW I can not email to groups such as Moderators and Admins... seems to me that was fixed in 7.0.1

We are doing a live interview tonight, and would like to email all the moderator reminding them...

Thanks

Stan


http://clubadventist.com/forums

No longer following the carrot

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 591 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)