PHP Coding Help 30+ credits

Status
Not open for further replies.

Kraze_T

New Member
Messages
355
Reaction score
0
Points
0
I need a little help on some php coding,

This is a part of a contact form

$txt['smfcontact_form'] = 'Summit Offer Form From ';
$txt['smfcontact_formname'] = "Forum Username: ";
$txt['smfcontact_formemail'] = "Email: ";
$txt['smfcontact_formmessage'] = "Link To Screenshots: \n";

when the email is send it looks like this

Summit Offer Form From Forum
Forum Username:
Email:
Link To Screenshots:


What i would like is when i get the email i get a space between each like so i looks like this

Summit Offer Form From Forum

Forum Username:

Email:

Link To Screenshots:

and also i need some coding, when i get a image link it turns into and image instead of a text link.

i will pay 30-50 credits for the person that can do this for me.
 

Synkc

Active Member
Messages
1,765
Reaction score
0
Points
36
A simple way to do it would be to just add an extra "new line" character before the text,

PHP:
$txt['smfcontact_form'] = 'Summit Offer Form From: ';
$txt['smfcontact_formname'] = "\nForum Username: ";
$txt['smfcontact_formemail'] = "\nEmail: ";
$txt['smfcontact_formmessage'] = "\nLink To Screenshots: \n";
 
Last edited:

Kraze_T

New Member
Messages
355
Reaction score
0
Points
0
thanks Synkc, i gave you 30 credits for that.
Now i need som1 to edit the code so that when i recieve the email with the image link i see an image instead of a link, i will pay 20-30 credits for that!
 

sunils

New Member
Messages
2,266
Reaction score
0
Points
0
Try this.
Use the image tag for it. Since the HTML Code is off here i dont know whether the code will work here.

use the image tag in html, put the url of the image as the src attributes value.

ex:-
<img src=image url >
 

jonathanyaniv

Banned
Messages
178
Reaction score
0
Points
0
do it like this

store the link to the image in a variable

and then in the mail function

have it call <img src = $varname >

not the exact code, but u get the idea. :)
 

Kraze_T

New Member
Messages
355
Reaction score
0
Points
0
i started this post in march, and the thread is dead, i dont need help on this anymore.
LOCKED
 
Status
Not open for further replies.
Top