Kaynak kodu bulamıyorum :(

Başlatan Harvest, 23 Ara 2018, 15:32

« önceki - sonraki »

0 Üyeler ve 2 Ziyaretçiler konuyu incelemekte.

Harvest


Öncelikle merhabalar yeni kayıt oldum, SMF'yi öğrenmeye çalışıyorum. O yüzden LocalHost'ta SMF kurarak çalışıyorum. Bir yerde takıldım o yüzden konuyu açıyorum. Şimdi ben bir tema yükledim bu siteden bulduğum temayı. Fakat şu en üstteki beyaz div'i kaldırıp üzerinde ki kullanıcı ile ilgili panel var onuda çıkış buttonun yanına yani oradaki div'in en sağına sabitlemek istiyorum. Fakat bir türlü kaynak kodunu bulamadım. Bu konuda yardımcı olabilir misiniz ?

Anlattığım div'in en üstte fotoğrafını yayımladım.

gecitli

dedığınızden bırşey anlamadım?

logo kodlari

<h1 class="forumtitle">
<a class="hidden" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>

login kodlari

echo '
<a href="#" class="float-right list-unstyled mb-0 header-toggler d-lg-none ml-3 ml-lg-0 collapsed" data-toggle="collapse" data-target="#headerMenuCollapse" aria-expanded="false">
<span class="header-toggler-icon"></span> </a>
<div class="float-right list-unstyled mb-0 p-navgroup p-discovery">
<a data-toggle="dropdown" class="p-navgroup-link dropdown-toggle search-box-icon" href="#"><i class="fa fa-search"></i></a>
<div class="dropdown-menu dropdown-menu-right en">
<div class="row">
<div class="input-group">
<form role="search" class="navbar-form navbar-left" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="sd_topic" value="', $context['current_topic'], '">';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="sd_brd[', $context['current_board'], ']" value="', $context['current_board'], '">';
 
echo '
<div class="input-group col-md-12">
<input placeholder="', $txt['search'], '" class="form-control py-2" type="search" name="search">
<span class="input-group-append">
<button type="submit" class="btn btn-primary" name="search2"><i class="fa fa-search"></i></button>
</span>
</div>
<input type="hidden" name="advanced" value="0">
</form>
</div>
</div>
</div></div>
<div class="float-right list-unstyled mb-0">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
if ($context['allow_pm'])
echo '
<a class="p-navgroup-link" href="', $scripturl, '?action=pm" data-toggle="tooltip" data-placement="bottom" title="', $txt['pm'], '"><i class="fa fa-envelope"></i><span class="badge badge-danger badge-pill noti-icon-badge">', $context['user']['messages'], '</span></a>';
        echo '
<a  href="', $scripturl, '?action=profile" class="p-navgroup-link dropdown-toggle" data-toggle="dropdown">';
if (!empty($context['user']['avatar']))
echo '<img class="av rounded-circle" src="', $context['user']['avatar']['href'], '" alt="*"/>';
else
echo '<img class="av rounded-circle"  src="'.$settings['images_url'].'/noavatar.png" alt="*"/>';
echo '

<span class="user-name d-none d-sm-block float-right">', $context['user']['name'], ($context['user']['unread_messages'] == 0) ? '' : ' <span class="label label-primary visible-xs-inline">' . $context['user']['unread_messages'] . '</span>', ' <span class="caret"></span>
</span></a>';

echo '
 <div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="', $scripturl, '?action=profile"><span class="fa fa-user"></span> ', $txt['summary'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=profile;area=forumprofile"><span class="fa fa-wrench"></span> ', $txt['forumprofile'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=profile;area=account"><span class="fa fa-cog"></span> ', $txt['account'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=unread"><span class="fa fa-list"></span> ', $txt['unread_topics_visit'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=unreadreplies"><span class="fa fa-comment"></span> ', $txt['unread_replies'], '</a>
<div class="dropdown-divider"></div>';

echo '
<a class="dropdown-item" href="', $scripturl, '?action=logout;' . $context['session_var'] . '=' . $context['session_id']. '"><span class="fa fa-sign-out"></span> ', $txt['logout'], '</a></div>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
echo '
<div class="left">
<div class="dropdown show">
<a class="p-navgroup-link dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-sign-in-alt"></i> <span class="p-navgroup-linkText">',$txt['login'],'</span></a>
<a class="p-navgroup-link register" href="', $scripturl, '?action=register"><i class="fas fa-user-edit"></i> <span class="p-navgroup-linkText">', $txt['register'], '</span></a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 10px;">
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

<input type="text" name="user" size="10" class="form-control input_text" /><br />
<input type="password" name="passwrd" size="10" class="form-control input_password" /><br />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />';

if (!empty($modSettings['enableOpenID']))
echo '
<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

echo '
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
</div>
</div>';
}

echo '
</div>

menu kodlari

<div class="header d-lg-flex p-0 collapse" id="headerMenuCollapse" style=""><!-- Navigation Menu-->
 ', template_menu(), '
 </div>
http://www.webtiryaki.com

webmaster forumu

Free & Premium Responsive Themes for SMF.

Harvest

Alıntı yapılan: gecitli - 23 Ara 2018, 16:39dedığınızden bırşey anlamadım?

logo kodlari

<h1 class="forumtitle">
<a class="hidden" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>

login kodlari

echo '
<a href="#" class="float-right list-unstyled mb-0 header-toggler d-lg-none ml-3 ml-lg-0 collapsed" data-toggle="collapse" data-target="#headerMenuCollapse" aria-expanded="false">
<span class="header-toggler-icon"></span> </a>
<div class="float-right list-unstyled mb-0 p-navgroup p-discovery">
<a data-toggle="dropdown" class="p-navgroup-link dropdown-toggle search-box-icon" href="#"><i class="fa fa-search"></i></a>
<div class="dropdown-menu dropdown-menu-right en">
<div class="row">
<div class="input-group">
<form role="search" class="navbar-form navbar-left" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="sd_topic" value="', $context['current_topic'], '">';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="sd_brd[', $context['current_board'], ']" value="', $context['current_board'], '">';
 
echo '
<div class="input-group col-md-12">
<input placeholder="', $txt['search'], '" class="form-control py-2" type="search" name="search">
<span class="input-group-append">
<button type="submit" class="btn btn-primary" name="search2"><i class="fa fa-search"></i></button>
</span>
</div>
<input type="hidden" name="advanced" value="0">
</form>
</div>
</div>
</div></div>
<div class="float-right list-unstyled mb-0">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
if ($context['allow_pm'])
echo '
<a class="p-navgroup-link" href="', $scripturl, '?action=pm" data-toggle="tooltip" data-placement="bottom" title="', $txt['pm'], '"><i class="fa fa-envelope"></i><span class="badge badge-danger badge-pill noti-icon-badge">', $context['user']['messages'], '</span></a>';
        echo '
<a  href="', $scripturl, '?action=profile" class="p-navgroup-link dropdown-toggle" data-toggle="dropdown">';
if (!empty($context['user']['avatar']))
echo '<img class="av rounded-circle" src="', $context['user']['avatar']['href'], '" alt="*"/>';
else
echo '<img class="av rounded-circle"  src="'.$settings['images_url'].'/noavatar.png" alt="*"/>';
echo '

<span class="user-name d-none d-sm-block float-right">', $context['user']['name'], ($context['user']['unread_messages'] == 0) ? '' : ' <span class="label label-primary visible-xs-inline">' . $context['user']['unread_messages'] . '</span>', ' <span class="caret"></span>
</span></a>';

echo '
 <div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="', $scripturl, '?action=profile"><span class="fa fa-user"></span> ', $txt['summary'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=profile;area=forumprofile"><span class="fa fa-wrench"></span> ', $txt['forumprofile'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=profile;area=account"><span class="fa fa-cog"></span> ', $txt['account'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=unread"><span class="fa fa-list"></span> ', $txt['unread_topics_visit'], '</a>
<a class="dropdown-item" href="', $scripturl, '?action=unreadreplies"><span class="fa fa-comment"></span> ', $txt['unread_replies'], '</a>
<div class="dropdown-divider"></div>';

echo '
<a class="dropdown-item" href="', $scripturl, '?action=logout;' . $context['session_var'] . '=' . $context['session_id']. '"><span class="fa fa-sign-out"></span> ', $txt['logout'], '</a></div>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
elseif (!empty($context['show_login_bar']))
{
echo '
<div class="left">
<div class="dropdown show">
<a class="p-navgroup-link dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-sign-in-alt"></i> <span class="p-navgroup-linkText">',$txt['login'],'</span></a>
<a class="p-navgroup-link register" href="', $scripturl, '?action=register"><i class="fas fa-user-edit"></i> <span class="p-navgroup-linkText">', $txt['register'], '</span></a>
<div class="dropdown-menu" style="padding: 15px; padding-bottom: 10px;">
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>

<input type="text" name="user" size="10" class="form-control input_text" /><br />
<input type="password" name="passwrd" size="10" class="form-control input_password" /><br />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />';

if (!empty($modSettings['enableOpenID']))
echo '
<br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

echo '
<input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>
</div>
</div>
</div>';
}

echo '
</div>

menu kodlari

<div class="header d-lg-flex p-0 collapse" id="headerMenuCollapse" style=""><!-- Navigation Menu-->
 ', template_menu(), '
 </div>

Fotoğraftaki sağ üstteki bölmeyi işaret ettiğim yere taşıyıp o üstteki beyaz bölümü kaldırmak istiyorum.