HamsteR | Laiks: Otrdiena, 2011-06-21, 1:52 PM | Raksts : # 1 |
Grupa: User Raksti: 12 Balvas: 0 Reputacija: 0 Aizradijumi: |
|
| Ejam uz CP -> General Style -> Forum -> -> General apperance of forum pages, atrodam $BODY$ un aiz ta ievietojam kodu: Code <?if($PAGE_ID$='threadpage')?> <script type="text/javascript"> /* TopicAuthor script by Vanofuture - http://alexeenko.org/ */ var url = location.href.split('/')[4].split('?')[0].split('#')[0].split('-'); if (url.length == 3 && url[2] != '1') { $.get($('a.forumBarA:first').attr('href'), function(data) { var author = $('td.postTdTop:first a', data); $('td.postTdTop a:contains("' + author.text() + '")').parent().parent().next().find('td:first').each(function() { if ($(this).find('img.userAvatar').length != 0) { $(this).find('img.userAvatar').after(' <b style="color: red;">Автор темы</b>'); } else { $(this).prepend('<b style="color: red;">Tēmas autors</b> '); } }); }); } else { var author = $('td.postTdTop:first a'); $('td.postTdTop a:contains("' + author.text() + '")').parent().parent().next().find('td:first').each(function() { if ($(this).find('img.userAvatar').length != 0) { $(this).find('img.userAvatar').after(' <b style="color: red;">Tēmas autors</b>'); } else { $(this).prepend('<b style="color: red;">Tēmas autors</b> '); } }); } </script> <?endif?> Pielikums : http://manalapa.ucoz.lv/_fr/0/9690702.jpg
Ja jums noderēja, tad papildinat man reputaciju
Rakstu Editoja : HamsteR - Otrdiena, 2011-06-21, 1:57 PM |
|
|
|