Forum anasayfasına admin panelden ayarlı manşet haber ekler.
Demo: http://www.spinabifidaturkey.com/demo3/index.php
Paket olarak kurmak isteyenler tıklayınız.



./Themes/default/BoardIndex.template.php

Bul:
echo '

';

Değiştir:
echo '
';
if (!empty($settings['smf_header_news_show']))
echo '

', $txt['header_news'], '












news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news
news



'. $settings['smf_header_news_1_title'] . '


'. $settings['smf_header_news_2_title'] . '


'. $settings['smf_header_news_3_title'] . '


'. $settings['smf_header_news_4_title'] . '


'. $settings['smf_header_news_5_title'] . '


'. $settings['smf_header_news_6_title'] . '


'. $settings['smf_header_news_7_title'] . '


'. $settings['smf_header_news_8_title'] . '


'. $settings['smf_header_news_9_title'] . '


'. $settings['smf_header_news_10_title'] . '



'. $settings['smf_header_news_11_title'] . '


'. $settings['smf_header_news_12_title'] . '


'. $settings['smf_header_news_13_title'] . '


'. $settings['smf_header_news_14_title'] . '


'. $settings['smf_header_news_15_title'] . '


'. $settings['smf_header_news_16_title'] . '


'. $settings['smf_header_news_17_title'] . '


'. $settings['smf_header_news_18_title'] . '


'. $settings['smf_header_news_19_title'] . '


'. $settings['smf_header_news_20_title'] . '

';
echo '
';

./Themes/default/Settings.template.php

Bul:
array(
'id' => 'additional_options_collapsable',
'label' => $txt['additional_options_collapsable'],
),


