PDA

View Full Version : Need a little PHP help please


HMBeaty
04-17-2011, 09:33 AM
Not sure what I'm doing wrong here lol. But reworked my code in my file a bit and now I can't seem to figure out how to get the BB code to parse. But, basically, this is all being done by automatic thread creation.

This is what I had before:
$contactemailt = "E-mail: {$vbulletin->GPC['contactemail']}";And this is what I have now:
$tappemail = $vbphrase['usml_staffapp_appemail'];...along with
$tappemail {$vbulletin->GPC['contactemail']}So, my question is, how can I add the BB code tags back to it? lol

To be more specific, I want $tappemail to be parsed in bb code

The ways I've tried were
$tappemail {$vbulletin->GPC['contactemail']}
And
$tappemail = ""$vbphrase['usml_staffapp_appemail']"";
Which definately failed lol (I was getting a white screen)

Boofo
04-17-2011, 09:38 AM
Add the html equivalent to the text in the usml_staffapp_appemail phrase.

<b>E-mail:</b>

if that is in the phrase.

HMBeaty
04-17-2011, 09:42 AM
Wouldn't that just come out in the thread as "<b>E-mail:</b>" with HTML disabled?

Boofo
04-17-2011, 10:04 AM
Wouldn't that just come out in the thread as "<b>E-mail:</b>" with HTML disabled?

No, it will be fine. Try it and you will see. ;)

HMBeaty
04-17-2011, 10:14 AM
Just did, came out as
<b>Email:</b> xxxxxx@xxxxxxxxx.com

--------------- Added 1303039389 at 1303039389 ---------------

Ok, just made 2 phrases for each one. 1 with bbcode (thread) and 1 without (email), so thats fixed for now lol

Boofo
04-17-2011, 10:42 AM
Did you edit the phrase itself and add the bold tags?

HMBeaty
04-17-2011, 10:58 AM
Did you edit the phrase itself and add the bold tags?
Yes

Boofo
04-17-2011, 11:36 AM
Where were you trying to use the phrase that showed the code?