Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
I am running Threads 6.4.2. Is there a way to make the default "email type" HTML. Currently when people register, the default choice in their profile for receiving emails is "Plain Text". I'd like to make the default HTML. Anyone know if this is possible and if so how?

Thanks

(I posted this over on the Threads forum a couple days ago but so far no replies so I thought I'd try here)

Basil

Sponsored Links
Joined: Nov 2000
Posts: 210
Member
Member
Offline
Joined: Nov 2000
Posts: 210
it is one of the config options via the admin control panel config settings.

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
[]Pappy said:
it is one of the config options via the admin control panel config settings. [/]

Don't you mean this option: "Allow users to turn on/off markup or html (if enabled) when they post" ? (which is for the posts, not email)

I also would like to change the default setting for newsletters to HTML, but couldn't find it in the config settings.

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
[]Pasqualist said:
[]Pappy said:
it is one of the config options via the admin control panel config settings. [/]

Don't you mean this option: "Allow users to turn on/off markup or html (if enabled) when they post" ? (which is for the posts, not email)

I also would like to change the default setting for newsletters to HTML, but couldn't find it in the config settings. [/]

No, I am NOT talking about the "Allow users to turn on/off markup or html (if enabled) when they post:. I am talking about the user's preference for whether emails they accept from the admin are in HTML or in Plain Text. Currently it seems to be set to "Plain Text" when someone new registers. I would like to set it to HTML by default. I like to send my users HTML newsletters and if they have that set to plain text, they get all the HTML code in when I send an HTML email (it doesn;t strip out the HTML code, it just shows up as raw code in the email they receive. So, I would like to make the default HTML.

ANy ideas?

Basil

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
In editemail.php search for

Code
  <br />// ------------------------------------<br />// Receive emails in plain text or HTML<br />	if ($emailformat == "HTML") {<br />		$htmlformat = "checked=\"checked\"";<br />	}<br />	else {<br />		$plaintext = "checked=\"checked\"";<br />	}<br />



and replace with

Code
  <br />// ------------------------------------<br />// Receive emails in plain text or HTML<br />	if ($emailformat == "plaintext") {<br />		$plaintext = "checked=\"checked\"";<br />	}<br />	else {<br />		$htmlformat = "checked=\"checked\"";<br />	}<br /><br />

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
If you want to update all users to HTML, you will have to run this query:

update w3t_Users SET U_EmailFormat = 'HTML';

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Thanks a lot Anno!

Joined: Oct 2001
Posts: 139
Journeyman
Journeyman
Joined: Oct 2001
Posts: 139
Anno, I think that's what I was looking for - thanks!
Basil


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)