1.12.7 i starsze - Dodatkowe linki przy artkule
MooFix - 28-02-2010, 21:34 Temat postu: Dodatkowe linki przy artkule
Kod: | #####################################################################################
## MOD Title: Dodatkowe linki przy artkule
## MOD Author: MooFix ( Brak )
## MOD Description: Dodaje dodatkowe linki przy artykule mod dobry dla for graficznych
## MOD Version: 1.0
## Installation Level: (Easy)
## Installation Time: 1 Minutes
##
## Files To Edit: templates/NazwaStylu/viewtopic_body.tpl
##
## Files To Copy: N/A
########################################################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/NazwaStylu/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit"></span></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<br><center><script type="text/javascript">
document.write(' Link: <input class="post" dir=ltr type="text" value="'+window.location+'"size="66"> ');
document.write('<br>');
document.write(' BBCode: <input class="post" dir=ltr type="text" value="[url='+window.location+']{title}[/url]"size="63">');
document.write('<br>');
document.write(' HTML: <input class="post" dir=ltr type="text" value="<a href="'+window.location+'">{title}</a>" size="65">');
</script></center><br />
#
#----------------------------------------------------------- |
lui754 - 28-02-2010, 21:37
MooFix napisał/a: | <input style="font-family: tahoma; font-size: 11p... |
daj na inputy klase "post" aby była nie trzeba było zmieniać kolorów tych pól.
Jutro sprawdze reszte.
mpo - 28-02-2010, 21:47
działa
MooFix - 28-02-2010, 21:48
lui754, jak daje post zamiast inputy to nie widać tabelek ani linków
xlesiu - 28-02-2010, 21:59
Kod: | <script>
var today=new Date()
document.write(' Link: <input class="post" dir=ltr type="text" value="'+window.location+'"size="66"> ')
</script><br />
<script>
var today=new Date()
document.write(' BBCode: <input class="post" dir=ltr type="text" value="[url='+window.location+']{title}[/url]"size="63">')
</script><br />
<script>
var today=new Date()
document.write(' HTML: <input class="post" dir=ltr type="text" value="<a href="'+window.location+'">{title}</a>" size="65">')
</script> | A tak?
MooFix - 28-02-2010, 22:08
xlesiu, tak działa już zmieniam
mpo - 28-02-2010, 22:11
demo można zobaczyć na forum.cscity.pl
Polaczek - 28-02-2010, 22:16
MooFix napisał/a: | var today=new Date() |
Po co to?
Jak today nie ma nigdzie odwołania to wywalić to.
A i będzie tak optymalniej:
Kod: | <script type="text/javascript">
document.write(' Link: <input class="post" dir=ltr type="text" value="'+window.location+'"size="66"> ');
document.write('<br>');
document.write(' BBCode: <input class="post" dir=ltr type="text" value="[url='+window.location+']{title}[/url]"size="63">');
document.write('<br>');
document.write(' HTML: <input class="post" dir=ltr type="text" value="<a href="'+window.location+'">{title}</a>" size="65">');
</script> |
mpo - 28-02-2010, 22:20
@UP
Wersja Polaczka działa możecie sprawdzić na forum które podałem @2UP
MooFix - 28-02-2010, 22:26
Polaczek, nie pomyślałem o tym już zmieniam to
|
|
|