|
Comunitatea uCoz Altele Instrumente şi Script-uri Obţineţi link-ul de la Thread în trei moduri |
Obţineţi link-ul de la Thread în trei moduri |
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 : Ucause ![]() ![]() |
| |||
| |||