MaxRom | Scripturi uCoz Romania

Bannerul tau aici
[ Mesaje noi · Membrii · Regulamentul forumului · RSS ]
Pagina 1 din 11
Forum » uCoz system » Forum » Obţineţi link-ul de la Thread în trei moduri
Obţineţi link-ul de la Thread în trei moduri
Devil Date: Joi, 2011-06-30, 18:35 | Message # 1
Mesaje: 425
Awards: 15
« 29 »

Instalare :

CP ---> Design ---> Design management (templates) ---> Forum ---> General appearance of forum pages ---> jos de tot adaugati :
Code
<?if($PAGE_ID$='threadpage')?>
    <script type="text/javascript">
    var wgh = $(".postTdTop:first").attr('width');
    var uSiteURLT = $("a.forumBarA").attr('href');
    $(".bottomPathBar").prepend('<div class="LinksTheme"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="'+wgh+'" class="LinkFirstTD" algin="left">HTML link:</td><td align="left" class="LinkTwoTD"><input id="uSiteHTML"onclick="this.focus();this.select()" spellcheck="false" type="text"></td></tr><tr><td width="'+wgh+'" class="LinkFirstTD" algin="left">BB link:</td><td align="left" class="LinkTwoTD"><input id="uSiteBBCODE"onclick="this.focus();this.select()" spellcheck="false" type="text"></td></tr><tr><td width="'+wgh+'" class="LinkFirstTD" algin="left">Direct link:</td><td align="left" class="LinkTwoTD"><input id="uSiteINNER"onclick="this.focus();this.select()" spellcheck="false" type="text"></td></tr></table></div>');
    $(".LinkFirstTD:first, .LinkTwoTD:first, .LinkFirstTD:eq(1), .LinkTwoTD:eq(1)").css({borderBottom: '1px solid #191512'});
    $("#uSiteHTML").val('<a href="'+uSiteURLT+'">'+$("a.forumBarA:first").text()+'</a>');
    $("#uSiteBBCODE").val('[url='+uSiteURLT+']'+$("a.forumBarA:first").text()+'[/url]');
    $("#uSiteINNER").val(uSiteURLT);
    </script>
    <?endif?>


Iar in "CSS " stilul :
Code
.LinksTheme {border:1px solid #ccc; background:#fff; margin-top:3px;}
    .LinkFirstTD {border:0px; border-right:1px dotted #ccc; background:#fff; padding:3px 5px;}
    .LinkTwoTD {background:#f5f5f5; padding:3px;}
    .LinkTwoTD input {border:1px solid #ccc; background:#fff; padding:3px; width:99%;}


Sursa : Link
Rezultat :

 
Forum » uCoz system » Forum » Obţineţi link-ul de la Thread în trei moduri
Pagina 1 din 11
Căutare: