New messages Members Forum rules Search
  • Page 1 of 1
  • 1
Forum moderator: kostova  
uCoz Support Forum by uCozers » uCoz » Forum » How to add link to posts (sml[tutorial] Tutorial!)
How to add link to posts
jackassDate: Sunday, 2009 July 05, 4:44 PM | Message # 1
Font size: A | A |
Major general
Group: Administrator
Message: 433
[ ]
Offline
Link to Post will provide you three codes:
1st HTML code to this post
2nd BB-code link to this post
3rd Direct link to post

Here is the screenshot of the end result of this tutorial:




To any module!

Go to Main » Customize design
Choose module where you want it to appear
Edit Page with entry full text and its comments

Add this code where you want the links to appear

Code
<table>
<tr>
<td width="30%"><b>HTML code to this post</b></td>
<td width="70%">
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();"><a href="'+window.location+'">$ENTRY_TITLE$</a></textarea>')
</script>
</td>
</tr>
<tr>
<td><b>BB-code to this post</b></td>
<td>
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">[url='+window.location+']$ENTRY_TITLE$[/url]</textarea>')
</script>
</td>
</tr>
<tr>
<td><b>Direct link</b></td>
<td>
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">'+window.location+'</textarea>')
</script>
</td>
</tr>
</table>




To Forum only

Go to Main » Customize design
Choose Forum module
Edit Appearance of entries

Add this code where you want the links to appear

Code
<table>
<tr>
<td width="30%"><b>HTML code to this post</b></td>
<td width="70%">
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();"><a href="http://example.ucoz.com/forum/$FID$-$TID$-$ID$-16-$TIMESTAMP$">$USERNAME$ post</a></textarea>')
</script>
</td>
</tr>
<tr>
<td><b>BB-code to this post</b></td>
<td>
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">[url=http://example.ucoz.com/forum/$FID$-$TID$-$ID$-16-$TIMESTAMP$]$USERNAME$ post[/url]</textarea> ')
</script>
</td>
</tr>
<tr>
<td><b>Direct link to this post</b></td>
<td>
<script>
var today=new Date()
document.write('<textarea readOnly style="width:100%; height:29px; font-size:11px; border:1px solid #E0E0E0;" onfocus="this.select();">http://example.ucoz.com/forum/$FID$-$TID$-$ID$-16-$TIMESTAMP$</textarea> ')
</script>
</td>
</tr>
</table>

Where http://example.ucoz.com change to your site link



Taken from http://arnis.ucoz.lv/
Attachments: 7038971.jpg(23.1 Kb)


 
barc00deDate: Thursday, 2009 July 09, 8:41 PM | Message # 2
Font size: A | A |
Lieutenant
Group: uCozer
Message: 55
[ ]
Offline
[bgcolor=blue]

veri gud

 
KroneDate: Tuesday, 2009 October 13, 12:08 PM | Message # 3
Font size: A | A |
Lieutenant
Group: uCozer
Message: 79
[ ]
Offline
Thanks biggrin


How do you hide it?

Like on here, you click "Link To Post" and then it opens...


http://www.gamescenterarcade.com/

Edited ByKrone - Tuesday, 2009 October 13, 12:13 PM
 
kostovaDate: Tuesday, 2009 October 13, 12:17 PM | Message # 4
Font size: A | A |
Colonel
Group: Administrator
Message: 268
[ ]
Offline
Just click it again. It's suppose to function as a toggle effect.
 
KroneDate: Tuesday, 2009 October 13, 12:33 PM | Message # 5
Font size: A | A |
Lieutenant
Group: uCozer
Message: 79
[ ]
Offline
This is what mine looks like: http://i36.tinypic.com/5mu6b.jpg

http://www.gamescenterarcade.com/

Edited ByKrone - Tuesday, 2009 October 13, 12:36 PM
 
kostovaDate: Tuesday, 2009 October 13, 1:17 PM | Message # 6
Font size: A | A |
Colonel
Group: Administrator
Message: 268
[ ]
Offline
Ask jackass. I can't find it on the forum right now but if you don't get your response soon I'll make a thread on it.
 
farhan3411Date: Saturday, 2011 January 08, 10:00 PM | Message # 7
Font size: A | A |
Private
Group: User
Message: 2
[ ]
Offline
hmmm this is really nice script for ucoz forum.but i have a question.i just wana show
thread name axcept of

$USERNAME$ post

please guide me.

visit my website

 
uCoz Support Forum by uCozers » uCoz » Forum » How to add link to posts (sml[tutorial] Tutorial!)
  • Page 1 of 1
  • 1
Search:


Copyrights uCozers 2009 - 2019 To TOP
Refresh Smileys Manager