Display different message to different users?
#7
Atm I don''t have much time to look at it but tomorrow I will see what I can do.
Ok broger, try this. I just tested it and it works fine.

$frenchemails = "[email protected]";
if ($frenchemails = substr($frenchemails, -3) == ".fr"{
echo "<p>Bonur bla bla french message </p>";
}else{
echo "<p>Welcome bla bla english message</p>";
}

What I did here, is that I passed the substr() function a test negative number as its second starting index argument. So it will count from the end rather than the begining of the string. I.e. It will show the french message to all your members that have submitted an email address ending in .fr and another message to all your other members who have submitted a different email address.

Atm my free time is very limited. I don''t have time to make it in a plugin. If you can''t implement it yourself, then ask someone else to do it for you. Note that you might have to pay them cos not everyone has lots of free time.
[Image: sig.gif]

Contact me in private only if you need paid help with mybb-related issues. Otherwise, please don''t, unless I invite you to. Thanks Smile
Reply


Messages In This Thread
RE: Display different message to different users? - by babjusi - 2009-07-07, 08:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)