collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 663
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Sohbet Kutusu

Refresh History
  • Destek için kullanmay?n!
  • akorkut: Ama desteklerinizi de bekliyoruz.
    November 18, 2016, 08:41:36 AM
  • akorkut: grafitus hocam, yaklaşık 10 yıl.. smf, sp,  sizin ve diğer paylaşımseverin çalışmalarınızl bize destek oldu. Herşey için çok teşekkür ederiz.
    November 18, 2016, 08:40:38 AM
  • grafitus: Merhabalar herkese. Uzun zaman oldu, hayatlar değişti. Vakit ayıramaz olduk. SMF ve SimplePortal'ın yeri farklı olsa da artık aktif olmadıkları aşikar. Belki bir gün yeniden forumlar doğar. :)) Sevgilerle.
    November 18, 2016, 08:26:32 AM
  • tc bolubeyi: gelen giden yok pek
    July 31, 2016, 02:52:53 PM
  • tekniker974: Neredeyse 1 sene olmuş
    May 12, 2016, 01:05:50 AM
  • tekniker974: Günaydın
    May 12, 2016, 01:05:19 AM
  • tc bolubeyi: merhaba dostlara
    August 28, 2015, 08:56:04 AM
  • mert1i: ker alaka
    August 03, 2015, 10:07:49 AM
  • sonkalem: sa
    July 14, 2015, 03:27:51 PM
  • tc bolubeyi: sağolun ben de iyi allaha şükür
    June 10, 2015, 05:52:54 PM
  • mkuru: Teşekkürler Hasan Bey. Sizi sormalı
    May 27, 2015, 02:53:43 AM
  • tc bolubeyi: selam dostlar nasılsınız
    May 23, 2015, 06:52:15 PM
  • streetfire: Ben seviyorum.
    May 01, 2015, 03:39:22 PM
  • streetfire: Valla bilmiyorum. Sitemde çok kullanıyorum.
    May 01, 2015, 03:39:14 PM
  • mkuru: Evet haklısın
    April 03, 2015, 08:23:32 AM
  • mert1i: portalın en çok istenen ama en aaz talep gören kısmı bu chat
    April 01, 2015, 07:35:31 AM
  • mert1i: Selamun aleyküm ahali..
    January 27, 2015, 05:20:06 AM
  • tekniker974: a.s.
    August 12, 2014, 03:22:53 PM
  • delirium: S.a
    August 02, 2014, 10:24:22 AM
  • tekniker974: :nervous-happy:kimse yok
    July 15, 2014, 01:19:26 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: giriş alanını yatay yapmak  (Read 5615 times)

0 Members and 1 Guest are viewing this topic.

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
giriş alanını yatay yapmak
« on: October 28, 2011, 01:22:34 PM »
Giriş bloğunu resimdeki gibi yatay bir şekilde tek şerit halinde yapmak istiyorum, uzun bür üst blok açıp yapabilirmiyiz, resimlerle anlatmaya çalıştım...

Ziyaretçi iken

Normal hali




Yatay hali ( istenilen )



Üye girişi yaptıktan sonra

Normal hali



Yatay hali ( istenilen )




Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #1 on: October 29, 2011, 12:35:36 PM »
+ güncel

Offline CeeMoo_145

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 1.1.10
  • SP Version: 2.0
Re: giriş alanını yatay yapmak
« Reply #2 on: November 06, 2011, 06:47:46 AM »
o bosluklar <br /> ile yapılmıstır sadece istediğiniz simple block .php dosysını bularak ve silerek istediğiniz sonuca ulasabilirsiniz.Peki aralarına nasıl bosluk koyucaksınız bir div acarak css olusturarak float:left; margin-right:3px; yaparak güzel bir kıvama ulasabilirsiniz ama spde tepe block yok diyye biliyorum Kolay Gelsin...

Offline tc bolubeyi

  • Sr. Member
  • ****
  • Posts: 389
  • Gender: Male
    • temrinlerim.org
  • SMF Version: 2 RC3
  • SP Version: 2.3.3
Re: giriş alanını yatay yapmak
« Reply #3 on: November 06, 2011, 07:11:05 AM »
spde tepe blok yok. cemonun dediği gibi. temanıza uyarlamanız lazım. smf destek sitelerinden destek arayın. spde olmaz dediğiniz.

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #4 on: November 08, 2011, 07:55:05 AM »
teşekkür ederim bilgileriniz için,

temaya uyarlanabilir biliyorum ancak blok çok farklı bir şey, yeri çok kolay değişebiliyor, aktif pasif edilebiliyor, neyse belki ilerki sürümlerde yapımcı göz önünde bulundurup değerlendirebilir belki bunu...

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: giriş alanını yatay yapmak
« Reply #5 on: November 11, 2011, 04:43:04 AM »
2.3.4 sürümünde "Header" ve "Footer" alanları eklendi. Yatay kullanıcı menüsünü de bir deneyeceğim. Uygun görülürse *belki* pakete de ekleyebiliriz, "Yatay mod" şeklinde bir seçenek ile birlikte.
my modsI don't reply support PMs. Please use support forums.

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #6 on: November 16, 2011, 12:20:13 PM »
eğer yapılırsa çok hoş ve güzel olacaktır, böylelikle temanın giriş alanı tamamen ortadan kalkmış olur....

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #7 on: March 19, 2012, 03:59:14 PM »
acaba bu konu ile ilgili bi gelişme var mı ?

Offline Evo

  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
    • Aşkıma...
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #8 on: March 20, 2012, 07:27:17 AM »
Birşeyler yapmaya çalıştım ufak tefek üzerinde oynama yaparsan tam istediğin gibi olacaktır.
PortalBlocks.php dosyasını açınız.
function sp_userInfo($parameters, $id, $return_parameters = false) kısmını o fonksiyonun sonuna kadar silin ve aşağıdaki şekilde değiştirin
Code: [Select]
function sp_userInfo($parameters, $id, $return_parameters = false)

{

global $context, $txt, $scripturl, $memberContext, $modSettings, $user_info, $color_profile, $settings;



$block_parameters = array();



if ($return_parameters)

return $block_parameters;



echo '

<div class="sp_center sp_fullwidth">';



if ($context['user']['is_guest'])

{

echo '

<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', ' >
<table>
<td>
<tr class="sp_right"><label for="sp_user">', $txt['username'], ':</label>&nbsp;</tr>
<tr><input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" /></tr>
</td>
<td>
 &nbsp;<tr class="sp_right"><label for="sp_passwrd"> &nbsp;', $txt['password'], ':</label>&nbsp;</tr>
<tr><input type="password" name="passwrd" id="sp_passwrd" size="9" /></tr>
</td>
<td>
<tr>
 &nbsp;<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>
</tr>
<tr>
 &nbsp;<input type="submit" value="', $txt['login'], '" class="button_submit" /></tr>
</td>

<input type="hidden" name="hash_passwrd" value="" />
</form>
<tr>
<tr>
 &nbsp;', sprintf($txt['welcome_guest'], $txt['guest_title']);
echo'
</tr>
</td>
</table>
';
}

else

{

loadMemberData($user_info['id']);

loadMemberContext($user_info['id'], true);



$member_info = $memberContext[$user_info['id']];



if (sp_loadColors($member_info['id']) !== false)

$member_info['colored_name'] = $color_profile[$member_info['id']]['colored_name'];



$member_info['karma']['total'] = $member_info['karma']['good'] - $member_info['karma']['bad'];



echo '

', strtolower($member_info['name']) === 'okarin' ? 'Okae-Rin, ' : $txt['hello_member'], ' <strong>', !empty($member_info['colored_name']) ? $member_info['colored_name'] : $member_info['name'], '</strong>

';



if (!empty($member_info['avatar']['image']))

echo '

<a href="', $scripturl, '?action=profile;u=', $member_info['id'], '">', $member_info['avatar']['image'], '</a><br /><br />';







echo '

', sp_embed_image('dot'), ' <strong>', $txt['posts'], ':</strong> ', $member_info['posts'], '';



if (!empty($modSettings['karmaMode']))

{

echo '

', sp_embed_image('dot'), ' <strong>', $modSettings['karmaLabel'], '</strong> ';



if ($modSettings['karmaMode'] == 1)

echo $member_info['karma']['total'];

elseif ($modSettings['karmaMode'] == 2)

echo '+', $member_info['karma']['good'], '/-', $member_info['karma']['bad'];



echo '';

}



if (allowedTo('pm_read'))

{

echo '

', sp_embed_image('dot'), ' <strong>', $txt['sp-usertmessage'], ':</strong> <a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a>

', sp_embed_image('dot'), ' <strong>', $txt['sp-usernmessage'], ':</strong> ', $context['user']['unread_messages'], '';

}



echo '

', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a>

', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a>';





echo '

', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=profile">', $txt['profile'], '</a> ', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt['logout'], '</a>';

}



echo '

</div>';

}

Örnek : http://www.yer6rap.net/smf22/index.php

Kullanıcı adı : test
Şifre : 123456

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #9 on: March 21, 2012, 02:35:21 AM »
Code: [Select]
function sp_userInfo($parameters, $id, $return_parameters = false)  bu dahil


Code: [Select]
function sp_latestMember($parameters, $id, $return_parameters = false)  buraya kadar, bu hariç kodların silinip üsteki kodun eklenmesi gerekiyor...


« Last Edit: March 21, 2012, 03:19:01 AM by my_wuslat »

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #10 on: March 21, 2012, 03:18:36 AM »
internet explorer 9 da olmuyor malesef aşağıdaki gibi oluyor






mozilla ve chromede sorun yok... explorer niye böle oldu acaba ?

Offline Evo

  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
    • Aşkıma...
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #11 on: March 21, 2012, 03:39:45 AM »
İe ile uyumlu halede getirildi.
Code: [Select]
function sp_userInfo($parameters, $id, $return_parameters = false)

{

global $context, $txt, $scripturl, $memberContext, $modSettings, $user_info, $color_profile, $settings;



$block_parameters = array();



if ($return_parameters)

return $block_parameters;



echo '

<div class="sp_center sp_fullwidth">';



if ($context['user']['is_guest'])

{

echo '
<center><table>
<tr>
<td>
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', ' >
<label for="sp_user">', $txt['username'], ':</label>&nbsp;
<input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" />
<label for="sp_passwrd"> &nbsp;', $txt['password'], ':</label>&nbsp;<input type="password" name="passwrd" id="sp_passwrd" size="9" />
<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" />
<input type="hidden" name="hash_passwrd" value="" />
</form>
</td>
<td>
', sprintf($txt['welcome_guest'], $txt['guest_title']);
echo'
</td>
</tr>
</table></center>
';
}

else

{

loadMemberData($user_info['id']);

loadMemberContext($user_info['id'], true);



$member_info = $memberContext[$user_info['id']];



if (sp_loadColors($member_info['id']) !== false)

$member_info['colored_name'] = $color_profile[$member_info['id']]['colored_name'];



$member_info['karma']['total'] = $member_info['karma']['good'] - $member_info['karma']['bad'];



echo '

', strtolower($member_info['name']) === 'okarin' ? 'Okae-Rin, ' : $txt['hello_member'], ' <strong>', !empty($member_info['colored_name']) ? $member_info['colored_name'] : $member_info['name'], '</strong>

';





echo '

', sp_embed_image('dot'), ' <strong>', $txt['posts'], ':</strong> ', $member_info['posts'], '';



if (!empty($modSettings['karmaMode']))

{

echo '

', sp_embed_image('dot'), ' <strong>', $modSettings['karmaLabel'], '</strong> ';



if ($modSettings['karmaMode'] == 1)

echo $member_info['karma']['total'];

elseif ($modSettings['karmaMode'] == 2)

echo '+', $member_info['karma']['good'], '/-', $member_info['karma']['bad'];



echo '';

}



if (allowedTo('pm_read'))

{

echo '

', sp_embed_image('dot'), ' <strong>', $txt['sp-usertmessage'], ':</strong> <a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a>

', sp_embed_image('dot'), ' <strong>', $txt['sp-usernmessage'], ':</strong> ', $context['user']['unread_messages'], '';

}



echo '

', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unread">', $txt['unread_topics_visit'], '</a>

', sp_embed_image('dot'), ' <a href="', $scripturl, '?action=unreadreplies">', $txt['unread_replies'], '</a>';





echo '

', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=profile">', $txt['profile'], '</a> ', sp_embed_image('arrow'), ' <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', $txt['logout'], '</a>';

}



echo '

</div>';

}

Offline my_wuslat

  • Semi Newbie
  • *
  • Posts: 38
  • SMF Version: 2.0.6
  • SP Version: 2.3.5
Re: giriş alanını yatay yapmak
« Reply #12 on: March 21, 2012, 04:34:16 AM »
evet çözülmüş, tebrikler, güzel bir blok oldu...emeğinize sağlık...