To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
Forum Supportu
czo.pl/wxv.pl

wxv.pl [Problemy/Pytania] - konfiguracja forum

Piotrek - 2012-12-28, 12:33

Filmaj1, nie, nie mam zawsze racji :P

bobik, masz ten kod na ikonki ale musisz go sobie zmodyfikować.
Kod:
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js></script>


<script>

function cher(dzial, wiersz, z, bez) {

var offset = dzial.charAt(0) == 'c' ? 2 : 1;

$dzial = $('#hc_' + dzial);
$wiersz = $dzial.find('tr:nth-child(' + (wiersz + offset) + ')');
$kolumna = $wiersz.find('td:nth-child(1)');


$img = $kolumna.find('img');

if($img.attr('title') == 'Nowe posty')
$img.attr('src', z);
else
$img.attr('src', bez);
$img.css({borderWidth: 1, borderStyle: 'solid', borderColor: '#555'}).show();

}

$(document).ready(function() {



cher('c1', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/10k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/10k.jpg');
cher('c1', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/91k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/91k.jpg');
cher('c1', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/96k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/96k.jpg');
cher('c1', 4, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/89k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/89k.jpg');
cher('c1', 5, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s1.jpg');
cher('c1', 6, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s2.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s2.jpg');


cher('c5', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s3.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s3.jpg');
cher('c5', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s4.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s4.jpg');
cher('c5', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s5.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s5.jpg');


cher('c6', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s6.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s6.jpg');
cher('c6', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/80s2.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th80s2.jpg');
cher('c6', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/rayk-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/rayc-1.jpg');




cher('f16', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s3.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s3.jpg');


cher('c7', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s4.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s4.jpg');
cher('c7', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s5.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s5.jpg');


cher('f17', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/80s1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th80s1.jpg');



$('td.bodyline table:eq(1) td:eq(1)').append($div);

}


});

</script>

Wklejasz to w Banner w nagłówku forum

Mich@ł - 2012-12-28, 19:20

Piotrek, o właśnie i w końcu post na temat ;)

Wszystko fajnie ale po co kod łączy się z FB?
Kod:
//facebook like
if(location.pathname == '/' || location.pathname == '/index.php') {
$div = $('<div />').css('position', 'relative').append($('<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fcher.feen.pl&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px; position: absolute; top: -33px; left: 35px" allowTransparency="true"></iframe>'));

Piotrek - 2012-12-28, 19:22

Hmmmm. Mój błąd.


Edit: Wyciąłem to.

Filmaj1 - 2012-12-28, 19:46

A co z moim pytaniem do ikonki działu? Chodzi mi o tą ikonke: Nowe posty, dział zablokowany itd.
Piotrek - 2012-12-28, 20:42

No to na to dałem kod posty wyżej :)
Filmaj1 - 2012-12-30, 11:38

Ale gdzie to wkleić Piotrusiu kochany? xP.
Mich@ł - 2012-12-30, 11:49

Piotrek napisał/a:
Wklejasz to w Banner w nagłówku forum



Powered by phpBB modified by Przemo © 2003 phpBB Group