Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Need help with my top blocks

Aloittaja Arne221, heinäkuu 15, 2011, 09:17:14 IP

« edellinen - seuraava »

Arne221

As you can see on the picture:

I've the blogs: Home - Help - Search - Admin - Profile - Calender - My messages - Members - Logout
Basically i want to add the block: "Ban List".
How do i do this? I've a perfect running forum, made by a friend. But he left us, so now i'm hopeless. Can anyone explain me STEP for STEP how to add this block "Ban List" which redirect to this site: www.wtb-servers.com/ambrosia-banlist/ban_list.php [nofollow] on the top of my forum?

I've no skills with SMF and still learning. I tried to search the forum for it, but i couldn't find a decent way of explanation.

Thanks for all who read this and who are trying to help me.
Tell me the exact line, which i need to add, and where i need to add that line.

Yours Sincerely,
Arne

BTW. I'm using Blackrain theme and SMF 1.1.14. Perhaps this can be solved by using a new plugin?

Sir Osis of Liver

In index.template.php find this:



// Otherwise, they might want to [logout]...
else
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';




Change to this:



// Otherwise, they might want to [logout]...
else
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';

/// [ban list] button
if ($context['user']['is_logged'])
echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="http://www.wtb-servers.com/ambrosia-banlist/ban_list.php" ><span>Ban List</span></a></li>';




You can move up if you don't want it to be last button.  If you want the button visible to guests, delete the first line.

When in Emor, do as the Snamors.
                              - D. Lister

Arne221

Lainaus käyttäjältä: Krash. - heinäkuu 15, 2011, 11:29:38 IP
In index.template.php find this:


// Otherwise, they might want to [logout]...
else
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';

Change to this:


// Otherwise, they might want to [logout]...
else
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';

/// [ban list] button
if ($context['user']['is_logged'])
echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="http://www.wtb-servers.com/ambrosia-banlist/ban_list.php" ><span>Ban List</span></a></li>';

You can move up if you don't want it to be last button.  If you want the button visible to guests, delete the first line.
Yes, my general knowledge :D. Where can i find this? In FTP?

Arne221

Nvm. I succeeded! Thanks for your help!!!
I appreciate it!

Advertisement: