05 Temmuz 2009, 23:06:24
Mustafa Kemal Atatürk -Adanalı Dizisi -KVP Bölümleri -KVP Müzikleri -Full Programlar -Albümler -Online Dizi İzle -Online Film İzle
Dizi Müzikleri -Dizi Özetleri & Fragmanları -Diziler -Filmler -SW Aktiviteleri -Şiirler -Tiny Portal -Full Oyun Download

Saygı değer Üyelerimiz sitemiz bir forum sitesi olduğu için kullanıcılar her türlü görüşlerini önceden onay olmadan anında siteye yazabilmektedir, bu yazılardan dolayı doğabilecek her türlü sorumluluk yazan kullanıcılara aittir. T.C. Kanunlarına aykırı olan MP3,Warez,Crack,Flim V.b. ürünlerin sitemizde paylaşımı Kesin olarak Yasaktır. Kurallara uymayan üyeler sitemizden uzaklaştırılır ve gerektiğinde yasal kurumlarda kullanılmak üzere IP (Internet Kimlik Numarası)adresi verilecektir.

Sayfa: [1]   Aşağı git
Yazdır
Gönderen Konu: Tiny portal blokları ve makaleleri  (Okunma Sayısı 685 defa)
alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« : 25 Temmuz 2007, 20:01:11 »

php makale ile bolümlerin içeriğini göstermek için
phpmakele oluşturdan aşşağıdaki kodu ekliyoruz
Kod:
ssi_boardnews(44,50,null,200);

44 yazan yer board numarası
50 yazan yer kaçtane konunun görünmesini istiyorsanız
200 yazan ise gösterilen konuların kaç karakterinin görünmesini istiyorsanız



orta blok son konular
Kod:
global $scripturl;

echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
                               <tr><td colspan="3" class="titlebg">Recent topics</td></tr> ';
       $what=ssi_recentTopics('8', NULL, 'array');


        foreach ($what as $topic)
        {
                echo '
                                <tr>
                                        <td class="windowbg" valign="middle">
                                                ', $topic['link'];

                // Is this topic new? (assuming they are logged in!)
                if (!$topic['new'] && $context['user']['is_logged'])
                        echo '
                                                <a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['new_from'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="20%">
                                                ', $topic['poster']['link'], '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="35%">';
                if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
                        echo '
                                        <a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
                echo '
                                                <span class="smalltext">
                                                        ', $topic['time'], '
                                                </span>
                                        </td>
                                </tr>';
        }

        echo '
                        </table>';

çok güzel bir görünüme sahip



Rast gele resim bloğu
ilk önce sisteminizde smfgallery modu yüklü olması gerekiyor
Kod:
////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.5.2        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// Updated 4/13/2007
// 1.5.2
// - fixed bug - date couldn't be displayed if member wasn't displayed
//
// Updated 4/12/2007
// 1.5.1
// - fixed bug - left out the random option - woops!  LOL
//
// Updated 4/2/2007
// 1.5
// - added ability to additionally choose "most viewed" or "most commented" pics
//
// Updated 4/2/2007
// 1.4
// - added ability to choose between recent pics and random
// - added sort option so can display (x) most recent or oldest pics
//
// Updated 3/27/2007
// 1.3
// - added ability to only show from selected cats
//
// Updated 12/27/2006
// 1.2:
// - added text size option Normal / Small (TP's "normaltext" or "smalltext" class)
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?
$gal_numpics = 1;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 1;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 1;
// display posted date?
$gal_dispDate = 1;
// display category the picture is in?
$gal_dispCategory = 1;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 1;
// display filesize?
$gal_dispSize = 1;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= ' LIMIT '.$gal_numpics;
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}



arcade orta blok
çalışması için sisteminizde arcade modunun kurulması gerek
Kod:
global $scripturl,$db_prefix,$modSettings;

//number of games to show
$no=10;

echo '<div align="center">
<table cellpadding="2" cellspacing="5">
<tr>';

//uncomment the query you want to use below

//show the latest games
/*
$sql = "SELECT * "
. "FROM {$db_prefix}games "
. "ORDER BY id DESC , name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
*/

//show most played games (one score version only)
/*
$sql = "SELECT * "
. "FROM {$db_prefix}games "
. "ORDER BY plays DESC , name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
*/

//show least played games (one score version only)
/*
$sql = "SELECT * "
. "FROM {$db_prefix}games "
. "ORDER BY plays ASC , name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
*/

//show best rated games
/*
$sql = "SELECT * "
. "FROM {$db_prefix}games "
. "ORDER BY rating DESC , name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);
*/

//games with longest champs

$sql = "SELECT * "
. "FROM {$db_prefix}games "
. "ORDER BY champion_time ASC , name ASC LIMIT 0,{$no}";
$result = db_query($sql,__FILE__,__LINE__);





while($game = mysql_fetch_array($result))
{
echo'
<td>
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$game['id'].'">
<img src="'.$modSettings['arcade_games_url'].'/'.$game['game'].'.gif" border="0" alt="'.$game['name'].'" width="60" height="60" title="'.$game['name'].'"/></a>
</td>';
}
mysql_free_result($result);

echo '
</tr>
</table></div>';



SMF Links Last X Links Block
ana sayfada eklenen son 5 link
çalışması için linkler modu sisteminizde kurulu olması gerekiyor
ssı.php de
?>  altına alttaki kodu ekle
Kod:
function ssi_links_recent()
{
global $scripturl,$db_prefix;

$dbresult = db_query("SELECT l.ID_LINK, l.rating, l.title,l.date, l.ID_MEMBER, l.description,l.hits FROM {$db_prefix}links AS l WHERE l.approved = 1 ORDER BY l.ID_LINK DESC LIMIT 5", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($dbresult))
{

echo '<a href="' . $scripturl . '?action=links;sa=visit;id=' . $row['ID_LINK'] . '" target="blank">' . $row['title'] . '</a><br />';


}
echo '<br />';
echo '<a href="' . $scripturl . '?action=links">Add Link</a>';

mysql_free_result($dbresult);
}

daha sonra blok yöneticisinden php blok içerisine alttaki kodu ekle
Kod:
ssi_links_recent();
en son eklenen 5 link görünecektir



resim galerisi orta blok 9 lu gösterim
son eklenen resimler görünecektir
Kod:
global $context, $settings, $options, $txt, $scripturl, $modSettings, $ID_MEMBER;
  global $db_prefix, $boarddir,$boardurl;

   $maxpictures = 9; // How many pictures shall be displayed?
   $maxrowlevel = 3; // How many rows of pictures?

  echo'
    <table align="center"><tr><td>';

    $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);
    while ($row = mysql_fetch_assoc($dbresult))
    {
      $cat = $row['ID_CAT'];
      $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
      while ($row2 = mysql_fetch_assoc($dbresult2))
      {
        $dataimg[]=$row2['ID_PICTURE'];
      }
      mysql_free_result($dbresult2);
    }
    mysql_free_result($dbresult);
    rsort($dataimg);

    echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%">
            <tr><td align="center" colspan="' . $maxrowlevel . '">' . '</td>
            </tr>';
    $rowlevel = 0;
    $pictures = 0;
    foreach ($dataimg as $img)
    {
      $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, p.ID_CAT, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_PICTURE = $img AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
      $row2 = mysql_fetch_assoc($dbresult2);

      $cat = $row2['ID_CAT'];

      $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat WHERE ID_CAT = $cat ORDER BY roworder ASC", __FILE__, __LINE__);
      $row = mysql_fetch_assoc($dbresult);
      $category = $row['title'];
      $catnum = $row['ID_CAT'];
      mysql_free_result($dbresult);


      if($rowlevel == 0)
        echo '<tr>';
      echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $row2['thumbfilename']  . '" border="0" /></a><br />';
      echo '<span class="smalltext">' . 'In: ' . '<a href="' . $scripturl . '?action=gallery;cat=' . $catnum . '">' . $category.'</a><br />';
      echo 'Date: ' . timeformat($row2['date']) . '<br />';
      echo 'Comments:' . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '">' . $row2['commenttotal'] . '</a>)<br />';
      echo 'By:' . ' <a href="' . $scripturl . '?action=profile;u=' . $row2['ID_MEMBER'] . '">'  . $row2['realName'] . '</a><br />';
      echo '</span></td>';
      if($rowlevel < ($maxrowlevel-1))
        $rowlevel++;
      else
      {
        echo '</tr>';
        $rowlevel = 0;
      }
      mysql_free_result($dbresult2);
      $pictures++;
      if ($pictures == $maxpictures)
        break;
    }
    if($rowlevel !=0) echo '</tr>';
    echo '</table></tr></table>';



