Advertisement:

relocate "member info panel"

Aloittaja Kat9119, syyskuu 15, 2011, 05:17:00 IP

« edellinen - seuraava »

Kat9119

Here is my forum: http://halloween.shiversofhorror.com/forum/

At the very top I have a banner/logo and beside that on the other side I have the member panel area. How would I go about scrapping the logo entirely...and moving the member info panel over to where the logo was...making that box bigger? Its been awhile since I've edited this theme and I don't remember where much is located.

I want to do this because I'm going to place the entire SMF forum into a table to make it look like its part of my WordPress site so I won't need the logo

Here is that part of my index.template.php...I've tried moving stuff around but I keep getting template errors

<div id="header-r">
<div id="header-l">
<div id="header"> <div id="logo"><a href="http://halloween.shiversofhorror.com/blog/"><img src="http://halloween.shiversofhorror.com/forum/Themes/goldmoon11x/images/banner.jpg"></a></div>

<div id="memberdet">';

//Say hello to member
if ($context['user']['is_logged'])
echo '
', $txt['hello_member_ndt'], ' <b>', $context['user']['name'], '</b>,';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ' <a href="', $scripturl, '?action=pm"> ', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

// Show unread replies to members.
  if ($context['user']['is_logged'])
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'] ,'</a><br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'] ,'</a>';

// Show the total time logged in?
if ($context['user']['is_logged'])
echo ' <br />
  ', $txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['is_logged'])
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['is_logged'])
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

  // But, let's always show minutes - Time wasted here: 0 minutes ;).
if ($context['user']['is_logged'])
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '';


// Otherwise they're a guest - so politely ask them to register or login.
if ($context['user']['is_guest'])
echo '
', $txt['welcome_guest'] ,'', $txt['welcome_guest_activate'] ,'<br />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="', $txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>';
echo '
</div>
</div>
  </div>
</div>';


UPDATE: In my CSS I was able to swap the logo and member panel and now i can just erase the code for the logo in index.template.php ..I THINK. But I don't know if this is "bad" to do...if there is a cleaner way of doing it

ARG01

You should be able to simply remove the logo section in index.template and then make adjustments in index.css to get the correct position of the userarea.

Make sure to keep a backup of your files before making any changes.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

Advertisement: