Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:40 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: HTML and PHP in Settings Page. And Welcome Mail.
PostPosted: Fri Jan 19, 2007 5:00 am 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
two other questions:

1. i have tested the "join" function. i'm getting the infos in the database, but it's not sending the e-mails. i thought about it and couldn't remember giving it any pop user or password info, only to the database. how does it send e-mails?

2. in the settings area, can we use script other than in the thank you mail? I would like to display database information in other settings, like the thank you message.

3. can the thank you mail and the text in the thank you message page be made with HTML? I'd like to link in both of them.

4. do you have a suggestion for making the information that people send somewhat secure?

thanks!

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject: Forget the one about the mail not sending
PostPosted: Fri Jan 19, 2007 5:02 am 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
Forget the one about the mail not sending. I figured that one out. The rest, though. Thank you.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 19, 2007 4:09 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
2. I'm not sure exactly what you mean, but you can't add any other information in the thank you email from the database other then the information already mentioned.

3. Hmmm, yes if you edit join.php a little bit hten it should work (I have never tested it). Find this code in join.php:
Code:
         mail($useremail,"Your password",$message,$from);

Replace it with this code:
Code:
   $newmessage = "This is a multi-part message in MIME format.

------=_NextPart_000_004E_01C6871C.3855D0E0
Content-Type: text/plain;
   charset=\"iso-8859-1\"
Content-Transfer-Encoding: quoted-printable


------=_NextPart_000_004E_01C6871C.3855D0E0
Content-Type: text/html;
   charset=\"iso-8859-1\"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D\"text/html; =
charset=3Diso-8859-1\">
<META content=3D\"MSHTML 6.00.2900.2873\" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>$message";
   $newmessage .= "</BODY></HTML>\n\n------=_NextPart_000_004E_01C6871C.3855D0E0--";
mail($useremail,"Your password",$newmessage,"$from\nMIME-Version: 1.0\nContent-Type: multipart/alternative;\n   boundary=\"----=_NextPart_000_004E_01C6871C.3855D0E0\"");
Now you should be able to send HTML emails.

4. Exactly how do you mean.

/Andreas

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Fri Jan 19, 2007 11:26 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
2. in the settings area, can we use script other than in the thank you mail? I would like to display database information in other settings, like the thank you message.
bylla wrote:
2. I'm not sure exactly what you mean, but you can't add any other information in the thank you email from the database other then the information already mentioned.

-OK. for instance, i collect a few other variables on the join section. I would like to be able to draw from my database in the:
    1. password page
    2. incorrect password page
    3. thank you for joining text
    4. perhaps anywhere on a password protected page on the site :) if there is code to draw from the database, perhaps a cheat sheet?


3. can the thank you mail and the text in the thank you message page be made with HTML? I'd like to link in both of them.
bylla wrote:
3. Hmmm, yes if you edit join.php a little bit hten it should work (I have never tested it). Find this code in join.php . . .Replace it with this code . . .

thank you thank you thank you. you rock.



4. do you have a suggestion for making the information that people send somewhat secure?
bylla wrote:
4. Exactly how do you mean.

i want to make sure that passwords are not sent through the mail naked. OK, when people are sending their information - their login, password, and other things that I ask for on the join page - is there a way to add any code that either gets the little "encrypted page" icon to flash on, or to at least have the same effect? perhaps third party code . . .

as always, thanks for the help.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Sat Jan 20, 2007 9:23 am 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
2. In the login, logout and invalid login pages you can't add any information from the database. In any of the password protected pages you can add any data you like. If you get the data fromthe user table (where usernames, emails, passwords etc are stored), then do like this to for example show the email address of the user:
Code:
<? echo mysql_result($user_info,0,"email"); ?>

If you need to show information from another table, then you first have to run the MySQL query:
Code:
<? $table_info = mysql_query("SELECT * FROM tablename WHERE 1");
echo mysql_result($table_info,0,"field name");
?>


4. To do that you need a SSL certificate. You can get one or read more about that at eXavier.com. I suggest you ask your web host if they can install a SSL certificate for you if you get one.

A SSL certificate on your web hosting account will look like this: secure.xaviermedia.com

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Registered users: xlreariasd


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]