rastgele bir konu
Kod:
global $scripturl, $db_prefix, $txt, $settings, $modSettings, $context;
global $func;
$length= 300;

loadLanguage('Stats');

if ($length === null)
$length = isset($_GET['length']) ? (int) $_GET['length'] : 0;
else
$length = (int) $length;

// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE FIND_IN_SET(-1, memberGroups)
        ORDER BY rand()
LIMIT 1", __FILE__, __LINE__);

list ($board) = mysql_fetch_row($request);
mysql_free_result($request);

// Load the message icons - the usual suspects.
$stable_icons = array('xx', 'thumbup', 'thumbdown', 'exclamation', 'question', 'lamp', 'smiley', 'angry', 'cheesy', 'grin', 'sad', 'wink', 'moved', 'recycled', 'wireless');
$icon_sources = array();
foreach ($stable_icons as $icon)
$icon_sources[$icon] = 'images_url';

// Find the post ids.
$request = db_query("
SELECT ID_FIRST_MSG
FROM {$db_prefix}topics
WHERE ID_BOARD = $board
ORDER BY rand()
LIMIT 1", __FILE__, __LINE__);
$posts = array();
while ($row = mysql_fetch_assoc($request))
$posts[] = $row['ID_FIRST_MSG'];
mysql_free_result($request);

// Find the posts.
$request = db_query("
SELECT
m.icon, m.subject, m.body, IFNULL(mem.realName, m.posterName) AS posterName, m.posterTime,
t.numReplies, t.ID_TOPIC, m.ID_MEMBER, m.smileysEnabled, m.ID_MSG, t.locked
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)
WHERE t.ID_FIRST_MSG IN (" . implode(', ', $posts) . ")
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
$return = array();
while ($row = mysql_fetch_assoc($request))
{
// If we want to limit the length of the post.
if (!empty($length) && $func['strlen']($row['body']) > $length)
{
$row['body'] = $func['substr']($row['body'], 0, $length);
// The first space or line break. (<br />, etc.)
        $cutoff = max(strrpos($row['body'], ' '), strrpos($row['body'], '<'));

if ($cutoff !== false)
$row['body'] = $func['substr']($row['body'], 0, $cutoff);
$row['body'] .= '...';
}

$row['body'] = parse_bbc($row['body'], $row['smileysEnabled'], $row['ID_MSG']);

// Check that this message icon is there...
if (empty($modSettings['messageIconChecks_disable']) && !isset($icon_sources[$row['icon']]))
$icon_sources[$row['icon']] = file_exists($settings['theme_dir'] . '/images/post/' . $row['icon'] . '.gif') ? 'images_url' : 'default_images_url';

censorText($row['subject']);
censorText($row['body']);

$return[] = array(
'id' => $row['ID_TOPIC'],
'message_id' => $row['ID_MSG'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
'subject' => $row['subject'],
'time' => timeformat($row['posterTime']),
'timestamp' => forum_time(true, $row['posterTime']),
'body' => $row['body'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['numReplies'] . ' ' . ($row['numReplies'] == 1 ? $txt['smf_news_1'] : $txt['smf_news_2']) . '</a>',
'replies' => $row['numReplies'],
'comment_href' => !empty($row['locked']) ? '' : $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'],
'comment_link' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . ';num_replies=' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',
'new_comment' => !empty($row['locked']) ? '' : '<a href="' . $scripturl . '?action=post;topic=' . $row['ID_TOPIC'] . '.' . $row['numReplies'] . '">' . $txt['smf_news_3'] . '</a>',
'poster' => array(
'id' => $row['ID_MEMBER'],
'name' => $row['posterName'],
'href' => !empty($row['ID_MEMBER']) ? $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] : '',
'link' => !empty($row['ID_MEMBER']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['posterName'] . '</a>' : $row['posterName']
),
'locked' => !empty($row['locked']),
);
}
mysql_free_result($request);

foreach ($return as $news)
{
echo '
<div>
<a href="', $news['href'], '">', $news['icon'], '</a> <b>', $news['subject'], '</b>
<div class="smaller">', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '</div>

<div class="post" style="padding: 2ex 0;">', $news['body'], '</div>

', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'], '
</div>';
}



Forumunuzun Alfatik sıralanması
php makaleye ekleyin ve ana sayfanızdan link verin
Kod:
global $db_prefix, $user_info, $scripturl, $modSettings;

$page = $_GET['page'];
if (isset($_GET['letter']))
  $search = ' AND subject LIKE "'.$_GET['letter'].'%"';
else
  $search = ' AND subject LIKE "A%"';

$request = db_query("
        SELECT t.ID_TOPIC, posterTime, ID_MEMBER, subject, posterName, b.ID_BOARD, numReplies, numViews, memberGroups
        FROM {$db_prefix}messages AS mes, {$db_prefix}topics AS t, {$db_prefix}boards AS b
        WHERE ID_FIRST_MSG = ID_MSG
        AND b.ID_BOARD = t.ID_BOARD
        AND $user_info[query_see_board] $search
        ORDER BY subject", __FILE__, __LINE__);

$lastLetter = '';
echo '<table>';
echo '<tr><td colspan="5">';
for ($i = 65; $i < 91; ++$i)
  echo '<a href="' , $scripturl , '?page=' , $page , ';letter=' , chr($i) , '"><b>',  chr($i) , '</b></a> ';
echo '</td></tr>';

while ($row = mysql_fetch_assoc($request))
{
        $row['subject'] = html_entity_decode($row['subject'],ENT_QUOTES);
        if ($lastLetter <>  strtoupper($row['subject']{0}))
        {
          $lastLetter = strtoupper($row['subject']{0});
        echo '<tr><td colspan="5"> </td></tr>';
        echo '
        <tr><td><b>' , $lastLetter , '</b> ile başlayan konular</td>
                <td>Başlatan  </td>
                <td>Tarihi </td>
                <td align="center"> Yanıtlar </td>
                <td align="center"> İzlenme </td></tr>
        <tr><td colspan="5"><hr /></td></tr>';
        }
        $startdate = $row['posterTime'] + ($user_info['time_offset'] + $modSettings['time_offset']) * 3600;
        echo '<tr>
        <td> <a href="' , $scripturl , '?topic=' , $row['ID_TOPIC'] , '.0">' , $row['subject'] , ' </td>
        <td> <a href="' , $scripturl , '?action=profile;u=' , $row['ID_MEMBER'] , '">', $row['posterName'] , '</a> </td>
        <td> ', date('d.m.y',$startdate) , ' </td>
        <td align="center"> ' , $row['numReplies'] , ' </td>
        <td align="center"> ' , $row['numViews'] , ' </td></tr>';
}
echo '</table>';

mysql_free_result($request);



Not: Yukardaki kodların çalışması için php blok veya php makale ekle diyerek girmelisiniz
kodlar tinyportalın genel sitesinden alıntıdır çoğu kodlar yabancı bölümlerden alınmıştır
Logged

Robot Moderatör
Anahtar Kelime
*****
Offline Pasif

Mesajlar: 42,063


View Profile
Re: Tiny portal blokları ve makaleleri
« Posted on: 05 Temmuz 2009, 23:06:24 »

 
      uyari
Merhaba ziyaretçi. Öncelikle sitemize hoşgeldiniz. Ben robot moderatör olrak siteden daha fazla yararlanmanız için sitemize üye olmanızı öneririm. iyi eğlenceler.

giris  kayit
Anahtar Kelimeler: Tiny portal blokları ve makaleleri oyunları, Tiny portal blokları ve makaleleri programı, Tiny portal blokları ve makaleleri oyunu indir, Tiny portal blokları ve makaleleri program yükle, Tiny portal blokları ve makaleleri download, Tiny portal blokları ve makaleleri hikayeleri, Tiny portal blokları ve makaleleri resimleri, Tiny portal blokları ve makaleleri haber, Tiny portal blokları ve makaleleri yükle, Tiny portal blokları ve makaleleri videosu, Tiny portal blokları ve makalelerialbüm indir,maçının golleri,seyret,dinle,izle,online izle bedava ödev indir msn eklentisi, şarkı sözleri,kurtlarvadisi,mp3,dizi,şarkı,indir,download, avatar, internet, Öss, Eğitim, Kpss, Üniversite, Lost, Dizi, Kurtlar Vadisi, Avrupa Yakası, Heroes, DVD, Program Download, Windows Xp, Vista, Donanım, Film, Sinema
Logged
DuHa_eNeS
Ziyaretçi
« Yanıtla #1 : 27 Ekim 2007, 10:09:51 »

ben php box olarak ekledım fakat son konular tablosu bu sekılde cıkdı html bbc tablo olarak ekledım yıne aynı scriptbox olarak ekledım oda aynı cıkmadı bır turlu neden oluyor boyle?


Logged
alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« Yanıtla #2 : 27 Ekim 2007, 10:12:16 »

bunu bir denermisin php box da çalışıyor
Kod:
global $scripturl;

echo '
                        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
                               <tr><td colspan="3" class="titlebg">Forumdan son Konular</td></tr> ';
       $what=ssi_recentTopics('10', NULL, 'array');


        foreach ($what as $topic)
        {
                echo '
                                <tr>
                                        <td class="windowbg" valign="middle">
                                                ', $topic['link'];

                // Is this topic new? (assuming they are logged in!)
                if (!$topic['new'] && $context['user']['is_logged'])
                        echo '
                                                <a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['new_from'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';

                echo '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="20%">
                                                ', $topic['poster']['link'], '
                                        </td>
                                        <td class="windowbg2" valign="middle" width="35%">';
                if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
                        echo '
                                        <a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" /></a>';
                echo '
                                                <span class="smalltext">
                                                        ', $topic['time'], '
                                                </span>
                                        </td>
                                </tr>';
        }

        echo '
                        </table>';
Logged

DuHa_eNeS
Ziyaretçi
« Yanıtla #3 : 27 Ekim 2007, 10:16:10 »

Parse error: syntax error, unexpected '<' in /home/nesilbiz/public_html/Sources/Load.php(1744) : eval()'d code(35) : eval()'d code on line 1

bu hatayı verıyor gozukmuyor
Logged
alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« Yanıtla #4 : 27 Ekim 2007, 10:17:25 »

Parse error: syntax error, unexpected '<' in /home/nesilbiz/public_html/Sources/Load.php(1744) : eval()'d code(35) : eval()'d code on line 1

bu hatayı verıyor gozukmuyor

şimdi baktım olmuş herhalde sitende
Logged

alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« Yanıtla #5 : 27 Ekim 2007, 10:19:31 »

Çerçeve kullan ama başlık kullanma  seçeneği seçersen iki tane Forumdan son Konular çıkmaz
Logged

DuHa_eNeS
Ziyaretçi
« Yanıtla #6 : 27 Ekim 2007, 10:21:11 »

evet oldu ama hala bır sorun var blok cercevesı ust kısmı ıkı tane cıkıyor ya bu kodlar neden benım portala gelınce olmuyor anlamadım bızemı garazı var Sınır ettı bızı yahu


Logged
alp
Admin
******

Rep 144
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 8,455



WWW
« Yanıtla #7 : 27 Ekim 2007, 10:22:40 »

Çerçeve kullan ama başlık kullanma  seçeneği seçersen iki tane Forumdan son Konular çıkmaz

bunu kod eklediğin yerde hemen aşağısına bak dediğim yeri işaretle olur
Logged

alpaslan20
Acemi Üye
*

Rep 0
Çevrimdışı Çevrimdışı

Mesaj Sayısı: 22

Avatar Yok


« Yanıtla #8 : 12 Nisan 2008, 00:49:43 »

arcade orta blok   bende olmasina lazim çalişmiyor.. ana sayfa açilmiyor ?
Logged
Sayfa: [1]   Yukarı git
Yazdır
Sanalworld-Anahtar kelimeler Tiny portal blokları ve makaleleriYeni albümler indir dinle,mp3 indir dinle,oyunlar dizi özetleri fragmanları,haber,yükle,filmi indir izle,online izle,bölüm online dizi izle,kurtlar vadisi pusu yeni bölüm fragmanı indir izle müzikleri,dizi müzikleri ,indir,download,adanalı dizisi,albümü indir,şarkıcı,yemek tarifleri,bedava ödev,ünlü resimleri,görüntüleri fotoğrafları,maçın golleri özetleri,Paylaşım, knight online, garip olaylar, galatasaray, Tiny portal blokları ve makalelerifenerbahçe, beşiktaş, Film, Dizi, Müzik, Program, Oyun, Download, Dostluk, Sinema, Video, Eğlence, Komik, Mühendislik, Eğitim, Kadın, Siyaset, Resim, Cep, Bilgisayar, Kültür, Sanat, Tarih, Edebiyat, Turizm, Spor Tiny portal blokları ve makaleleri
Gitmek istediğiniz yer:  



TinyPortal v.1.0.6 beta 2 © Bloc
|Sitemap 1| 2| 3| 4| 5| 6| Wap| Wap 2| XML| Arşiv| Arşiv 2|index|Rss| Web Stats