The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Link to this post

2 posters

Go down

Link to this post Empty Link to this post

Post by Mati November 21st 2011, 8:53 am

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.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Link to this post Empty Re: Link to this post

Post by Guest November 21st 2011, 9:08 am

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. Wink
avatar
Guest
Guest


Back to top Go down

Link to this post Empty Re: Link to this post

Post by Mati November 21st 2011, 9:36 am

Finely I found a demo just like ZetaBoards have it but not to pup up a new window.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Link to this post Empty Re: Link to this post

Post by Mati November 23rd 2011, 12:30 pm

Bump = Link to this post Up10
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Link to this post Empty Re: Link to this post

Post by LGforum November 23rd 2011, 1:11 pm

This will do it for you:

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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Link to this post Empty Re: Link to this post

Post by Mati November 23rd 2011, 1:18 pm

Yes i want to do it from the templates. But if you think that script work then can you tell where to add it.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Link to this post Empty Re: Link to this post

Post by LGforum November 23rd 2011, 1:20 pm

JS management. Tick in topics.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Link to this post Empty Re: Link to this post

Post by Mati November 23rd 2011, 1:27 pm

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.
Mati
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum