The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Link to this post

View previous topic View next topic Go down

Link to this post

Post by Mati on 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
Active Poster

Posts : 1884
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Re: Link to this post

Post by Guest on 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

Guest
Guest


Back to top Go down

Re: Link to this post

Post by Mati on 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
Active Poster

Posts : 1884
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Re: Link to this post

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

Bump =

Mati
Active Poster

Posts : 1884
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Re: Link to this post

Post by LGforum on 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
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Link to this post

Post by Mati on 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
Active Poster

Posts : 1884
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

Re: Link to this post

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

JS management. Tick in topics.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: Link to this post

Post by Mati on 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
Active Poster

Posts : 1884
Reputation : 283
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://footballforums.forumotion.net/

Back to top Go down

View previous topic View next topic Back to top


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