General Community > Scripting Help
Show HTML after user login
merlyn333:
Hi folks:
I would like to know what shoud be the condition I shoud write to show an HTML after the user logs on.
I imagine that it should be something like this:
--- Code: ---<?php
// if the user is logged on
if ($variable_1['something'] == $variable_2['something']) {
echo '<p>Hello</p>';
}
?>
--- End code ---
Could you help me?
Arantor:
Where exactly do you want to display it?
merlyn333:
Hi Arantor:
I have palced the tab that is showed in the imgae below:
http://awesomescreenshot.com/046aqj3e1
... in the file:
Themes/default/index.template.php
... in the line:
207
Arantor:
And what code are you using, and where is it? (this is what I really wanted to know, I know you've told me what file, but where in the file is actually kind of important for this)
merlyn333:
(...) Here is:
http://db.tt/qtaIN7Jl
Navigation
[0] Message Index
[#] Next page
Go to full version