Hello Guest
No Avatar
Sign In to Remove
Posts: 
17
Reputation: 
3
Posted: July 19, 2013, 12:54 AM  -- Last Edit: July 19, 2013, 3:37 AM by MLM
  • Group: Member
Hi again,

Im trying to install the custom greeting mod and the edit I need to make is on the index.template.php file but I cant find the required code to do this, would you be able to give me a hand?

This is the change it says needs to be made

(Find)

Code: [Select]
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
(Replace)

Code: [Select]
<li class="greeting">', $context['greeting'], '</span></li>


Posts: 
400
Reputation: 
20
Posted: July 19, 2013, 3:38 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
You probably want it in the top bar where it says "Welcome, Guest. Please login or register." at the top.

Just find .top_bar in the index and place it appropirately. You probably don't want the <li> elements so just use:
Code: [Select]
', $context['greeting'], '
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
17
Reputation: 
3
Posted: July 19, 2013, 5:48 PM
  • Group: Member
Thanks, it worked and its looks great!  ;D