Link to this post
2 posters
Page 1 of 1
Link to this post
Hello,
I was wondering how can i do this you know punBB have those numbers in posts and i want to put a link to those numbers so when you click on that number you get the post.
I was wondering how can i do this you know punBB have those numbers in posts and i want to put a link to those numbers so when you click on that number you get the post.
Re: Link to this post
Since you have opened this topic I'd want to see a demo, or a link where you seen that feauture. As I understand you mean these numbers that are in any post. If yes I think there is a little trick with varaiables. Anyway, I'd want more details, a demo will be pretty cool and I can help you if the probles is those I understand.
Guest- Guest
Re: Link to this post
Finely I found a demo just like ZetaBoards have it but not to pup up a new window.
Re: Link to this post
This will do it for you:
There probably is an easier way with templates. But i hate templates and won't often look at them.
- Code:
$(function() {
var x=$('.posthead').get();
for (i=0;i<x.length;i++) {
var y=$(x[i]).find('strong')[0];
var num=y.innerHTML;
var z=$(x[i]).find('a')[0];
$(y).replaceWith('<a href="'+z.href+'"><strong>'+num+'</strong></a>');
}});
There probably is an easier way with templates. But i hate templates and won't often look at them.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Link to this post
Yes i want to do it from the templates. But if you think that script work then can you tell where to add it.
Re: Link to this post
JS management. Tick in topics.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Link to this post
I tried that but is not what i was looking for.
But i saw it at Dion's Tutorial: http://diondesigns.forumotion.com/t1338-example-10-a-professional-looking-like-dislike-bar-phpbb3-invision-punbb
and thats how i wanna it to do it when you click on the post number and the post pop up with the url.
But i saw it at Dion's Tutorial: http://diondesigns.forumotion.com/t1338-example-10-a-professional-looking-like-dislike-bar-phpbb3-invision-punbb
and thats how i wanna it to do it when you click on the post number and the post pop up with the url.
Similar topics
» How do I post an outside link on home page? Link is too long.
» Link to a post
» How do I link a post?
» How to link to a post
» Link to a post
» Link to a post
» How do I link a post?
» How to link to a post
» Link to a post
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum