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: 1024
  • 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: üye blok?  (Read 3530 times)

0 Members and 1 Guest are viewing this topic.

Offline karanima

  • Semi Newbie
  • *
  • Posts: 36
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
üye blok?
« on: March 22, 2009, 09:04:33 AM »
arkadaşlar bu konuda resimle gösterilen bloğu nasıl yaparız ordaki kodlar çalışmadı bende

http://simpleportal.net/index.php?topic=1499.0

Offline grafitus

  • Board Moderators
  • *
  • Posts: 1554
  • Gender: Male
  • just looking for own old energy
  • SMF Version: None
  • SP Version: None
Re: üye blok?
« Reply #1 on: March 22, 2009, 01:05:36 PM »
Smf sürümünüz 1.1.x ise çalışmaz..
my modsI don't reply support PMs. Please use support forums.

Offline karanima

  • Semi Newbie
  • *
  • Posts: 36
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: üye blok?
« Reply #2 on: March 22, 2009, 01:45:16 PM »
doğrudur... peki uyarlama şansımz var mı?

Offline Yağız...

  • Jr. Member
  • **
  • Posts: 80
  • Gender: Male
Re: üye blok?
« Reply #3 on: March 22, 2009, 04:34:42 PM »
Code: [Select]
global $smcFunc, $memberContext, $context, $user_info, $txt, $scripturl, $modSettings, $settings, $sc;
global $color_profile;

if($context['user']['is_logged'])
{
$member_id = $user_info['id'];
loadMemberData($member_id);
loadMemberContext($member_id);

//If you install the Membercolor Link the colors will be autmaticly set.
if(empty($modSettings['MemberColorLinkInstalled']) && sp_loadColors($member_id) !== false)
$memberContext[$member_id]['colored_name'] = $color_profile[$member_id]['colored_name'];
$memberContext[$member_id]['karma']['total'] = $memberContext[$member_id]['karma']['good'] - $memberContext[$member_id]['karma']['bad'];
}
echo '
<div align="center">';

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

echo '
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
<table border="0" cellspacing="1" cellpadding="0" class="ssi_table">
            <tr>
<td align="right"><label for="user">', $txt[35], ':</label></td>
<td><input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" /></td>
</tr><tr>
<td align="right"><label for="passwrd">', $txt[36], ':</label></td>
<td><input type="password" name="passwrd" id="sp_passwrd" size="9" /></td>
</tr><tr>
<td>
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
</td>
<td><input type="submit" value="', $txt[34], '" /></td>
</tr>
</table>
</form>', $txt['welcome_guest'];
}
else
{
echo $txt['hello_member'], ' <b>', (!empty($memberContext[$member_id]['colored_name']) ? $memberContext[$member_id]['colored_name'] : $context['user']['name']), '</b><br /><br />';

if (!empty($context['user']['avatar']))
echo $context['user']['avatar']['image'], '<br /><br />';

if (!empty($memberContext[$member_id]['group']))
echo $memberContext[$member_id]['group'];
else
echo $memberContext[$member_id]['post_group'];

echo '<br />', $memberContext[$member_id]['group_stars'], '<hr /></div>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['posts'], ': ',$memberContext[$member_id]['posts'],'<br />';

if(!empty($modSettings['karmaMode']))
echo '
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-userkarma'], ': ';

if($modSettings['karmaMode'] == '1')
echo $memberContext[$member_id]['karma']['total'],'<br />';
elseif($modSettings['karmaMode'] == '2')
echo '+', $memberContext[$member_id]['karma']['good'],'/-', $memberContext[$member_id]['karma']['bad'], '<br />';
}
if(allowedTo('pm_read'))
      echo '
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-usertmessage'], ': <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'], '</a><br />
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-usernmessage'], ': ' . $context['user']['unread_messages'], '<hr />';

if (!$context['user']['is_guest'])
echo '
<div align="center"><img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="'.$scripturl.'?action=profile">', $txt['profile'], '</a>   <img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="', $scripturl, '?action=logout;sesc=', $sc, '">', $txt[108], '</a>';
echo '</div><hr />';

$totals = array(
'members' => $modSettings['totalMembers'],
'posts' => $modSettings['totalMessages'],
'topics' => $modSettings['totalTopics']
);

$request = db_query("
SELECT COUNT(*)
FROM {db_prefix}boards", __FILE__, __LINE__);
list ($totals['boards']) = mysql_fetch_row($request);
mysql_free_result($request);

$request = db_query("
SELECT COUNT(*)
FROM {db_prefix}categories", __FILE__, __LINE__);
list ($totals['categories']) = mysql_fetch_row($request);
mysql_free_result($request);

echo '
<ul style="padding: 0.2em 0.4em 0.2em 0.4em;">
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_members'], ': <a href="', $scripturl . '?action=mlist">', $totals['members'], '</a>
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_posts'], ': ', $totals['posts'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_topics'], ': ', $totals['topics'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_cats'], ': ', $totals['categories'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_boards'], ': ', $totals['boards'],'
<hr />
</li>
</ul>';

$result = db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}log_online AS lo
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

$online['users'] = array();
$online['guests'] = 0;
$online['hidden'] = 0;
$online['buddies'] = 0;
$show_buddies = !empty($user_info['buddies']);

while ($row = mysql_fetch_assoc($result))
{
if (!isset($row['realName']))
$online['guests']++;
elseif (!empty($row['showOnline']) || allowedTo('moderate_forum'))
{
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';

// Bold any buddies.
if ($show_buddies && in_array($row['ID_MEMBER'], $user_info['buddies']))
{
$online['buddies']++;
$link = '<b>' . $link . '</b>';
}

$online['users'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'hidden' => empty($row['showOnline']),
'is_last' => false,
);
}
else
$online['hidden']++;
}
mysql_free_result($result);

if (!empty($online['users']))
{
krsort($online['users']);
$userlist = array_keys($online['users']);
$online['users'][$userlist[count($userlist) - 1]]['is_last'] = true;
}
$online['num_users'] = count($online['users']) + $online['hidden'];
$online['total_users'] = $online['num_users'] + $online['guests'];

echo '
<ul style="padding: 0.2em 0.4em 0.2em 0.4em;">
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineguest'], ': ', $online['guests'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineuser'], ': ', $online['num_users'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlinehuser'], ': ', $online['hidden'],'
</li>
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlinetuser'], ': ', $online['total_users'],'
</li>';

   if(!empty($online['users']))
   {
echo '
<li>
<img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineouser'], ':
</li>';

foreach ($online['users'] as $user)
echo '
<li style="padding-left: 20px;">
<img src="' . $settings['images_url'] . '/useron.gif" alt="', $txt['user'], '" /> ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'],'
</li>';
}
echo '
</ul>';

Offline karanima

  • Semi Newbie
  • *
  • Posts: 36
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: üye blok?
« Reply #4 on: March 22, 2009, 04:47:53 PM »
bloğu ekledim kardeşim fakat ekledikten sonra ana sayfaya dönünce site takılıyor bloğu etkisiz yapınca açılıyor.yani şöyle anlatayım blok aktifken net bağlantısı kesilmiş gibi oluyor

Offline karanima

  • Semi Newbie
  • *
  • Posts: 36
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: üye blok?
« Reply #5 on: March 23, 2009, 10:28:38 AM »
güncel

Offline Yağız...

  • Jr. Member
  • **
  • Posts: 80
  • Gender: Male
Re: üye blok?
« Reply #6 on: March 23, 2009, 10:46:53 AM »
Code: [Select]
global $memberContext, $context, $user_info, $txt, $scripturl, $modSettings, $settings, $sc, $boarddir;
global $color_profile;

require_once($boarddir . '/SSI.php');

   echo '
   <div align="center">';

   if ($context['user']['is_guest'])
   {
      echo '
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
<table>
<tr>
<td class="sp_right"><label for="sp_user">', $txt[35], ':</label>&nbsp;</td>
<td><input type="text" id="sp_user" name="user" size="9" value="', !empty($user_info['username']) ? $user_info['username'] : '', '" /></td>
</tr><tr>
<td class="sp_right"><label for="sp_passwrd">', $txt[36], ':</label>&nbsp;</td>
<td><input type="password" name="passwrd" id="sp_passwrd" size="9" /></td>
</tr><tr>
<td>
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
</td>
<td><input type="submit" value="', $txt[34], '" /></td>
</tr>
</table>
</form>', $txt['welcome_guest'];
   }
   else
   {
loadMemberData($context['user']['id']);
loadMemberContext($context['user']['id']);

$member_info = $memberContext[$context['user']['id']];

if (empty($modSettings['MemberColorLinkInstalled']) && 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 '
', $txt['hello_member'], ' <strong>', !empty($member_info['colored_name']) ? $member_info['colored_name'] : $member_info['name'], '</strong><br /><br />';

if (!empty($member_info['avatar']['image']))
echo '
', $member_info['avatar']['image'], '<br /><br />';

if (!empty($member_info['group']))
echo '
', $member_info['group'], '<br />';
else
echo '
', $member_info['post_group'], '<br />';
echo '
', $member_info['group_stars'], '<hr /></div>
      <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['posts'], ': ',$member_info['posts'],'<br />';

      if(!empty($modSettings['karmaMode']))
         echo '
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-userkarma'], ': ';

      if($modSettings['karmaMode'] == '1')
         echo $member_info['karma']['total'],'<br />';
      elseif($modSettings['karmaMode'] == '2')
         echo '+', $member_info['karma']['good'],'/-', $member_info['karma']['bad'], '<br />';
   }
   if(allowedTo('pm_read'))
      echo '
      <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-usertmessage'], ': <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'], '</a><br />
      <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-usernmessage'], ': ' . $context['user']['unread_messages'], '<hr />';

   if (!$context['user']['is_guest'])
      echo '
      <div align="center"><img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="'.$scripturl.'?action=profile">', $txt['profile'], '</a>   <img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="', $scripturl, '?action=logout;sesc=', $sc, '">', $txt[108], '</a>';
   echo '</div><hr />';

   $totals = array(
      'members' => $modSettings['totalMembers'],
      'posts' => $modSettings['totalMessages'],
      'topics' => $modSettings['totalTopics']
   );
   
   $totals = ssi_boardStats('array');

   echo '
   <ul style="padding: 0.2em 0.4em 0.2em 0.4em;">
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_members'], ': <a href="', $scripturl . '?action=mlist">', $totals['members'], '</a>
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_posts'], ': ', $totals['posts'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_topics'], ': ', $totals['topics'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_cats'], ': ', $totals['categories'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['gm_total_boards'], ': ', $totals['boards'],'
         <hr />
      </li>
   </ul>';

   $stats = ssi_whosOnline('array');
   echo '
   <ul style="padding: 0.2em 0.4em 0.2em 0.4em;">
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineguest'], ': ', $stats['guests'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineuser'], ': ', $stats['num_users'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlinehuser'], ': ', $stats['hidden'],'
      </li>
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlinetuser'], ': ', $stats['total_users'],'
      </li>';

   if(!empty($stats['users']))
   {
      echo '
      <li>
         <img src="' . $settings['images_url'] . '/dot.gif" alt="', $txt['sp-dot'], '" /> ', $txt['sp-onlineouser'], ':
      </li>';

      foreach ($stats['users'] as $user)
         echo '
      <li style="padding-left: 20px;">
         <img src="' . $settings['images_url'] . '/useron.gif" alt="', $txt['user'], '" /> ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'],'
      </li>';
   }
   echo '
   </ul>';
Bu ?ekilde deneyin.

Offline karanima

  • Semi Newbie
  • *
  • Posts: 36
  • Gender: Male
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: üye blok?
« Reply #7 on: March 23, 2009, 10:55:22 AM »


çözüldü teşekkür ederim kardeşim.

acaba online üyeler kısmına botlar eklenebilir mi?
« Last Edit: March 23, 2009, 12:11:35 PM by karanima »

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: üye blok?
« Reply #8 on: April 28, 2009, 03:54:48 AM »
Botlar; SMF 1.1 sürümleri için, hayır.
And slowly, you come to realize... It's all as it should be...