• 27-02-2026, 16:47:18
    #10
    phpc adlı üyeden alıntı: mesajı görüntüle
    87. satırı kopyalayın eğer ilişkili üstte bir satır varsa onu da kopyalayın.
    yukarıda attım 80 ile 100'ü sadece 87'yimi kopyalamam gerekli kusura bakmayın çok fazla kod bilgim yok php anlamında
  • 27-02-2026, 16:48:22
    #11
    ibohappy adlı üyeden alıntı: mesajı görüntüle
    yukarıda attım 80 ile 100'ü sadece 87'yimi kopyalamam gerekli kusura bakmayın çok fazla kod bilgim yok php anlamında
    85-100 arası da olur.
  • 27-02-2026, 16:49:07
    #12
    phpc adlı üyeden alıntı: mesajı görüntüle
    85-100 arası da olur.
    <?php if (isset($mini_headlines[$i])):
                        $hl = $mini_headlines[$i]; ?>
                        <a href="haber/<?= $hl['slug'] ?>" class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>">
                            <div class="homeHero__news-card-bg"
                                style="background-image: url('<?= $hl['image'] ? 'uploads/' . $hl['image'] : 'https://fakeimg.pl/800x400/?text=Haber' ?>');">
                            </div>
                            <div class="homeHero__news-card-overlay"></div>
                            <div class="homeHero__news-card-content">
                                <?php if ($hl['category_name']): ?>
                                    <span class="homeHero__news-card-category"><?= htmlspecialchars($hl['category_name']) ?></span>
                                <?php endif; ?>
                                <h3 class="homeHero__news-card-title"><?= htmlspecialchars($hl['title']) ?></h3>
                            </div>
                        </a>
                    <?php else: ?>
                        <div class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>" style="background:#222"></div>
    85 100 arası tamamen bu şekilde hocam
  • 27-02-2026, 16:50:07
    #13
    ozerky adlı üyeden alıntı: mesajı görüntüle
    <?php if (!empty($main_headlines) || !empty($mini_headlines)): ?>
    <section class="homeHero__grid" style="margin-bottom: 40px;">
     
    <!-- ÜST 4 KART (TOP 1-4) -->
    <?php for ($i = 0; $i < 4; $i++): ?>
     
    <?php if (!empty($mini_headlines[$i]) && is_array($mini_headlines[$i])):
    $hl = $mini_headlines[$i]; ?>
     
    <a href="haber/<?= $hl['slug'] ?? '#' ?>" class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>">
     
    <div class="homeHero__news-card-bg"
    style="background-image: url('<?= !empty($hl['image']) ? 'uploads/' . $hl['image'] : 'https://fakeimg.pl/800x400/?text=Haber' ?>');">
    </div>
     
    <div class="homeHero__news-card-overlay"></div>
     
    <div class="homeHero__news-card-content">
     
    <?php if (!empty($hl['category_name'])): ?>
    <span class="homeHero__news-card-category"><?= htmlspecialchars($hl['category_name']) ?></span>
    <?php endif; ?>
     
    <h3 class="homeHero__news-card-title"><?= htmlspecialchars($hl['title'] ?? '') ?></h3>
     
    </div>
    </a>
     
    <?php else: ?>
    <div class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>" style="background:#222"></div>
    <?php endif; ?>
     
    <?php endfor; ?>
    Sorunu çözeceğini düşünüyorum.
    size attığım satırlar yerine bunları mı yapıştırmam gerekli sadece hocam
  • 27-02-2026, 16:51:36
    #14
    ibohappy adlı üyeden alıntı: mesajı görüntüle
    size attığım satırlar yerine bunları mı yapıştırmam gerekli sadece hocam
    evet doğrudur
  • 27-02-2026, 16:53:21
    #15
    ibohappy adlı üyeden alıntı: mesajı görüntüle
    size attığım satırlar yerine bunları mı yapıştırmam gerekli sadece hocam
    <?php
    $main_headlines = is_array($main_headlines ?? null) ? $main_headlines : [];
    $mini_headlines = is_array($mini_headlines ?? null) ? $mini_headlines : [];
    ?>
    
    <?php if (!empty($main_headlines) || !empty($mini_headlines)): ?>
    <section class="homeHero__grid" style="margin-bottom: 40px;">
    
    <?php for ($i = 0; $i < 4; $i++): ?>
    <?php if (!empty($mini_headlines[$i]) && is_array($mini_headlines[$i])): 
        $hl = $mini_headlines[$i];
    ?>
    <a href="haber/<?= htmlspecialchars($hl['slug'] ?? '') ?>" 
       class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>">
    
        <div class="homeHero__news-card-bg"
             style="background-image: url('<?= !empty($hl['image']) 
                ? 'uploads/' . htmlspecialchars($hl['image']) 
                : 'https://fakeimg.pl/800x400/?text=Haber' ?>');">
        </div>
    
        <div class="homeHero__news-card-overlay"></div>
    
        <div class="homeHero__news-card-content">
            <?php if (!empty($hl['category_name'])): ?>
                <span class="homeHero__news-card-category">
                    <?= htmlspecialchars($hl['category_name']) ?>
                </span>
            <?php endif; ?>
    
            <h3 class="homeHero__news-card-title">
                <?= htmlspecialchars($hl['title'] ?? '') ?>
            </h3>
        </div>
    </a>
    
    <?php else: ?>
    <div class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>" style="background:#222"></div>
    <?php endif; ?>
    <?php endfor; ?>
    
    </section>
    <?php endif; ?>
    Arkadaşın kodunu atmışım kusura bakmayın attığınız kod aralığına bu kodu yapıştırın.
  • 27-02-2026, 16:54:35
    #16
    sorun çözüldü mü ? yoksa bir anydesk ver bakalım
  • 27-02-2026, 16:55:20
    #17
    ozerky adlı üyeden alıntı: mesajı görüntüle
    <?php
    $main_headlines = is_array($main_headlines ?? null) ? $main_headlines : [];
    $mini_headlines = is_array($mini_headlines ?? null) ? $mini_headlines : [];
    ?>
    
    <?php if (!empty($main_headlines) || !empty($mini_headlines)): ?>
    <section class="homeHero__grid" style="margin-bottom: 40px;">
    
    <?php for ($i = 0; $i < 4; $i++): ?>
    <?php if (!empty($mini_headlines[$i]) && is_array($mini_headlines[$i])):
        $hl = $mini_headlines[$i];
    ?>
    <a href="haber/<?= htmlspecialchars($hl['slug'] ?? '') ?>"
       class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>">
    
        <div class="homeHero__news-card-bg"
             style="background-image: url('<?= !empty($hl['image'])
                ? 'uploads/' . htmlspecialchars($hl['image'])
                : 'https://fakeimg.pl/800x400/?text=Haber' ?>');">
        </div>
    
        <div class="homeHero__news-card-overlay"></div>
    
        <div class="homeHero__news-card-content">
            <?php if (!empty($hl['category_name'])): ?>
                <span class="homeHero__news-card-category">
                    <?= htmlspecialchars($hl['category_name']) ?>
                </span>
            <?php endif; ?>
    
            <h3 class="homeHero__news-card-title">
                <?= htmlspecialchars($hl['title'] ?? '') ?>
            </h3>
        </div>
    </a>
    
    <?php else: ?>
    <div class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>" style="background:#222"></div>
    <?php endif; ?>
    <?php endfor; ?>
    
    </section>
    <?php endif; ?>
    Arkadaşın kodunu atmışım kusura bakmayın attığınız kod aralığına bu kodu yapıştırın.
    şuan bu kodu yazdım 87 ile 129 arası:

    <?php
    $main_headlines = is_array($main_headlines ?? null) ? $main_headlines : [];
    $mini_headlines = is_array($mini_headlines ?? null) ? $mini_headlines : [];
    ?>

    <?php if (!empty($main_headlines) || !empty($mini_headlines)): ?>
    <section class="homeHero__grid" style="margin-bottom: 40px;">

    <?php for ($i = 0; $i < 4; $i++): ?>
    <?php if (!empty($mini_headlines[$i]) && is_array($mini_headlines[$i])):
    $hl = $mini_headlines[$i];
    ?>
    <a href="haber/<?= htmlspecialchars($hl['slug'] ?? '') ?>"
    class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>">

    <div class="homeHero__news-card-bg"
    style="background-image: url('<?= !empty($hl['image'])
    ? 'uploads/' . htmlspecialchars($hl['image'])
    : 'https://fakeimg.pl/800x400/?text=Haber' ?>');">
    </div>

    <div class="homeHero__news-card-overlay"></div>

    <div class="homeHero__news-card-content">
    <?php if (!empty($hl['category_name'])): ?>
    <span class="homeHero__news-card-category">
    <?= htmlspecialchars($hl['category_name']) ?>
    </span>
    <?php endif; ?>

    <h3 class="homeHero__news-card-title">
    <?= htmlspecialchars($hl['title'] ?? '') ?>
    </h3>
    </div>
    </a>

    <?php else: ?>
    <div class="homeHero__news-card homeHero__grid-item--top<?= $i + 1 ?>" style="background:#222"></div>
    <?php endif; ?>
    <?php endfor; ?>

    </section>
    <?php endif; ?>ve hata bu kaldı