Altına ekle:
'',
array(
'id' => 'smf_header_news_show',
'label' => $txt['smf_header_news_show'],
),
array(
'id' => 'smf_header_news_1_title',
'label' => $txt['smf_header_news_1_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_1',
'label' => $txt['smf_header_news_1'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_1_img',
'label' => $txt['smf_header_news_1_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_2_title',
'label' => $txt['smf_header_news_2_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_2',
'label' => $txt['smf_header_news_2'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_2_img',
'label' => $txt['smf_header_news_2_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_3_title',
'label' => $txt['smf_header_news_3_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_3',
'label' => $txt['smf_header_news_3'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_3_img',
'label' => $txt['smf_header_news_3_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_4_title',
'label' => $txt['smf_header_news_4_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_4',
'label' => $txt['smf_header_news_4'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_4_img',
'label' => $txt['smf_header_news_4_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_5_title',
'label' => $txt['smf_header_news_5_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_5',
'label' => $txt['smf_header_news_5'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_5_img',
'label' => $txt['smf_header_news_5_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_6_title',
'label' => $txt['smf_header_news_6_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_6',
'label' => $txt['smf_header_news_6'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_6_img',
'label' => $txt['smf_header_news_6_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_7_title',
'label' => $txt['smf_header_news_7_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_7',
'label' => $txt['smf_header_news_7'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_7_img',
'label' => $txt['smf_header_news_7_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_8_title',
'label' => $txt['smf_header_news_8_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_8',
'label' => $txt['smf_header_news_8'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_8_img',
'label' => $txt['smf_header_news_8_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_9_title',
'label' => $txt['smf_header_news_9_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_9',
'label' => $txt['smf_header_news_9'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_9_img',
'label' => $txt['smf_header_news_9_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_10_title',
'label' => $txt['smf_header_news_10_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_10',
'label' => $txt['smf_header_news_10'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_10_img',
'label' => $txt['smf_header_news_10_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_11_title',
'label' => $txt['smf_header_news_11_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_11',
'label' => $txt['smf_header_news_11'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_11_img',
'label' => $txt['smf_header_news_11_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_12_title',
'label' => $txt['smf_header_news_12_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_12',
'label' => $txt['smf_header_news_12'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_12_img',
'label' => $txt['smf_header_news_12_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_13_title',
'label' => $txt['smf_header_news_13_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_13',
'label' => $txt['smf_header_news_13'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_13_img',
'label' => $txt['smf_header_news_13_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_14_title',
'label' => $txt['smf_header_news_14_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_14',
'label' => $txt['smf_header_news_14'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_14_img',
'label' => $txt['smf_header_news_14_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_15_title',
'label' => $txt['smf_header_news_15_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_15',
'label' => $txt['smf_header_news_15'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_15_img',
'label' => $txt['smf_header_news_15_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_16_title',
'label' => $txt['smf_header_news_16_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_16',
'label' => $txt['smf_header_news_16'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_16_img',
'label' => $txt['smf_header_news_16_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_17_title',
'label' => $txt['smf_header_news_17_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_17',
'label' => $txt['smf_header_news_17'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_17_img',
'label' => $txt['smf_header_news_17_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_18_title',
'label' => $txt['smf_header_news_18_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_18',
'label' => $txt['smf_header_news_18'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_18_img',
'label' => $txt['smf_header_news_18_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_19_title',
'label' => $txt['smf_header_news_19_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_19',
'label' => $txt['smf_header_news_19'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_19_img',
'label' => $txt['smf_header_news_19_img'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_20_title',
'label' => $txt['smf_header_news_20_title'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_20',
'label' => $txt['smf_header_news_20'],
'type' => 'text',
),
array(
'id' => 'smf_header_news_20_img',
'label' => $txt['smf_header_news_20_img'],
'type' => 'text',
),


./Themes/default/languages/Modifications.english.php

Bul:
?>

Üstüne ekle:
$txt['smf_header_news_show'] = 'Header news show';
$txt['smf_header_news_1_title'] = 'Enter the first news title';
$txt['smf_header_news_1'] = 'Enter the first news link';
$txt['smf_header_news_1_img'] = 'Enter the first news image';
$txt['smf_header_news_2_title'] = 'Enter the title of the second news';
$txt['smf_header_news_2'] = 'Enter the second news link';
$txt['smf_header_news_2_img'] = 'Enter the second news image';
$txt['smf_header_news_3_title'] = 'Enter the title of the thirt news';
$txt['smf_header_news_3'] = 'Enter the thirt news link';
$txt['smf_header_news_3_img'] = 'Enter the thirt news image';
$txt['smf_header_news_4_title'] = 'Enter the title of the fourth news';
$txt['smf_header_news_4'] = 'Enter the fourth news link';
$txt['smf_header_news_4_img'] = 'Enter the fourth news image';
$txt['smf_header_news_5_title'] = 'Enter the title of the fifth news';
$txt['smf_header_news_5'] = 'Enter the fifth news link';
$txt['smf_header_news_5_img'] = 'Enter the fifth news image';
$txt['smf_header_news_6_title'] = 'Enter the title of the sixth news';
$txt['smf_header_news_6'] = 'Enter the sixth news link';
$txt['smf_header_news_6_img'] = 'Enter the sixth news image';
$txt['smf_header_news_7_title'] = 'Enter the title of the seventh news';
$txt['smf_header_news_7'] = 'Enter the seventh news link';
$txt['smf_header_news_7_img'] = 'Enter the seventh news image';
$txt['smf_header_news_8_title'] = 'Enter the title of the eighth news';
$txt['smf_header_news_8'] = 'Enter the eighth news link';
$txt['smf_header_news_8_img'] = 'Enter the eighth news image';
$txt['smf_header_news_9_title'] = 'Enter the title of the ninth news';
$txt['smf_header_news_9'] = 'Enter the ninth news link';
$txt['smf_header_news_9_img'] = 'Enter the ninth news image';
$txt['smf_header_news_10_title'] = 'Enter the title of the tenth news';
$txt['smf_header_news_10'] = 'Enter the tenth news link';
$txt['smf_header_news_10_img'] = 'Enter the tenth news image';
$txt['smf_header_news_11_title'] = 'Enter the title of the twelfth news';
$txt['smf_header_news_11'] = 'Enter the eleventh news link';
$txt['smf_header_news_11_img'] = 'Enter the eleventh news image';
$txt['smf_header_news_12_title'] = 'Enter the title of the twelfth news';
$txt['smf_header_news_12'] = 'Enter the twelfth news link';
$txt['smf_header_news_12_img'] = 'Enter the twelfth news image';
$txt['smf_header_news_13_title'] = 'Enter the title of the thirteenth news';
$txt['smf_header_news_13'] = 'Enter the thirteenth news link';
$txt['smf_header_news_13_img'] = 'Enter the thirteenth news image';
$txt['smf_header_news_14_title'] = 'Enter the title of the fourteenth news';
$txt['smf_header_news_14'] = 'Enter the fourteenth news link';
$txt['smf_header_news_14_img'] = 'Enter the fourteenth news image';
$txt['smf_header_news_15_title'] = 'Enter the title of the fifteenth news';
$txt['smf_header_news_15'] = 'Enter the fifteenth news link';
$txt['smf_header_news_15_img'] = 'Enter the fifteenth news image';
$txt['smf_header_news_16_title'] = 'Enter the title of the sixteenth news';
$txt['smf_header_news_16'] = 'Enter the sixteenth news link';
$txt['smf_header_news_16_img'] = 'Enter the sixteenth news image';
$txt['smf_header_news_17_title'] = 'Enter the title of the seventeenth news';
$txt['smf_header_news_17'] = 'Enter the seventeenth news link';
$txt['smf_header_news_17_img'] = 'Enter the seventeenth news image';
$txt['smf_header_news_18_title'] = 'Enter the title of the eighteenth news';
$txt['smf_header_news_18'] = 'Enter the eighteenth news link';
$txt['smf_header_news_18_img'] = 'Enter the eighteenth news image';
$txt['smf_header_news_19_title'] = 'Enter the title of the nineteenth news';
$txt['smf_header_news_19'] = 'Enter the nineteenth news link';
$txt['smf_header_news_19_img'] = 'Enter the nineteenth news image';
$txt['smf_header_news_20_title'] = 'Enter the title of the early twentieth news';
$txt['smf_header_news_20'] = 'Enter the early twentieth news link';
$txt['smf_header_news_20_img'] = 'Enter the early twentieth news image';
$txt['header_news'] = 'Header News';


./Themes/default/languages/Modifications.turkish.php
Bul:
?>

Üstüne ekle:
$txt['smf_header_news_show'] = 'Manşet haberleri göster';
$txt['smf_header_news_1_title'] = '1. haberin başlığını giriniz';
$txt['smf_header_news_1'] = '1. haberin linkini giriniz';
$txt['smf_header_news_1_img'] = '1. habere ait resimin urlsini giriniz';
$txt['smf_header_news_2_title'] = '2. haberin başlığını giriniz';
$txt['smf_header_news_2'] = '2. haberin linkini giriniz';
$txt['smf_header_news_2_img'] = '2. habere ait resimin urlsini giriniz';
$txt['smf_header_news_3_title'] = '3. haberin başlığını giriniz';
$txt['smf_header_news_3'] = '3. haberin linkini giriniz';
$txt['smf_header_news_3_img'] = '3. habere ait resimin urlsini giriniz';
$txt['smf_header_news_4_title'] = '4. haberin başlığını giriniz';
$txt['smf_header_news_4'] = '4. haberin linkini giriniz';
$txt['smf_header_news_4_img'] = '4. habere ait resimin urlsini giriniz';
$txt['smf_header_news_5_title'] = '5. haberin başlığını giriniz';
$txt['smf_header_news_5'] = '5. haberin linkini giriniz';
$txt['smf_header_news_5_img'] = '5. habere ait resimin urlsini giriniz';
$txt['smf_header_news_6_title'] = '6. haberin başlığını giriniz';
$txt['smf_header_news_6'] = '6. haberin linkini giriniz';
$txt['smf_header_news_6_img'] = '6. habere ait resimin urlsini giriniz';
$txt['smf_header_news_7_title'] = '7. haberin başlığını giriniz';
$txt['smf_header_news_7'] = '7. haberin linkini giriniz';
$txt['smf_header_news_7_img'] = '7. habere ait resimin urlsini giriniz';
$txt['smf_header_news_8_title'] = '8. haberin başlığını giriniz';
$txt['smf_header_news_8'] = '8. haberin linkini giriniz';
$txt['smf_header_news_8_img'] = '8. habere ait resimin urlsini giriniz';
$txt['smf_header_news_9_title'] = '9. haberin başlığını giriniz';
$txt['smf_header_news_9'] = '9. haberin linkini giriniz';
$txt['smf_header_news_9_img'] = '9. habere ait resimin urlsini giriniz';
$txt['smf_header_news_10_title'] = '10. haberin başlığını giriniz';
$txt['smf_header_news_10'] = '10. haberin linkini giriniz';
$txt['smf_header_news_10_img'] = '10. habere ait resimin urlsini giriniz';
$txt['smf_header_news_11_title'] = '11. haberin başlığını giriniz';
$txt['smf_header_news_11'] = '11. haberin linkini giriniz';
$txt['smf_header_news_11_img'] = '11. habere ait resimin urlsini giriniz';
$txt['smf_header_news_12_title'] = '12. haberin başlığını giriniz';
$txt['smf_header_news_12'] = '12. haberin linkini giriniz';
$txt['smf_header_news_12_img'] = '12. habere ait resimin urlsini giriniz';
$txt['smf_header_news_13_title'] = '13. haberin başlığını giriniz';
$txt['smf_header_news_13'] = '13. haberin linkini giriniz';
$txt['smf_header_news_13_img'] = '13. habere ait resimin urlsini giriniz';
$txt['smf_header_news_14_title'] = '14. haberin başlığını giriniz';
$txt['smf_header_news_14'] = '14. haberin linkini giriniz';
$txt['smf_header_news_14_img'] = '14. habere ait resimin urlsini giriniz';
$txt['smf_header_news_15_title'] = '15. haberin başlığını giriniz';
$txt['smf_header_news_15'] = '15. haberin linkini giriniz';
$txt['smf_header_news_15_img'] = '15. habere ait resimin urlsini giriniz';
$txt['smf_header_news_16_title'] = '16. haberin başlığını giriniz';
$txt['smf_header_news_16'] = '16. haberin linkini giriniz';
$txt['smf_header_news_16_img'] = '16. habere ait resimin urlsini giriniz';
$txt['smf_header_news_17_title'] = '17. haberin başlığını giriniz';
$txt['smf_header_news_17'] = '17. haberin linkini giriniz';
$txt['smf_header_news_17_img'] = '17. habere ait resimin urlsini giriniz';
$txt['smf_header_news_18_title'] = '18. haberin başlığını giriniz';
$txt['smf_header_news_18'] = '18. haberin linkini giriniz';
$txt['smf_header_news_18_img'] = '18. habere ait resimin urlsini giriniz';
$txt['smf_header_news_19_title'] = '19. haberin başlığını giriniz';
$txt['smf_header_news_19'] = '19. haberin linkini giriniz';
$txt['smf_header_news_19_img'] = '19. habere ait resimin urlsini giriniz';
$txt['smf_header_news_20_title'] = '20. haberin başlığını giriniz';
$txt['smf_header_news_20'] = '20. haberin linkini giriniz';
$txt['smf_header_news_20_img'] = '20. habere ait resimin urlsini giriniz';
$txt['header_news'] = 'Manşet Haberler';


Paketten çıkan header-news.png isimli resimi default temanın ve kullandığınız temanın images klasörüne atın.

./Themes/default/css/index.css

En alta ekle:
.header_news_bg
{
background: #ffffff url(../images/header-news.png) no-repeat;
background-position:center 1px;
width: 290px;
height: 230px;
border: none;
margin-top: 0;
margin-bottom: 0;
vertical-align:text-top;
}
.header_news_bg img
{
height: 220px;
width: 280px;
border: 1px solid #9B9B9B;
visibility:hidden;
position:absolute;
padding-top:0px;
height:220px;
width:280px;
}
.header_news
{
font-size: 14px;
line-height: 150%;
border: none;

}


this site / CC BY 3.0
 

 

wmaraci
reklam